LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating and working with multiple windows

My application needs to our more window during run time. when i click a button in front panel it should open an another window (not subvi calling) that contain controls of same vi program. like this i need to do this for all. How can i do??? Help me.!!

0 Kudos
Message 1 of 3
(2,340 Views)

Hi gokul,

 

to show more than one front panel simultanuously you have to use more than one VI...

You will have to call the 2nd VI as subVI either by putting it in the BD of the mainVI or by using VI server calls!

Best regards,
GerdW


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

Make your VI reentrant and then programmatically spawn new instances.  To make the VI reentrant, go to File>>VI Properties.  In the Category pull down, select Execution, then select "Preallocated clone reentrant execution".

 

Here is an example to show you how to programmatically spawn the VI:

 

https://decibel.ni.com/content/docs/DOC-3508

 

(Edit) Just add an invoke node to open the front panel of each clone after the Run VI method.

0 Kudos
Message 3 of 3
(2,318 Views)