LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A problem with programmatically changing the max scale value of a control within a cluster

Hello all,

I am having a problem with changing the max scale value of a guage in a cluster programmatically.
The property node doesn't seem to have a 'Scale' property.
I tried using the 'Data Extents' property but obviously that didn't work.

Here's an ss of my code:

Any ideas?

Cheers,

Ash.

0 Kudos
Message 1 of 3
(2,522 Views)
You may need to either cast your control reference to a more specific class, or select a different class on the property node.
 
I create a gauge and created a property node that was scale.maximum.  So I knew it existed.  Then I disconnected the property node from the control, then the top of the property node function said Knob(strict).  Then I right clicked on it and drilled down through the classes until I found the bottom level.  The screen shot is attached.
 
I bet that a simple generic wouldn't have a scale so the property node does not exist, that it is a property of the more specific control.
Message 2 of 3
(2,521 Views)
Ah thankyou very much, you are a legend.

I ended up using a "to more specific class" and setting a class constant to specify scale.

I haven't tested it yet but I'm sure it will work.

Thanks again,

Ash.
0 Kudos
Message 3 of 3
(2,514 Views)