steve rino wrote in message
news:39ddfa4c@newsgroups.ni.com...
>
> I was hoping someone could help me out. I am writing an application that
> runs the user through a data acquisition test. The test contains several
> procedures and I need the ability to add/remove boolean controls to the
front
> panel based on the type of test they perform. It cannot be hardcoded
because
> there is also an option to customize a new test.
You can't arbitrarily add controls to the front panel while the program is
running. However, before it was announced LV6 would have tabbed controls, I
was playing about with a similar kind of thing by having many sets of
controls physically in the same area of the front panel and using attribute
nodes to selectively show or h
ide different configurations depending on the
selection in a row of "radio buttons" at the top of the control area.
Using captions or transparent string indicators you can change the visual
labels corresponding to the controls.
This means you could have many Booleans on the front panel- ultimately you
could make a close packed grid- and you only show the ones needed for the
current test, labelling them appropriately. Because the labelling and
displaying is done within the program, this is compatible with the user
customising the test sequence.
You can also move controls about the window using attribute nodes, so an
alternative to having a ridiculous number of controls is simply to have the
maximum that could be used at any one time and, as well as showing/hiding
and relabelling controls, you also move them to new positions when the
procedure is changed.