07-14-2025 05:57 AM
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?
Solved! Go to Solution.
07-14-2025 06:03 AM
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.
07-14-2025 06:30 AM
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.
07-14-2025 06:33 AM
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…