QUOTE (LV_FPGA_SE @ Jul 23 2008, 09:58 AM)
Attached are pictures of sample code that shows the issue.
When I run the command through telnet, it goes as follows, note that there are no spaces:
QUOTE
hostname
616E31323235612D3831373032313800
The string display is on "Normal" mode, not hex.
Don't worry about the Send TCP Command SubVI, or that stuff, the relevent part is the last TCP write.
QUOTE (crelf @ Jul 23 2008, 10:29 AM)
Are you sure the string has spaces in it, or is that because you're using HEX display mode on a front panel indicator? That mode does break HEX groups up for display purposes only, but does not alter the data.
It does have spaces, and the display mode is the "normal" display mode. The Data is an ASCII String, that is representing characters.
I have a subVI that will take this returned string (without spaces) and translate it. However, it doesn't work correctly with the spaces that are getting added in. I could fix it by accounting for the spaces, but I'd rather make labview stop putting spaces where they don't belong.
Edit: Upon Further Inspection, it looks like they are null characters, not spaces Which means that this is an issue with my TCP server and not with lab view, and it just had not shown up with my testing using c and python.