ADLINK Technology M-322 Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Cartes mères ADLINK Technology M-322. AO.Channels(1).Enable Property Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 402
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
D2K-OCX 32-bit ActiveX controls for
NuDAQ DAQ-2K/PXI-2K Data
Acquisition Cards
Programmers Guide
@Copyright 2002 ADLINK Technology Inc.
All Rights Reserved.
Manual Rev: 1.00: November 15, 2002
The information in this document is subject to change without prior notice in order to improve reliability,
design and function and does not represent a commitment on the part of the manufacturer.
In no event will the manufacturer be liable for direct, indirect, special, incidental, or consequential damages
arising out of the use or inability to use the product or documentation, even if advised of the possibility of
such damages.
This document contains proprietary information protected by copyright. All rights are reserved. No part of this
manual may be reproduced by any mechanical, electronic, or other means in any form without prior written
permission of the manufacturer.
Trademarks
NuDAQ, NuDAQ, DAQBench series product are registered trademarks of ADLINK Technology Inc. IBM PC
is a registered trademark of International Business Machines Corporation. Other product names mentioned
herein are used for identification purposes only and may be trademarks and/or registered trademarks of their
respective companies.
Vue de la page 0
1 2 3 4 5 6 ... 401 402

Résumé du contenu

Page 1 - Acquisition Cards

D2K-OCX 32-bit ActiveX controls for NuDAQ DAQ-2K/PXI-2K Data Acquisition Cards Programmer’s Guide @Copyright 2002 ADLINK Technology Inc. All Rights R

Page 2 - Getting Service from ADLINK

Table of contents ? x GPTC.Counter1.UpDownPolarity Property...

Page 3 - Table of Contents

Daq2006 ActiveX Control ? 100 Data Type Single AO.Channels(0).Buffer1 Property AO.Channels(1).Buffer1 Property This property set up the buffer for

Page 4

Daq2006 ActiveX Control ? 101 Data Type Variant(Integer array) Example Dim buffer1(0 To 4095) As Integer Dim buffer2(0 To 4095) As Integ

Page 5

Daq2006 ActiveX Control ? 102 Data Type Boolean SSI.DATRIG Property Connect / Disconnect a SSI_DATRIG device signal to the specified SSI bus tri

Page 6

Daq2006 ActiveX Control ? 103 Arguments [ErrMsgBox As Variant] Boolean type. True: It will popup error message dialog box when operation error. Fals

Page 7

Daq2006 ActiveX Control ? 104 Returns the digital data read from the specified port. The returned value is 8 -bit data. Remarks You can read data f

Page 8

Daq2006 ActiveX Control ? 105 DIO.WriteDOLine Method Syntax Function object.DIO.WriteDOLine(port As Integer, line As Integer, value As Variant) As

Page 9

Daq2006 ActiveX Control ? 106 Value Constant Description 0 Channel_P1A P1A Port 1 Channel_P1B P1B Port 2 Channel_P1C P1C Port 3 Channel_P1CL P1

Page 10

Daq2006 ActiveX Control ? 107 GPTC.Counter0.ReadStatus Method GPTC.Counter1.ReadStatus Method Reads the latched GPTC status of the general -purpose

Page 11

Daq2006 ActiveX Control ? 108 ' Get Data in ScaledData End Sub AI.StopContAI Method You can use this method to force stop DMA analog in

Page 12

Daq2006 ActiveX Control ? 109 Return Value True if the function is successful; otherwise False. Arguments None Microsoft C/C++ and Borland C++ Heade

Page 13

Table of contents ? xi AO.Channels(1).IntOrExtref Property...

Page 14

Daq2006 ActiveX Control ? 110 Return Value True if the function is successful; otherwise False. Arguments Channel as Integer The analog output

Page 15

Daq2006 ActiveX Control ? 111 strPolarity = "Bipolar" End If strMsg = "DA channel:" & channel & " &quo

Page 16

Daq2006 ActiveX Control ? 112 DAQ_2006 Events DAQError Event Syntax sub ControlName_DAQError ( ErrString As String ) Arguments ErrString As String T

Page 17

Daq2006 ActiveX Control ? 113 Syntax sub ControlName _AoComplete( ) Arguments None Remarks This event occurs when continuous ana log output fun

Page 18

Daq2006 ActiveX Control ? 114 varArray(1) = buffer1 varArray(2) = buffer2 varArray(3) = buffer3 Daq2006.AO.Channels(0).buffer1 = var

Page 19

Daq2006 ActiveX Control ? 115 End If strMsg = "AD channel:" & channel & " " & strPolarity & " Gain err

Page 20

Daq2010 ActiveX Control ? 116 Daq2010 ActiveX Control The Daq2010 ActiveX control is a software component that provides the interface for users to co

Page 21

Daq2010 ActiveX Control ? 117 Daq2010 ActiveX Control Overview DelayCount MCount ReTriggerCount ExtTrigPolarity ReturnType

Page 22 - How to Use This Guide

Daq2010 ActiveX Control ? 118 Daq2010 ActiveX Control Overview BankDate Load AcquireDAError CurrentTemperature Save CurrentDate DisplayEr

Page 23 - D2K-DASK Utilities ? 23

Daq2010 ActiveX Control ? 119 OpenMode Property Return/Set a value that determines the mode of opening device. Syntax object.OpenMode [= short] S

Page 24 - D2K-DASK Utilities ? 24

Table of contents ? xii GPTC.Counter1.GatePolarity Property...

Page 25 - D2K-DASK Utilities ? 25

Daq2010 ActiveX Control ? 120 Exit Do End If Loop MsgBox "AI Complete" DIO.P1Adir Property Return/Set a value that determines P1

Page 26 - D2K-DASK Utilities ? 26

Daq2010 ActiveX Control ? 121 Value Constant Description 1 INPUT_PORT Direction: input port. 2 OUTPUT_PORT Direction: output port. Data Typ

Page 27 - Daq2005 ActiveX Control

Daq2010 ActiveX Control ? 122 Data Type Integer Microsoft C/C++ and Borland C++ Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi

Page 28

Daq2010 ActiveX Control ? 123 Microsoft C/C++ and Borland C++ Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas

Page 29

Daq2010 ActiveX Control ? 124 Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas GPTC.Counter0.UpDownSource Prope

Page 30

Daq2010 ActiveX Control ? 125 Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas GPTC.Counter0.OutputPol arity Pr

Page 31

Daq2010 ActiveX Control ? 126 GPTC.Counter0.IntUpDnCTR Property GPTC.Counter1.IntUpDnCTR Property Return/Set a value that determines the Timer/Cou

Page 32

Daq2010 ActiveX Control ? 127 Syntax [ Integer=] object.GPTC.Counter0.OutputValue [ Integer=] object.GPTC.Counter1.OutputValue Data Type Int

Page 33

Daq2010 ActiveX Control ? 128 Syntax object.AI.NumOfScan [=Long] Remarks Non-double-buffer mode This value multiply the total number of sc

Page 34

Daq2010 ActiveX Control ? 129 Syntax object.AI.ConversionSource [=Short] Settings Value Constant Description 0 DAQ2K_AI_ADCONVSRC_Int Inte

Page 35

Table of contents ? xiii AO.Channels(1).Enable Property...

Page 36

Daq2010 ActiveX Control ? 130 Settings Value Constant Description 0 DAQ2K_AI_TRGSRC_SOFT Software 1 DAQ2K_AI_TRGSRC_ANA From analog trigger pin

Page 37

Daq2010 ActiveX Control ? 131 Data Type Boolean AI.MCounterEnable Property This constant is only valid for Pre -trigger and Middle trigger mode

Page 38

Daq2010 ActiveX Control ? 132 AI.ReTriggerCount Property The accepted trigge r times in an acquisition. This argument is only valid for Delay trigge

Page 39

Daq2010 ActiveX Control ? 133 Syntax object.AI.DoubleBufferMode [=Boolean] Settings Value Constant Description 0 False double-buffered mode

Page 40

Daq2010 ActiveX Control ? 134 AI.AIOTrigCondition Property Return/Set a value that determines the t rigger condition selection Syntax object.

Page 41

Daq2010 ActiveX Control ? 135 Trigger Level digital setting trigger voltage 0xFF +9.92V 0x81 +0.08V 0x80 0 0x7F -0.08V 0x01 -10V

Page 42

Daq2010 ActiveX Control ? 136 Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas AO.CHUI Property The length of t

Page 43

Daq2010 ActiveX Control ? 137 Value Constant Description 2 DAQ2K_DA_TRGSRC_ExtD From external digital trigger pin 3 DAQ2K_DA_TRSRC_SSI From SSI

Page 44

Daq2010 ActiveX Control ? 138 Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas AO.Delay2Source Property Return/Set a value that d

Page 45

Daq2010 ActiveX Control ? 139 Syntax object.AO.ReTriggerCount [=Long] Data Type Long AO.Delay1Count Property The counter value of DLY1 Count

Page 46

