|
Re: Help with basic algorithm on LabVIEW
There are three options I'll bring up.
Perhaps the easiest way to do this is to use the VI server to call functions and pass parameters and get return values. If you make a subVI with your data inputs and outputs, you can deploy it to the other target and call it using the VI Server.
To do this, you open a reference to the application providing the TCP address. The reference from that will let you access the VIs on the target and do things like call the subVI by reference. You may be able to do the operation in the remote call, but more likely you'll just copy the values to a global or queue or something on the target and return values from existing operations.
Option two is to use TCP, possibly UDP to send data buffers between targets. This is actually the way that the VI Server does it, so their performance will be similar. Both computers will open a port and one will write and the other read. Note that the timeout may need to be shortened to keep it from blocking your program. Look for examples that show how to do this.
Option three is to install or ftp the .out files to the controller to enable the network variables. Honestly, this is my least favorite option as I don't have much experience with it. Additionally, you'll find it to be a bit of a resource hog in 8.5.
Feel free to PM if you want to go into more details. Additionally, you may be able to find good info on this on devzone, on comp.lang.labview, or possibly on info-labview forums.
Greg McKaskle
|