09-02-2008 09:26 AM - edited 09-02-2008 09:30 AM
Hey Guys,
Is it possible to control a tab control from a sub vi? I want to be able to show/hide pages on a tab control, but I would like to have that functionality in a sub vi.
Description:
Based on weather or not certain hardware is available in a configuration, I want to be able to display or hide tabs. I will have all of the tabs already inserted into the tab control, but the default is to have them all hidden until hardware is found, then the appropriate tab will show up based on the subvi. However, I also need to be able to hide that tab if that piece of hardware is no longer available.
I've added a screenshot of what I currently have going on in my main vi. I would like this to be implemented in my sub vi.
Thanks in advance.
-Brad
09-02-2008 09:28 AM
Hi Bard,
you can use the reference of the tab control. Link it to the sub vi and you can do what you want.
Mike
09-02-2008 09:32 AM
Thanks Mike for your quick response.
How can I link it to a subvi, thats the problem I'm having. I'm unfamiliar with linking property nodes in subvi's?
-Brad
09-02-2008 09:38 AM
Hi Bard,
Create a reference of your tab control (right click on it and select create - > referece). Create a control from this reference and move it to your sub vi. Go to the front panel of your sub vi and link it to the connector panel.
Hope this helps.
Mike
02-05-2012 12:43 AM
hi
How do i connect a button to a tabcontrol. As in when i press the button the page2 of a tab control should appear.
02-05-2012 04:49 AM
02-05-2012 05:36 AM
Thanks a lot for the help :).
02-05-2012 10:21 AM
hi
I would like to confirm a thing. To export values of the data acquired and the intermediate values in the functions, wiring a write spreadsheet.vi to the input is the best solution. Is that true?
I am very new to labview. I have a button specifying a range of 1-150, on clicking the button , three more buttons should appear, which provide ranges 1-50,51-100,101-150.How do i achieve this?
02-05-2012 02:31 PM
Write spreadsheet is a good way to export data, yes.
You can create property nodes of controls and indicators by r-clicking them in the wire diagram. One such is Visibility. Place the buttons and hide/show them as needed.
/Y
02-06-2012 09:55 PM
hi
Can u please explain it in more ellaborate manner. or if u can attach a program it would be great.
I have a tab container having three pages , but in my case i can include only page 1 and page 2. How do i include further pages in the case.
Thanks for helping me.:)