LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I control pages in tab control with case structure?

Solved!
Go to solution

Hi there!

 

I'm quite new to Labview and my company wants me to make some programs for testing of electronics. I'm currently working on the GUI and I would like to control three pages in a tab control with buttons.

 

I only got the base package of Labview 2009 so I can't use Event structure.

 

If you open my .vi you can see I have a tab control with three pages. In the first page I got a "Start" button that should open the next page in the tab control. In the middle page I have a "Tilbake (Back)" button that should go back to the previous page. The button called "Lagre (Save)" should work as a next button and go to the last page. On that page I have a "Tilbake(Back)", "Ny test(New test -> go to first page again)" and "Avslutt (Quit)".

 

The buttons under the tab control where something I copied from an example just to try out. That works perfectly, but I cannot edit the Event Structure from the example.

 

Is this possible to solve with Case Structure? Or maybe there are other solutions? Feel free to edit my .vi if you like:)

 

Thanks for the help!

 

Regards,

Even Myhre

Test engineer

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 1 of 7
(4,584 Views)
Solution
Accepted by topic author EvenDeejay

Hi Even,

 

I've done a basic modification to your VI.  Only the first button in the first tab works, but I guess you can sort out the rest of them.  I hope it helps to start with.

 

Dani

0 Kudos
Message 2 of 7
(4,577 Views)

Thanks alot!

 

I worked perfect!

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 3 of 7
(4,569 Views)

Not a problem.  Good luck with your program.

 

Dani

0 Kudos
Message 4 of 7
(4,567 Views)

Hi again!

 

Well it solved my problem, but I got a strange error while running my program.

 

When I press "start", the tab control changes page. When I press "tilbake(back)" it is totally random how many clicks it is necessary for it to change back to the first page. It can be from 1 to 20-30 clicks. Which is very strange since all other navigation buttons works perfect. "Tilbake(back)" button on the last page works correctly and has the same structure as the "tilbake(back)" button on the middle page.

 

I have tried all the different options on how the button will response on a press.

 

Regrads,

Even

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 5 of 7
(4,550 Views)

I guess it's running to fast.  I set a delay on it.  Let's see now.

 

 

 

0 Kudos
Message 6 of 7
(4,542 Views)

Thanks again:)

 

Think I got the basic GUI in place now!

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 7 of 7
(4,538 Views)