3.3.2 P1602_M_FUN_2
z
Description :
The P1602_M_FUN_2 will
not
compute the waveform image automatically. (Refer to
“OME-PCI-1602 Hardware Manual” chapter-5 for details) (input=A/D channel_0,
output=D/A channel_0)
•
Syntax :
WORD P1602_M_FUN_2(WORD wDaNumber, WORD wDaWave, WORD wDaBuf[],
WORD wAdClock, WORD wAdNumber, WORD wAdConfig, WORD
wAdBuf[]);
z
Input Parameter :
wDaNumber: number of D/A samples in one waveform
wDaWave : Number of D/A waveform to be output
wDaBuf[] : The array stores the D/A waveform image
wAdClock :
A/D sampling clock = 8000000/wAdClock
samples/sec
wAdNumber: Number of A/D data to be read
wAdConfig :
A/D input range configuration code.
Refer to "
Section 3.1 Configuration Table
"
wAdBuf[] : the starting address of
fAdBuf
which store the A/D data
z
Return Value :
NoError : OK
DriverHandleError : Invalid VxD/SYS handle
DriverCallError : VxD/SYS function call error
ExceedBoardNumber: invalid board number
FindBoardError: no OME-PCI-1602 board
AdControllererror : embedded controller handshake error
M_FunExecError : M_Functions return code error
ConfigCodeError :
wAdConfig
configuration code error, Refer to "
Section 3.1
"
z
Demo Program :
DEMO7.C
The D/A output waveform generator is a
machine dependent
function. The D/A
output frequency
=
1.8M/wDaNumber
is machine dependent. Some benchmarks
are shown below:
D/A output frequency = 1.8M/dwDaNumber for Pentium 120
D/A output frequency = 2.0M/dwDaNumber for Pentium 133
The user should benchmark their system before using M_FUN_1,
M_FUN_2 and M_FUN_3.
35
Содержание OME-PCI-1602
Страница 37: ... Demo Program DEMO9 C 37 ...