How Can I Use Boolean Data as a Parameter for Call Library Function Node?

Updated Mar 1, 2020

Reported In

Software

  • LabVIEW

Issue Details

My DLL uses boolean data as parameters of the library function.
However, LabVIEW only lets me select Numeric, Array, String, etc for the use of Call Library Function Node.
How can I use a boolean data?

Solution

You can use the numeric datatype, and convert the boolean data to appropriate numeric type. 
Typically, either word signed integer (I16) or byte unsigned integer (U8) is used.