Feedback on NI Community

cancel
Showing results for 
Search instead for 
Did you mean: 

Class ID Property value is always 18 - Digital for numeric controls of a cluster

Solved!
Go to solution
Why does the Class ID Property Value always return the value of 18 (Digital) for any type of numeric control of a cluster, whether it is a DBL. U32, I8 etc. The Class Value never come backs as 17 (Numeric). Why? What does 17 (Numeric) pertain to?
0 Kudos
Message 1 of 5
(6,873 Views)
Numeric is an abstract base class for all numeric types, so there is no control in LabVIEW which is actually of the Numeric class. If you use a numeric control which is not a digital control (such as a ring or a meter) you will get another class.

___________________
Try to take over the world!
0 Kudos
Message 2 of 5
(6,871 Views)
Is there any way to determine programmatically if the control is a DBL or a I32 besides using the Class ID property?
0 Kudos
Message 3 of 5
(6,869 Views)
That information has nothing to do with the class ID. It's a property of the control which exists for all controls which inherit from the Numeric class. The property itself is private, so to access it you will need to install the scripting API.

___________________
Try to take over the world!
0 Kudos
Message 4 of 5
(6,865 Views)
Solution
Accepted by topic author JayB

This thread really belongs in the LabVIEW forum. In the future, please post there, as you posted in the forum that discusses the forum software and the forums in general.

 

As to your question:


JayB wrote:
Is there any way to determine programmatically if the control is a DBL or a I32 besides using the Class ID property?
See here.
Message 5 of 5
(6,857 Views)