ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open different RTs

Solved!
Go to solution

Hello,

 

I have a program of a test bench where I open different VIs on windows depending on the reference I want to test. For the moment I only have one, so I open an only RT and Windows-RT are communicating each other. Now I want to make a menu on RT and depending what reference I want it will open a different RT VI. Does it work the same as in Windows? Or how its made?

0 Kudos
Message 1 of 4
(461 Views)

Hi lab,

 


@electronic_lab wrote:

Now I want to make a menu on RT and depending what reference I want it will open a different RT VI. Does it work the same as in Windows? Or how its made?


You can "open" (aka "call") different subVIs in a RT target: simply create a MainVI, that calls subVIs based on a command/parameter sent by your host application!

 


@electronic_lab wrote:

I have a program of a test bench where I open different VIs on windows depending on the reference I want to test. For the moment I only have one, so I open an only RT and Windows-RT are communicating each other. 


  • I guess you talk about realtime targets (like cRIO)!?
  • How do you open "different VIs depending on reference"? Which "reference"?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(457 Views)

Thank you. I mean, If in the menu of Windows I select the button A, it will open in RT the VI A, if B, the VI B.... In windows I make it with events, I guess in RT can be done also like that. Yes, I talk about Crio.

0 Kudos
Message 3 of 4
(438 Views)
Solution
Accepted by electronic_lab

Hi lab,

 


@electronic_lab wrote:

Thank you. I mean, If in the menu of Windows I select the button A, it will open in RT the VI A, if B, the VI B.... 


So your host application (on Windows) sends a message to your RT target with the command to execute VI "x".

The RT application receives the message and uses the command to select one of several cases of a case structure to call the requested subVI.

 

This will be a very simple solution…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(435 Views)