Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically run VI on RT machine

Hello, I'm using LabVIEW 8 and have an RT system with a GPIB interface. In my project, I have a VI listed under the RT machine that reads and writes to the GPIB module, and stores these in shared variables. On my local system, my main VI reads and writes to these shared variables. What I currently do is manually run the VI on the RT machine, and then access the GPIB shared variables in my main (local) VI. What I'd like to do is have the GPIB read/write VI start automatically from my main VI. It would be nice if I could put it in my main VI as a sub VI and set the execution target to my RT system. What can I do about this?
Thanks,
Sima
 
0 Kudos
Message 1 of 2
(3,342 Views)
Hello Sima:

I am a bit confused about what you are trying to do exactly. From what I understand, you are still trying to keep your user interface on the host side but want the RT VI to run when you run your host VI. If this is what you are trying to do, then you can first copy your RT VI on to your RT target by FTPing in to it. Next you can use VI Server on your host VI to start and stop the RT VI. You can use a sequence structure where you first start your RT VI, then read the shared variable values and finally stop both VIs.

Let me know if this helps.

Best Regards,
Jaideep
0 Kudos
Message 2 of 2
(3,316 Views)