Instruction manual

AMPDIO DRIVERS
Page 227
6.4.20 Analogue Output
6.4.20.1 Write DAC Data AIOsetDACchanData
Writes a set of data to a corresponding to a set of DAC channels, all belonging to a specified
channel group.
SUPPORTED IN VERSION 4.00 ONWARDS.
i = AIOsetDACchanData (h, Group, ChMask, pData)
where h short: board handle as issued by the
registerBoardEx function.
Group short: DAC channel group.
ChMask unsigned long: bit vector with 1’s for channels
to write and 0’s for channels to leave alone.
pData pointer to unsigned long: pointer to first
element of array of data to be written to the
corresponding DAC channels. Successive
elements of the array correspond to
successive ‘1’ bits in ChMask, from the least
significant ‘1’ bit to the most significant ‘1’ bit.
Only the least significant 16 bits of each array
element are used; this 16-bit value is treated
as an unsigned integer for unipolar channels or
as a 2’s complement signed integer for bipolar
channels.
E.g. if ChMask is set to 10 (1100
2
), the first
element of the array contains data for DAC
channel 2 and the second element of the array
contains data for DAC channel 3.
The contents of the array are not modified by
the function.
Returns short: OK
or ERRHANDLE
ERRCHAN
ERRDATA
Prior Calls registerBoardEx
AIOcountDACgroups
AIOcountDACchans
See Also
6.4.20.2 Set DAC Conversion Trigger Source — AIOsetDACconvSource
Sets the DAC conversion trigger source for a DAC channel group. This only applies while the
DAC is being operated in certain ways. It applies when an interrupt has been set up to drive
the DAC in FIFO mode. It also applies when a waveform has been loaded into the DAC
hardware’s waveform playback buffer. In both cases, it specifies the clock source for