LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

radio buttons

Solved!
Go to solution

i want to transfer data of radio buttons from one pc to another using tcp/ip protocol. how can i do it?

0 Kudos
Message 1 of 10
(3,727 Views)

Are you able to transfer the data over TCP/IP? or else you want to know how to use radio button?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 2 of 10
(3,703 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 10
(3,701 Views)

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

0 Kudos
Message 4 of 10
(3,696 Views)

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…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 10
(3,688 Views)

this is the correct one

0 Kudos
Message 6 of 10
(3,662 Views)
Solution
Accepted by topic author arushi31

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…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 10
(3,658 Views)

thnku so much this was really helpful,  but i cant tranfer the data while the vi is running. so is there a way out

0 Kudos
Message 8 of 10
(3,651 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 10
(3,637 Views)

Hi arushi,

 

after I changed the points I mentioned before I was able to run your VI successfully…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 10
(3,634 Views)