ICP DAS USA PCI-D64HU User Manual Download Page 42

ERROR_SYNCH_OP_WITH_DOUBLE_BUFFER_MODE: Indicates the digital-input is configured as 

double-buffer mode, and the SYCNH_OP setting is conflict with this mode. Please call 

d64h_di_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_DMA_IN_PROGRESS: Indicates the digital-input acquisition is in progress, please call 

d64h_di_async_clear() to terminate the current acquisition. 

ERROR_OVERLAP_EVENT_CREATE: Indicates the Event-Object creating is failed, please call 

GetLastError() for further system information.   

ERROR_ACCESS_VIOLATION_DATA_COPY: Some system exception occurs while copying 

memory, please check the pointer-type parameter you assign to this function. 

ERROR_DI_ASYNC_CLEAR: Cannot terminate the current acquisition, please call GetLastError() 

for further system information. 

ERROR_CONTINUE_DI_START: Cannot start continuous digital-input acquisition, please call 

GetLastError() for further system information.

PCI-D64HU Function Reference Version 

           

                                                         

 

26

Summary of Contents for PCI-D64HU

Page 1: ...e use of this product ICP DAS reserves the right to change this manual at any time without notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility...

Page 2: ...Introduction 3 1 1 General Description 3 1 2 Features 4 1 3 Block Diagram 5 1 4 Specifications 6 1 5 Product Check List 7 2 Hardware Configuration 8 2 1 Board Layout 8 2 2 Switch Setting 9 2 3 Pin Ass...

Page 3: ...he PCI D64HU has the Card ID switch on board Users can set Card ID on a board and recognize the board by the ID via software when using two or more PCI D64HU cards in one computer The PCI D64HU perfor...

Page 4: ...ering Scatter Gather DMA Data Transfer Rate up to 40 MB s for Each Channel Support 4 Data Transfer Modes Direct Program Control Mode Internal Timer Pacer Mode External Clock Mode DI Only Handshaking M...

Page 5: ...PCI D64HU User s Manual Ver 1 0 Dec 2009 5 1 4 Block Diagram...

Page 6: ...32 DI signals I_REQ I_TRG and O_ACK Max removable noise width 1 127 x 25 ns Programmable Pulse Extender Applicable Signals O_REQ Pulse width 2 256 x 25 ns Timer Counter Channels 3 Resolution 16 bit In...

Page 7: ...ram 1 7 Ordering Information Ordering Information PCI D64HU 40 MB s High speed 32 CH DI and 32 CH DO Universal PCI DIO Card RoHS Includes one CA 4037W cable and two CA 4002 D Sub connectors Accessorie...

Page 8: ...User s Manual Ver 1 0 Dec 2009 8 2 Hardware Configuration 2 1 Board Layout Item Description CON1 I O connector 37 pin D Sub female CON2 I O connector 40 pin Box Header SW1 Card ID switch JP1 Factory...

Page 9: ...o set the card ID The value is from 0 to 15 Please refer to table below for details 1 2 3 4 ON Switch Setting On 1 Card ID 1 2 3 4 0 Default 0 0 0 0 1 1 0 0 0 2 0 1 0 0 3 1 1 0 0 4 0 0 1 0 5 1 0 1 0 6...

Page 10: ...O_TRG Trigger output controlled by software Output O_REQ Request output for DO handshaking Output O_ACK Acknowledge input for DO handshaking Input DI2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19...

Page 11: ...is for DO update Both Timer 0 and Timer 1 can be optionally cascaded with Timer 2 for slower timer pacer generation The base clock of all timers can be programmed from 20 MHz to 2 5 MHz 40 MHz n wher...

Page 12: ...in memory Handshaking Mode The PCI D64HU also supports handshaking data transfer mode The data transfer rate is controlled by REQ and ACK signals to guarantee no data loss The operation of DI Handshak...

Page 13: ...put data is ready 4 An O_REQ signal is generated and sent to the external device 5 After an O_ACK is captured steps 2 5 will be repeated If the FIFO is not full the output data is moved form PC s main...

