Digital Input and Output
Before you use digital channels, see Hardware Discovery and Setup.
Reading and Writing Data
|Read data acquired by hardware|
|Write output scans to hardware channels|
|Simultaneously read and write device channel data|
|Start DataAcquisition background operation|
|Stop background operation|
|Queue scan data for device output|
|Flush DataAcquisition input and output buffers|
Transfer digital or logical values in bits via digital lines.
Acquire a single scan of digital data from two channels of an NI device.
This example shows how to write data to two lines on an NI 6255.
Share the clock of the analog subsystem on your device for the digital acquisition.
Acquire digital data in the foreground using an external scan clock.
Acquire digital data using a counter output channel to generate clock pulses.
This example shows how to acquire digital data using four channels on an NI 6255.
This example shows how to convert decimal data and output to two lines on an NI 6255.
This example shows how to use a bidirectional channel and read and write data using the same two lines on an NI 6255.
This example shows how to generate signals when the DataAcquisition contains both analog and digital channels.