_9111_AD_INT_Start. HP (Hewlett-Packard) NuDAQ PCI-9111HR, PCI-9111DG/HR

Add to My manuals
83 Pages

advertisement

_9111_AD_INT_Start. HP (Hewlett-Packard) NuDAQ PCI-9111HR, PCI-9111DG/HR | Manualzz

W_9111_AD_HR_Aquire (ByVal cardNo As Integer, ad_data As

Integer) As Integer

@ Argument 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_AD_AquireTimeOut

5.39 _9111_AD_INT_Start

@ Description

This function is used to initialize and start up the AD EOC

(end-of-conversion) interrupt transfer mode. This function could perform

A/D conversion N times with interrupt data transfer by using pacer trigger.

It takes place in the background which will not stop until the N-th conversion has been completed or your program execute

_9111_AD_INT_Stop() function to stop the process.

After executing this function, it is necessary to check the status of the operation by using the function _9111_AD_INT_Status(). While all the specified count of data are acquired, the interrupt status will be changed to “AD_INT_STOP”.The function can perform on single A/D channel

(autoscan is disable) or multiple A/D channels (autoscan is enable) with fixed analog input range.

Note: The interrupt mode provided in this function is internal timer source, therefore you must specify c1 & c2 as calling this function. In addition, this function in this library supports just one PCI-9111 card and provides only one ISR (interrupt service routine) for processing the interrupt events. If multi-9111 cards and multi-isr is necessary, users can modify this library for your own purpose.

@ Syntax

C/C++ (DOS)

U16 _9111_AD_INT_Start ( U16 cardNo, U16 auto_scan, U16 ad_ch_no,

U16 ad_gain, U16 count, I16 far *ad_buffer, U16 c1, U16 c2)

C/C++ (Windows 95)

U16 W_9111_AD_INT_Start (U16 cardNo, U16 auto_scan, U16 ad_ch_no, U16 ad_gain, U16 count, I16 far *ad_buffer, U16 c1,

U16 c2)

C/C++ Library • 59

advertisement

Related manuals

advertisement

Table of contents