LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subVI

I am opening three subVI's in the subpanel in my main VI depending upon the menu chosen. Then, I need to enter a filename and some numeric values in one of the subVI, open that binary file and perform some operations with the data depending upon the numeric values entered in the subVI and display some results in the other two subVI's. Right now I am able to just open the subVI but not able to close them using the close button of the subVI's . I am also not able to read the filename and numeric data entered in teh subVI. Can anyone please help me to read the data from subVI?
0 Kudos
Message 1 of 3
(2,745 Views)
Hi,

To obtain the values of your controls in the subVIs, you'll need to wire the reference to your VI by an invoke node "Get Control Value [variant]". Then you can use "set control value" to pass the values to the next subVI.

Close button in your subVI will not remove it from the subpanel. You can try using the get control value property node to obtain the status of the stop button, and use subpanel's Remove VI invoke node to remove it from the subpanel.

You can start by checking the examples in the NI Example Finder. Look under Build User Interfaces/General/
simple.vi, templates.vi and viewer.vi

Hope this helps,
Dan
0 Kudos
Message 2 of 3
(2,745 Views)
Hi,
Thanx for your reply. It was helpful.
0 Kudos
Message 3 of 3
(2,745 Views)