
4.8 d64h_continue_readport
VC6
short d64h_continue_readport(BYTE bCardID, void *pBuffer, U32 dwSampleCount, F64*
pSampleRate, U16 wSyncMode)
VB6
d64h_continue_readport (ByVal bCardID As Byte, pBuffer As Any, ByVal dwSampleCount As
Long, ByRef pSampleRate As Double, ByVal wSyncMode As Integer) As Integer
Description:
This function starts the continuous digital-input. The 32-bit acquisition data will be recorded into
driver buffer continuously.
Parameters:
bCardID: The specific Card ID that is configured with the on-board Dip-Switch.
pBuffer: The address of user-provided DI buffer. This parameter is ignored when enabling
double-buffer mode.
dwSampleCount: The samples of each acquisition.
pSampleRate: The pointer to the address that stores sampling-rate. This call-by-reference parameter
passes the desired sampling-rate to library; and stores the actual sampling-rate when
this function returns. ( 0.001
≦
valid sampling-rate
≦
10,000,000 )
wSyncMode : The digital-input acquisition mode, SYNCH_OP or ASYNCH_OP.
Return Code:
SUCCESS_NO_ERROR: The function returns successfully.
ERROR_INVALID_CARD_ID: There is no active PCI-D64HU card configured with bCardID, or the
given Card ID is invalid (for instance, Card ID is assigned to 254).
ERROR_SAMPLE_COUNT_TOO_LARGE: Indicates the value of
dwSampleCount
is larger than
the DI buffer in driver.
ERROR_SAMPLE_COUNT_IS_ODD: Indicate the value of
dwSampleCount
is odd, and this is
conflict with the double-buffer mode
ERROR_INVALID_SAMPLE_RATE: Indicates the invalid value is assigned to address that
parameter
pSampleRate
point to
ERROR_INVALID_SYNCH_OP_MODE: Neither SYNCH_OP nor ASYNCH_OP is assigned to
parameter
wSyncMode
.
PCI-D64HU Function Reference Version
25
Содержание PCI-D64HU
Страница 5: ...PCI D64HU User s Manual Ver 1 0 Dec 2009 5 1 4 Block Diagram...
Страница 17: ...PCI D64HU Function Reference Version 1 0 PCI D64HU Function Reference Version 1...
Страница 69: ...PCI D64HU Function Reference Version 53...
Страница 73: ...PCI D64HU Function Reference Version 1 0 PCI D64HU Function Reference Version 1...
Страница 125: ...PCI D64HU Function Reference Version 53...