Converting Digital Waveform to Boolean Array in NI LabVIEW

Updated Jun 8, 2023

Reported In

Software

  • LabVIEW

Issue Details

Is there an inbuilt function in NI LabVIEW to convert a digital waveform into a boolean array ?

Solution

DWDT Digital to Boolean Array VI converts the input digital waveform into a boolean array. Given below is an image of the VI with the expected inputs and outputs.

                           

Navigate to Functions palette >> Waveform >> Digital Wfm >> Conversion >> Digital to Boolean Array to find this VI.

Additional Information

Response on error input terminal controls how the VI handles invalid inputs, i.e, inputs other than 0,1,H or L. The default behavior is to convert invalid values to FALSE and throw a warning.

The conversion can begin with either the Least Significant Bit (LSB) or the Most Significant Bit (MSB) and this can be controlled using mode input to the VI.