LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI Client TCP Example doesn't work like Hyperterminal

If I attach to the server with the CVI client example I miss some responses or get partial responses to commands. If I connect with Hyperterminal using tcpip/(Winsock) it works fine.

What it returns:
VM0,1SE30000,2SE30000,1SV@26,1DI0,2VM0,2SV@26,2DI0,1MN0,1GO0,WA500,2MN0,2GO0,MC26,MC27,MC5,2WS1,2MF0,1WS1,1MF0,MC8,MC11,CF2,AL0,AR4
What it should return
MD3,1SQ2047,2SQ2047,1FR20,2FR20,1SA@6,2SA@6,CN1,CN2,WA1200,CF1,1VM0,1SE30000,2SE30000,1SV@26,1DI0,2VM0,2SV@26,2DI0,1MN0,1GO0,WA500,2MN0,2GO0,MC26,MC27,MC5,2WS1,2MF0,1WS1,1MF0,MC8,MC11,CF2,AL0,AR4
0 Kudos
Message 1 of 2
(3,084 Views)
Hello

Check to see if you have any null strings in the string that is being returned. BY definition, a C string uses '/0' as a end of string marker. The string seems cut in half so there might be something in the string that the CVI Client example might not be handling correctly and hyperterminal apparently is.

Hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(3,084 Views)