LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remote VI operation over UDP

I am posed with the challenge of remotely operating labview VIs over a wireless link. The link only supports UDP protocol. Does that pose a restriction that would not allow me to remote the VIs.

 

Further, if it is possible, what is the cleanest method of using extracting remotely collected clusters as input to a locally running executable?

 

 

0 Kudos
Message 1 of 2
(2,399 Views)

Hey Chris,

 

What you are trying to do doesn't seem quite as far fetched as you might think. It certainly wouldn't be a walk in the park, but it should be possible. First, LabVIEW supports and has specially designed VI's for doing UDP communication (Functions»Data Communication»Protocols»UDP). There are also some shipping examples in the NI Example Finder that you may find useful. Also, here is a tutorial on UDP Communication in LabVIEW that you might find useful.

 

In terms of working with clusters, this might be difficult because you can only transfer strings with the UDP Read and Write VI's. This means that you will have to do some flattening to strings / decoding some of your packets to send them as strings and then convert them to the clusters you are referring to. 

 

In terms of how you might go about 'remote' controlling your VI, I would imagine that it would be a lot like a typical producer consumer VI, only on two computers instead of one and using UDP to transfer data between the two VI's instead of queues or notifiers. Essentially, you would have your slave VI (the one being controlled) waiting for data, once it gets the data, it executes a particular routine depending on what data it received. 

 

Your task may be a bit tricky to convert data types, insure data transmission, and processing commands; but, it should be possible. Start small, making sure you can communicate between the two machines, and then work your way up, adding commands and routines as you go. 

Message Edited by BCho on 01-25-2010 11:25 AM
Hope this helps.
-Ben

WaterlooLabs
Message 2 of 2
(2,379 Views)