FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

running more than one VI from Host PC

hello everyone, Can anyone answer me if can I run Two VIs at same time from host PC  and another VI is running on RT cFP if I use network shared variable to move data between the VIs. these 2 VIs  will display data/info and performing calculations based on the data from realtime VI. ?
0 Kudos
Message 1 of 4
(4,058 Views)
Fayasoft,

You can certainly have multiple VIs running on your host PC reading from a shared variable that is being updated by a real time target.

Simply add the variable to your project and drag it into all the VIs in your project which need to read/write to/from it.  Once you deploy the shared library and the RT VI you should see all 3 of your VIs communicating via the shared variable.

Let us know if you have any trouble getting this to work.

Regards,

Simon H
Applications Engineer
National Instruments
http://www.ni.com/support/
0 Kudos
Message 2 of 4
(4,047 Views)

Thanks for reply Simon ,

with one VI on host and one in RT , using shared variables its working fine. so if I want to run two VIs from Host Pc , should I build two separate executables or in one executable I can open both Front panels, both VIs on PC got separate STOP buttons , also is it possible to close both VIs using one Stop button and can switch between the VIs ?

Thanks ,

Fayasoft

0 Kudos
Message 3 of 4
(4,046 Views)
Fayasoft

Personally I would create two executables if the two VIs are distinct applications.  You could have one executable which opens a second front panel but this would require additional programming.  Having two executables communicating subscribed to the same shared variable is not a problem.

In order to stop both VIs with one stop button I would use another shared variable to pass a Booleans between VIs.  The "main" VI with the actual button control would write to the shared variable while the other VI read this value and passed it to the stop terminal of your while loop.

Regards,

Simon

Message Edited by Simon H on 12-20-2006 06:05 PM

0 Kudos
Message 4 of 4
(4,022 Views)