LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send data from client to server using tcp

Solved!
Go to solution

1.As i am new to look I need help regarding sending data from client to server .I have also gone through various labview examples but all of them explains data transfer server to client.But I need help regardng sending data from server to client.

2.I also want to use variant data type for sending my data.

Can anyone help me please. Thanks

0 Kudos
Message 1 of 5
(4,288 Views)
Solution
Accepted by topic author qwerty7
It doesn't matter the direction. Once you have a connection either end can use it to send data to the other. You just have to create what you want the interaction to look like.

Do you want the client to send a command requesting data?
How do you want the data response to look like?

You can send variants, but it probably not worth the effort.

Mike..

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 5
(4,261 Views)

I've started using Network Streams for (very flexible) data communication between two machines.  I believe that there are Demo Projects that ship with LabVIEW (2012 and higher, for sure) that illustrate a Real-Time system (two machines, Host and Remote RT) each having a Queued Message Handler (with the Message Data being passed as a Variant) connected to the Message Stream so that the two machines can send Messages to each other.

 

If you look at the Sample Real Time projects, I think those are the ones with Network Streams.  The documentation is pretty good.  There are also LabVIEW Examples on Network Streams.

 

Bob Schor

0 Kudos
Message 3 of 5
(4,246 Views)

Thanks for the help. Yes .I want client  to send a command  requets data to server.So How should i proceed.I looked into variants. Can i get any help or any examples .Thanks in advance.

0 Kudos
Message 4 of 5
(4,212 Views)
Why are you so interested in sending variants?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 5
(4,197 Views)