02-19-2014 02:04 PM
Hello!
I would like to display some elements of the front panel on the primary and others on a secondary monitor. So I decided to make a subvi from the elements I wanted to show on the secondary display.
It nearly works, but I would like to have fullscreen on both of the monitors. Unfortunately if I change front panel bounds to be written in the attached subvi, it shows up on the primary monitor. If I leave front panel bounds to be read it works with the secondary monitor.
Could you give me some advices how to solve the problem?
Thanks!
02-20-2014 05:48 AM
Dear VampireEmpire,
One way you can do it is to create 2 SubVIs (each with the specific indicators etc, then set the Window Appearence of those VIs Custom, and check "Show Front panel when called"
If you are in a VI, press Ctrl+I, or right click on the icon of the VI on the front panels upper right corner, get VI Properties and navigate to Window Appearence.
In each of these VIs use the Invoke Node :
VI Server Reference (This VI), --> Invoke Node --> Front Panel --> Run-Time Position --> Maximized, and wire monitor number 1 to the primary and 2 for the secondary. Use for example a while loop, and if you want to terminate only one of the VIs at Run-Time, remember to Close the Front Panel (Invoke Node), and the reference.
Then create a 3rd, VI, call it a wrapper, and insert the two VIs to be called. When you run this wrapper, you programatically call the other two VIs front panels.
I have created a little example how to do it. Please find the attachment and tell me your experiences.
A more sophisticated way to do it would be to programatically open the references from the main.vi, and Open --> Run Time.maximize in a while loop --> Close the front panel in the caller.
https://decibel.ni.com/content/docs/DOC-29472
Best regards,
02-20-2014 06:46 AM
Or if you do not really want to use two separate VIs, you can just resize one VI programatically to fit both screens, from position 0 to position 1080,3840 (assuming 2 x 1920*1080 displays)
02-22-2014 07:46 PM
Thanks for your help!