LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple needs on gauge/meter

Is there a way I can programmatically determine if a gauge/meter has more than one needle?  All I have is the ClassID and possibly the CtrlRef.

0 Kudos
Message 1 of 13
(3,959 Views)

hi faustina,

  The gauge's property NumSliders will give the count of needles...

 

 

Thanks and regards,

srikrishnaNF

 

 

 

Regards,
Srikrishna


0 Kudos
Message 2 of 13
(3,953 Views)

I'm running LabVIEW 2009 SP1.  I don't see this property anywhere in LabVIEW Help.

0 Kudos
Message 3 of 13
(3,930 Views)

Can be done like this.

 

21305iB6E55F4B6900E5AD

Tim
GHSP
0 Kudos
Message 4 of 13
(3,924 Views)

hi,

  21323iECB3FCFD4AB30A41

 

Like this...

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 5 of 13
(3,903 Views)

The blue in the top bar of the property node indicates that is a property only available if you have scripting installed.

Message 6 of 13
(3,897 Views)

Scripting is not a feature in LabVIEW I'm familiar with.  I have the the professional developmental version.  What toolkit/module do I need to install?

0 Kudos
Message 7 of 13
(3,882 Views)

Why are you ignoring the example from aeastet? Did yu even try it?

0 Kudos
Message 8 of 13
(3,875 Views)

Allow me to take the liberty of using my own snippet tool so that aestets' nice solution is not mangled by the LV snippet tool.

 

21419i91799B16E927CCA7

 

Look like something worth trying now?  Not that you shouldn't install scripting, for that see the LabVIEW API page.

 

Edit: I see you only have the CtrlRef, then you really should be using aestet's solution....

0 Kudos
Message 9 of 13
(3,864 Views)

 


@faustina wrote:

Scripting is not a feature in LabVIEW I'm familiar with.  I have the the professional developmental version.  What toolkit/module do I need to install?


 

See this first:  http://forums.ni.com/t5/LabVIEW/What-is-Labview-scripting/m-p/824083

 

Bottom line: If you don't have a good reason to work with LV scripting... don't.  And it looks like you have a simple solution Smiley Happy so why not just use that?

 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 10 of 13
(3,853 Views)