Page 14: ...applicable for all DI signals IREQ ITRG and OACK The maximum removable noise width can be programmed from 1 127 x 25ns Where n 1 127 Characteristic of Output Pulse Extender in Timer Pacer Mode System...

Page 15: ...PCI D64HU User s Manual Ver 1 0 Dec 2009 15 Characteristic of IREQ in External Clock Mode IREQ Rising Edge Trigger IREQ Falling Edge Trigger...

Page 16: ...PCI D64HU User s Manual Ver 1 0 Dec 2009 16 Characteristic of DI Handshaking Mode Characteristic of DO Handshaking Mode...

Page 17: ...PCI D64HU Function Reference Version 1 0 PCI D64HU Function Reference Version 1...

Page 18: ...rmation furnished by ICPDAS Inc is believed to be accurate and reliable However no responsibility is assumed by ICPDAS Inc for its use or for any infringements of patents or other rights of third part...

Page 19: ...i_readport 18 4 2 d64h_di_readline 19 4 3 d64h_di_async_dblbuf_mode 20 4 4 d64h_di_async_dblbuf_halfready 21 4 5 d64h_di_async_dblbuf_transfer 22 4 6 d64h_di_async_check 23 4 7 d64h_di_async_clear 24...

Page 20: ...do_ext_trigline_write 42 DIGITAL FILTER FUNCTIONS 43 6 1 d64h_DI_filter_set 43 6 2 d64h_IREQ_filter_set 45 6 3 d64h_OACK_filter_set 46 6 4 d64h_ITRG_filter_set 47 6 5 d64h_OREQ_width_set 48 EVENT NOTI...

Page 21: ...care is the correct relationship between the terminal boards and PCI D64HU cards There are samples that are provided for Microsoft Visual Studio 6 0 VC and VB to demonstrate the functions of PCI D64HU...

Page 22: ...his function scans all active PCI D64HU cards in your system The pCardNum saves the numbers of active PCI D64HU cards The optional user provided Array pAvailCards indicates the presence of active PCI...

Page 23: ...tem ERROR_CARD_ID_DUPLICATED There are multiple cards that are assigned the same Card ID please check the settings of on board Dip Switch ERROR_ACCESS_VIOLATION_DATA_COPY Some system exception occurs...

Page 24: ...d This index begins from 0 and is less than the active PCI D64HU cards pCardID The pointer to the memory that stores the specific Card ID Return Code SUCCESS_NO_ERROR The function returns successfully...

Page 25: ...Card ID Parameters bCardID The specific Card ID that is configured with the on board Dip Switch Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active...

Page 26: ...The function returns successfully ERROR_INVALID_CARD_ID There is no opened PCI D64HU card with assigned Card ID or the given Card ID is invalid for instance Card ID is assigned to 254 ERROR_INVALID_MA...

Page 27: ...ed with the on board Dip Switch pMemSize The pointer to the size of DI buffer in kilobytes KB Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no opened PC...

Page 28: ...ed with the on board Dip Switch pMemSize The pointer to the size of DO buffer in kilobytes KB Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no opened PC...

Page 29: ...f DI buffer in kilobytes KB pLowBufAddr The pointer to the address of low part buffer pHighBufAddr The pointer to the address of high part buffer Return Code SUCCESS_NO_ERROR The function returns succ...

Page 30: ...DO buffer in kilobytes KB pLowBufAddr The pointer to the address of low part buffer pHighBufAddr The pointer to the address of high part buffer Return Code SUCCESS_NO_ERROR The function returns succe...

Page 31: ...ual to desired sampling rate For instance for the 1024000Hz desired sampling rate data acquisition is performed with the 1052631 8Hz frequency actually 3 1 d64h_di_config VC6 short d64h_di_config BYTE...

Page 32: ...s assigned to 254 ERROR_INVALID_MAPPED_ADDRESS Indicates the mapped address is invalid ERROR_INVALID_TRIGGER_SOURCE Indicates the invalid trigger source is assigned to parameter wTrigSource ERROR_INVA...

