HP NuDAQ I-9111DG/HR manual ++ Library ∙61

Page 71

function _9111_AD_FFHF_INT_Status(). While all the specified blocks of data are acquired, the interrupt status will be changed to “AD_FFHF_BLOCK_FULL”. 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.

@ Syntax

C/C++ (DOS)

U16 _9111_AD_FFHF_INT_Start (U16 cardNo, U16 auto_scan, U16 ad_ch_no, U16 ad_gain, U16 blockNo, I16 far *ad_buffer, U16 c1, U16 c2)

C/C++ (Windows 95)

U16 W_9111_AD_FFHF_INT_Start (U16 cardNo, U16 auto_scan, U16 ad_ch_no, U16 ad_gain, U16 blockNo, I16 far *ad_buffer, U16 c1, U16 c2)

Visual Basic (Windows 95)

W_9111_AD_FFHF_INT_Start (ByVal cardNo As Integer, ByVal auto_scan As Integer, ByVal ad_ch_no As Integer, ByVal ad_gain As Integer, ByVal blockNo As Integer, ad_buffer As Integer, ByVal c1 As Integer, ByVal c2 As Integer) As Integer

@ Argument

cardNo: the card number of PCI-9111 card initialized.

auto_scan: 0: autoscan is disabled.

1:autoscan is enabled.

ad_ch_no: A/D channel number.

If the auto_scan is set as enable, the selection sequence of A/D channel is: 0, 1, 2, 3, ... , [ad_ch_no], 0, 1, 2, 3, ... , [ad_ch_no], ... .

If the auto_scan is set as disable, only the data input from [ad_ch_no] is converted.

ad_gain: A/D analog input range, the possible values are:

AD_B_10_V, AD_B_5_V, AD_B_2_5_V, AD_B_1_25_V, AD_B_0_625_V,

blockNo: the number of blocks for performing A/D convertion, one block of A/D conversion is 512.

ad_buffer: the start address of the memory buffer to store the AD data, the buffer size must large than the number of AD conversion (blockNo*512).

c1: the frequency devider of Timer#1.

c2: the frequency devider of Timer#2.

@ Return Code

ERR_InvalidADChannel ERR_AD_InvalidGain

ERR_InvalidTimerValue ERR_NoError

C/C++ Library 61

Image 71
Contents NuDAQ Trademarks Questions Getting service from AdlinkPage PCI PnP Registers Address Map Features Applications Specifications Software SupportingB l e o f C o n t e n t s Interrupt Control Libraries Installation Programming GuideHardware Interrupt Clear Register ConversionTable of Contents ∙ 9111util What do you need VR Assignment AdjustmentHow to Use This Guide Page Introduction FeaturesApplications SpecificationsUnipolar 0~10V Bipolar -10V~+10V Programming Library Software SupportingDASYLabTM PRO PCIS-LVIEW LabVIEW DriverPCIS-VEE HP-VEE Driver DAQBenchTM ActiveX ControlsPCIS-OPC OPC Server PCIS-ICL InControlTM DriverUnpacking Installation∙ Software Installation Guide What You HavePCB Layout of the PCI-9111 PCI-9111s LayoutJumper Descriptions Hardware Installation Outline∙ CN 1 Digital Signal Input DI 0 ~ Device Installation for Windows SystemsConnectors Pin Assignment ∙ CN 3 Analog Input/Output, Extended I/O, Trigger Signals ∙ CN 2 Digital Signal Output do 0 ~Connect with ACLD-9182 Daughter Board ConnectionConnect with ACLD-8125 Connect with ACLD-9137PCI PnP Registers Registers FormatI/O Address I/O Address MapA/D Data Registers Address Write ReadAddress Base + 6h Attribute write only Data Format Bit A/D Channel Control RegisterAddress Base + 0h Attribute read only Data Format BitAddress Base + 8h Attribute write only Data Format Bit A/D Input Signal Range Control RegisterA/D Channel Read Back Register Address Base + 6h Attribute read only Data Format BitAddress Base + 0Ah Attribute write only Data Format Bit A/D Trigger Mode Control RegisterA/D Range and Status Read back Register Address Base + 8h Attribute read only Data Format BitAddress Base + 0Ch Attribute write only Data Format Bit Mode DescriptionAddress Base + 0Eh Attribute write only Data Format Bit Address Base + 0Ah Attribute read only Data Format Bit 12 A/D Mode & Interrupt Control Read Back RegisterHardware Interrupt Clear Register Address Base + 48h Attribute write only Data Format BitAddress Base + 2h Attribute read only Data Format Address Base + 4h Attribute write only Data Format BitAddress Base + 4h Attribute read only Data Format Bit Address Base + 40h ~ Base + 46h 15 D/A Output RegisterAddress Base + 2h Attribute write only Data Format Bit A/D Conversion Operation Theorem2 A/D Signal Source Control 1 A/D Conversion ProcedureAnalog Input Signal Connection 3 A/D Trigger Source Control Signal RangeExternal Trigger EITS=1, TPST=don‘t care 4 A/D Data Transfer ModesFifo Half-Full Polling EOC Interrupt Transfer Pre-Trigger ControlTime FFF 6 A/D Data FormatDual Interrupt System IRQ Level SettingInterrupt Control System Architecture Extended Digital I/O Port Interrupt Source Control44mV 88mV D/A ConversionDigital Input and Output Timer/Counter Operation Introduction4 I/O Address Pacer Trigger SourcePre-Trigger Counter ++ Library Libraries InstallationData Types Programming Guide Naming Convention++ Windows 9111Initial9111DO ++ DOS9111DI 9111DOChannel9111EDI 9111DIChannel10 9111EDOReadBack 9111EDO11 9111SetEDOFunction 13 9111ADReadData 12 9111DA15 9111ADSetChannel 14 9111ADReadDataRepeat16 9111ADGetChannel Input Range Gain Gain Code 17 9111ADSetRange19 9111ADGetStatus 18 9111ADGetRange20 9111ADSetMode 22 9111INTSetReg 21 9111ADGetMode23 9111INTGetReg 24 9111ResetFIFO26 9111Set8254 25 9111ADSoftTrigger27 9111Get8254 28 9111ADTimer30 9111CounterRead 29 9111CounterStart31 9111CounterStop 32 9111INTSourceControl 34 9111GetIRQChannel 33 9111CLRIRQ36 9111ADFFHFPolling 35 9111GetIRQStatus38 9111ADHRAquire 37 9111ADAquire39 9111ADINTStart 40 9111ADFFHFINTStart ++ Library ∙61 42 9111ADFFHFINTStatus 41 9111ADINTStatus43 9111ADFFHFINTRestart 44 9111ADINTStop What do you need CalibrationFunctions of VRs A/D AdjustmentVR Assignment Bipolar Analog Output D/A Adjustment Unipolar Analog OutputRunning 9111util.exe Software Utility9111util System Configuration Calibration Function Testing Menu Window Functional TestingIeeprom Product Warranty/Service