LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

to more specific class: Cant find strict numeric, only numeric

Solved!
Go to solution

Im trying to read a control property by reference from some controls that are in a cluster.

I want to cast the property's reference to a more specific class: strict numeric, but I can only find 'Numeric' which leaves me with variant data.

 

Any help?

0 Kudos
Message 1 of 5
(3,295 Views)
Solution
Accepted by topic author _Faust

Right-click on the control terminal, then create a reference. Wire this reference to the "target class" input of the cast node.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 2 of 5
(3,281 Views)

Hello,

 

I think you can't (not fully sure though). What you can do is get the "Representation" property, that tells you if it's I32 or DBL or else (as an enum) and with this information you can get the value from the variant.

 

See :

ref.jpg

 

Hope this helps

 

EDIT :

Oh... I see now that there IS a way, thanks for that pincpanther 😮


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 3 of 5
(3,275 Views)

Well, I meant right-click on the control. Obviously, a control in a cluster has no terminal 🙂

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 4 of 5
(3,267 Views)

Thank you both very much for helping me out!

0 Kudos
Message 5 of 5
(3,219 Views)