Page 33: ...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 2...

Page 34: ...the on board Dip Switch pValue The pointer to the 32 bit variable that stores all digital input Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active...

Page 35: ...es the specific digital input line 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 i...

Page 36: ...DE_ENABLE or DOUBLE_BUFFER_MODE_DISABLE 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...

Page 37: ...sition data Parameters bCardID the specific Card ID that is configured with the on board Dip Switch pHalfReady the pointer to the memory that stores the availability of ring buffer Return Code SUCCESS...

Page 38: ...ition data will be transferred to 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...

Page 39: ...ble that stores the number of samples when the digital input is completed Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active PCI D64HU card configu...

Page 40: ...sCount The pointer to the variable that stores the number of acquired samples Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active PCI D64HU card con...

Page 41: ...ate 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 digit...

Page 42: ...ogress please call d64h_di_async_clear to terminate the current acquisition ERROR_OVERLAP_EVENT_CREATE Indicates the Event Object creating is failed please call GetLastError for further system informa...

Page 43: ...al input buffer The value in this variable will be 0 or DI_OVERRUN_STATUS Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active PCI D64HU card configu...

Page 44: ...assigned data Parameters bCardID The specific Card ID that is configured with the on board Dip Switch dwValue The data to be written to digital output port Return Code SUCCESS_NO_ERROR The function r...

Page 45: ...the specific line to be input wValue The data to be written to specific line of digital output port Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no ac...

Page 46: ...ariable that stores all digital output data 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...

Page 47: ...s the specific digital output line 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 i...

Page 48: ...DE_ENABLE or DOUBLE_BUFFER_MODE_DISABLE 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...

Page 49: ...a Parameters bCardID the specific Card ID that is configured with the on board Dip Switch pHalfReady the pointer to the memory that stores the availability of ring buffer Return Code SUCCESS_NO_ERROR...

Page 50: ...ns the DO output data 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...

Page 51: ...ble that stores the number of samples when the digital output is completed Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active PCI D64HU card config...

Page 52: ...ip Switch pAccessCount The pointer to the variable that stores the number of acquired samples Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active PC...

Page 53: ...d for future use 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...

Page 54: ...acquisition ERROR_OVERLAP_EVENT_CREATE Indicates the Event Object creating is failed please call GetLastError for further system information ERROR_ACCESS_VIOLATION_DATA_COPY Some system exception occu...

Page 55: ...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 bCard...

Page 56: ...ystem information ERROR_ACCESS_VIOLATION_DATA_COPY Some system exception occurs while copying memory please check the pointer type parameter you assign to this function ERROR_DO_ASYNC_CLEAR Cannot ter...

Page 57: ...l output buffer The value in this variable will be 0 or DO_UNDERRUN_STATUS Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active PCI D64HU card config...

Page 58: ...at is configured with the on board Dip Switch wValue The state to be set on external trigger line OTRIG_HIGH or OTRIG_LOW Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_C...

Page 59: ...tion set the digital filter for all DI lines Parameters bCardID The specific Card ID that is configured with the on board Dip Switch wDIFilter the delay factor for digital filter 0 wDIFilter 127 wDIFi...

Page 60: ...red with bCardID or the given Card ID is invalid for instance Card ID is assigned to 254 ERROR_INVALID_FILTER_SETTING Indicates the filter setting is out of range ERROR_DIGITAL_FILTER_SET Cannot set t...

Page 61: ...delay factor for digital filter 0 wIREQFilter 127 wIREQFilter 25ns delay for data latching wIREQFilter 1 25ns Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There...

Page 62: ...delay factor for digital filter 0 wOACKFilter 127 wOACKFilter 25ns delay for data latching wOACKFilter 1 25ns Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There...

Page 63: ...delay factor for digital filter 0 wITRGFilter 127 wITRGFilter 25ns delay for data latching wITRGFilter 1 25ns Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There...

Page 64: ...Hz the maximum period of O_REQ signal is 1000ns Therefore 2 2 wOREQWidth 1 25ns 1000ns 2 wOREQWidth 1 20 wOREQWidth 4 Notice The period of O_REQ signal will be twice longer than the time at high level...

Page 65: ...ERROR_OREQ_WIDTH_SET Cannot set the width of O_REQ please call GetLastError for further system information PCI D64HU Function Reference Version 49...

Page 66: ...nable ADD_NOTIFICATION or REMOVE_NOTIFICATION wEventType DIEnd or DBEvent callbackAddr the function pointer of callback function Notice One internal thread will be created to monitor that specific eve...

Page 67: ...on is invalid ERROR_INVALID_EVENT_ACTION Neither DIEnd nor DBEvent is assigned to parameter wEventType ERROR_DI_EVENT_ATTACH Cannot attach the notification event to driver please call GetLastError for...

Page 68: ...To avoid missing event notification the callback function must return before next triggered event Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no activ...

Page 69: ...PCI D64HU Function Reference Version 53...

Page 70: ...G 105 ERROR_DI_ASYNC_CLEAR 106 ERROR_DI_ASYNC_CHECK 107 ERROR_DI_ASYNC_HALF_READY 108 ERROR_DI_PIO_READ 109 ERROR_DO_CONFIG 110 ERROR_DO_ASYNC_CLEAR 111 ERROR_DO_ASYNC_CHECK 112 ERROR_DO_PIO_READ 113...

Page 71: ...208 ERROR_INVALID_IREQ_POLARITY 209 ERROR_INVALID_OTRIG_LEVEL 210 ERROR_INVALID_OREG_ENABLE 211 ERROR_INVALID_DOUBLE_BUFFER_MODE 212 ERROR_INVALID_SYNCH_OP_MODE 213 ERROR_SAMPLE_COUNT_IS_ODD 214 ERRO...

Page 72: ...or ERROR_DIO_RUNTIME_BASE 500 ERROR_DEVICE_POWER_DOWN 501 ERROR_INVALID_MAPPED_ADDRESS 502 ERROR_BUFFER_NOT_ENOUGH 503 ERROR_DMA_NOT_AVAILABLE 504 ERROR_DMA_NOT_COMPLETE 505 ERROR_DMA_NOT_STARTED 506...

Page 73: ...PCI D64HU Function Reference Version 1 0 PCI D64HU Function Reference Version 1...

Page 74: ...rmation furnished by ICPDAS Inc is believed to be accurate and reliable However no responsibility is assumed by ICPDAS Inc for its use or for any infringements of patents or other rights of third part...

Page 75: ...i_readport 18 4 2 d64h_di_readline 19 4 3 d64h_di_async_dblbuf_mode 20 4 4 d64h_di_async_dblbuf_halfready 21 4 5 d64h_di_async_dblbuf_transfer 22 4 6 d64h_di_async_check 23 4 7 d64h_di_async_clear 24...

Page 76: ...do_ext_trigline_write 42 DIGITAL FILTER FUNCTIONS 43 6 1 d64h_DI_filter_set 43 6 2 d64h_IREQ_filter_set 45 6 3 d64h_OACK_filter_set 46 6 4 d64h_ITRG_filter_set 47 6 5 d64h_OREQ_width_set 48 EVENT NOTI...

Page 77: ...care is the correct relationship between the terminal boards and PCI D64HU cards There are samples that are provided for Microsoft Visual Studio 6 0 VC and VB to demonstrate the functions of PCI D64HU...

Page 78: ...his function scans all active PCI D64HU cards in your system The pCardNum saves the numbers of active PCI D64HU cards The optional user provided Array pAvailCards indicates the presence of active PCI...

Page 79: ...tem ERROR_CARD_ID_DUPLICATED There are multiple cards that are assigned the same Card ID please check the settings of on board Dip Switch ERROR_ACCESS_VIOLATION_DATA_COPY Some system exception occurs...

Page 80: ...d This index begins from 0 and is less than the active PCI D64HU cards pCardID The pointer to the memory that stores the specific Card ID Return Code SUCCESS_NO_ERROR The function returns successfully...

Page 81: ...Card ID Parameters bCardID The specific Card ID that is configured with the on board Dip Switch Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active...

Page 82: ...The function returns successfully ERROR_INVALID_CARD_ID There is no opened PCI D64HU card with assigned Card ID or the given Card ID is invalid for instance Card ID is assigned to 254 ERROR_INVALID_MA...

Page 83: ...ed with the on board Dip Switch pMemSize The pointer to the size of DI buffer in kilobytes KB Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no opened PC...

Page 84: ...ed with the on board Dip Switch pMemSize The pointer to the size of DO buffer in kilobytes KB Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no opened PC...

Page 85: ...f DI buffer in kilobytes KB pLowBufAddr The pointer to the address of low part buffer pHighBufAddr The pointer to the address of high part buffer Return Code SUCCESS_NO_ERROR The function returns succ...

Page 86: ...DO buffer in kilobytes KB pLowBufAddr The pointer to the address of low part buffer pHighBufAddr The pointer to the address of high part buffer Return Code SUCCESS_NO_ERROR The function returns succe...

Page 87: ...ual to desired sampling rate For instance for the 1024000Hz desired sampling rate data acquisition is performed with the 1052631 8Hz frequency actually 3 1 d64h_di_config VC6 short d64h_di_config BYTE...

Page 88: ...s assigned to 254 ERROR_INVALID_MAPPED_ADDRESS Indicates the mapped address is invalid ERROR_INVALID_TRIGGER_SOURCE Indicates the invalid trigger source is assigned to parameter wTrigSource ERROR_INVA...

Page 89: ...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 2...

Page 90: ...the on board Dip Switch pValue The pointer to the 32 bit variable that stores all digital input Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active...

Page 91: ...es the specific digital input line 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 i...

Page 92: ...DE_ENABLE or DOUBLE_BUFFER_MODE_DISABLE 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...

Page 93: ...sition data Parameters bCardID the specific Card ID that is configured with the on board Dip Switch pHalfReady the pointer to the memory that stores the availability of ring buffer Return Code SUCCESS...

Page 94: ...ition data will be transferred to 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...

Page 95: ...ble that stores the number of samples when the digital input is completed Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active PCI D64HU card configu...

Page 96: ...sCount The pointer to the variable that stores the number of acquired samples Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active PCI D64HU card con...

Page 97: ...ate 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 digit...

Page 98: ...ogress please call d64h_di_async_clear to terminate the current acquisition ERROR_OVERLAP_EVENT_CREATE Indicates the Event Object creating is failed please call GetLastError for further system informa...

Page 99: ...al input buffer The value in this variable will be 0 or DI_OVERRUN_STATUS Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active PCI D64HU card configu...

Page 100: ...assigned data Parameters bCardID The specific Card ID that is configured with the on board Dip Switch dwValue The data to be written to digital output port Return Code SUCCESS_NO_ERROR The function r...

Page 101: ...the specific line to be input wValue The data to be written to specific line of digital output port Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no ac...

Page 102: ...ariable that stores all digital output data 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...

Page 103: ...s the specific digital output line 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 i...

Page 104: ...DE_ENABLE or DOUBLE_BUFFER_MODE_DISABLE 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...

Page 105: ...a Parameters bCardID the specific Card ID that is configured with the on board Dip Switch pHalfReady the pointer to the memory that stores the availability of ring buffer Return Code SUCCESS_NO_ERROR...

Page 106: ...ns the DO output data 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...

Page 107: ...ble that stores the number of samples when the digital output is completed Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active PCI D64HU card config...

Page 108: ...ip Switch pAccessCount The pointer to the variable that stores the number of acquired samples Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active PC...

Page 109: ...d for future use 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...

Page 110: ...acquisition ERROR_OVERLAP_EVENT_CREATE Indicates the Event Object creating is failed please call GetLastError for further system information ERROR_ACCESS_VIOLATION_DATA_COPY Some system exception occu...

