04-18-2016 12:53 AM
i want to transfer data of radio buttons from one pc to another using tcp/ip protocol. how can i do it?
Solved! Go to Solution.
04-18-2016 01:56 AM
Are you able to transfer the data over TCP/IP? or else you want to know how to use radio button?
04-18-2016 02:01 AM
Hi arushi,
how can i do it?
Read the value of the radio button on one pc, send it with a TCP message to your other computer and display the value over there…
What exactly is your problem? Where are you stuck? How does your VI look like?
04-18-2016 02:11 AM
i have attached the vi which shows both client and server side. when i run the vi i want that the checkbox which i select on server should be displayed on client side and correspondingly the object in case structure shuld be displayed
04-18-2016 02:19 AM
Hi arushi,
there is no TCP server and no TCP client.
Your VI contains just an event structure!
LabVIEW comes with alot of example VIs. Open the example finder and study them! (There are also examples of TCP communication…)
04-18-2016 03:16 AM
this is the correct one
04-18-2016 03:30 AM - edited 04-18-2016 03:30 AM
Hi arushi,
- in the server you call TCPWrite two (2) times, in the client you call TCPRead three (3) times. This doesn't fit…
- in the client you read 10 bytes to check the size of the message - but you just wrote 4 bytes as "size". That doesn't fit together…
- when running all local you should use "localhost" instead of a fixed IP address…
04-18-2016 03:54 AM
thnku so much this was really helpful, but i cant tranfer the data while the vi is running. so is there a way out
04-18-2016 04:11 AM - edited 04-18-2016 04:29 AM
Works fine for me once I made the changes GerdW already told you to make.
You could potentially be running into corporate firewall blocking the port you are trying to use. Try a different port.
04-18-2016 04:13 AM