ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Tabs with Subvi's

I wish to have each page of a tab control be used with a subvi. One for graphs, one for data entry,etc and wish to have the tab page number start and stop the selected subvi. Up until now I have been using 'run on open' and a seperate stop button for each subvi. I tried creating dummy tab pages and local variables and it works but is clunky. The problem is that I can't read a tab page number selected from a main program while I'm in a subvi. Thanks, Jim W
0 Kudos
Message 1 of 2
(2,594 Views)
"The problem is that I can't read a tab page number selected from a main program while I'm in a subvi"

Yes you can!

When you call the sub-VI, pass it a reference to the the tab control in question.

Inside the sub-VI, use the "value" property node to check the displayed tab page. If it changes, the sub-VI should terminate.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 2
(2,594 Views)