3.5 Performing a DA Conversion Scan
Description
Step-By-Step Instructions
Example of Usage for D/A Conversion Scan
...
#define NUM_DA_CHANNELS 4 DSCB dscb;
DSCDACS dscdacs; int i;
...
/* Step 1 */
dscdacs.output_codes = (DSCDACODE*)malloc(sizeof(DSCDACODE) * NUM_DA_CHANNELS);
for (i = 0; i < NUM_DA_CHANNELS; i++)
{
dscdacs.channel_enable[i] = TRUE;
dscdacs.output_codes[i] = 4095;
}
/* Step 2 */
if ((result = dscDAConvertScan(dscb, &dscdacs)) != DE_NONE)
return result;
...Last updated
Was this helpful?