LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Meter / slider questions - cluster names, changing needle colour

OK, so a couple of questions about meters /sliders.

I have a meter indicator on a form, with two needles. (example attached)
I want to create the cluster for the input using "bundle by name", but the meter "cluster" does not appear to have any names. I want the elements of the cluster to be "Channel 1" and "Channel 2" - how do I do this?

Secondly, I want to be able to set the needles to transparent.
I can do this with a meter with only one needle, but for more than one, I think you need to set the Active slider ("Actslider") property.
It strikes me that the easiest way to do this is to use a loop, but how do I discover how many needles the meter has? Or could I use the cluster names to s
pecify which needle I want to change colour?

TIA

Joolz

[I'm going to add the word "color" here so that those of you across the pond will also be able to find this from the search engine 😉 ]
0 Kudos
Message 1 of 4
(3,263 Views)

For your first question, create a constant cluster with labels for the elements and use this as the input cluster for th bundle-by-name. See attached diagram.

Regards,

Khalid
0 Kudos
Message 2 of 4
(3,263 Views)
Hello!


�Secondly, I want to be able to set the needles to transparent.
I can do this with a meter with only one needle, but for more than one, I think you need to set the Active slider ("Actslider") property�.

I am not sure what kind of problems you faced when trying to set both needles to transparent but from looking at your example, you could use the color you have set for Needle2 for Needle1 as well.

S Vences
Applications Engineer
National Instruments
0 Kudos
Message 3 of 4
(3,263 Views)
Thank you both for the responses, and apologies for the tardy reply - changing priorities, etc, etc, you know how it is...

I've attached a Vi to act as an example for anyone else who has either of these problems.

The main thing I found out is that although you can, as you say, use a constant to "declare" the cluster names for the gauge, these names are only "remembered" by the wire - if you create a local variable of the gauge, it will NOT remember the cluster names. That's what had me confused...

Cheers

Joolz
0 Kudos
Message 4 of 4
(3,263 Views)