TsctlAIOPutDesc

From embeddedTS Manuals

Only valid if AIO is a DAC. Return value is a negative error code if AIO is not a DAC and a positive value if the specified value has begun DAC conversion.

If any channel is currently active, waits for it to become inactive, then makes the specified channel active with the specified value to convert, and returns a positive value.

If no channel is currently active, then makes the specified channel active with the specified value to convert, and returns a positive value.

A channel goes through the following states:

  1. When a channel is first made active, it waits for its trigger to occur. If its trigger is "on demand" then not wait is done at this step.
  2. The channel remains active while conversion begins and proceed.
  3. When conversion is finished, the channel becomes inactive as well as the last channel active.

Hardware capabilities differ; to ensure maximum conversion rates across platforms, call Configure before each Get or Ready call to only enable the next channel to converted.

The value passed relates to the voltage to be generated on the output by the following relationship between the precision (p) in bits and output voltage range (OV) of the channel (maximum output voltage - minimum output voltage) and the actual voltage (V) as follows:

V = OV / 2^p