LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Switch diagram

Hi!

I have a problem with my frontpanel. It's overloaded with displays. I want
to create a frontpanel with the possibility to switch between different
displays. I want to make a list of Buttons from witch it is possible to
reach all displays from every point in my frontpanel. I hope you can help
me. Thanks in advance,

Peter Wernerus.
0 Kudos
Message 1 of 3
(3,794 Views)
In article <7mhs9i$832$1@nets3.rz.RWTH-Aachen.DE>,
Peter Wernerus wrote:
>Hi!
>
>I have a problem with my frontpanel. It's overloaded with displays. I want
>to create a frontpanel with the possibility to switch between different
>displays. I want to make a list of Buttons from witch it is possible to
>reach all displays from every point in my frontpanel. I hope you can help
>me. Thanks in advance,

I needed to fit loads of different controls and indicators to set up
equipment for particular tests. So I put them inside clusters (mostly
for the sake of neatness--didn't have to) then laid them all in the same
place. The buttons to select which control set I want makes the
desired set visible and active while making all the others
invisible
and disabled. Kind of a mess to alter, but works great once set up.

Chris
0 Kudos
Message 2 of 3
(3,794 Views)
This solution works, but I dealt with a progam like that and hated it --- way
too many attributes.

There are two other solutions.

One is to make a Calling VI that acts like a Tab menu (if you use Windows you
know what I'm talking about... lots of tabs at the top). This will involve
using a lot of "Invoke VI..." commands. I do have a sample if you want to see
it, but it's not my program so I can't help you with it. But it does work
rather well when all subVIs are loaded.

The other solution (the one I know how to do), is to divide the program to X
number of screens, and make each screen a sub-VI. Go to "VI Setup..." and make
them all dialog boxes, and pop up when called. Now, you'll still need a
'parent' VI to control them. Simply have a huge (while) loop
that keeps track
an integer. Whenever the user hits the "Next" or "Previous" button,
add/subract one from the counter. Inside the loop you'll have a case
statement, then just calls a different VI depending on the integer. Of course,
you'll need the Next/Prev buttons on all the VI's, but it works.

Rick
--

rick@csciences.com

Chesapeake Sciences Corp.
1127B Benfield Blvd Millersville, MD 21108

Tel: (410) 923-1300 x3430 Fax: (410) 923-2669
0 Kudos
Message 3 of 3
(3,792 Views)