Read or Write Digital Data in Integer Format in DAQmx

Updated Jan 24, 2018

Reported In

Software

  • LabVIEW

Driver

  • NI-DAQmx

Issue Details

The DAQmx Digital Output shipping examples Digital - Continuous Output.vi and Digital - Finite Output.vi use the data in U32 format. How does LabVIEW display the digital data in integer format?

Solution

Within a particular byte, each bit in the integer maps to a line in the corresponding port. NI-DAQmx orders the bits by line number, with the least significant bit mapping to the lowest line number. 

The examples display the Data to Write in decimal form.
The corresponding data in binary form is shown below.
Please refer to Digital Data (Integer Format) in DAQmx Help for more details.

Additional Information

You can change the display format of the output data by right clicking on the numeric control and choose Display Format... Check the Use minimum field width and choose Pad with zeros on left if you want to pad the number with leading zeros.

WAS THIS ARTICLE HELPFUL?

Not Helpful