Digital Output >> Tristate

NI-DAQmx C Properties

Digital Output >> Tristate

Data Type: bool32
Description: Specifies whether to stop driving the channel and set it to a high-impedance state. You must commit the task for this setting to take effect.

Setting this property before you commit the task determines whether NI-DAQmx drives data on the channel or tristates the channel after the task transitions to the committed state.

Use this property when you want to read and write to channels in a task. Set this property to TRUE before you read from the channel and set this property to FALSE before you write to the channel.

When you read from an output channel that is not tristated, the value corresponds to the current value you are driving on the channel.

When you write to a channel that is tristated, no change occurs until you set this property to FALSE. After you set this property to FALSE, the value NI-DAQmx drives on the channel corresponds to the last value written to the channel.

Ensure the channel is tristated before any external devices that you connect to the channel drive data onto the channel. Failure to do so could result in double-driving the channel and damaging the device.

This property is supported only for line-configurable, bidirectional ports.

You can get/set/reset this property using:
  DAQmxGetDOTristate
  DAQmxSetDOTristate
  DAQmxResetDOTristate