Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   LabVIEW Dashboard printing garbage data (http://www.chiefdelphi.com/forums/showthread.php?t=92370)

Clark Pappas 19-02-2011 19:43

LabVIEW Dashboard printing garbage data
 
Hi everybody.


Our robot is running Lua, and we are having it send a 4-8 character string to LabVIEW using the AddString() function. Directly printing the sent value, it displays a few random characters that aren't on the keyboard.

We can get and display data types like U8 and U16 perfectly fine, it's just Strings in particular that are becoming issues. Any ideas on what's wrong?

Greg McKaskle 19-02-2011 21:26

Re: LabVIEW Dashboard printing garbage data
 
LV strings are preceded by a four byte binary count. If the Lua string is different, this may explain the bad characters. If you can give a more specific example, I may be able to recommend how to make the strings compatible.

Greg McKaskle

Clark Pappas 20-02-2011 20:53

Re: LabVIEW Dashboard printing garbage data
 
Alright.


I add StringControl to the DashboardData typedef, and re-add it into the dashboard VI. When its unbundled with the Analog and Digital modules and such, i link a string indicator to it, and get strange characters printed in it.

Examples of what gets sent:
AddString("stow")
AddString("vertical")
AddString("pickup")
AddString("Slot")

Greg McKaskle 20-02-2011 21:16

Re: LabVIEW Dashboard printing garbage data
 
But what are the characters that are printed?

Greg McKaskle

Clark Pappas 04-03-2011 21:40

Re: LabVIEW Dashboard printing garbage data
 
Alright, here's an example:

String sent from robot: "Slot"

String printed in Dashboard: "ìèH"


All times are GMT -5. The time now is 09:17.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi