
5.11 d64h_continue_pattern_write
VC6
short d64h_continue_pattern_write (BYTE bCardID, void *pBuffer, U32 dwSampleCount, F64*
pSampleRate)
VB6
d64h_conti_pattern_write (ByVal bCardID As Byte, pBuffer As Any, ByVal dwSampleCount As
Long, ByRef pSampleRate As Double) As Integer
Description:
This function reads the output-pattern and stores it into a circular buffer, and loops the output
infinitely. This feature is supported by onboard-circuit, and neither computing-power nor
bus-bandwidth is consumed.
Parameters:
bCardID: The specific Card ID that is configured with the on-board Dip-Switch.
pBuffer: The address of user-provided DO buffer.
dwSampleCount: The samples of each acquisition. (2 < dwSampleCount
≦
2048)
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 )
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_INVALID_SAMPLE_RATE: Indicates the invalid value is assigned to address that
parameter
pSampleRate
point to.
ERROR_PATTERN_OUT_WITH_DOUBLE_BUFFER_MODE: Indicates the digital-output is
configured as double-buffer mode, this mode is invalid for Patten-Output operation.
Please call d64h_do_async_dblbuf_mode() to change the operation mode.
ERROR_INVALID_MAPPED_ADDRESS: Indicates the kernel-mapped address is invalid.
ERROR_INVALID_BUFFER_ADDRESS: Indicates the user-provided buffer is invalid.
ERROR_INVALID_DO_ITERATIONS: Indicates the digital-output operation is configured as
SYNCH_OP, and the infinite-iteration setting is conflict with this operation mode
PCI-D64HU Function Reference Version
39
Summary of Contents for PCI-D64HU
Page 5: ...PCI D64HU User s Manual Ver 1 0 Dec 2009 5 1 4 Block Diagram...
Page 17: ...PCI D64HU Function Reference Version 1 0 PCI D64HU Function Reference Version 1...
Page 69: ...PCI D64HU Function Reference Version 53...
Page 73: ...PCI D64HU Function Reference Version 1 0 PCI D64HU Function Reference Version 1...