Bad Conversion DBL in Boolean Array with Number to Boolean Array Function

Updated May 16, 2018

Reported In

Software

  • LabVIEW NXG

Issue Details

I used the Number to Boolean Array Function to convert a DBL into boolean array in LabVIEW NXG. The Array result is not the expected value. How can I fix that ?

Solution

The expected number at the input of the Number to Boolean Array Function is a U32. So you can see a coertion dot who convert automatically the DBL in U32 before to execute the function.

To convert DBL in Boolean array, you have to use the Flatten to Byte Array Function :

Additional Information

Basically, avoid automatic numeric conversions. To improve code performance you have to remove all implicit type conversions (coercion dots). Use the Conversion functions to explicitly convert data types because it avoids a copy operation and a data type determination. 

WAS THIS ARTICLE HELPFUL?

Not Helpful