LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get user input from first vi, then open the next one using that input

Hello,

I am new to Labview.

I am trying to build a program that takes user input to select an output signal type (sine, pulse, or none), and a test type (auto or manual). I want to use these to open the next vi (open one if user said auto, open the other if the user said manual). I am having trouble figuring out how to tell Labview to close the first front panel and open the new one. I looked at the LoadandCloseSubVI vi from a previous thread and it doesn't seem to apply to my application. I have attached my code so far. The user would start with test selection (attempt 2), and right now I am working on the auto test sequence. The "master" vi holds the case structure to run the whole thing, starting with test selection, then proceeding to either the auto test or the manual test (again, manual test vi hasn't been written).

 

Also, the connector pane won't let me use indicators to show which signal the user selected, because they will only be outputs on the connector pane since they are indicators. Can I change this?

 

Please advise! Thank you!

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

With regards to the indicators, you can put them on the connector pane to be returned from one VI. In your next VI, the one you are trying to pass the values to, you need to create controls that are the same type as the indicator. So, if one VI has a string indicator on the connector pane, your next VI needs to have a string control on the connector pane. You can switch a front panel object between control and indicator by right clicking it.

 

Have you gone through the 3 and 6 hour tutorials here? I suggest doing this because it will save you time in the long run.

 

To call the VI, you have the right idea (I think). You can either launch your second VI dynamically (search the forums on how to do this), or you can use a property node to set your front panel visible property to false. This will hide the current panel. Then, in your subVI (the one who's panel you want to show) you can go to File->vi properties then under windows appearance select show front panel when called, and close front panel if originally closed. I think that will give you what you want. But, again, I suggested the tutorials.

Message 2 of 3
(2,615 Views)

Thank you! I have completed the tutorial. And your other responses made a lot of sense now that I have a basis.

Message 3 of 3
(2,578 Views)