LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy 2 Real Time Targets at the same time from the same vi

I have created 2 VIs using simulation interface toolbox and the SIT connection manager, both in the same Labview real time project.  They deploy to two different targets and when run separately, both run perfectly.  I would like to create a VI within the same project that can control both at the same time, as they will be running together for my simulation.  I put both VIs into a third VI as sub-VIs with inputs wired to the start and stop buttons created by the SIT connection manager.  These are wired to a simple boolean control on the front panel of the third VI.  When I run this third VI, both simulations deploy to their respective targets successfully.  The buttons I have created to control them, however, do not work. When I press the buttons, nothing happens.  Is there some other way to do this or something I am missing?

 

Thanks in advance,

 

Eric

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

Hello Eric

 

Once you launch the main VI, subVI inputs (including start and stop buttons) can't be updated. You might want to replace those controls with shared variables and have three VIs running in parallel: one running on each RT target and one running on the host where you can update the shared variable values.

 

Hope this helps

 

Javi

0 Kudos
Message 2 of 2
(2,808 Views)