LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Network multiple vi's ...

I am trying to figure out how to network two or more vi's over my LAN; both of these vi's will be recording data and controlling some actuation. I would like to be able to pass a simple T/F statement and maybe an integer or two. I have searched the forums and everything is too specific, can anyone point me to some examples or a primer?
0 Kudos
Message 1 of 5
(3,205 Views)
Open the Example Finder (Help -> Find Examples). You can use straight TCP/IP. Search for "tcp". The example pair "Simple Data Client" and "Simple Data Server" would do this. You can also use network shared variables. Search for "shared" and open the example "Shared Variable Client".
0 Kudos
Message 2 of 5
(3,197 Views)
I have just looked at and run the examples, but neither of these examples allow data to be passed from the client to the server. My end goal would be to share a variable between the two computers so that either one of them could change the value, any suggestions?
0 Kudos
Message 3 of 5
(3,181 Views)
You need to look at the "Shared Variable Client" example more closely. It allows data to be passed from the client to the server.
0 Kudos
Message 4 of 5
(3,172 Views)

I beleive using VI Server to share an Action engine will meet your stated needs.

Action Engines are a construct for encapulating data in a protected section.

VI Server (call by Reference) allows you to invoke a VI from one machine that runs on the target and receive the results back in the invoking machine as if the target code was on the local mahcine.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 5
(3,168 Views)