LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab control in labVIEW 8.2

Hey everyone.

I am wondering if anyone has some example code for tabbing control.
The tabbing control I have is 1 tab with the following tabs:

1. Main
2. Machine 1
3. Machine 2
4. Machine 3
5. Machine 4
6. Machine 5
7. Machine 6

Then each machine has a separate tab control underneath
that has 6 tab per machine.

The Code would need to be in labVIEW 8.2 or lower. IF no example code
is available even just an idea on the state machine would be nice

Thanks


0 Kudos
Message 1 of 6
(3,269 Views)

Yes, you can have a tab control with 7 tabs, and then a tab control on each of those pages with 6 tabs.

 

That is just a layout for the user interface.  It doesn't necessarily have anything to do with a state machine architecture in the underlying code.

 

I'm sorry, but I can't be of anymore help without some clearer idea of what you want to do with this user interface and what the state machine is supposed to do.

0 Kudos
Message 2 of 6
(3,266 Views)

If you're looking for general information on state machines you should read the article Application Design Patterns: State Machine.

 

I agree, though, that you will need to provide more information for a more direct answer.

Message Edited by smercurio_fc on 10-23-2009 10:38 PM
0 Kudos
Message 3 of 6
(3,252 Views)

State machine stuff is all over the forums. As far as putting one tab under another... just create your main one with 7 tabs, create others with 6 tabs...and click and drag...

 

Message Edited by for(imstuck) on 10-24-2009 10:29 AM
0 Kudos
Message 4 of 6
(3,239 Views)
It will be nice if you post you've tried so far. This might give us better idea about your problem.For state machine browse the example they are really helpful and for tab i think for(imstuck) has already posted for you which i am also understanding from your question.
Naqqash
0 Kudos
Message 5 of 6
(3,232 Views)
stephen.willis.smith@gmail.com wrote:
> I am wondering if anyone has some example code for tabbing control.
> The tabbing control I have is 1 tab with the following tabs:
> 1. Main
> 2. Machine 1
> 3. Machine 2
> 4. Machine 3
> 5. Machine 4
> 6. Machine 5
> 7. Machine 6
> Then each machine has a separate tab control underneath
> that has 6 tab per machine.
> The Code would need to be in labVIEW 8.2 or lower. IF no example code
> is available even just an idea on the state machine would be nice
> Thanks

Perhaps you could explain what functionality you need such that you need a state machine for the tab control? (i.e., what are you trying to do).

If by "Machine", you are describing a piece of hardware, then you could define "Machine 1-6" as objects of type "Machine", and you could maintain a collection of Machine Objects with an array, then as you change the tab control, you could just reference a different Machine object....for example. All of your "Machine" methods would be defined in the "Machine" Class.



0 Kudos
Message 6 of 6
(3,226 Views)