ICP DAS USA PCI-D64HU Скачать руководство пользователя страница 96

4.7 d64h_di_async_clear 

VC6 

short d64h_di_async_clear (BYTE bCardID, U32 *pAccessCount) 

VB6 

d64h_di_async_clear (ByVal bCardID As Byte, ByRef AccessCnt As Long) As Integer 

 

Description: 

This function terminates the in-progress digital-input acquisition, d64h_continue_readport() 

 

Parameters: 

bCardID: The specific Card ID that is configured with the on-board Dip-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 PCI-D64HU card configured with bCardID, or the 

given Card ID is invalid (for instance, Card ID is assigned to 254). 

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 on-going digital-input acquisition. 

PCI-D64HU Function Reference Version 

           

                                                         

 

24

Содержание PCI-D64HU

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 5: ...PCI D64HU User s Manual Ver 1 0 Dec 2009 5 1 4 Block Diagram...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 16: ...PCI D64HU User s Manual Ver 1 0 Dec 2009 16 Characteristic of DI Handshaking Mode Characteristic of DO Handshaking Mode...

Страница 17: ...PCI D64HU Function Reference Version 1 0 PCI D64HU Function Reference Version 1...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 69: ...PCI D64HU Function Reference Version 53...

Страница 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...

Страница 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...

Страница 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...

Страница 73: ...PCI D64HU Function Reference Version 1 0 PCI D64HU Function Reference Version 1...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 125: ...PCI D64HU Function Reference Version 53...

Страница 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...

Страница 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...

Страница 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...

Отзывы: