3.3.3 P1602_M_FUN_3
z
Description :
The P1602_M_FUN_3 will calculate the waveform image automatically. (Refer to
“OME-PCI-1602 Hardware Manual” chapter-5 for details) (input=programable channels,
output=D/A channel_0) This function will refer to the current active OME-PCI-1602 board.
Use the P1602_ActiveBoard(….) to select the active board. Refer to Sec. 2.4.2 for more
information.
z
Syntax :
WORD P1602_M_FUN_3(WORD wDaFrequency, WORD wDaWave, float
fDaAmplitude, WORD wAdClock, WORD wAdNumber, WORD
wChannelStatus[], WORD wAdConfig[], float fAdBuf[], float fLowAlarm, float
fHighAlarm)
z
Input Parameter :
wDaFrequency : D/A
output frequency = 1.8M/wDaFrequency (Pentium 120)
wDaWave : Number of D/A waveform to be output
fDaAmplitude : Amplitude of D/A output. NOTE : the hardware jumper J1 must be set
to +/-10V
wAdClock :
A/D sampling clock = 8000000/wAdClock
samples/sec
wAdNumber: Number of A/D samples to be read
wAdChannel[]: 1=scan, 0=no scan
wAdConfig[]:
configuration code
Refer to "
Section 3.1 Configuration Table
"
fAdBuf[] : the starting address of
fAdBuf
which store the A/D data
fLowAlarm : low alarm limit. if
fAdBuf[?]< fLowAlarm
Æ
LowAlarm
fHighAlarm : high alarm limit. if
fAdBuf[?]>fHighAlarm
Æ
HighAlarm
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
"
HighAlarm :
fAdBuf[?]>fHighAlarm
LowAlarm :
fAdBuf[?]< fLowAlarm
36
Содержание OME-PCI-1602
Страница 37: ... Demo Program DEMO9 C 37 ...