Table of contents ? xiv GPTC.Counter1.ClockPolarity Property ...

Page 47

Daq2010 ActiveX Control ? 140 Re-trigger in an acquisition is enabled Syntax object.AO.ClockSource [=Boolean] Settings Value Constant Desc

Page 48

Daq2010 ActiveX Control ? 141 between the value of TrgLevel and trigger voltage. Syntax object.AO.AIOHLevel [=Long] Remarks For example:

Page 49

Daq2010 ActiveX Control ? 142 Data Type Boolean AO.Iterations Property The times of number of the data in the buffer to output to the port. a va

Page 50

Daq2010 ActiveX Control ? 143 AO.Channels(1).Enable Property DAQ-2000 output channel that can be set separately for each channel to perform multi-

Page 51

Daq2010 ActiveX Control ? 144 If the D/A reference voltage source your device use is internal reference, the valid values is 10. If the D/A referenc

Page 52

Daq2010 ActiveX Control ? 145 Remarks You must assign this property before call StartContAO() method. This property will be used when double buffer

Page 53

Daq2010 ActiveX Control ? 146 Settings Value Constant Description 0 False Disconnect to the specified SSI bus trigger line 1 True Connect to

Page 54

Daq2010 ActiveX Control ? 147 Syntax Function object.Open ([ErrMsgBox As Variant]) As Boolean Return Value True if the function is successful; other

Page 55

Daq2010 ActiveX Control ? 148 Value Constant Description 2 Channel_P1C P1C Port 3 Channel_P1CL P1C Lower Port 4 Channel_P1CH P1C Higher Port v

Page 56

Daq2010 ActiveX Control ? 149 value as Variant 8-bit data that will be written to the digital output port. Remarks Users can write data to the digita

Page 57

Table of contents ? xv AO.Iterations Property...

Page 58

Daq2010 ActiveX Control ? 150 Syntax Function object.DIO.ReadBackDOLine(port As Integer, line As Integer, value As Variant) As Boolean Return Value

Page 59

Daq2010 ActiveX Control ? 151 Syntax Function object.GPTC.Counter0.Reset() As Boolean Return Value True if the function is successful; otherwise Fal

Page 60

