LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A Thicker Gauge Needle?

As a relatively new LabView user, I'm a little stumped by some of the uses
for 'Attribute Nodes' and such. Hopefully this isn't too obvious a question:

I would like to programmatically change the thickness of the needle in a
gauge, but I can't find an attribute node selection that lets me do it.
Am I going about it in the right way?

Actually, just being able to replace the skinny needle with a thicker one
in a gauge (indicator) would be enough for my current application. I've
tried the "Edit Control..." environment, but when I try to select the thicker
needle from the "Picture Item" popup in Customize mode, it doesn't do anything!
How do I accomplish this?

Note: just importing a bitmap of a thicker needle is not an option in
this
case -- I need to be able to change its color programmatically, something
that I do not believe I could do with an imported bitmap.

Thanks in advance for any advice!
Justin Goeres

Project Engineer
Indio Systems, Inc.
Pleasanton, CA
0 Kudos
Message 1 of 3
(3,427 Views)
Justin Goeres wrote:

> As a relatively new LabView user, I'm a little stumped by some of the uses
> for 'Attribute Nodes' and such. Hopefully this isn't too obvious a question:
>
> I would like to programmatically change the thickness of the needle in a
> gauge, but I can't find an attribute node selection that lets me do it.
> Am I going about it in the right way?

The attribute node will not help you any in this case

>
>
> Actually, just being able to replace the skinny needle with a thicker one
> in a gauge (indicator) would be enough for my current application. I've
> tried the "Edit Control..." environment, but when I try to select the thicker
> needle from the "Picture Item" popup in Customize mode, it doesn't do anything!
> How do I accomplish this?


I tried this also with the same results. My feeling is that this control is
composed
of other controls. The needle being part of a sub control (if you will believe
that).


>
>
> Note: just importing a bitmap of a thicker needle is not an option in this
> case -- I need to be able to change its color programmatically, something
> that I do not believe I could do with an imported bitmap.

Not sure about this.

>
>
0 Kudos
Message 2 of 3
(3,427 Views)
Go in the control editor with the control and add a second needle. This
needle will be thick.
Copy the thick needle pict to the clipboard. Undo the changes to revert to a
single needle.
Import the thick needle "at same size" in place of the thin needle. Exit the
control editor.
It is done.

Jean-Pierre Drolet
Scientech R&D inc.


Justin Goeres a écrit dans le message :
38c6a15a@newsgroups.ni.com...
>
> As a relatively new LabView user, I'm a little stumped by some of the uses
> for 'Attribute Nodes' and such. Hopefully this isn't too obvious a
question:
>
> I would like to programmatically change the thickness of the needle in a
> gauge, but I can't find an attribute node selection that lets me do it.
> Am I going about it in the rig
ht way?
>
> Actually, just being able to replace the skinny needle with a thicker one
> in a gauge (indicator) would be enough for my current application. I've
> tried the "Edit Control..." environment, but when I try to select the
thicker
> needle from the "Picture Item" popup in Customize mode, it doesn't do
anything!
> How do I accomplish this?
>
> Note: just importing a bitmap of a thicker needle is not an option in this
> case -- I need to be able to change its color programmatically, something
> that I do not believe I could do with an imported bitmap.
>
> Thanks in advance for any advice!
> Justin Goeres
>
> Project Engineer
> Indio Systems, Inc.
> Pleasanton, CA
>
0 Kudos
Message 3 of 3
(3,427 Views)