Page 111: ...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 bCard...

Page 112: ...ystem information ERROR_ACCESS_VIOLATION_DATA_COPY Some system exception occurs while copying memory please check the pointer type parameter you assign to this function ERROR_DO_ASYNC_CLEAR Cannot ter...

Page 113: ...l output buffer The value in this variable will be 0 or DO_UNDERRUN_STATUS Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no active PCI D64HU card config...

Page 114: ...at is configured with the on board Dip Switch wValue The state to be set on external trigger line OTRIG_HIGH or OTRIG_LOW Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_C...

Page 115: ...tion set the digital filter for all DI lines Parameters bCardID The specific Card ID that is configured with the on board Dip Switch wDIFilter the delay factor for digital filter 0 wDIFilter 127 wDIFi...

Page 116: ...red with bCardID or the given Card ID is invalid for instance Card ID is assigned to 254 ERROR_INVALID_FILTER_SETTING Indicates the filter setting is out of range ERROR_DIGITAL_FILTER_SET Cannot set t...

Page 117: ...delay factor for digital filter 0 wIREQFilter 127 wIREQFilter 25ns delay for data latching wIREQFilter 1 25ns Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There...

Page 118: ...delay factor for digital filter 0 wOACKFilter 127 wOACKFilter 25ns delay for data latching wOACKFilter 1 25ns Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There...

Page 119: ...delay factor for digital filter 0 wITRGFilter 127 wITRGFilter 25ns delay for data latching wITRGFilter 1 25ns Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There...

Page 120: ...Hz the maximum period of O_REQ signal is 1000ns Therefore 2 2 wOREQWidth 1 25ns 1000ns 2 wOREQWidth 1 20 wOREQWidth 4 Notice The period of O_REQ signal will be twice longer than the time at high level...

Page 121: ...ERROR_OREQ_WIDTH_SET Cannot set the width of O_REQ please call GetLastError for further system information PCI D64HU Function Reference Version 49...

Page 122: ...nable ADD_NOTIFICATION or REMOVE_NOTIFICATION wEventType DIEnd or DBEvent callbackAddr the function pointer of callback function Notice One internal thread will be created to monitor that specific eve...

Page 123: ...on is invalid ERROR_INVALID_EVENT_ACTION Neither DIEnd nor DBEvent is assigned to parameter wEventType ERROR_DI_EVENT_ATTACH Cannot attach the notification event to driver please call GetLastError for...

Page 124: ...To avoid missing event notification the callback function must return before next triggered event Return Code SUCCESS_NO_ERROR The function returns successfully ERROR_INVALID_CARD_ID There is no activ...

Page 125: ...PCI D64HU Function Reference Version 53...

Page 126: ...G 105 ERROR_DI_ASYNC_CLEAR 106 ERROR_DI_ASYNC_CHECK 107 ERROR_DI_ASYNC_HALF_READY 108 ERROR_DI_PIO_READ 109 ERROR_DO_CONFIG 110 ERROR_DO_ASYNC_CLEAR 111 ERROR_DO_ASYNC_CHECK 112 ERROR_DO_PIO_READ 113...

Page 127: ...208 ERROR_INVALID_IREQ_POLARITY 209 ERROR_INVALID_OTRIG_LEVEL 210 ERROR_INVALID_OREG_ENABLE 211 ERROR_INVALID_DOUBLE_BUFFER_MODE 212 ERROR_INVALID_SYNCH_OP_MODE 213 ERROR_SAMPLE_COUNT_IS_ODD 214 ERRO...

Page 128: ...or ERROR_DIO_RUNTIME_BASE 500 ERROR_DEVICE_POWER_DOWN 501 ERROR_INVALID_MAPPED_ADDRESS 502 ERROR_BUFFER_NOT_ENOUGH 503 ERROR_DMA_NOT_AVAILABLE 504 ERROR_DMA_NOT_COMPLETE 505 ERROR_DMA_NOT_STARTED 506...

Reviews: