LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing data through TCP/IP

Hello ! My challenge is this: I have a vi that i have to use as a server and a vi as a client. In the server vi, i want to modify multiple parameters of one graph and these modifications should reflect on the client vi. How can i transmit, through TCP/IP, the modified graph to the client vi/application ? I would appreciate very much a link or a example vi that can show me exactly how such an opperation can be achieved. Thank you!
0 Kudos
Message 1 of 11
(4,431 Views)
There is a good example doing this on the example finder.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 2 of 11
(4,423 Views)
Hello ! Quick answer 🙂 Thank You. what should i look for ?
I have already looked at the exemples of TCP/IP server /client configuration examples...but i didn't find anything...I may have missed that example...could you (PLSS) be more specific ??.. Thank you very much !
0 Kudos
Message 3 of 11
(4,416 Views)
Are you looking to transmit the properties of the graph or the data.  I might have misspoken.  You can send a string over TCP capturing these properties, parse them at the client and write the values to the correct property node.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 4 of 11
(4,414 Views)
Both ...the data& the propeties of the graph...if such a thing is possible.
0 Kudos
Message 5 of 11
(4,413 Views)
I have just started 2 work in LabView...I don't have much experience ...so an example or a walk throug woul be very much appreciated...Thank's for taking the time to answer my question.
0 Kudos
Message 6 of 11
(4,411 Views)

You can make the string you pass include any data.  Here is a simple example using an XML string.

<Graph>

<Value>1,2,3,4,5,6</Value>

<Visible>True<\Visible>

</Graph>

 

Send this string on the server side taking a reference to a graph and build a simple vi to generate a string containing  the data you want to send.

At the client side you parse this string an a loop as set the appropriate property node as the tag dictates.

 

I cant think of a precanned solution for this but my morning coffee has not kicked in yet.

 

Paul 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 7 of 11
(4,408 Views)
Thank's !!
0 Kudos
Message 8 of 11
(4,403 Views)

For just the data the examples are the 'simple data client' and 'simple data server' examples.  Sending properties are a little harder.

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 9 of 11
(4,403 Views)
Would it help if i posted my vi's ?
0 Kudos
Message 10 of 11
(4,398 Views)