LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simple tcp messaging vs. shared variable

I am getting ready to deploy a project which will have one HMI and three sbRIOs on a closed local network with static IP addresses. Of course these devices will need to comminucate certain information to each other in order to advance the process each is responsible for. I have used shared variables back in LabVIEW 7.1 but not since. As I remember it was pretty straight forward and simple to implement. The data I will be sending will either be boolean or string. I was recently introducted to simple TCP messaging and was curious, based on experience, what will be the best option for reliable communication. i know this is potentially a vague question, but thanks anyway.

Doug Ferguson

www.southerndaqsolutions.com
0 Kudos
Message 1 of 2
(2,440 Views)

Hi Doug,

 

Shared variables where introduced with LV8.0 so I don't think you used them with 7.1 Smiley Wink

 

If you need to pass big amounts of data and lots of different types I would suggest to use STM, which is btw very easy to implement and allready gives a good example on communicating between more cRIOs and a Host.

 

The advantage of Shared Variables is that they are very easy to implement, but for large data TCP/IP and so STM has a better performance.

 

 

Christian

Message 2 of 2
(2,427 Views)