LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

In the attached VI why does one loop coerce the data type while the other doesn't?

Solved!
Go to solution

In the attached VI why does one loop coerce  the data type while the other doesn't?

0 Kudos
Message 1 of 2
(2,299 Views)
Solution
Accepted by topic author chuck72352

I'm guessing you created the Enum on the front panel.  If you right-click it and create an indicator, it will match the type, and be an enum.  LabVIEW represents enums as U16, but because the types aren't identical (for example, your enum has 3 values, but a U16 has 65,536 values), LabVIEW automatically coerces (or converts) the smaller (enum) representation into the larger (U16) value.

Message 2 of 2
(2,292 Views)