LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Controls and Indicators together in a Cluster?

Hi! As I understand it, LabView understands clusters of UI elements to be either indicators or controls.

 

Isn't there some way of clustering LV's UI elements together that doesn't have this odd restriction? 

 

Our company uses LabView to replace hardware control panels -- obsoleting physical switches and lamps. In most control panels, switches and lamps are grouped together to control a parameter and also represent its state. The image I've attached shows one basic example: a group of radio buttons selects from available "Mike Outputs" and some indicator lamps are supposed to light when a particular channel is active. 

 

It shouldn't be so tough to make a nice looking cluster that has some switches and light bulbs grouped together, which are both easily accessed and controlled -- just like they are in a hardware panel. Allowing only the controls or the indicators isn't particularly helpful. What am I missing? What structure visually and programmatically groups UI elements together yet allows simple access to everything regardless of type? 

 

0 Kudos
Message 1 of 5
(3,577 Views)

Hi ggunderson,

Could you re-upload your attachment again? Because i can not open that.

Have you read about bundle and unbundle on cluster? I think that will give you solution of your problem.

 

I attached an example of cluster base on your question i hope it can help you.

 


Day@
Certified LabVIEW Associate Developer
Download All
0 Kudos
Message 2 of 5
(3,561 Views)

Hi gg,

 

simple: create a cluster control. Now disable those elements which should act as indicator...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 5
(3,548 Views)

@GerdW wrote:

Hi gg,

 

simple: create a cluster control. Now disable those elements which should act as indicator...


Need to add that updates to the status LED displays will need to be written back into the control using either a local variable or a property node. Hopefully the code will be structured well enough that this update is isolated to a single state of a state machine (such as update UI) so that code is not littered with local variables.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 5
(3,512 Views)

Decorations and Grouping will let you associate controls and indicators.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 5
(3,507 Views)