LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using a sub vi in a modal form in one and non-modal form in another

Solved!
Go to solution

I am trying to use a sub-vi in 2 places. However in one place I want it to open in a modal form and in the other I just want it to execute the code and generate results without the front panel showing up.

 

How do I do this?

 

Arjun

0 Kudos
Message 1 of 4
(2,525 Views)
The quick easy solution would be to make two copies of the subVI with each one's properties set the way you need it.
0 Kudos
Message 2 of 4
(2,521 Views)

You could add the below input to your VI and set the property as desired when called.

 

 

modal input.png

Herrlin

Just trying to spread the LabVIEW love.
Message 3 of 4
(2,519 Views)
Solution
Accepted by topic author SZArjun
  1. Uncheck Show front panel when called in the VI Properties (Ctrl+I in diagram of the VI >> Window Appearance >> Customize...)
  2. In the diagram, right-click on the occurence of the VI that must open >> SubVI Node Setup >> Check Show front panel when called
  3. Repeat for the other occurence of the VI to uncheck this option if needed.
Message 4 of 4
(2,516 Views)