LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scrolling via Boolean Control

Here is a picture of what I've got to try and do tab selection.

Came to me that for 2 of the 4 options I don't need to set the tab since the default is what it should be.  

See the error?

The larger red circle is where I'm finding the tab control page. the smaller is where I'm trying to differentiate between which page it needs to open...if subvi3 is pressed it opens the same file as subvi1...but a different tab.

Likewise with subvi4, opening the same as subvi2.
LV7.1, LV8.5, LV2014/15/16
0 Kudos
Message 21 of 38
(1,547 Views)
Is "page 3" the label of the entire tab control (not the name of one of the tabs)?  You should put your code in the smaller red circle inside the event case.  This way the tab value is sent only when the show/hide button is clicked.  The way you have it, the tab values are being sent each loop iteration.  This wastes time and CPU resources.  You only need to send the value when showing the subvi.
- tbob

Inventor of the WORM Global
0 Kudos
Message 22 of 38
(1,535 Views)
Page 3 is the label of tab 3 (Technically tab 2, since i believe the first is 0, then 1, then 2 etc.)

I just moved that code into the event structure...no go
LV7.1, LV8.5, LV2014/15/16
0 Kudos
Message 23 of 38
(1,531 Views)
Don't use the page name.  Use the label of the entire tab control.  Point to the tab control border, right click and select Visible Items - Label.   By default it is "Tab Control".  Use this instead of "page 3".
- tbob

Inventor of the WORM Global
0 Kudos
Message 24 of 38
(1,527 Views)
This is the updated code, both were moved into the case, each one into the case that it relates to - so case for 1, 3 (same subvi different tabs), and case for 2,4 has the other....

smaller circle shows tab title, not tab control label, just the individual tab.
LV7.1, LV8.5, LV2014/15/16
0 Kudos
Message 25 of 38
(1,526 Views)
Tried that too, has to be something out of place 😕

I would just upload the Vi, but I don't have anywhere to host it...
LV7.1, LV8.5, LV2014/15/16
0 Kudos
Message 26 of 38
(1,520 Views)
In the little red circle where you have a string constant "page 3", change that to "Tab Control", that is if the label of your tab control is "Tab Control".
- tbob

Inventor of the WORM Global
0 Kudos
Message 27 of 38
(1,521 Views)
You can upload the vi by using the same method as attaching the GIF file.  Just click the Browse button and select your vi.  If you have more than one, like subvi's, zip them into a zip file and upload that one.
- tbob

Inventor of the WORM Global
0 Kudos
Message 28 of 38
(1,517 Views)
Yep tried that - it is "Tab Control", but changing from page 3 to Tab Control didn't help, both still load on the same default page
LV7.1, LV8.5, LV2014/15/16
0 Kudos
Message 29 of 38
(1,516 Views)
Scratch that got it working 😄
LV7.1, LV8.5, LV2014/15/16
0 Kudos
Message 30 of 38
(1,508 Views)