HP (Hewlett-Packard) PCI-9111DG/HR Manual De Usuario

Descargar
Página de 83
58 
 C/C++ Library 
cardNo: 
the card number of PCI-9111 card initialized. 
ad_data: 
the 16bits A/D converted value. The data format can be 
referred to section 5.1.6 for details.  
@ Return Code 
ERR_NoError 
ERR_FIFO_Half_NotReady 
 
5.37  _9111_AD_Aquire 
@ Description 
This function is used to trigger the A/D conversion data for PCI-9111 by 
software trigger. It reads the 12 bits A/D data when the data is ready.  
@ Syntax 
C/C++ (DOS) 
U16 _9111_AD_Aquire (U16 cardNo, I16 far *ad_data)  
C/C++ (Windows 95) 
U16 W_9111_AD_Aquire (U16 cardNo, I16 *ad_data)  
Visual Basic (Windows 95) 
W_9111_AD_Aquire (ByVal cardNo As Integer, ad_data As Integer) 
As Integer 
@ Argument 
cardNo: 
the card number of PCI-9111 card initialized. 
ad_data: 
the 12bits A/D converted value. The data format can be 
referred to section 5.1.6 for details.  
@ Return Code 
ERR_NoError 
ERR_AD_AquireTimeOut 
 
5.38  _9111_AD_HR_Aquire 
@ Description 
This function is used to trigger the A/D conversion data for PCI-9111HR 
by software trigger. It reads the 16 bits A/D data when the data is ready.  
@ Syntax 
C/C++ (DOS) 
U16 _9111_AD_HR_Aquire (U16 cardNo, I16 far *ad_data)  
C/C++ (Windows 95) 
U16 W_9111_AD_HR_Aquire (U16 cardNo, I16 *ad_data)  
Visual Basic (Windows 95)