Download Data Acquisition Programmer`s SDK

Transcript
Programmer’s SDK Manual
printf("Device installed successfully.....\n");
di_close();
}
di_outlist
(not available on DI-401 and DI-700 instruments)
• Summary
int di_outlist(output_list);
struct di_outlist_struct{
unsigned unipolar;
/* unipolar/bipolar. 0 = BI, 1 = UN (for all
instruments except DI-400, DI-410, DI-500, DI510, DI-720, DI-730, and DI-5001)
or
unsigned digital;
unsigned dig_out_enable
unsigned dig_data;
unsigned counter;
}*output_list;
/*
/*
/*
/*
DAC1/DAC2. 0 = DAC1, 1 = DAC2 (for DI-400, DI410, DI-500, DI-510, DI-720, DI-730, and DI5001 instruments) */
1=buffer data is digital; 0=buffer data is analog */
1=enables dig out, 0=disables dig out */
digital data is D0 thru D7 */
scan position counter */
• Description
The di_outlist function initializes the output list (output functions are not available on DI401 instruments). This function has to be called after di_list_length and before
di_start_scan. Note that the two LSB's of data in each location of the output buffer must be
zero. Refer to the paragraph titled Input and Output Data Buffer Architecture at the
beginning of this chapter for more details.
In the structure, when the buffer data is specified as digital, the digital output should be
disabled. DMA data format is left justified.
Since the output scan list is capable of holding 16 entries, it is possible to program each
channel in the output list for a different output rate. The equation for determining the value
required for a specific output rate is as follows:
O=
B
L( C + 1)
Function Reference
87