06-04-2011 10:05 AM
Hi
i am trying to establish TCP connection b/w LABVIEW and C++ program. Server is established in C++ while client is implemented in labview.Although connection is successfully establish b/w server and client, both are unable to correctly understand data send/receive among them. Forexample if i want to send an int type send_array from server, i use standard WINSOCK function "send" like that:
send(AcceptSocket,(char*)send_array,129*4,0);
but when client in labview receive this array, it shows unexpected values.As a client, I used "simple data client.vi" with one modification i.e. as sent data size(129*4 bytes) was fixed, only one TCP read was used .
Same problem exists if i send data from client to server.
Kindly help me
Best Regards
Solved! Go to Solution.
06-04-2011 01:16 PM
It's probably an big/little edian problem. If you are using the Flatten/Unflatten from String functions, you can specify which to use.
03-16-2016 11:01 AM
Hi,
I have the same problem.
Do you have the solution?
thanks
03-16-2016 12:23 PM - edited 03-16-2016 12:24 PM
03-20-2016 11:48 PM
It has been long since this problem occured. I think "little indian/big indian" was the issue in my case which was finally solved
Thanks & Regards
asim