LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Differentiation between controls & indicators by reference?

Greetings. I would like to be able to set all the controls (but not the
indicators) on a front panel to a given state (e.g. F for bools, 0.00 for
numerics). However, the Controls[] property includes references to both the
controls _and_ the indicators.

Is is possible to determine programmatically whether any particular
"control" refnum points to a control on the front panel, or to an indicator?
I've looked at the problem from various directions, including the ClassID
and Type Descriptor, but so far I've come up empty.

Best regards,
Justin Goeres
Indio Systems, Inc.
Pleasanton, CA
0 Kudos
Message 1 of 2
(2,423 Views)
There is actually a Knowledge Base on our website that discusses this issue and includes a VI that should accomplish what you are trying to do. Here is the info on it:

Programmatically Determining if an Object is a Control or Indicator
KB 26K9A02L
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/32e64e35fc96e9f4862569fa0059b978?OpenDocument

Matt Kisler
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,423 Views)