Daq2010 ActiveX Control ? 152 Daq2010.AI.Channels(0).Enable = True Daq2010.AI.StartContAI Private Sub Daq2010_AiComplete(ScaledData As Variant

Page 61

Daq2010 ActiveX Control ? 153 AO.StartContAO Method This method performs continuous D/A conversions on the specified analog output channel at a rate

Page 62

Daq2010 ActiveX Control ? 154 AO.WriteChannel Method Accepts a voltage value (or a current value), scales it to the proper binary value and writes a

Page 63

Daq2010 ActiveX Control ? 155 List1.Refresh End Sub Private Sub Daq2010_AcquireDAError(ByVal channel As Integer, ByVal polarity As Integer, ByVal

Page 64

Daq2010 ActiveX Control ? 156 DAQ_2010 Events DAQError Event Syntax sub ControlName_DAQError ( ErrString As String ) Arguments ErrString As String T

Page 65

Daq2010 ActiveX Control ? 157 Syntax sub ControlName _AoComplete( ) Arguments None Remarks This event occurs when continuous analog output func

Page 66

Daq2010 ActiveX Control ? 158 varArray(1) = buffer1 varArray(2) = buffer2 varArray(3) = buffer3 Daq2010.AO.Channels(0).buffer1 = var

Page 67

Daq2010 ActiveX Control ? 159 End If strMsg = "AD channel:" & channel & " " & strPolarity & " Gain err

Page 68

Table of contents ? xvi GPTC.Counter0.Mode Property...

Page 69

Daq2204 ActiveX Control ? 160 Daq2204 ActiveX Control The Daq2204 ActiveX control is a software component that provides the interface for users t

Page 70

Daq2204 ActiveX Control ? 161 Daq2204 ActiveX Control Overview Mcount ReTriggerCount ExtTrigPolarity ReturnType DoubleBuffe

Page 71

Daq2204 ActiveX Control ? 162 Daq2204 ActiveX Control Overview CurrentTemperature Save CurrentDate DisplayErrors SSI TIMEBASE Clea

Page 72 - Daq2006 ActiveX Control

Daq2204 ActiveX Control ? 163 DAQ_2204 Properties DASKCardType Property Return a value that determines the card type. It is always DAQ_2204 in DAQ-2

Page 73

Daq2204 ActiveX Control ? 164 Value Display Description drivers. Data Type Integer DaskCardID Property

Page 74

Daq2204 ActiveX Control ? 165 Syntax object.DIO.P1ADir [= Direction] Settings Value Constant Description 1 INPUT_PORT Direction: input po

Page 75

Daq2204 ActiveX Control ? 166 Microsoft C/C++ and Borland C++ Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas

Page 76

Daq2204 ActiveX Control ? 167 Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas GPTC.Counter0.ClockSource Property GPTC.Counter1.ClockSource Pr

Page 77

Daq2204 ActiveX Control ? 168 Borland Delphi Unit: D2kDask.pas GPTC.Counter0.GateSource Property GPTC.Counter1.GateSource Property Return/Set a va

Page 78

Daq2204 ActiveX Control ? 169 GPTC.Counter0.UpDownSource Property GPTC.Counter1.UpDownSource Property Return/Set a value that determines the Time

Page 79

Table of contents ? xvii AO.TriggerMode Property ...

Page 80

Daq2204 ActiveX Control ? 170 Unit: D2kDask.pas GPTC.Counter0.OutputPolarity Property GPTC.Counter1.OutputPolarity Property Return/Set a value tha

Page 81

Daq2204 ActiveX Control ? 171 Settings Value Constant Description 0 FALSE 1 TRUE Data Type Boolean GPTC.Counter0.DelayCount Property GPTC

Page 82

Daq2204 ActiveX Control ? 172 Syntax object.CALIBRATION.BankTemperature([BankOfEEPROM as Integer]) As Single Data Type Single GPTC.CALIBRATION

Page 83

Daq2204 ActiveX Control ? 173 Data Type Long AI.ClockSource Property The clock source (Time Base) the device selected. Syntax object.AI.Clock

Page 84 - AI.ClockSource P roperty

Daq2204 ActiveX Control ? 174 AI.ConversionSource Property The A/D Conversion Source Selection. Syntax object.AI.ConversionSource [=Short]

Page 85

Daq2204 ActiveX Control ? 175 Syntax object.AI.TriggerSource [=Short] Settings Value Constant Description 0 DAQ2K_AI_TRGSRC_SOFT Software

Page 86 - AI.DelaySource Prope rty

Daq2204 ActiveX Control ? 176 Value Constant Description 0 False ReTriggerMode is disabled. 1 True ReTriggerMode is enabled. Data Type Boolean

Page 87

Daq2204 ActiveX Control ? 177 Data Type Long AI.ReTriggerCount Property The accepted trigger times in an acquisition. This argument is only valid f

Page 88

Daq2204 ActiveX Control ? 178 AI.DoubleBufferMode Property Enables or disables double -buffered data acquisition mode. Syntax object.AI.Double

Page 89

Daq2204 ActiveX Control ? 179 AI.AIOTrigCondition Property Return/Set a value th at determines the t rigger condition selection Syntax objec

Page 90

Table of contents ? xviii GPTC.Counter1.ReadStatus Method ...

Page 91

Daq2204 ActiveX Control ? 180 is as the following table: Trigger Level digital setting trigger voltage 0xFF +9.92V 0x81 +0.08V 0x80

Page 92

Daq2204 ActiveX Control ? 181 Syntax object.AO.TriggerSource [=Integer] Settings Value Constant Description 0 DAQ2K_DA_TRGSRC_SOFT Softwar

Page 93

Daq2204 ActiveX Control ? 182 Data Type Integer Microsoft C/C++ and Borland C++ Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi

Page 94

Daq2204 ActiveX Control ? 183 Borland Delphi Unit: D2kDask.pas AO.ReTriggerCount Property The accepted trigger times in an acquisition. This argume

Page 95

Daq2204 ActiveX Control ? 184 Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas AO.ReTriggerModeEnable Property Re-trigger in an acquisition is

Page 96

Daq2204 ActiveX Control ? 185 AO.AIOHLevel Property The High value setting of Trigger level. Please refer to the hardware manual for the relatio

Page 97

Daq2204 ActiveX Control ? 186 Value Constant Description 1 True double-buffered mode is enabled. Data Type Boolean AO.Iterations Property

Page 98

Daq2204 ActiveX Control ? 187 AO.Channels(0).Enable Property AO.Channels(1).Enable Property DAQ-2000 output channel that can be set separately fo

Page 99

Daq2204 ActiveX Control ? 188 AO.Channels(1).RefVoltage Property If the D/A reference voltage source your device use is internal reference, the val

Page 100

Daq2204 ActiveX Control ? 189 Syntax object.AO.Channels(0).Buffer2 [=Variant] Remarks You must assign this property before call StartContAO(

Page 101 - SSI.ADTRIG Property

Table of contents ? xix AI.ReTriggerModeEnable Property...

Page 102 - Open Method

Daq2204 ActiveX Control ? 190 Syntax object.SSI. ADTRIG [=Boolean] Settings Value Constant Description 0 False Disconnect to the specifie

Page 103 - ShowPropertyPages Method

Daq2204 ActiveX Control ? 191 DAQ_2204 Methods Open Method Syntax Function object.Open ([ErrMsgBox As Variant]) As Boolean Return Value True if the

Page 104 - DIO.WriteDOPort Method

Daq2204 ActiveX Control ? 192 Selects one port for inputting digital data. Value Constant Description 0 Channel_P1A P1A Port 1 Channel_P1B P1B Po

Page 105 - DIO.ReadBackDOLine Method

Daq2204 ActiveX Control ? 193 Value Constant Description 3 Channel_P1CL P1C Lower Port 4 Channel_P1CH P1C Higher Port value as Variant 8-bit da

Page 106 - Stop counter operation

Daq2204 ActiveX Control ? 194 DIO.ReadBackDOLine Method Reads back data from the indicated digital output line of the indicated digital output port.

Page 107 - AI.StartContAI Method

Daq2204 ActiveX Control ? 195 Halts the specified general -purpose timer/counter operation and reload the initial value of the timer/counter. Synta

Page 108 - AO.StartContAO Method

Daq2204 ActiveX Control ? 196 Value Constant Description 27 AD_U_2_V Unipolar 0 to +2V 19 AD_U_1_V Unipolar 0 to +1V 28 AD_U_0_5_V Unipolar 0

Page 109 - AO.WriteChannel Method

Daq2204 ActiveX Control ? 197 Arguments None Remarks You can use this method to start the DMA analog input function. If the AI.StreamToFile property

Page 110

Daq2204 ActiveX Control ? 198 Arguments None AI.ReadChannels Method This method performs a software triggered A/D conversion (analog input) on anal

Page 111 - SSI.ClearAll Method

Daq2204 ActiveX Control ? 199 Syntax Function object.AO.StartContAO() As Boolean Return Value True if the function is successful; otherwise False. A

Page 112 - AoComplete Event

Getting Service from ADLINK ?? Customer Satisfaction is always the most important thing for ADLINK Tech Inc. If you need any help or service, please c

Page 113 - AoBufferReady Event

Table of contents ? xx AO.GroupA.Channels(1).Buffer2 Property ...

Page 114 - AcquireADError Event

Daq2204 ActiveX Control ? 200 Syntax Function object.AO.WriteChannel(Channel as Integer, Voltage as Single) As Boolean Return Value True if the func

Page 115 - AcquireDAError Event

Daq2204 ActiveX Control ? 201 As Double, ByVal offset_err As Double) If polarity = 0 Then strPolarity = "Unipolar" Else

Page 116 - Daq2010 ActiveX Control

Daq2204 ActiveX Control ? 202 DAQ_2204 Events DAQError Event Syntax sub ControlName_DAQError ( ErrString As String ) Arguments ErrString As String T

Page 117

Daq2204 ActiveX Control ? 203 Syntax sub ControlName _AoComplete( ) Arguments None Remarks This event occurs when continuous anal og output fun

Page 118 - CardNumber Property

Daq2204 ActiveX Control ? 204 varArray(2) = buffer2 varArray(3) = buffer3 Daq2204.AO.Channels(0).buffer1 = varArray(0) Daq2204.AO.Ch

Page 119 - DaskCardID Property

Daq2204 ActiveX Control ? 205 List1.AddItem (strMsg) End Sub AcquireDAError Event Acquires the offset and gain errors of the specified DA channe

Page 120 - DIO.P1CLowerdir Property

Daq2205 ActiveX Control ? 206 Daq2205 ActiveX Control The Daq2205 ActiveX control is a software component that provides the interface for users to co

Page 121 - GPTC.Counter0.Mode Property

Daq2205 ActiveX Control ? 207 Daq2205 ActiveX Control Overview Mcount ReTriggerCount ExtTrigPolarity ReturnType DoubleBuffe

Page 122

Daq2205 ActiveX Control ? 208 Daq2205 ActiveX Control Overview CurrentTemperature Save CurrentDate DisplayErrors SSI TIMEBASE Clea

Page 123

Daq2205 ActiveX Control ? 209 DAQ_2205 Properties DASKCardType Property Return a value that determines the card type. It is always DAQ_2205 in DAQ-2

Page 124

Table of contents ? xxi AoBufferReady Event...

Page 125

Daq2205 ActiveX Control ? 210 Value Display Description drivers. Data Type Integer DaskCardID Property

Page 126

Daq2205 ActiveX Control ? 211 Syntax object.DIO.P1ADir [= Direction] Settings Value Constant Description 1 INPUT_PORT Direction: input po

Page 127 - AI.NumOfScan Property

Daq2205 ActiveX Control ? 212 Microsoft C/C++ and Borland C++ Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas

Page 128 - AI.ScanInterval Property

Daq2205 ActiveX Control ? 213 Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas GPTC.Counter0.ClockSource Property GPTC.Counter1.ClockSource Pr

Page 129 - AI.TriggerSource Property

Daq2205 ActiveX Control ? 214 Borland Delphi Unit: D2kDask.pas GPTC.Counter0.GateSource Property GPTC.Counter1.GateSource Property Return/Set a va

Page 130 - AI.DelaySource Property

Daq2205 ActiveX Control ? 215 GPTC.Counter0.UpDownSource Property GPTC.Counter1.UpDownSource Property Return/Set a value that determines the Time

Page 131 - AI.MCount Property

Daq2205 ActiveX Control ? 216 Unit: D2kDask.pas GPTC.Counter0.OutputPolarity Property GPTC.Counter1.OutputPolarity Property Return/Set a value tha

Page 132 - AI.ReturnType Property

Daq2205 ActiveX Control ? 217 Settings Value Constant Description 0 FALSE 1 TRUE Data Type Boolean GPTC.Counter0.DelayCount Property GPTC

Page 133 - AI.FileName Property

Daq2205 ActiveX Control ? 218 Syntax object.CALIBRATION.BankTemperature([BankOfEEPROM as Integer]) As Single Data Type Single GPTC.CALIBRATION

Page 134 - AI.AIOLLevel Property

Daq2205 ActiveX Control ? 219 Data Type Long AI.ClockSource Property The clock source (Time Base) the device selected. Syntax object.AI.Clock

Page 135

How to Use This Guide ? xxii How to Use This Guide This manual is designed to help you use the NuDAQ D2K-OCX ActiveX controls to control NuDAQ PCI/PX

Page 136 - AO.TriggerSource Property

Daq2205 ActiveX Control ? 220 AI.ConversionSource Property The A/D Conversion Source Selection. Syntax object.AI.ConversionSource [=Short]

Page 137 - AO.Delay1Source Property

Daq2205 ActiveX Control ? 221 Syntax object.AI.TriggerSource [=Short] Settings Value Constant Description 0 DAQ2K_AI_TRGSRC_SOFT Software 1

Page 138 - AO.ReTriggerCount Property

Daq2205 ActiveX Control ? 222 Value Constant Description 0 False ReTriggerMode is disabled. 1 True ReTriggerMode is enabled. Data Type Boolean

Page 139 - AO.ClockSource Property

Daq2205 ActiveX Control ? 223 Data Type Long AI.ReTriggerCount Property The accepted trigger times in an acquisition. This argument is only valid

Page 140 - AO.AIOHLevel Property

Daq2205 ActiveX Control ? 224 AI.DoubleBufferMode Property Enables or disables double -buffered data acquisition mode. Syntax object.AI.Doubl

Page 141 - AO.AIOLLevel Property

Daq2205 ActiveX Control ? 225 Data Type Integer AI.AIOTrigCondition Property Return/Set a value that determines the t rigger condition selection

Page 142 - AO.StopMode Property

Daq2205 ActiveX Control ? 226 Remarks For example: If the trigger voltage is ±10V, the relationship between the value of TrgLevel and trigger vo

Page 143

Daq2205 ActiveX Control ? 227 Return/Set a value that determines the trigger source selection Syntax object.AO.TriggerSource [=Integer] Sett

Page 144

Daq2205 ActiveX Control ? 228 Value Constant Description 64 DAQ2K_DA_Dly1InUI Delay in samples 0 DAQ2K_DA_Dly1InTimebase Delay in time base Dat

Page 145

Daq2205 ActiveX Control ? 229 Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas AO.ReTriggerCount Property The accepted trigger ti

Page 146

D2K-DASK Utilities ? 23 DAQ-2000 Registry/Configuration utility (D2kUtil) D2kUtil is used for the users to register D2K-DASK drivers (Windows NT4 o

Page 147

Daq2205 ActiveX Control ? 230 Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas AO.ReTriggerModeEnable Property

Page 148

Daq2205 ActiveX Control ? 231 Data Type Integer AO.AIOHLevel Property The High value setting of Trigger level. Please refer to the hardware manu

Page 149

Daq2205 ActiveX Control ? 232 Settings Value Constant Description 0 False double-buffered mode is disabled. 1 True double-buffered mode is enabl

Page 150

Daq2205 ActiveX Control ? 233 AO.Channels(0).Enable Property AO.Channels(1).Enable Property DAQ-2000 output channel that can be set separately for

Page 151

Daq2205 ActiveX Control ? 234 +10. Syntax object.AO.Channels(0).RefVoltage [=Single] Data Type Single AO.Channels(0).Buffer1 Property AO.Chann

Page 152

Daq2205 ActiveX Control ? 235 Data Type Variant(Integer array) Example Dim buffer1(0 To 4095) As Integer Dim buffer2(0 To 4095) As Inte

Page 153

Daq2205 ActiveX Control ? 236 Data Type Boolean SSI.DATRIG Property Connect / Disconnect a SSI_DATRIG device signal to the specified SSI bus tri

Page 154

Daq2205 ActiveX Control ? 237 Arguments [ErrMsgBox As Variant] Boolean type. True: It will popup error message dialog box when operation error. Fals

Page 155

Daq2205 ActiveX Control ? 238 Remarks You can read data from the digital input port. Note In VC++, value is a VARIANT of VT_I4. DIO.ReadDILine Meth

Page 156

Daq2205 ActiveX Control ? 239 DIO.WriteDOLine Method Syntax Function object.DIO.WriteDOLine(port As Integer, line As Integer, value As Variant) As B

Page 157

D2K-DASK Utilities ? 24 Using D2kUtil to change the buffer allocated settings of one of the D2K -DASK drivers, select the driver from the Registere

Page 158

Daq2205 ActiveX Control ? 240 Value Constant Description 0 Channel_P1A P1A Port 1 Channel_P1B P1B Port 2 Channel_P1C P1C Port 3 Channel_P1CL P1

Page 159

Daq2205 ActiveX Control ? 241 GPTC.Counter0.ReadStatus Method GPTC.Counter1.ReadStatus Method Reads the latched GPTC status of the general -purpose

Page 160 - Daq2204 ActiveX Control

Daq2205 ActiveX Control ? 242 Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas Example Dim nChannelArra

Page 161

Daq2205 ActiveX Control ? 243 Borland Delphi Unit: D2kDask.pas Example Dim nChannelArray(0 To 1) As Integer Dim nRangeArray(0 To 1) As Int

Page 162

Daq2205 ActiveX Control ? 244 Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas Example Dim nChannelArray(0 To 1) As Integer

Page 163

Daq2205 ActiveX Control ? 245 For i = 0 To 4095 buffer1(i) = (Sin(i / 512 * 3.14159) * &H7FF) + &H800 Next i

Page 164

Daq2205 ActiveX Control ? 246 Syntax Function object.CALIBRATION.AutoCalibration () As Boolean Return Value True if the function is successful; othe

Page 165

Daq2205 ActiveX Control ? 247 Arguments BankOfEEPROM As Integer The storage bank on EEPROM. The valid range of the value of bank is 0 through 3.

Page 166

Daq2205 ActiveX Control ? 248 DAQ_2205 Events DAQError Event Syntax sub ControlName_DAQError ( ErrString As String ) Arguments ErrString As String T

Page 167

Daq2205 ActiveX Control ? 249 Syntax sub ControlName _AoComplete( ) Arguments None Remarks This event occurs when continuous analog output func

Page 168

D2K-DASK Utilities ? 25 [D2kUtil in Windows 98] This utility is used to set/modify the allocated buffer sizes of AI, AO, DI and DO. The allocated buf

Page 169

Daq2205 ActiveX Control ? 250 varArray(1) = buffer1 varArray(2) = buffer2 varArray(3) = buffer3 Daq2205.AO.Channels(0).buffer1 = var

Page 170

Daq2205 ActiveX Control ? 251 strMsg = "Hign Gain bipolar Offset error:" & Format(hg_bios_err, "#0.#####") List1.AddIte

Page 171

Daq2206 ActiveX Control ? 252 Daq2206 ActiveX Control The Daq2206 ActiveX control is a software component that provides the interface for users to c

Page 172

Daq2206 ActiveX Control ? 253 Daq2206 ActiveX Control Overview MCount ReTriggerCount ExtTrigPolarity ReturnType DoubleBuffe

Page 173

Daq2206 ActiveX Control ? 254 Daq2206 ActiveX Control Overview CurrentTemperature Save CurrentDate DisplayErrors SSI TIMEBASE Clea

Page 174

Daq2206 ActiveX Control ? 255 DAQ_2206 Properties DASKCardType Property Return a value that determines the card type. It is always DAQ_2206 in DAQ

Page 175

Daq2206 ActiveX Control ? 256 Data Type Integer DaskCardID Property Returns a value that determines the D2K_Register_Card() returns value, the Da

Page 176

Daq2206 ActiveX Control ? 257 Value Constant Description 1 INPUT_PORT Direction: input port. 2 OUTPUT_PORT Direction: output port.

Page 177

Daq2206 ActiveX Control ? 258 DIO.P1CUpperdir Property Return/Set a value that determines P1C upper port direction. Syntax object.DIO.P1CUpperDir

Page 178

Daq2206 ActiveX Control ? 259 Return/Set a value that determines the Timer/Counter Source . Syntax object.GPTC.Counter0.ClockSource [= Integer] o

Page 179

D2K-DASK Utilities ? 26 [D2kUtil in Windows 2000] This utility is used to set/modify the allocated buffer sizes of AI, AO, DI and DO. The allocated b

Page 180

Daq2206 ActiveX Control ? 260 Syntax object.GPTC.Counter0.GateSource [= Integer] object.GPTC.Counter1.GateSource [= Integer] Settings Value Co

Page 181

Daq2206 ActiveX Control ? 261 Syntax object.GPTC.Counter0.UpDownSource [= Integer] object.GPTC.Counter1.UpDownSource [= Integer] Settings Value

Page 182

Daq2206 ActiveX Control ? 262 Settings Value Constant Description 8 GPTC_OUTPUT_LACTIVE Low active 0 GPTC_OUTPUT_HACTIVE High active Please re

Page 183

Daq2206 ActiveX Control ? 263 GPTC.Counter1.DelayCount P roperty Return/Set a value that determines the Timer/Counter internal initial count of the

Page 184

Daq2206 ActiveX Control ? 264 Syntax object.CALIBRATION.BankDate([BankOfEEPROM as Integer]) As String Data Type String GPTC.CALIBRATION.Current

Page 185

Daq2206 ActiveX Control ? 265 Value Constant Description 0 DAQ2K_IntTimeBase Internal timer as the time base 1 DAQ2K_ExtTimeBase External timer

Page 186

Daq2206 ActiveX Control ? 266 Value Constant Description 8 DAQ2K_AI_ADCONVSRC_SSI From SSI source Data Type Short Microsoft C/C++ and Borland C

Page 187

Daq2206 ActiveX Control ? 267 Data Type Short Microsoft C/C++ and Borland C++ Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi U

Page 188

Daq2206 ActiveX Control ? 268 Mcounter is enabled and then the trigger signal is ignore before M terminal count is reached. Syntax object.AI.M

Page 189

Daq2206 ActiveX Control ? 269 AI.ExtTrigPolarity Property External Digital Trigger Polarity. Syntax object.AI.ExtTrigPolarity [=Integer] S

Page 190

Daq2005 ActiveX Control ? 27 Daq2005 ActiveX Control The Daq2005 ActiveX control is a software component that provides the interface for users to co

Page 191

Daq2206 ActiveX Control ? 270 AI.StreamToFile Property Return/Set a value that determines i f the control is enabled the function of streaming data

Page 192

Daq2206 ActiveX Control ? 271 Remarks Please refer to the hardware manual for the more description. Data Type Integer AI.AIOHLevel Property

Page 193

Daq2206 ActiveX Control ? 272 The length of the Channel Update interval (that is, the counter value between the initiation of each update sequence).

Page 194

Daq2206 ActiveX Control ? 273 Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas AO.TriggerMode Property Return/Set a value that de

Page 195 - AI.MuxScanSetup Method

Daq2206 ActiveX Control ? 274 Syntax object.AO.Delay2Source [=Integer] Settings Value Constant Description 128 DAQ2K_DA_Dly2InUI Delay in s

Page 196

Daq2206 ActiveX Control ? 275 AO.Delay1Count Property The counter value of DLY1 Counter (the delay time after the trigger signal to the start of the

Page 197

Daq2206 ActiveX Control ? 276 Value Constant Description 1 True ReTriggerMode is enabled Data Type Boolean AO.AIOAnalogTrigCtrl Property Re

Page 198

Daq2206 ActiveX Control ? 277 Trigger Level digital setting trigger voltage 0xFF +9.92V 0x81 +0.08V 0x80 0 0x7F -0.08V 0x01 -10V Da

Page 199

Daq2206 ActiveX Control ? 278 Data Type Long AO.Definite Property Waveform generation proceeds definite or indefinitely. If double -buffered mode

Page 200

Daq2206 ActiveX Control ? 279 Data Type Boolean AO.Channels(0).OutputPolarity Property AO.Channels(1).OutputPolarity Property Return/Set a val

Page 201

Daq2005 ActiveX Control ? 28 DAQ2005 ActiveX Control Overview MCount ReTriggerCount ExtTrigPolarity ReturnType DoubleBufferM

Page 202

Daq2206 ActiveX Control ? 280 AO.Channels(0).Buffer1 Property AO.Channels(1).Buffer1 Property This property set up the buffer for continuous analog o

Page 203

Daq2206 ActiveX Control ? 281 For i = 0 To 4095 buffer1(i) = (Sin(i / 512 * 3.14159) * &H7FF) + &H800 Next i

Page 204 - Acquire22XXADError Event

Daq2206 ActiveX Control ? 282 Settings Value Constant Description 0 False Disconnect to the specified SSI bus trigge r line 1 True Connect to

Page 205

Daq2206 ActiveX Control ? 283 Microsoft C/C++ and Borland C++ Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas

Page 206 - Daq2205 ActiveX Control

Daq2206 ActiveX Control ? 284 Syntax Function object.DIO.ReadDILine (port As Integer, line As Integer, value As Variant) As Boolean Return Value Tru

Page 207

Daq2206 ActiveX Control ? 285 Arguments port As Integer Selects one port for outputting digital data. Value Constant Description 0 Channel_P1A P1A

Page 208

Daq2206 ActiveX Control ? 286 Selects one line number from the indicated port: from 0 to 7 (8-bit port). value As Variant Data that is read back from

Page 209

Daq2206 ActiveX Control ? 287 Syntax Function object.GPTC.Counter0.ReadStatus(Clock As Integer, Output As Integer, Gate As Integer, Updown As Intege

Page 210

Daq2206 ActiveX Control ? 288 Example Dim nChannelArray(0 To 1) As Integer Dim nRangeArray(0 To 1) As Integer Dim nRefGndArra

Page 211

Daq2206 ActiveX Control ? 289 nRangeArray(0) = AD_B_10_V nRefGndArray(0) = AI_RSE nChannelArray(1) = 8 nRangeArray(1) = AD_B_2_5_

Page 212

Daq2005 ActiveX Control ? 29 DAQ2005 ActiveX Control Overview CurrentTemperature Save CurrentDate DisplayErrors SSI TIMEBASE ClearA

Page 213

Daq2206 ActiveX Control ? 290 Dim nRangeArray(0 To 1) As Integer Dim nRefGndArray(0 To 1) As Integer nChannelArray(0) = 5 nRange

Page 214

Daq2206 ActiveX Control ? 291 buffer2(i) = (&H800 + i Mod 2048) And &HFFF Else buffer2(i) = (&H800 + 2047

Page 215

Daq2206 ActiveX Control ? 292 CALIBRATION.DisplayErrors Method Uses this method to fire AcquireADError and AcquireDAError events. Through those eve

Page 216

Daq2206 ActiveX Control ? 293 Syntax Function object.CALIBRATION.Save( BankOfEEPROM As Integer ) As Boolean Return Value True if the function is su

Page 217

Daq2206 ActiveX Control ? 294 DAQ_2206 Events DAQError Event Syntax sub ControlName_DAQError ( ErrString As String ) Arguments ErrString As String T

Page 218

Daq2206 ActiveX Control ? 295 Syntax sub ControlName _AoComplete( ) Arguments None Remarks This event occurs when continuous a nalog output fun

Page 219

Daq2206 ActiveX Control ? 296 varArray(2) = buffer2 varArray(3) = buffer3 Daq2206.AO.Channels(0).buffer1 = varArray(0) Daq2206.AO.Ch

Page 220

Daq2206 ActiveX Control ? 297 List1.AddItem (strMsg) End Sub AcquireDAError Event Acquires the offset and gain errors of the specified DA channe

Page 221 - AI.DelaySource Prop erty

Daq2501 ActiveX Control ? 298 Daq2501 ActiveX Control The Daq2501 ActiveX control is a software component that provides the interface for users to c

Page 222

Daq2501 ActiveX Control ? 299 Daq2501 ActiveX Control Overview DelayCount Mcount ReTriggerCount ExtTrigPolarity ReturnType

Page 223

Table of contents ? iii Table of Contents D2K-OCX 32-BIT ACTIVEX CONTROLS FOR NUDAQ DAQ-2K/PXI-2K DATA ACQUISITION CARDS ...

Page 224

Daq2005 ActiveX Control ? 30 Settings Value Display Description 0 Automatic D2K-OCX will initialize by itself. Automatically open device when

Page 225

Daq2501 ActiveX Control ? 300 Daq2501 ActiveX Control Overview GroupA.Channels(n).RefVoltage GroupA.Channels(n).Buffer1 GroupA.Channels

Page 226

Daq2501 ActiveX Control ? 301 card. Data Type Integer OpenMode Property Return/Set a value that determines the mode of opening device. Syntax obj

Page 227

Daq2501 ActiveX Control ? 302 Daq2501.AI.StartContAI ' Check AI Completed by DASK API Dim Stopped As Byte Dim AccessCnt As Long Do W

Page 228

Daq2501 ActiveX Control ? 303 Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas DIO.P1CLowerdir Property Return/Set a value that determines P1C

Page 229 - AO.Delay1Count Propert y

Daq2501 ActiveX Control ? 304 Value Constant Description 1 SimpleGatedEventCNT 2 SinglePeriodMSR 3 SinglePulseWidthMSR 4 SingleGatedPu

Page 230

Daq2501 ActiveX Control ? 305 Syntax object.GPTC.Counter0.ClockPolarity [= Integer] object.GPTC.Counter1.ClockPolarity [= Integer] Settings Val

Page 231

Daq2501 ActiveX Control ? 306 Settings Value Constant Description 2 GPTC_GATE_LACTIVE Low active 0 GPTC_GATE_HACTIVE High active Please refer

Page 232

Daq2501 ActiveX Control ? 307 Value Constant Description 4 GPTC_UPDOWN_LACTIVE Low active 0 GPTC_UPDOWN_HACTIVE High active Please refer to the

Page 233

Daq2501 ActiveX Control ? 308 Value Constant Description 0 FALSE 1 TRUE Data Type Boolean GPTC.Counter0.IntUpDnCTR Property GPTC.Counte

Page 234

Daq2501 ActiveX Control ? 309 Data Type Integer GPTC.Counter0.OutputValue Property GPTC.Counter1.OutputValue Property Returns the counter value o

Page 235

Daq2005 ActiveX Control ? 31 DIO.P1Adir Property Return/Set a value that determines P1A port direction. Syntax object.DIO.P1ADir [= Direction] Set

Page 236

Daq2501 ActiveX Control ? 310 Data Type String AI.NumOfScan Property If double-buffered mode is disabled, the total number of scans to be perform

Page 237

Daq2501 ActiveX Control ? 311 Syntax object.AI.ScanInterval [=Long] Data Type Long AI.SamplingInterval Property The length of the sample int

Page 238

Daq2501 ActiveX Control ? 312 Value Constant Description 0 DAQ2K_AI_TRGMOD_POST Post Trigger Mode 8 DAQ2K_AI_TRGMOD_DELAY Delay Trigger Mode 16

Page 239

Daq2501 ActiveX Control ? 313 Value Constant Description 256 DAQ2K_AI_Dly1InSamples Delay in samples Data Type Short Microsoft C/C++ and Borl

Page 240

Daq2501 ActiveX Control ? 314 Data Type Long AI.DelayCount Property This constant is only valid for Delay trigger mode, The DelayCount indica

Page 241

Daq2501 ActiveX Control ? 315 Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas AI.ReturnType Property Return/Set a value that de

Page 242

Daq2501 ActiveX Control ? 316 FileName specified the file name of streaming data to disk. This argument is only valid for AI.StreamToFile is Enable.

Page 243

Daq2501 ActiveX Control ? 317 If the trigger voltage is ±10V, the relationship between the value of TrgLevel and trigger voltage is as the followi

Page 244

Daq2501 ActiveX Control ? 318 Data Type Boolean AI.Range Property This property can setting same range for all channels. Syntax object.AI.

Page 245

Daq2501 ActiveX Control ? 319 Range: 40 through 16777215 Syntax object.AO.CHUI [=Long] Data Type Long AO.DAWRSource Property Return/Set a

Page 246

Daq2005 ActiveX Control ? 32 Microsoft C/C++ and Borland C++ Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas DI

Page 247

Daq2501 ActiveX Control ? 320 Borland Delphi Unit: D2kDask.pas AO.TriggerMode Property Return/Set a value that determines the trigger mode selection

Page 248

Daq2501 ActiveX Control ? 321 Settings Value Constant Description 0 DAQ2K_DA_Dly2InTimebase Delay in time base Data Type Integer Microsoft C/C++

Page 249

Daq2501 ActiveX Control ? 322 Syntax object.AO.Delay1Count [=Long] Data Type Long AO.Delay2Count Property The counter value of DLY2 Counter (

Page 250

Daq2501 ActiveX Control ? 323 Data Type Boolean AO.AIOAnalogTrigCtrl Property Return/Set a value that determines the t rigger source selection

Page 251

Daq2501 ActiveX Control ? 324 Trigger Level digital setting Trigger voltage 0x81 +0.08V 0x80 0 0x7F -0.08V 0x01 -10V Data Type Long

Page 252 - Daq2206 ActiveX Control

Daq2501 ActiveX Control ? 325 AO.BreakDelayCounterSc Property D/A Break delay Counter Source Selection Syntax object.AO.BreakDelayCounterSc [=

Page 253

Daq2501 ActiveX Control ? 326 Settings Value Constant Description 0 False Indefinitely 1 True Definite Data Type Boolean AO.StopMode Proper

Page 254

Daq2501 ActiveX Control ? 327 AO.GroupA.Channels(2).Enable Property AO.GroupA.Channels(3).Enable Property DAQ-2000 output channel that can be set

Page 255

Daq2501 ActiveX Control ? 328 Data Type Integer AO.GroupA.Channels(0).RefVoltage Property AO.GroupA.Channels(1).RefVoltage Property AO.GroupA.Chan

Page 256

Daq2501 ActiveX Control ? 329 Daq2501.AO.StartContGroup(DA_Group_A_) AO.GroupA.Channels(0).Buffer2 Property AO.GroupA.Channels(1).Buffer2 Pro

Page 257

Daq2005 ActiveX Control ? 33 Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas GPTC.Counter0.ClockSource Property GPTC.Counter1.ClockSource Prop

Page 258

Daq2501 ActiveX Control ? 330 Settings Value Constant Description 0 False Disconnect to the specified SSI bus trigger line 1 True Connect to

Page 259

Daq2501 ActiveX Control ? 331 Connect / Disconnect a SSI_TIMEBASE device signal to the specified SSI bus trigger line. Syntax object.SSI.TIM

Page 260

Daq2501 ActiveX Control ? 332 Return Value True if the function is successful; otherwise False. Arguments None DIO.ReadDIPort Method Synta

Page 261

Daq2501 ActiveX Control ? 333 DIO.WriteDOPort Method Syntax Function object.DIO.WriteDOPort (port As Integer, value As Variant) As Boolean Return Va

Page 262

Daq2501 ActiveX Control ? 334 Value Constant Description 0 Channel_P1A P1A Port 1 Channel_P1B P1B Port 2 Channel_P1C P1C Port 3 Channel_P1CL P1

Page 263

Daq2501 ActiveX Control ? 335 Syntax Function object.GPTC.Counter0.Stop() As Boolean Return Value True if the function is successful; otherwise Fal

Page 264

Daq2501 ActiveX Control ? 336 Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas Example Daq2501.AI.Chann

Page 265

Daq2501 ActiveX Control ? 337 Example Daq2501.AI.Channels(0).Enable = True Daq2501.AI.Channels(2).Enable = True Daq2501.AI.Range = AD_B_10_V

Page 266

Daq2501 ActiveX Control ? 338 Daq2501.AO.StartContGroup(DA_Group_A_) AO.StopContGroup Method You can use this method to force stop analog outpu

Page 267

Daq2501 ActiveX Control ? 339 Example Daq2501.CALIBRATION.DisplayErrors Private Sub Daq2501_AcquireADError(ByVal channel As Integer, ByVal polarity

Page 268

Daq2005 ActiveX Control ? 34 Unit: D2kDask.pas GPTC.Counter0.GateSource Property GPTC.Counter1.GateSource Property Return/Set a value that determin

Page 269

Daq2501 ActiveX Control ? 340 Syntax Function object.ClearAll As Boolean Return Value True if the function is successful; otherwise False. Argum

Page 270

Daq2501 ActiveX Control ? 341 DAQ_2501 Events DAQError Event Syntax sub ControlName_DAQError ( ErrString As String ) Arguments ErrString As String T

Page 271

Daq2501 ActiveX Control ? 342 Syntax sub ControlName _AoComplete( ) Arguments None Remarks This event occurs when continuous analog output func

Page 272

Daq2501 ActiveX Control ? 343 varArray(1) = buffer1 varArray(2) = buffer2 varArray(3) = buffer3 Daq2501.AO.GroupA.Mode = GROUP_MODE_

Page 273

Daq2501 ActiveX Control ? 344 End If strMsg = "AD channel:" & channel & " " & strPolarity & " Gain err

Page 274

Daq2502 ActiveX Control ? 345 Daq2502 ActiveX Control The Daq2502 ActiveX control is a software component that provides the interface for users to co

Page 275

Daq2502 ActiveX Control ? 346 Daq2502 ActiveX Control Overview DelayCount MCount ReTriggerCount ExtTrigPolarity ReturnType

Page 276

Daq2502 ActiveX Control ? 347 Daq2502 ActiveX Control Overview GroupA.Channels(n).RefVoltage GroupA.Channels(n).Buffer1 GroupA.Channels

Page 277 - AO.DoubleBufferMode Property

Daq2502 ActiveX Control ? 348 DAQ_2502 Properties DASKCardType Property Return a value that determines the card type. It is always DAQ_2502 in DAQ-

Page 278

Daq2502 ActiveX Control ? 349 Value display Description 2 Demonstration D2K-OCX will provide software DAQ data to simulating hardware drivers

Page 279

Daq2005 ActiveX Control ? 35 GPTC.Counter0.UpDownSource Property GPTC.Counter1.UpDownSource Property Return/Set a value that determ ines the Timer/C

Page 280

Daq2502 ActiveX Control ? 350 Syntax object.DIO.P1ADir [= Direction] Settings Value Constant Description 1 INPUT_PORT Direction: input po

Page 281

Daq2502 ActiveX Control ? 351 Microsoft C/C++ and Borland C++ Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas

Page 282

Daq2502 ActiveX Control ? 352 Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas GPTC.Counter0.ClockSource Property GPTC.Counter1.ClockSource Pr

Page 283

Daq2502 ActiveX Control ? 353 Borland Delphi Unit: D2kDask.pas GPTC.Counter0.GateSource Property GPTC.Counter1.GateSource Property Return/Set a va

Page 284

Daq2502 ActiveX Control ? 354 GPTC.Counter0.UpDownSource Property GPTC.Counter1.UpDownSource Property Return/Set a value that determines the Time

Page 285

Daq2502 ActiveX Control ? 355 GPTC.Counter0.OutputPolarity Property GPTC.Counter1.OutputPolarity Property Return/Set a value that determines the

Page 286

Daq2502 ActiveX Control ? 356 Settings Value Constant Description 0 FALSE 1 TRUE Data Type Boolean GPTC.Counter0.DelayCount Property GPTC

Page 287

Daq2502 ActiveX Control ? 357 GPTC.CALIBRATION.BankTemperature Property Returns a value that since user's last calibrated temperature in the E

Page 288

Daq2502 ActiveX Control ? 358 Data Type Long AI.ClockSource Property The clock source (Time Base) the device selected. Syntax object.AI.Cloc

Page 289

Daq2502 ActiveX Control ? 359 Data Type Long AI.ConversionSource Property The A/D Conversion Source Selection. Syntax object.AI.ConversionSou

Page 290

Daq2005 ActiveX Control ? 36 GPTC.Counter0.OutputPolarity Property GPTC.Counter1.OutputPolarity Property Return/Set a value that determines the Tim

Page 291

Daq2502 ActiveX Control ? 360 AI.TriggerSource Property The Trigger Source Selection. Syntax object.AI.TriggerSource [=Short] Settings Va

Page 292

Daq2502 ActiveX Control ? 361 Settings Value Constant Description 0 False ReTriggerMode is disabled. 1 True ReTriggerMode is enabled. Data Ty

Page 293

Daq2502 ActiveX Control ? 362 Syntax object.AI.MCount [=Long] Data Type Long AI.ReTriggerCount Property The accepted trigger times in an ac

Page 294

Daq2502 ActiveX Control ? 363 Data Type Integer AI.DoubleBufferMode Property Enables or disables double -buffered data acquisition mode. Syntax

Page 295

Daq2502 ActiveX Control ? 364 Data Type Integer AI.AIOTrigCondition Property Return/Set a value that determines the t rigger condition selection

Page 296

Daq2502 ActiveX Control ? 365 Remarks For example: If the trigger voltage is ±10V, the relationship between the value of TrgLevel and trigger vo

Page 297

Daq2502 ActiveX Control ? 366 AI.DelayCounterSource Property A/D Delay Counter Source Selection Syntax object.AI.DelayCounterSource [=Inte

Page 298 - Daq2501 ActiveX Control

Daq2502 ActiveX Control ? 367 Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas AO.TriggerSource Property Retur

Page 299

Daq2502 ActiveX Control ? 368 AO.Delay1Source Property Return/Set a value that determines the delay1 source selection Syntax object.AO.Delay1S

Page 300

Daq2502 ActiveX Control ? 369 Data Type Integer Microsoft C/C++ and Borland C++ Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi

Page 301

Daq2005 ActiveX Control ? 37 Value Constant Description 0 FALSE 1 TRUE Data Type Boolean GPTC.Counter0.DelayCount Property GPTC.Counter1.Del

Page 302

Daq2502 ActiveX Control ? 370 Value Constant Description 2 DAQ2K_SSITimeBase The timer based on the SSI source Data Type Short Microsoft C/C++

Page 303

Daq2502 ActiveX Control ? 371 Value Constant Description 512 Inside_Region Inside Region Triggering 768 High_Hysteresis High Hysteresis Triggerin

Page 304 - Settings

Daq2502 ActiveX Control ? 372 AO.DelayCounterSource Property D/A Trigger delay Counter Source Selection Syntax object.AO.DelayCounterSource

Page 305

Daq2502 ActiveX Control ? 373 Settings Value Constant Description 0 False double-buffered mode is disabled. 1 True double-buffered mode is enabl

Page 306

Daq2502 ActiveX Control ? 374 Data Type Integer AO.GroupA.Mode Property Return/Set a value that determines GroupA DA transfer mode selected. Sy

Page 307

Daq2502 ActiveX Control ? 375 Settings Value Constant Description 0 DAQ2K_DA_UniPolar Unipolar 1 DAQ2K_DA_BiPolar Bipolar Data Type Integer AO.Gr

Page 308

Daq2502 ActiveX Control ? 376 This property set up the buffer for continuous analog output operation. A buffer data or a array of buffer data, dat

Page 309

Daq2502 ActiveX Control ? 377 Example Dim buffer1(0 To 4095) As Integer Dim buffer2(0 To 4095) As Integer Dim i As Double Fo

Page 310

Daq2502 ActiveX Control ? 378 Data Type Boolean AO.GroupB.Channels(4).OutputPolarity Property AO.GroupB.Channels(5).OutputPola rity Property AO.G

Page 311

Daq2502 ActiveX Control ? 379 If the D/A reference voltage source your device use is external reference, the valid range is -10 to +10. Syntax

Page 312

Daq2005 ActiveX Control ? 38 Data Type Single GPTC.CALIBRATION.BankDate Property Returns a value that since user's last calibrated date in th

Page 313

Daq2502 ActiveX Control ? 380 Syntax object.AO.GroupB.Channels(4).Buffer2 [=Variant] Remarks You must assign this property before call AO.S

Page 314

Daq2502 ActiveX Control ? 381 Syntax object.SSI. ADTRIG [=Boolean] Settings Value Constant Description 0 False Disconnect to the specifi

Page 315

Daq2502 ActiveX Control ? 382 DAQ_2502 Methods Open Method Syntax Function object.Open ([ErrMsgBox As Variant]) As Boolean Return Value True if th

Page 316

Daq2502 ActiveX Control ? 383 Arguments Port As Integer Selects one port for inputting digital data. Value Constant Description 0 Channel_P1A P1A

Page 317

Daq2502 ActiveX Control ? 384 Value Constant Description 1 Channel_P1B P1B Port 2 Channel_P1C P1C Port 3 Channel_P1CL P1C Lower Port 4 Channel

Page 318 - AI.Range Property

Daq2502 ActiveX Control ? 385 Note In VC++, value is a VARIANT of VT_I4. DIO.ReadBackDOLine Method Reads back data from the indicated digital output

Page 319

Daq2502 ActiveX Control ? 386 GPTC.Counter0.Reset Method GPTC.Counter1.Reset Method Halts the specified general -purpose timer/counter operation and

Page 320

Daq2502 ActiveX Control ? 387 Borland Delphi Unit: D2kDask.pas Example Daq2502.AI.Channels(0).Enable = True Daq2502.AI.Channels(2).Enable

Page 321

Daq2502 ActiveX Control ? 388 Private Sub Timer1_Timer() Dim vBuffer As Variant Daq2502.AI.ReadChannels vBuffer ' Get Data in vBuffer

Page 322

Daq2502 ActiveX Control ? 389 AO.StopContGroup Method You can use this method to force stop analog output. Syntax Function object.AO.StopContGroup

Page 323

Daq2005 ActiveX Control ? 39 Syntax object.AI.ClockSource [=Short] Settings Value Constant Description 0 DAQ2K_IntTimeBase Internal timer

Page 324

Daq2502 ActiveX Control ? 390 Return Value True if the function is successful; otherwise False. Arguments None Example Daq2502.CALIBRATION.DisplayErr

Page 325

Daq2502 ActiveX Control ? 391 The storage bank on EEPROM. The valid range of the value of bank is 0 through 3. SSI.ClearAll Method Disconnects all

Page 326 - AO.GroupA.Mode Property

Daq2502 ActiveX Control ? 392 DAQ_2502 Events DAQError Event Syntax sub ControlName_DAQError ( ErrString As String ) Arguments ErrString As String T

Page 327

Daq2502 ActiveX Control ? 393 Arguments None Remarks This event occurs when contin uous analog output function is completed. AoBufferReady Ev

Page 328

Daq2502 ActiveX Control ? 394 Daq2502.AO.GroupA.Mode = GROUP_MODE_DMA Daq2502.AO.GroupA.Channels(0).buffer1 = varArray(0) Daq2502.AO.Gro

Page 329

Daq2502 ActiveX Control ? 395 List1.AddItem (strMsg) List1.Refresh End Sub AcquireDAError Event Acquires the offset and gain errors of the sp

Page 330

Appendix A Status Codes ? 396 Appendix A Status Codes This appendix lists the status codes returned by D2K-DASK, including the name and description

Page 331

Appendix A Status Codes ? 397 -24 ErrorAdTimeOut Time out for AD operation -25 ErrorNoAsyncAI Continuous Analog Input is not set as Asynchrono

Page 332

Appendix D DATA File FORMAT ? 398 Appendix B AI Range Codes The Analog Input Range of DAQ-2000 Cards AD_B_10_V Bipolar -10V to +10V AD_B_5_V

Page 333

Appendix D DATA File FORMAT ? 399 Appendix C AI DATA FORMAT This appendix lists the AI data format for the cards performing analog input operatio

Page 334 - GPTC.Counter1.Start Method

Table of contents ? iv AI.ReTriggerCount Property...

Page 335 - GPTC.Counter1.Reset Method

Daq2005 ActiveX Control ? 40 Borland Delphi Unit: D2kDask.pas AI.TriggerMode Property The Trigger Mode Selection. Syntax object.AI.TriggerMode

Page 336

Appendix D DATA File FORMAT ? 400 Appendix D DATA File FORMAT This appendix describes the file format of the data files generated by the functions

Page 337 - AO.StartContGroup Method

Appendix D DATA File FORMAT ? 401 scan_rate double 8 The scanning rate of each channel (total sampling rate / num_of_channel) num_of_channel_ran

Page 338 - AO.StopContGroup Method

Appendix D DATA File FORMAT ? 402 DAQCvt first translates the information stored in the header part and the ChannelRange part and then displays the

Page 339

Daq2005 ActiveX Control ? 41 AI.DelaySource Property Delay source selection. Syntax object.AI. DelaySource [=Short] Settings Value Const

Page 340 - Arguments

Daq2005 ActiveX Control ? 42 Data Type Boolean AI.PostTriggerCount Property This constant is only valid for Middle trigger mode, The PostTrigg

Page 341

Daq2005 ActiveX Control ? 43 Settings Value Constant Description 0 DAQ2K_AI_TrgPositive Trigger positive edge active 4096 DAQ2K_AI_TrgNegative Tr

Page 342

Daq2005 ActiveX Control ? 44 Settings Value Constant Description 0 False Disable the function of streaming data to disk file. 1 True Enable the f

Page 343

Daq2005 ActiveX Control ? 45 Data Type Integer AI.AIOHLevel Property The High value setting of Trigger level. Please refer to the hardware manua

Page 344

Daq2005 ActiveX Control ? 46 DAQ-2000 channel-gain that can be set separately for each channel to perform multi-channel/gain analog input, The parame

Page 345 - Daq2502 ActiveX Control

Daq2005 ActiveX Control ? 47 Data Type Long AO.DAWRSource Property Return/Set a value that determines the D/A R/W Source Selection Syntax o

Page 346

Daq2005 ActiveX Control ? 48 Return/Set a value that determines the trigger mode selection Syntax object.AO.TriggerMode [=Integer] Settings V

Page 347

Daq2005 ActiveX Control ? 49 Data Type Integer Microsoft C/C++ and Borland C++ Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi U

Page 348

Table of contents ? v GPTC.Counter0.Stop Method...

Page 349

Daq2005 ActiveX Control ? 50 Data Type Long AO.Delay2Count Property The counter value of DLY2 Counter (the Delay between two consecutive waveform

Page 350

Daq2005 ActiveX Control ? 51 AO.AIOAnalogTrigCtrl Property Return/Set a value that determines the t rigger source selection Syntax object.AO.A

Page 351

Daq2005 ActiveX Control ? 52 Trigger Level digital setting trigger voltage 0x7F -0.08V 0x01 -10V Data Type Long AO.AIOLLevel Property

Page 352

Daq2005 ActiveX Control ? 53 parameter is of no use. Syntax object.AO.Definite [=Boolean] Settings Value Constant Description 0 False Inde

Page 353

Daq2005 ActiveX Control ? 54 Return/Set a value that determines polarity (unipolar or bipolar) of the output channel. Syntax object.AO.Channel

Page 354

Daq2005 ActiveX Control ? 55 Syntax object.AO.Channels(0).Buffer1 [=Variant] Remarks You must assign this property before call Star

Page 355

Daq2005 ActiveX Control ? 56 For i = 0 To 4095 If i < 2048 Then buffer2(i) = (&H800 + i Mod 2048) And &HFFF

Page 356

Daq2005 ActiveX Control ? 57 Data Type Boolean SSI.DAWR Property Connect / Disconnect a SSI_DAWR device signal to the specified SSI bus trigger

Page 357

Daq2005 ActiveX Control ? 58 Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas ShowPropertyPages Method This method will show propertypages of A

Page 358

Daq2005 ActiveX Control ? 59 Unit: D2kDask.pas DIO.ReadDILine Method Syntax Function object.DIO.ReadDILine (port As Integer, line As Integer, value

Page 359

Table of contents ? vi AI.ConversionSource Property...

Page 360

Daq2005 ActiveX Control ? 60 Remarks Users can write data to the digital output port. Note In VC++, value is a VARIANT of VT_I4. Microsoft C/C++ and

Page 361

Daq2005 ActiveX Control ? 61 Selects one port for outputting digital data. Value Constant Description 0 Channel_P1A P1A Port 1 Channel_P1B P1B Por

Page 362

Daq2005 ActiveX Control ? 62 GPTC.Counter1.Start Method Start counter operation with the specified mode. Syntax Function object.GPTC.Counter0.Start

Page 363

Daq2005 ActiveX Control ? 63 fire AiComplete or AiHalfReady event depends on AI.Double BufferMode property. Syntax Function object.AI.StartContAI()

Page 364

Daq2005 ActiveX Control ? 64 Syntax Function object.AI.ReadChannels( Buffer As Variant ) As Boolean Return Value True if the function is successful;

Page 365

Daq2005 ActiveX Control ? 65 For i = 0 To 4095 buffer1(i) = (Sin(i / 512 * 3.14159) * &H7FF) + &H800 Next i Fo

Page 366

Daq2005 ActiveX Control ? 66 Arguments None CALIBRATION.DisplayErrors Method Uses this method to fire Ac quireADError and AcquireDAError events. Thr

Page 367

Daq2005 ActiveX Control ? 67 CALIBRATION.Save Method Save calibration constants to the specified bank of EEPROM. Syntax Function object.CALIBRATION

Page 368

Daq2005 ActiveX Control ? 68 DAQ_2005 Events DAQError Event Syntax sub ControlName_DAQError ( ErrString As String ) Arguments ErrString As String The

Page 369

Daq2005 ActiveX Control ? 69 Syntax sub ControlName _AoComplete( ) Arguments None Remarks This event occurs when continuous analog output functi

Page 370

Table of contents ? vii ShowPropertyPages Method ...

Page 371

Daq2005 ActiveX Control ? 70 varArray(1) = buffer1 varArray(2) = buffer2 varArray(3) = buffer3 Daq2005.AO.Channels(0).buffer1 = varAr

Page 372

Daq2005 ActiveX Control ? 71 strMsg = "AD channel:" & channel & " " & strPolarity & " Gain error:" &a

Page 373

Daq2006 ActiveX Control ? 72 Daq2006 ActiveX Control The Daq2006 ActiveX control is a software component that provides the interface for users to co

Page 374

Daq2006 ActiveX Control ? 73 Daq2006 ActiveX Control Overview DelayCount MCount ReTriggerCount ExtTrigPolarity ReturnType

Page 375

Daq2006 ActiveX Control ? 74 Daq2006 ActiveX Control Overview BankDate Load AcquireDAError CurrentTemperature Save CurrentDate DisplayErr

Page 376

Daq2006 ActiveX Control ? 75 Return/Set a value that determines the mode of opening device. Syntax object.OpenMode [= short] Settings Value Displ

Page 377

Daq2006 ActiveX Control ? 76 End If Loop MsgBox "AI Complete" DIO.P1Adir Property Return/Set a v alue that determines P1A port direct

Page 378

Daq2006 ActiveX Control ? 77 Value Constant Description 2 OUTPUT_PORT Direction: output port. Data Type Integer Microsoft C/C++ and Borland

Page 379

Daq2006 ActiveX Control ? 78 Data Type Integer Microsoft C/C++ and Borland C++ Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi U

Page 380

Daq2006 ActiveX Control ? 79 Microsoft C/C++ and Borland C++ Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas

Page 381

Table of contents ? viii GPTC.Counter1.DurationCount Property ...

Page 382

Daq2006 ActiveX Control ? 80 Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas GPTC.Counter0.UpDownSource Prope

Page 383

Daq2006 ActiveX Control ? 81 Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas GPTC.Counter0.OutputPolarity Prop

Page 384

Daq2006 ActiveX Control ? 82 Syntax object.GPTC.Counter0.IntUpDnCTR [= Boolean] object.GPTC.Counter1.IntUpDnCTR [= Boolean ] Settings Value

Page 385

Daq2006 ActiveX Control ? 83 Data Type Integer GPTC.CALIBRATION.BankTemperature Property Returns a value that since user's last calibrated tem

Page 386

Daq2006 ActiveX Control ? 84 performed. Double-buffer-mode This value multiply the total number of scan channels is the size (in sample) of

Page 387

Daq2006 ActiveX Control ? 85 Value Constant Description 8 DAQ2K_AI_ADCONVSRC_SSI From SSI source Data Type Short Microsoft C/C++ and Borland C+

Page 388

Daq2006 ActiveX Control ? 86 Data Type Short Microsoft C/C++ and Borland C++ Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Un

Page 389

Daq2006 ActiveX Control ? 87 Mcounter is enabled and then the trigger signal is ignore before M termin al count is reached. Syntax object.AI.M

Page 390

Daq2006 ActiveX Control ? 88 Data Type Long AI.ExtTrigPolarity Property External Digital Trigger Polarity. Syntax object.AI.ExtTrigPolarity

Page 391

Daq2006 ActiveX Control ? 89 Data Type Boolean AI.StreamToFile Property Return/Set a value that determines if the control is enabled the function

Page 392

Table of contents ? ix AO.Channels(0).Buffer1 Property ...

Page 393

Daq2006 ActiveX Control ? 90 Settings Value Constant Description 0 Below_Low_level Below-Low-Level Triggering 256 Above_High_Level AI channel 1A

Page 394

Daq2006 ActiveX Control ? 91 Data Type Long AI.Channels(0).Enable Prope rty AI.Channels(1).Enable Property AI.Channels(2).Enable Property AI.Chan

Page 395

Daq2006 ActiveX Control ? 92 AO.CHUI Property The length of the Channel Update interval (that is, the counter value between the initiation of each

Page 396 - Appendix A Status Codes

Daq2006 ActiveX Control ? 93 Microsoft C/C++ and Borland C++ Header: D2kDask.h Visual Basic Module: D2kDask.bas Borland Delphi Unit: D2kDask.pas

Page 397

Daq2006 ActiveX Control ? 94 AO.Delay2Source Property Return/Set a value that determines the delay2 source selection Syntax object.AO.Delay2So

Page 398

Daq2006 ActiveX Control ? 95 Data Type Long AO.Delay1Count Property The counter value of DLY1 Counter (the delay time after the trig ger signal to

Page 399 - Appendix C AI DATA FORMAT

Daq2006 ActiveX Control ? 96 Settings Value Constant Description 0 False ReTriggerMode is disabled 1 True ReTriggerMode is enabled Data Type

Page 400 - Appendix D DATA File FORMAT

Daq2006 ActiveX Control ? 97 Remarks For example: If the trigger voltage is ±10V, the relationship between the value of TrgLevel and trigger vo

Page 401

Daq2006 ActiveX Control ? 98 The times of number of the data in the buffer to output to the port. a value of zero is not allowed. Syntax obj

Page 402

Daq2006 ActiveX Control ? 99 Syntax object.AO.Channels(0).Enable [=Boolean] Data Type Boolean AO.Channels(0).OutputPolarity Property AO.Cha

Commentaires sur ces manuels

Pas de commentaire