Measurement-computing Data Acquisition Systems rev.10.4 Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Sprzęt komputerowy Measurement-computing Data Acquisition Systems rev.10.4. Measurement Computing Data Acquisition Systems rev.10.4 User Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 366
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 0
© 2003 through 2007 by IOtech 958293
Programmer’s Manual
Producing Custom Software for Data Acquisition Systems
IOtech
25971 Cannon Road
Cleveland, OH 44146-1833
Phone: (440) 439-4091
Fax: (440) 439-4093
E-mail (Product Information): [email protected]
E-mail (Technical Support): pr[email protected]
Internet: www.iotech.com
Programmer’s Manual
Producing Custom Software
for Data Acquisition Systems
p/n 1008-0901 Rev. 10.4
*372195A-01*
372195A-01
Przeglądanie stron 0
1 2 3 4 5 6 ... 365 366

Podsumowanie treści

Strona 1 - *372195A-01*

© 2003 through 2007 by IOtech 958293 Programmer’s Manual Producing Custom Software for Data Acquisition Systems IOtech 25971 Cannon Road Cl

Strona 2

Waveform Output from Disk: Uses dynamic waveform output to continuously update outputs from a file. The file is on a PC, which contains waveform out

Strona 3 - How to use this Manual

Typical flags Settings Although the flags parameter may be constructed using any of the defined flags values, the following table illustrates how spe

Strona 4 - 908494 Programmer’s Manual

Desired Channel Configuration Flag1 Flag2 Flag3 Notes Counter (32-bit-Low) Local P3 DafCtr32Low DafCtrPulse DafCtrRisingEdge (Default) Configures

Strona 5 - Table of Contents

Prototypes C/C++ daqAdcSetScan(DaqHandleT handle, PDWORD channels, DaqAdcGain *gains, PDWORD flags, DWORD chanCount); Visual BASIC VBdaqAdcSetScan&

Strona 6

daqAdcSetSetpoints Also See: daqAdcSetScan Format daqAdcSetSetpoints(handle, LimitA, LimitB, reserved, setpointFlags, setpointOutput, output1, out

Strona 7 - Introduction 1

setpointOutput - DaqSetpointOutputT Definition Description DsoNone Perform no outputs DsoP2PortC Output to P2 Port C when criteria met DsoDAC0 Outp

Strona 8 - Language Support

Returns For outside or inside window limits (DsfOutsideLimits, DsfInsideLimits) and for hysteresis (DsfHysteresis) Limit A must be greater than Limi

Strona 9 - Driver Installation

daqAdcSetTrig Also See: daqAdcSetAcq, daqAdcSetTrigEnhanced, daqAdcSetScan, daqSetTriggerEvent, daqAdcSoftTrig Format daqAdcSetTrig(handle, triggerSo

Strona 10 - 908494 Programmer’s Manual

Function Usage This function has been obsoleted by the daqSetTriggerEvent function, and his presented here only as a reference. See daqSetTriggerEvent

Strona 11 - Data Acquisition Environment

daqAdcSetTrigEnhanced Also See: daqAdcSetAcq, daqAdcSetScan,daqAdcSetTrigEnhanced,daqSetTriggerEvent, daqAdcSoftTrig Format daqAdcSetTrigEnhanced(ha

Strona 12 - Signal Environment

Parameter Type Definitions trigSource-(DaqAdcTriggerSource) Definition Devices Description DatsImmediate All Post-trigger data acquisition begins im

Strona 13

API Programming - General Models 2 Data Acquisition Environment……2-1 Application Programming Interface (API) ……2-1 Hardware Capabilities and Constrai

Strona 14 - 988594 Programmer’s Manual

Function Usage Enhanced trigger configuration available through the daqAdcSetTrigEnhanced command allows the device to detect a trigger start event fo

Strona 15

daqAdcSoftTrig Also See: daqAdcSetTrig daqAdcSetAcq Format daqAdcSoftTrig(handle) Purpose daqAdcSoftTrig is used to send a software trigger command t

Strona 16

daqAdcTransferBufData Also See: daqAdcTransferSetBuffer, daqAdcTransferGetStat, daqSetTimeout Format daqAdcTransferBufData(handle, buf, scanCount, bu

Strona 17

Function Usage Data Retrieval Buffer Upon completion of this function, the data retrieval buffer (buf) contains the requested data from the driver b

Strona 18

Returns DerrNoError No error Prototypes C/C++ daqAdcTransferBufData(DaqHandleT handle, PWORD buf, DWORD scanCount, DaqAdcBufferXferMask bufMask, P

Strona 19

daqAdcTransferGetStat Also See: daqAdcTransferSetBuffer, daqAdcTransferStart, daqAdcTransferStop, daqAdcSetDiskFile Format daqAdcTransferGetStat(ha

Strona 20

After the device’s FIFO has written m scans to a linear user allocated buffer, retCount equals m. The current data write position (in scans) within th

Strona 21

Prototypes C/C++ daqAdcTransferGetStat(DaqHandleT handle, PDWORD active, PDWORD retCount); Visual BASIC VBdaqAdcTransferGetStat&(ByVal handle&

Strona 22

daqAdcTransferSetBuffer Also See: daqAdcTransferStart, daqAdcTransferStop, daqAdcTransferGetStat, daqAdcSetAcq, daqAdcTransferBufData Format daqAdc

Strona 23

Function Usage Transfer Buffer Location The buf parameter is the address of the acquisition transfer buffer allocated by the application. If the app

Strona 24

2-2 API Programming, General Models 988594 Programmer’s Manual Signal Environment Important data acquisition concepts for programmers are liste

Strona 25

DatmUpdateSingle – This value specifies the update mode as a single sample. This setting allows the acquisition transfer buffer to be updated for each

Strona 26

where mod is defined as the integer remainder of performing an integer divide of retCount by scanCount. Detection of a buffer overrun condition is t

Strona 27

daqAdcTransferStart Also See: daqAdcTransferSetBuffer, daqAdcTransferGetStat, daqAdcTransferStop Format daqAdcTransferStart(handle) Purpose daqAdcTra

Strona 28

daqAdcTransferStop Also See: daqAdcTransferSetBuffer, daqAdcTransferGetStat, daqAdcTransferStart Format daqAdcTransferStop(handle) Purpose daqAdcTra

Strona 29

daqAutoZeroCompensate Also See: daqZeroSetup, daqZeroConvert, daqZeroSetupConvert, daqCvtTCSetup, daqCvtTCConvert, daqCvtTCSetupConvert Format d

Strona 30 - Next x%

Prototypes C/C++ daqAutoZeroCompensate(DaqAutoZeroCompT zero); Visual BASIC VBdaqAutoZeroCompensate&(ByVal zero&) Program References DBK19E

Strona 31

This page is intentionally blank. 4.2-70 Daq API Command Reference 988594 Programmer’s Manual

Strona 32

daqCalClearCalTable Also See: Other daqCal commands Format daqCalClearCalTable(handle,tableType,factoryKey) Purpose daqCalClearCalTable clears the fa

Strona 33 - Zero Compensation

daqCalConvertAlso See: daqReadCalFile, daqCalSetup, daqCalSetupConvert Format daqCalConvert(handle, counts, scans) Purpose daqCalConvert performs the

Strona 34

daqCalGetCalEquation Also See: Other daqCal commands Format daqCalGetCalEquation(handle, chanConfig, tableType, calEquation) Purpose daqCalGetCalEqua

Strona 35 - Linear Conversion

Programmer’s Manual 988594 API Programming, General Models 2-3 Here we are only configuring channels on the main unit. If configuring DBK expa

Strona 36 - End Sub

Prototypes C/C++ daqCalGetCalEquation(DaqHandleT handle,DaqCalChanConfigT pChanConfig, DaqCalTableTypeT tableType, DaqCalEquationT CalEquation); Vis

Strona 37 - Using Multiple Devices 3

daqCalGetConstants Also See: daqCalSetConstants, daqCalSelectCalTable, daqCalSelectInputSignal, daqCalSaveConstants Format daqCalGetConstants(handle,

Strona 38

Function Usage Selecting the Calibration Constants to Retrieve Before calling this function, the daqOpen function should be used to open the device fr

Strona 39

daqCalPerformSelfCal Also See: Other daqCal commands Format daqCalPerformSelfCal(handle,chanConfig,calFlags) Purpose daqCalPerformSelfCal selects a c

Strona 40 - Internal Clock Method

daqCalSaveCalTable Also See: Other daqCal commands Format daqCalSaveCalTable(handle,tableType,factoryKey) Purpose daqCalSaveCalTable saves the calib

Strona 41 - Master Clock Method

daqCalSaveConstants Also See: daqCalGetConstants, daqCalSetConstants, daqCalSelectInputSignal, daqCalSelectCalTable Format daqCalSaveConstants(handl

Strona 42

daqCalSelectCalTable Also See: daqCalGetConstants, daqCalSetConstants, daqCalSelectInputSignal, daqCalSaveConstants Format daqCalSelectCalTable(han

Strona 43 - External Clock Method

daqCalSelectInputSignal Also See: daqCalGetConstants, daqCalSetConstants daqCalSelectCalTable, daqCalSaveConstants Format daqCalSelectInputSignal(han

Strona 44

daqCalSetCalEquation Also See: Other daqCal commands Format daqCalSetCalEquation(handle,chanConfig,tableType, calEquation) Purpose daqCalSetCalEquati

Strona 45 - Overview

Function Usage Used to set calibration constants. Prototypes C/C++ daqCalSetCalEquation(DaqHandleT handle,DaqCalChanConfigT chanConfig, DaqCalTableTy

Strona 46 - 938395 Programmer’s Manual

3. Set the Acquisition Rate – How Fast Should Channels be Scanned? In this section we describe how to configure the rate at which data is acquired f

Strona 47

daqCalSetCalPoints Also See: Other daqCal commands Format daqCalSetCalPoints(handle,chanConfig,calData,tableType) Purpose daqCalSetCalPoints sets ca

Strona 48

Prototypes C/C++ daqCalSetCalPoints(DaqHandleT handle, DaqCalChanConfigT chanConfig, DaqCalUserCalDataT calData, DaqCalTableTypeT tableType); Visual

Strona 49

daqCalSetConstants Also See: daqCalGetConstants, daqCalSelectCalTable, daqCalSelectInputSignal, daqCalSaveConstants Format daqCalSetConstants(handle

Strona 50 - Mask and Flag Definitions

Retrieving the Calibration Constants The gains and offsets constants for the handle, channel, gain and range entries selected are set for the device

Strona 51

daqCalSetup Also See: daqReadCalFile, daqCalConvert, daqCalSetupConvert Format daqCalSetup(handle, nscan, readingsPos, nReadings, chanType, chanGain

Strona 52

Returns DerrZCInvParam Invalid parameter value DerrNoError No error For more details on error messages refer to the Daq Error Table. Function Usag

Strona 53

Prototypes C/C++ daqCalSetup(DaqHandleT handle,DWORD nscan, DWORD readingsPos, DWORD nReadings, DcalType chanType, DaqAdcGain chanGain, DWORD startCha

Strona 54

daqCalSetupConvert Also See: daqReadCalFile, daqCalSetup, daqCalConvert Format daqCalSetupConvert(handle, nscan, readingsPos, nReadings, chanType, c

Strona 55

Parameter Type Definitions chanType - DcalType Definitions Channel Configuration Description DcalTypeDefault Any voltage channel Defines a calibrati

Strona 56

daqClose Also See: daqOpen Format daqClose(handle) Purpose daqClose is used to close a device. Parameter Summary Parameter Type Description handle

Strona 57

User Buffer Model Operation The User Buffer Model allows the user to specify either a linear buffer or circular buffer mode. When the linear buffer

Strona 58

daqCreateDevice Format daqCreateDevice(pDevInfo) Purpose daqCreateDevice creates a device in the Windows Registry using the specified device informati

Strona 59 - 941 942 ... 958 959 960

Tcp – (DaqInfoTcpT) Definition Description Format IPMode IP Address connection mode (see DaqIPModeT table below) DaqIPModeT SerialNum Device se

Strona 60

PcCard – (DaqInfoPcCardT) Definition Description Format Socket PC Card socket number DWORD BasePortAddr Base port address DWORD InterruptLevel

Strona 61

daqCvtChannelType Format daqCvtChannelType (ChType, ChSubType, pChTypeStr, ChTypeStrSize) Purpose daqCvtChannelType converts a channel type and sub ty

Strona 62

daqCvtHardwareType Format daqCvtHardwareType (HwType, HwSubType, pHwTypeStr, HwTypeStrSize) Purpose daqCvtHardwareType converts a hardware type and su

Strona 63

daqCvtLinearConvert Also See: daqCvtLinearSetup, daqCvtLinearSetupConvert, daqCvtSetAdcRange Format daqCvtLinearConvert(counts, scans, fValues, nValu

Strona 64

Prototypes C/C++ daqCvtLinearConvert(PWORD counts, DWORD scans, PFLOAT fValues, DWORD nValues); Visual BASIC VBdaqCvtLinearConvert&(counts%, ByVal

Strona 65

daqCvtLinearSetup Also See: daqCvtLinearConvert, daqCvtLinearSetupConvert, daqCvtSetAdcRange Format daqCvtLinearSetup(nscan, readingsPos, nReadings,

Strona 66

Function Usage For all functions of the form daqCvt..., raw data to be converted must be unsigned (i.e., the dafUnsigned value must be set using the

Strona 67

daqCvtLinearSetupConvert Also See: daqCvtLinearConvert, daqCvtLinearSetup, daqCvtSetAdcRange Format daqCvtLinearSetupConvert(nscan, readingsPos

Strona 68

Driver Buffer Model Operation The Driver Buffer Model allows the flexibility of the User Buffer Model in Circular mode without the complication of ha

Strona 69

Parameter Type Definitions avg Definition Description avg = 0 Specifies block averaging--all scans are averaged together to compute a single value f

Strona 70

daqCvtRawDataFormat Also See: daqAdcSetDataFormat, daqAdcTransferSetBuffer Format daqCvtRawDataFormat(buf, action, lastRetCount, scanCount, chanCount)

Strona 71

The buf parameter specifies the pointer to the data buffer containing the raw data. Prior to calling this function, this user-allocated buffer should

Strona 72

daqCvtRtdConvert Also See: daqCvtRtdSetup, daqCvtRtdSetupConvert Format daqCvtRtdConvert(counts, scans, temp, ntemp) Purpose daqCvtRtdConvert takes r

Strona 73

Using Resistance Temperature Detectors (RTDs) Many devices can measure temperatures through use of DBK9 RTD expansion cards. Up to 8 RTDs can attach

Strona 74

daqCvtRtdSetup Also See: daqCvtRtdSetup, daqCvtRtdSetupConvert Format daqCvtRtdSetup(nscan, startPosition, nRtd, rtdType, avg) Purpose daqCvtRtdSet

Strona 75

Function Usage For all functions of the form daqCvt..., raw data to be converted must be unsigned (i.e., the dafUnsigned value must be set using the

Strona 76

daqCvtRtdSetupConvert Also See: daqCvtRtdSetup, daqCvtRtdConvert Format daqCvtRtdSetupConvert(nscan, startPosition, nRtd, rtdType, avg, counts, sca

Strona 77

Parameter Type Definitions RtdType-(RtdType) Definition Description Dbk9RtdType100 Value for a 100 ohm RTD Dbk9RtdType500 Value for a 500 ohm RTD Db

Strona 78

Prototypes C/C++ daqCvtRtdSetupConvert(DWORD nscan, DWORD startPosition, DWORD nRtd, RtdType rtdType, DWORD avg, PWORD counts, DWORD scans, PSHORT tem

Strona 79

Programmer’s Manual 988594 API Programming, General Models 2-7 It is good practice to enable the transfer of data into the buffer first by calli

Strona 80

daqCvtSetAdcRange Also See:daqCvtLinearSetup, daqCvtLinearConvert daqCvtLinearSetupConvert Format daqCvtSetAdcRange (Admin, Admax) Purpose daqCvtSet

Strona 81 - Raw Data Formats

daqCvtTCConvert and daqCvTCConvertF Also See: daqCvtTCSetup, daqCvtTCSetupConvert, daqCvtTCSetupConvertF Format daqCvtTCConvert(counts, scans, temp,

Strona 82

The daqCvtTCConvert takes raw A/D readings from a thermocouple (T/C) and converts them to temperature readings in tenths of degrees Celsius (0.1°C), s

Strona 83

Reading Scan Shorted Channels 0 1 2 3 1 V (ignored) V (ignored) CJC J1a J1b J1c 2 V (ignored) V (ignored) CJC J2a J2b J2c 3 V (ignored)

Strona 84

DBK81,DBK82,DBK83,DBK84 and DaqBook/2020 Gain Codes T/C Type Unipolar Gain Code Bipolar Gain Code Bipolar Gain Codes for Daq/2000 Series devices* a

Strona 85

When using gain values from the preceding tables to measure TCs, the following temperature ranges apply: Thermocouple mV Outputs For Temperature Range

Strona 86

daqCvtTCSetup Also See: daqCvtTCConvert, daqCvtTCConvertF, daqCvtTCSetupConvert, daqCvtTCSetupConvertF Format daqCvtTCSetup(nscan, cjcPosition, nt

Strona 87

Returns DerrTCE_TYPE Invalid thermocouple type DerrTCE_PARAM Parameter out-of-range DerrNoError No error For more details on error messages refer

Strona 88

The first reading of the scan is position 0, and the last reading is (nscan–1). The thermocouple signal readings must immediately follow the CJC readi

Strona 89 - Scan Rate Mode

daqCvtTCSetupConvert and daqCvtTCSetupConvertF Also See: daqCvtTCConvert, daqCvtTCConvertF, daqCvtTCSetup Format daqCvtCSetupConvert(nscan, cjcPo

Strona 90 - Actual Scan Rate

Monitoring User Buffer Model Transfers The User Buffer Model allows the user to specify either a linear buffer or circular buffer mode. When the li

Strona 91

Parameter Type Definitions tcType–(TCType) DBK19 and DBK52 Definition Description Dbk19TCTypeJ Specifies a Type J thermocouple Dbk19TCTypeK Spe

Strona 92

Returns DerrTCE_TYPE Invalid thermocouple type DerrTCE_PARAM Parameter out-of-range DerrNoError No error For more details on error messages refer

Strona 93

This page is intentionally blank. 4.3-56 Daq API Command Reference 908494 Programmer’s Manual

Strona 94 -

daqDacSetOutputMode Also See: daqDacWt, daqDacWtMany Format daqDacSetOutputMode(handle, deviceType, chan, outputMode) Purpose daqDacSetOutputMode se

Strona 95 - DBK16-Read Offset Trimpot

Selecting the Output Channel The output channel for which to set the mode is determined by the chan and the deviceType parameters. The device type is

Strona 96 - DBK43-Read Offset Trimpot

DdomStaticWave- Specifies static waveform/pattern output mode. This mode allows the generation of a non-streamed waveform output to the specified DAC/

Strona 97

When configuring the update transfer buffer via daqDacWaveSetBuffer in static mode, the update transfer buffer stores the update samples in a seperate

Strona 98

daqDacTransferGetStat Also See: daqDacWaveSetBuffer, daqDacTransferStart, daqDacTransferStop Format daqDacTransferGetStat(handle, deviceType, chan,

Strona 99

active Definition Description DdafWaveformActive A waveform/pattern output is active. The trigger may or may not yet have occurred, but the waveform

Strona 100 - Typical flags Settings

Putting it all together The following table shows a number of different scenarios (each assumes a total scan count of 1,000,000 output updates). These

Strona 101 - Settings

Monitoring and Receiving Driver Buffer Model Data The Driver Buffer Model allows the flexibility of the User Buffer Model in Circular mode without t

Strona 102 - Program References

daqDacTransferStart Also See: daqDacWaveSetBuffer, daqDacTransferGetStat daqDacTransferStop, daqDacWaveDisarm Format daqDacTransferStart(handle, dev

Strona 103

Function Usage The term waveform/pattern output is used extensively throughout the entries for the functions of the form daqDac…. This refers to an

Strona 104 - Function Usage

daqDacTransferStop Also See: daqDacWaveSetBuffer, daqDacTransferGetStat, daqDacTransferStart, daqDacWaveDisarm Format daqDacTransferStop(handle, de

Strona 105 - Visual BASIC

Function Usage The term waveform/pattern output is used extensively throughout the entries for the functions of the form daqDac…. This refers to an

Strona 106

daqDacWaveArm Also See: daqDacWaveDisarm Format daqDacWaveArm(handle, deviceType) Purpose daqDacWaveArm arms a waveform/pattern output for a

Strona 107

Before Invoking daqDacWaveArm This function requires that all waveform channels are properly set to the correct modes and that the waveform/pattern ou

Strona 108

Prototypes C/C++ daqDacWaveArm(DaqHandleT handle, DaqDacDeviceType deviceType); Visual BASIC VBdaqDacWaveArm&(ByVal handle&, ByVal deviceType&

Strona 109

daqDacWaveDisarm Also See: daqDacWaveArm Format daqDacWaveDisarm(handle, deviceType) Purpose daqDacWaveDisarm disarms a waveform/pattern output if o

Strona 110

daqDacWaveGetFreq Also See: daqDacWaveArm, daqDacWaveDisarm, daqDacWaveSetFreq Format daqDacWaveGetFreq(handle, deviceType, chan, freq) Purpose

Strona 111

Returns DerrNoError No error Function Usage The term waveform/pattern output is used extensively throughout the entries for the functions of the f

Strona 112

Documents Related to Daq Products Note: During software installation, Adobe® PDF versions of user’s manuals will automatically install onto y

Strona 113

Accessing and Changing a Device Name Using the Control Panel To change a device name by going through the Control Panel you: (1) Go to the Control P

Strona 114 - Returns

daqDacWaveSetBuffer Also See: daqDacTransferStart, daqDacTransferStop Format daqDacWaveSetBuffer(handle, deviceType, chan, buf, scanCount, transfer

Strona 115 - Data Transfer Progress

DerrNoError No error Function Usage The term waveform/pattern output is used extensively throughout the entries for the functions of the form daqDa

Strona 116 - Example Acquisition States

Dynamic Waveform/Pattern Mode with Circular Buffer If the waveform/pattern output mode has been defined to be dynamic (see daqDacSetOutputMode) and a

Strona 117

The transfer output buffer is organized into update data blocks. When the output update clock fires, the next available update data block is loaded fr

Strona 118

Prototypes C/C++ daqDacWaveSetBuffer(DaqHandleT handle, DaqDacDeviceType deviceType, DWORD chan, PWORD buf, DWORD scanCount, DWORD transferMask); Visu

Strona 119

daqDacWaveSetClockSource Also See: daqDacWaveSetFreq, daqDacWaveGetFreq Format daqDacWaveSetClockSource(handle, deviceType, chan, clockSource) Purpo

Strona 120

clockSource-(DaqDacClockSource) Note: For daq9513 specific commands [used only for DaqBoard and DaqBooks of the 100 and 200 Series] refer to Append

Strona 121

Returns DerrNoError No error Function Usage The term waveform/pattern output is used extensively throughout the entries for the functions of the

Strona 122

daqDacWaveSetDiskFile Also See: daqDacWaveSetBuffer, daqDacSetOutputMode, daqDacTransferGetStat Format daqDacWaveSetDiskFile(handle, deviceType, c

Strona 123

Parameter Type Definitions deviceType–(DaqDacDeviceType) Definition Chan Value Description 0 Start the transfer of waveform/pattern output data where

Strona 124 - DazcAutoZero

Daq device errors will send the program into the error handling routine. This is the error handler. Program control is sent here on error. ErrorHand

Strona 125

Function Usage The term waveform/pattern output is used extensively throughout the entries for the functions of the form daqDac…. This refers to an

Strona 126

The driver will automatically calculate the number of complete output update cycles in the file using the offset information, the number of channel

Strona 127

Update/Sample Data Format The dataFormat parameter allows the selection of the format of the output sample data that applies to the file. The file mu

Strona 128

Prototypes C/C++ daqDacWaveSetDiskFile(DaqHandleT handle, DaqDacDeviceType deviceType, DWORD chan, LPSTR filename, DWORD numUpdateCycles, DWORD Offset

Strona 129 - Definition Description

daqDacWaveSetFreq Also See: daqDacWaveGetFreq, daqDacWaveSetClockSource Format daqDacWaveSetFreq(handle, deviceType, chan, freq) Purpose daqDa

Strona 130

Function Usage The term waveform/pattern output is used extensively throughout the entries for the functions of the form daqDac…. This refers to an

Strona 131 - Purpose

daqDacWaveSetMode Also See: daqDacWaveSetTrig, daqDacWaveSetFreq Format daqDacWaveSetMode(handle, deviceType, chan, mode, updateCount) Purpose daq

Strona 132

Function Usage The term waveform/pattern output is used extensively throughout the entries for the functions of the form daqDac…. This refers to an

Strona 133

daqDacWaveSetPredefWave Also See: daqDacWaveSetUserWave Format daqDacWaveSetPredefWave(handle, deviceType, chan, waveType, amplitude, offset, dutyCy

Strona 134

Parameter Type Definitions deviceType–(DaqDacDeviceType) Definition chan Value Description 0 Start the transfer of waveform/pattern output data where

Strona 135

The program will then collect one sample of channels 0 through 7 using the VBdaqAdcRdScan function. ret& = VBdaqAdcRdScan&(handle&,0, 7, b

Strona 136

Prototypes C/C++ daqDacWaveSetPredefWave(DaqHandleT handle, DaqDacDeviceType deviceType, DWORD chan, DaqDacWaveType waveType, DWORD amplitude, DWORD o

Strona 137

daqDacWaveSetTrig Also See: daqDacWaveSetMode Format daqDacWaveSetTrig(handle, deviceType, chan, triggerSource, rising) Purpose daqDacWaveSetTrig s

Strona 138

Returns DerrNoError No error Function Usage The term waveform/pattern output is used extensively throughout the entries for the functions of the for

Strona 139

daqDacWaveSetUserWave Also See: daqDacWaveSetPredefWave Format daqDacWaveSetUserWave(handle, deviceType, chan) Purpose daqDacWaveSetUserWave config

Strona 140

Function Usage The term waveform/pattern output is used extensively throughout the entries for the functions of the form daqDac…. This refers to an

Strona 141

daqDacWaveSoftTrig Also See: daqDacWaveSetTrig Format daqDacWaveSoftTrig(handle, deviceType, chan) Purpose daqDacWaveSoftTrig activates a software

Strona 142 - Offset value to apply

Function Usage The term waveform/pattern output is used extensively throughout the entries for the functions of the form daqDac…. This refers to an

Strona 143

daqDacWt Also See: daqDacWtMany Format daqDacWt(handle, deviceType, chan, dataVal) Purpose daqDacWt sets the output value of a local or expansion DA

Strona 144 - Parameter Values

Selecting the Output Channel The chan and the deviceType parameters determine which output channel’s voltage will be set. The device type is represe

Strona 145

daqDacWtMany Also See: daqDacWt Format daqDacWtMany(handle, deviceTypes, chans, dataVals, count) Purpose daqDacWtMany sets the output values of

Strona 146

Programmer’s Manual 988594 API Programming, General Models 2-13 Next, set the internal sample rate to 1 kHz. ret& = VBdaqAdcSetFreq&(han

Strona 147

Function Usage The channels specified by the daqDacWtMany function must be the appropriate DAC channel types, and the channels must have been configur

Strona 148 - parameters

daqDefaultErrorHandlerAlso See: daqGetLastError, daqProcessError, daqSetDefaultErrorHandler Format daqDefaultErrorHandler(handle, errCode) Purpose

Strona 149

4.5-2 Daq API Command Reference 908794 Programmer’s Manual daqDeleteDevice Format daqDeleteDevice(AliasName) Purpose daqDeleteDevice deletes the

Strona 150 - Parameter Type Definitions

daqFormatError Also See: daqSetDefaultErrorHandler, daqSetErrorHandler, daqProcessError, daqGetLastError, daqDefaultErrorHandler Format daqFormatErr

Strona 151

4.5-4 Daq API Command Reference 908794 Programmer’s Manual daqGetChannelType Format daqGetChannelType(handle, chan, option, pChSubType) Purpose

Strona 152

Programmer’s Manual 908794 Daq API Command Reference 4.5-5 daqGetDeviceCount Also See: daqGetDeviceList, daqOpen Format daqGetDeviceCount (d

Strona 153

4.5-6 Daq API Command Reference 908794 Programmer’s Manual daqGetDeviceInfo Format daqGetDeviceInfo(handle, pDevInfo) Purpose daqGetDeviceInfo g

Strona 154

Programmer’s Manual 908794 Daq API Command Reference 4.5-7 daqGetDeviceInventory Format daqGetDeviceInventory(pInfoList, pInfoListCount, pMatch

Strona 155

4.5-8 Daq API Command Reference 908794 Programmer’s Manual Returns DerrNoError if successful or a DaqError error code (see the DaqError table at

Strona 156

Programmer’s Manual 908794 Daq API Command Reference 4.5-9 daqGetDeviceList Also See: daqGetDeviceCount, daqOpenFormat daqGetDeviceList (de

Strona 157

Indefinite Acquisition, Direct-To-Disk Using Circular Buffers This program demonstrates the use of circular buffers in cycle mode to collect analog i

Strona 158

daqGetDeviceProperties Format daqGetDeviceProperties(daqName, deviceProps) Purpose daqGetDeviceProperties returns the properties for a specified de

Strona 159

Programmer’s Manual 908794 Daq API Command Reference 4.5-11 Function Usage Passing the name of the device in the daqName parameter specifies th

Strona 160 - Moving Averages

4.5-12 Daq API Command Reference 908794 Programmer’s Manual daqGetDriverVersion Also See: daqGetHardwareInfo Format daqGetDriverVersion (versi

Strona 161

Programmer’s Manual 908794 Daq API Command Reference 4.5-13 daqGetHardwareInfo Also See: daqGetDriverVersion, daqOpen Format daqGetHardwa

Strona 162

4.5-14 Daq API Command Reference 908794 Programmer’s Manual Hardware Sub Type Definitions typedef enum { // a hardware sub type of DaqSubTy

Strona 163

Programmer’s Manual 908794 Daq API Command Reference 4.5-15 // sub types for the UsbDaqDevice main type DaqSubTypeUnknownUsbDaqDevice = 0,

Strona 164

DhiProtocol Definition Description DaqProtocolNone Communications not established DaqProtocol4 Standard LPT Port 4-bit mode DaqProtocol8 Standard L

Strona 165 - Definition Description

Programmer’s Manual 908794 Daq API Command Reference 4.5-17 daqGetHardwareType Format daqGetHardwareType(handle, pHwSubType) Purpose daqGetHard

Strona 166

4.5-18 Daq API Command Reference 908794 Programmer’s Manual daqGetInfo Also See: daqGetDriverVersion, daqOpen, daqGetHardwareInfo Format daqGet

Strona 167

Programmer’s Manual 908794 Daq API Command Reference 4.5-19 (continued) Definition Description DdiSerialNumber Serial Number String DdiAdcClo

Strona 168

Programmer’s Manual 988594 API Programming, General Models 2-15 Dim handle&, ret&, channels&(8), gains&(8) flags&(8) Dim buf

Strona 169

4.5-20 Daq API Command Reference 908794 Programmer’s Manual The following table lists the possible return values when DaqGetInfo is set to DdiCh

Strona 170

Programmer’s Manual 908794 Daq API Command Reference 4.5-21 The following tables give the possible return values when DaqGetInfo is set to DdiH

Strona 171

4.5-22 Daq API Command Reference 908794 Programmer’s Manual DdiChSubTypeInfo Value Returned DaqSubTypeDefault Default Sub type DaqSubTypeDa

Strona 172 - Using Thermocouples (T/Cs)

daqGetLastError Also See: daqDefaultErrorHandler, daqProcessError, daqSetDefaultErrorHandler Format daqGetLastError (handle, errCode) Purpose da

Strona 173 - T/C Gains Settings

daqIOGet8255Conf Also See: daqIORead, daqIOReadBit, daqIOWrite, daqIOWriteBit, daqSetOption Format daqIOGet8255Conf(handle, portA, portB, portCHigh

Strona 174 - Daq/2000 Series devices*

Programmer’s Manual 908794 Daq API Command Reference 4.5-25 Prototypes C/C++ daqIOGet8255Conf(DaqHandleT handle, BOOL portA, BOOL portB, BOOL p

Strona 175

4.5-26 Daq API Command Reference 908794 Programmer’s Manual daqIORead Also See: daqIOReadBit, daqIOWrite, daqIOWriteBit, daqSetOption Format da

Strona 176

Programmer’s Manual 908794 Daq API Command Reference 4.5-27 devPort–(DaqIODevicePort) Definition Description Local Bit I/O DiodpBitIO P2 – Add

Strona 177

Expansion I/O There are several expansion options (DBK2x) that allow the DIO to be expanded on the main unit of the device. These expansion units op

Strona 178

Programmer’s Manual 908794 Daq API Command Reference 4.5-29 Prototypes C/C++ daqIORead(DaqHandleT handle, DaqIODeviceType devType, DaqIODeviceP

Strona 179

Both the acquisition and the transfer are now currently active. The transfer to disk will continue indefinitely until terminated by the application.

Strona 180

4.5-30 Daq API Command Reference 908794 Programmer’s Manual daqIOReadBit Also See: daqIORead, daqIOWrite, daqIOWriteBit Format daqIOReadBit(hand

Strona 181

devPort-(DaqIODevicePort) Definition Description Local Bit I/O DiodpBitIO P2 – Addressing by bit P2 Sequential 8-Bit Addressing DiodpP2Local8 P2 –

Strona 182

Local I/O Those devices which support the P2 port have built-in Intel 8255C chips which can be used as general purpose I/O. The 8255C has 3 configura

Strona 183

Programmer’s Manual 908794 Daq API Command Reference 4.5-33 Example of Calculating “whichDevice” for three DBK20 P2 Exp 8255-1 Port C banks. F

Strona 184 - Setting the Output Mode

4.5-34 Daq API Command Reference 908794 Programmer’s Manual daqIOWrite Also See: daqIORead, daqIOReadBit, daqIOWriteBit . Format daqIOWrite(hand

Strona 185

devPort–(DaqIODevicePort) Definition Description Local Bit I/O DiodpBitIO P2 – Addressing by bit P2 Sequential 8-Bit Addressing DiodpP2Local8 P2 –

Strona 186

Local I/O Those devices which support the P2 port have built-in Intel 8255C chips which can be used as general purpose I/O. The 8255C has 3 configur

Strona 187

Programmer’s Manual 908794 Daq API Command Reference 4.5-37 Example of Calculating “whichDevice” for three DBK20 P2 Exp 8255-1 Port C banks. F

Strona 188

4.5-38 Daq API Command Reference 908794 Programmer’s Manual daqIOWriteBit Also See: daqIORead, daqIOReadBit, daqIOWrite Format daqIOWriteBit(ha

Strona 189

Programmer’s Manual 908794 Daq API Command Reference 4.5-39 devPort-(DaqIODevicePort) Definition Description Local Bit I/O DiodpBitIO P2 – Add

Strona 190

Programmer’s Manual 988594 API Programming, General Models 2-17 Assuming the voltage reference is connected to the internal default of 5 V, the

Strona 191

Some devices, such as the DaqBook/2000 Series, DaqLab/2000 Series, DaqScan/2000 Series, DaqBoard/2000 Series [and 2000c Series] products, can also acc

Strona 192

Programmer’s Manual 908794 Daq API Command Reference 4.5-41 Prototypes C/C++ daqIOWriteBit(DaqHandleT handle, DaqIODeviceType devType, DaqIODev

Strona 193

4.5-42 Daq API Command Reference 908794 Programmer’s Manual daqOnline Also See: daqOpen, daqClose Format daqOnline(handle, online) Purpose daqOn

Strona 194

daqOpen Also See: daqClose, daqOnline Format daqOpen(LPSTR daqName) Purpose daqOpen opens an installed device for operation. Parameter Summary Para

Strona 195

• Enter a device name in the text box, or use the default “DaqBoard2K0.” Device Name is for identifying the specific DaqBoard/2000 Series board [ or

Strona 196

daqProcessError Also See: daqSetDefaultErrorHandler, daqGetLastError, daqDefaultErrorHandler Format daqProcessError (handle, errCode) Purpose daqP

Strona 197

daqReadCalFile Also See: daqCalSetup, daqCalConvert, daqCalSetupConvert Format daqReadCalFile (handle, calfile) Purpose daqReadCalFile is the ini

Strona 198

daqSetDefaultErrorHandler Also See: daqDefaultErrorHandler, daqGetLastError, daqProcessError, daqSetErrorHandler Format daqSetDefaultErrorHandler(

Strona 199

daqSetErrorHandler Also See: daqSetDefaultErrorHandler, daqDefaultErrorHandler, daqGetLastError, daqProcessError Format vdaqSetErrorHandler (hand

Strona 200

Programmer’s Manual 908594 Daq API Command Reference 4.6-1 daqSetOptionAlso See: daqAdcExpSetBank Format daqSetOption (handle, chan, flags

Strona 201 - Buffer Management

Generating DAC FIFO Waveforms This program demonstrates the use of the DAC FIFO to generate waveforms. The DAC is configured for output on both chann

Strona 202 - DAC0 DAC2 P3 DO

4.6-2 Daq API Command Reference 957193 Programmer’s Manual (DBK4 Continued) Option Type (optionType) Description Option Value (optionValue) Desc

Strona 203

Programmer’s Manual 908594 Daq API Command Reference 4.6-3 optionType-DaqOptionType continued Option Type (optionType) Description Option Valu

Strona 204

4.6-4 Daq API Command Reference 908594 Programmer’s Manual Option Type and Value Definitions Continued--DaqOptionType Digital I/O, Counter and

Strona 205

Programmer’s Manual 908594 Daq API Command Reference 4.6-5 Option Type and Value Definitions Continued--DaqOptionType 3000 Series Device Optio

Strona 206 - Note 1:

4.6-6 Daq API Command Reference 908594 Programmer’s Manual Option Type and Value Definitions Continued--DaqOptionType 3000 Series Device Option

Strona 207

Programmer’s Manual 908594 Daq API Command Reference 4.6-7 Option Type and Value Definitions Continued--DaqOptionType 3000 Series Device Optio

Strona 208 - Offset for header in bytes

4.6-8 Daq API Command Reference 908594 Programmer’s Manual Option Type and Value Definitions Continued--DaqOptionType 3000 Series Device Option

Strona 209

Programmer’s Manual 908594 Daq API Command Reference 4.6-9 Option Type and Value Definitions Continued--DaqOptionType 3000 Series Device Optio

Strona 210

4.6-10 Daq API Command Reference 908594 Programmer’s Manual Option Type and Value Definitions Continued--DaqOptionType WaveBook/516 and WBK12/1

Strona 211 - Update Cycle Data Blocks

Programmer’s Manual 908594 Daq API Command Reference 4.6-11 Option Type and Value Definitions Continued--DaqOptionType WBK14 Options Option Ty

Strona 212 - Output From File Operation

Digital I/O on P2 This program demonstrates the functions controlling digital I/O on the P2 connector of the device. First, the 3 digital ports on t

Strona 213

4.6-12 Daq API Command Reference 908594 Programmer’s Manual Option Type and Value Definitions -- DaqOptionType WBK16 Options Option Type (option

Strona 214

Programmer’s Manual 908594 Daq API Command Reference 4.6-13 Option Type and Value Definitions Continued--DaqOptionType WBK16 Options Option Ty

Strona 215

4.6-14 Daq API Command Reference 908594 Programmer’s Manual Option Type and Value Definitions Continued--DaqOptionType WBK17 Options Option Typ

Strona 216

Programmer’s Manual 908594 Daq API Command Reference 4.6-15 Option Type and Value Definitions Continued--DaqOptionType WBK17 Options (continue

Strona 217

4.6-16 Daq API Command Reference 908594 Programmer’s Manual Option Type and Value Definitions Continued--DaqOptionType WBK17 Options (continued

Strona 218

Programmer’s Manual 908594 Daq API Command Reference 4.6-17 Option Type and Value Definitions Continued--DaqOptionType WBK17 Options (continue

Strona 219 - DaqBoard/2000c Series

4.6-18 Daq API Command Reference 908594 Programmer’s Manual Option Type and Value Definitions Continued--DaqOptionType WBK17 Options (continued

Strona 220

Programmer’s Manual 908594 Daq API Command Reference 4.6-19 Option Type and Value Definitions Continued--DaqOptionType WBK17 Options (continue

Strona 221

4.6-20 Daq API Command Reference 908594 Programmer’s Manual Option Type and Value Definitions Continued--DaqOptionType WBK18 Options (continued)

Strona 222

Programmer’s Manual 908594 Daq API Command Reference 4.6-21 Option Type and Value Definitions Continued--DaqOptionType WBK18 Options (continue

Strona 223

How to use this Manual This manual is for individuals who write their own programs. If you prefer to use existing out-of-the box software such as Daq

Strona 224

For x% = 0 To 3 ret& = VBdaqIOReadBit&(handle&, DiodtLocal8255&,_ Diodp8255CLow&, 0, 0, x%, bitVal&) Print "T

Strona 225

4.6-22 Daq API Command Reference 908594 Programmer’s Manual Prototypes C/C++ daqSetOption(DaqHandleT handle, DWORD chan, DWORD flags, DaqOptionT

Strona 226

daqSetTimeout Also See: daqWaitForEvent, daqWaitForEvents, daqAdcTransferBufData, daqAdcRdN Format daqSetTimeout (handle, mSecTimeout) Purpose daq

Strona 227 - Setting the DAC Value

4.6-24 Daq API Command Reference 908594 Programmer’s Manual daqSetTriggerEvent Also See: daqAdcSetScan, daqAdcSetTrig, daqAdcSetTrigEnhanced

Strona 228

Programmer’s Manual 908594 Daq API Command Reference 4.6-25 Parameter Type Definitions triggerSource-(DaqAdcTriggerSource) Definition Descrip

Strona 229

The data ranges described in the following table represent the maximum range over which the level and variance parameters can be set for the channe

Strona 230

Programmer’s Manual 908594 Daq API Command Reference 4.6-27 Function Usage Defining the Trigger Channel The channel parameter selects the trigg

Strona 231

Setting the Trigger Level The level parameter is used for those trigger types who depend on an input channel comparison to detect the trigger start

Strona 232 - 908794 Programmer’s Manual

The range of trigger values defined by the variance and level parameters depends also upon the trigSensitivity setting and the type of input channel t

Strona 233

4.6-30 Daq API Command Reference 908594 Programmer’s Manual Prototypes C/C++ daqSetTriggerEvent(DaqHandleT handle, DaqAdcTriggerSource trigSourc

Strona 234

Programmer’s Manual 908594 Daq API Command Reference 4.6-31 daqTest Also See: DaqOpen Format daqTest(handle, command, count, cmdAvailable, resu

Strona 235

Programmer’s Manual 988594 API Programming, General Models 2-21 1. Locate the diskette containing the calibration constants file. 2. Configure

Strona 236

4.6-32 Daq API Command Reference 908594 Programmer’s Manual Function Usage Test types performed by the daqTest function vary; test results are b

Strona 237

Programmer’s Manual 908594 Daq API Command Reference 4.6-33 Prototypes C/C++ daqTest(DaqHandleT handle, DaqTestCommand command, DWORD count, PB

Strona 238

4.6-34 Daq API Command Reference 908594 Programmer’s Manual daqWaitForEvent Also See: daqWaitForEvents, daqSetTimeout Format daqWaitForEvent(

Strona 239

Programmer’s Manual 908594 Daq API Command Reference 4.6-35 daqWaitForEvents Also See: daqWaitForEvent,

Strona 240

4.6-36 Daq API Command Reference 908594 Programmer’s Manual Prototypes C/C++ daqWaitForEvents(DaqHandleT *handles, DaqTransferEvent *events, DWO

Strona 241

daqZeroConvert Also See: daqZeroSetup,daqZeroSetupConvert daqAutoZeroCompensate Format daqZeroConvert (counts, scans) Purpose daqZeroConvert

Strona 242

daqZeroSetup Also See: daqZeroConvert,daqZeroSetupConvert, daqAutoZeroCompensate Format daqZeroSetup (nscan, zeroPos, readingsPos, nReadings) Purpo

Strona 243

daqZeroSetupConvert Also See: daqZeroSetup, daqZeroConvert, daqAutoZeroCompensate Format daqZeroSetupConvert (nscan, zerroPos, readingsPos, nRead

Strona 244

4.6-40 Daq API Command Reference 908594 Programmer’s Manual Prototypes C/C++ daqZeroSetupConvert(DWORD nscan, DWORD zeroPos, DWORD readingsPos,

Strona 245

Programmer’s Manual 908594 Daq API Command Reference 4.7-1 API Error Codes - daqError Error Name Code # hex - dec Description DerrNoError

Strona 246

2-22 API Programming, General Models 988594 Programmer’s Manual Now configure the Daq device with this information, and read 5 scans of data:

Strona 247

4.7-2 Daq API Command Reference 908594 Programmer’s Manual API Error Codes (Cont.) – daqError Error Name Code # hex - dec Description DerrInvC

Strona 248

Programmer’s Manual 908594 Daq API Command Reference 4.7-3 API Error Codes (Cont.) – daqError Error Name Code # hex - dec Description DerrIn

Strona 249 - (continued)

4.7-4 Daq API Command Reference 908594 Programmer’s Manual API Error Codes (Cont.) – daqError Scanned Input Transfers Error Name Code # hex - d

Strona 250

Programmer’s Manual 908594 Daq API Command Reference 4.7-5 API Error Codes (Cont.) – daqError Error Name Code # hex - dec Description DerrI

Strona 251 - DdiExtFeatures

4.7-6 Daq API Command Reference 908594 Programmer’s Manual API Error Codes (Cont.) – daqError Channel Bank/Option Errors Error Name Code # he

Strona 252

Programmer’s Manual 908594 Daq API Command Reference 4.7-7 API Error Codes (Cont.) – daqError Error Name Code # hex - dec Description DerrF

Strona 253

4.7-8 Daq API Command Reference 908594 Programmer’s Manual API Error Codes (Cont.) – daqError Error Name Code # hex - dec Description DerrBufT

Strona 254

Programmer’s Manual 908594 Daq API Command Reference 4.7-9 API Error Codes (Cont.) – daqError Error Name Code # hex - dec Description Derr

Strona 255

4.7-10 Daq API Command Reference 908594 Programmer’s Manual API Error Codes (Cont.) – daqError Error Name Code # hex-dec Description DerrDaqS

Strona 256

Programmer’s Manual 908594 Daq API Command Reference 4.7-11 API Error Codes (Cont.) – daqError Error Name Code # hex-dec Description DerrDa

Strona 257

Zero Compensation Zero compensation removes offset errors while a program is running. This is useful in systems where the offset of a channel may cha

Strona 258

4.7-12 Daq API Command Reference 908594 Programmer’s Manual API Error Codes (Cont.) – daqError Error Name Code # hex-dec Description DerrDacBu

Strona 259

Programmer’s Manual 908594 Daq API Command Reference 4.7-13 API Error Codes (Cont.) – daqError Error Name Code # hex-dec Description DerrSe

Strona 260

908494 Programmer’s Manual This page is intentionally blank.

Strona 261

Programmer’s Manual 988294 Porting Applications A-1 Appendix A A Appendix A was removed due to outdated material.

Strona 262 - Expansion I/O

A-2 Porting Applications 988294 Programmer’s Manual

Strona 263

Programmer’s Manual 939198 Using Borland C++ B-1 Appendix B – Using Borland C++ B This appendix illustrates beginning a project

Strona 264

B-2 Using Borland C++ 939198 Programmer’s Manual

Strona 265

Programmer’s Manual 958293 Custom OEM Installation C-1 Custom OEM Installation C This appendix consists of two parts. Both outline the procedu

Strona 266 - Local I/O

Part 2 – Non-USB Devices Operating under Windows 9x, Me, or Windows NT, 2000, XP Systems Installation by OEM excludes TempBook, Daq PC-Card, Pers

Strona 267

Installation Locations: Place all .DLLs and .CPLs into C:\Windows\System (9X/Me) or C:\Windows\System32 (NT/2000/XP) Place all .VxDs into C:\Windows\

Strona 268

2-24 API Programming, General Models 988594 Programmer’s Manual Public Sub ZeroComp() ' Performs zero compensation on ADCs readings Const

Strona 269

C-4 Custom OEM Installation 958293 Programmer’s Manual This page is intentionally blank.

Strona 270

Appendix D daq9513… Commands D API Programming Model for 9513 Counter-Timer Chip Devices …… D-1 daq9513GetHold …… D-3 daq9513MultCtrl ……

Strona 271

D-2 9513 Counter-Timer 938295 Programmer’s Manual Initialize the 9513 master mode register fout divider: 10, fout source: DcsF2 (100 kHz), compa

Strona 272

daq9513GetHoldAlso See: daq9513SetCtrMode Format daq9513GetHold(handle, deviceType, whichDevice, ctrNum, ctrVal) Purpose daq9513GetHold reads the hold

Strona 273

D-4 9513 Counter-Timer 938295 Programmer’s Manual daq9513MultCtrl Also See: daq9513SetCtrMode, daq9513SetMasterMode Format daq9513MultCtrl(handl

Strona 274

Returns DerrInvCtrCmd Invalid counter command DerrNotCapable No 9513 available DerrNoError No error For more details on error messages,

Strona 275

daq9513SetAlarm Also See: daq9513SetMasterMode Format daq9513SetAlarm(handle, deviceType, whichDevice, alarmNum, alarmVal); Purpose daq9513SetAlarm se

Strona 276

Programmer’s Manual 938295 9513 Counter-Timer Commands D-7 daq9513SetCtrMode Also See: daq9513SetHold,daq9513MultCtrl Format daq9513SetCtrMode (

Strona 277

Parameter Type Definitions gateCtrl-(Daq9513GatingControl) Definition Description DgcNoGating Gating disabled DgcHighTCNM1 Active level high of TC tog

Strona 278

Programmer’s Manual 938295 9513 Counter-Timer Commands D-9 Function Usage Input/Output Parameters The gate control (gateCtrl) parameter dictates

Strona 279

IntToUint = intval Else IntToUint = 65535 + CLng(intval) + 1 End If End Function Linear Conversion Several DBKs use conversions from A/D read

Strona 280 - 957193 Programmer’s Manual

D-10 9513 Counter-Timer 938295 Programmer’s Manual The count type (cntType) parameter selects either binary or binary-coded decimal (BCD) counti

Strona 281

Programmer’s Manual 938295 9513 Counter-Timer Commands D-11 Prototypes C/C++ daq9513SetCtrMode(DaqHandleT handle, DaqIODeviceType deviceType, DWO

Strona 282 - 128, etc. up to 16384)

daq9513SetHold Also See: daq9513SetCtrMode, daq9513SetMasterMode Format daq9513SetHold (handle, deviceType, whichDevice, ctrNum, ctrVal) Purpose daq

Strona 283

daq9513SetLoad Also See: daq9513SetCtrMode, daq9513SetMasterMode Format daq9513SetLoad (handle, deviceType, whichDevice, ctrNum, ctrVal) Purpose daq9

Strona 284 - Option Value (optionValue)

D-14 9513 Counter-Timer 938295 Programmer’s Manual daq9513SetMasterMode Also See: daq9513SetLoad, daq9513MultCtrl, daq9513GetHold, daq9513SetCtr

Strona 285 - Counter Mode

Parameter Type Definitions cntSource-(Daq9513CountSource) Definition Description DcsTcnM1* TC toggled output of previous (N-1) counter DcsSrc1 Counter

Strona 286 - 908594 Programmer’s Manual

daq9513SetCtrMode function). When either the output control is high, the terminal count pulsed, or the terminal count toggled, then the output will b

Strona 287

Programmer’s Manual 938295 9513 Counter-Timer Commands D-17 Prototypes C/C++ daq9513SetMasterMode(DaqHandleT handle, DaqIODeviceType deviceType,

Strona 288

D-18 9513 Counter-Timer 938295 Programmer’s Manual This page is intentionally blank.

Strona 289 - DmotWbk14ExcSrcApply

Programmer’s Manual 986896 Glossary G-1 Glossary This list of terms is intended to give a brief background on some of the terms

Strona 290 - Use DC coupling when

2-26 API Programming, General Models 988594 Programmer’s Manual Public Sub LinearConvert() Dim buffer1%(80), buffer2%(80), flags&(3), hz!(2

Strona 291 - Example:

G-2 Glossary 986896 Programmer’s Manual Array A collection of quantities [of the same data type] that

Strona 292

Programmer’s Manual 986896 Glossary G-3 CJC (Cold Junction Compensation) Channel A Cold Junction Compensation channel is used to

Strona 293

G-4 Glossary 986896 Programmer’s Manual Disarm An action that disables the ability of the device to d

Strona 294

Programmer’s Manual 986896 Glossary G-5 Hold Register Represents the hold register of the 9513. Input Sample The data for a si

Strona 295 - DcovWbk17Mode_Period

G-6 Glossary 986896 Programmer’s Manual Pointer The address of the value [or variable quantity] in memo

Strona 296 - DcovWbk17Mode_Encoder

Programmer’s Manual 986896 Glossary G-7 Software Trigger A trigger event that is detected in the DaqX driver-software. These typ

Strona 297

G-8 Glossary 986896 Programmer’s Manual

Strona 298

Programmer’s Manual 908494 Using Multiple Devices 3-1 Using Multiple Devices 3 Overview…… 3-1 Asynchronous Operation ……3-1 Synchronous Operation

Strona 299

Using this model, each device needs to be opened and a device handle assigned. Here the Controlling Process would open each device session accordi

Strona 300

Programmer’s Manual 908494 Using Multiple Devices 3-3 Synchronous Operation of Multiple Devices The following sections describe methods for sync

Strona 301

viii 908494 Programmer’s Manual This page is intentionally blank.

Strona 302

4 Due to processing latencies, no software trigger sources should be used when attempting to do synchronous device acquisitions. When doing synchro

Strona 303

Programmer’s Manual 908494 Using Multiple Devices 3-5 Each device process is responsible for performing the following steps (in order): 1. Conf

Strona 304

The diagram below shows how the application should operate. Using this model, each device needs to be opened and a device handle assigned. Here th

Strona 305

Programmer’s Manual 908494 Using Multiple Devices 3-7 The Master Device Process should configure the Master Device by performing the following s

Strona 306 - Setting the Trigger Level

Using this model, each device needs to be opened and a device handle assigned. Here the Controlling Process would open each device session according

Strona 307

Daq API Command Reference 4 Overview …… 4.1-1 Command Information Layout...4.1-2 Predefined Parameter Definitions...4.1-4 Mask and Flag Def

Strona 308

Command Information Layout Note: The “daqAPICommand” name, used below, is for illustrative purposes only. daqAPICommand {the API Command name,

Strona 309

Prototypes The prototypes section contains examples in C/C++ or VisualBasic. Examples follow. C/C++ daqAPIcommand(DataTypeA parameter1, DataTyp

Strona 310

Predefined Parameter Definitions Many of the predefined parameter values available in the DaqX header files (.h, .bas, .pas) follow a naming conventio

Strona 311

Prefix Data Type Meaning Dacs… DaqAdcClockSource Acquisition clock (pacing) source definitions Darm… DaqAdcRateMode Rate mode selection (Period, F

Strona 312

Table of Contents 1- Introduction Programmer’s Manual 908494 ix API Features...1-1 Language Support...1-2 Driver Installation...1-2 A Note

Strona 313

Mask and Flag Definitions There are a number of parameter types which represent bit-masked values. These bit-masks are used to represent complex setti

Strona 314

Reading/Interpreting Mask and Flag Values Reading and interpretting mask and flag parameters returned by the DaqX driver can be a bit trickier. What

Strona 315

API Commands, Alphabetic Listing daqAdcArm daqAdcBufferRotate daqAdcCalcTrig daqAdcDisarm daqAdcExpSetBank daqAdcGetFreq daqAdcGetScan daqAdcRd daqAd

Strona 316

API Commands, Grouped by Function Many API commands cannot be used universally across all products. For example, a command that pertains only to ana

Strona 317

General Commands, continued Initialization (Device Initialization) daqClose daqCreateDevice daqDeleteDevice daqGetDeviceCount daqGetDeviceInfo daqGetD

Strona 318

ADC Commands Scan Settings, Expansion, Data Transfer, Triggering … Functional Category Command Arm and Disarm daqAdcArm daqAdcDi

Strona 319 - API Error Codes - daqError

DAC Waveform Commands Settings, Data Transfer, Waveform Control … Functional Category Command Arm and Disarm daqDacWaveArm daqDacWa

Strona 320

daqAdcArm Also See: daqAdcDisarm Format daqAdcArm(DaqHandleT handle); Purpose daqAdcArm arms an ADC acquisition by enabling the currently defined ADC

Strona 321

Prototypes C/C++ daqAdcArm(DaqHandleT handle); Visual BASIC VBdaqAdcArm&(ByVal handle&) Program References DAQADCEX1.CPP, DAQADCEX02.CPP, DAQ

Strona 322

daqAdcBufferRotate Also See: daqAdcTransferGetStat, daqAdcTransferSetBuffer Format daqAdcBufferRotate(handle, buf, scanCount, chanCount, retCount)

Strona 323

x 908494 Programmer’s Manual This page is intentionally blank.

Strona 324

Buffer Position 1 2 3 ... 39 40 41 42 ... 59 59 60 Scan 941 942 943 ... 979 980 981 982 ... 998 999 1000 If the total number of acquired scans

Strona 325

daqAdcCalcTrig Also See: daqSetTriggerEvent, daqAdcSetTrig Format daqAdcSetTrig(handle, bipolar, gainVal, voltageLevel, triggerLevel) Purpose daqAd

Strona 326

Prototypes C/C++ daqAdcCalcTrig(DaqHandleT handle, BOOL bipolar, FLOAT gainVal, FLOAT voltageLevel, PWORD triggerLevel); Visual BASIC VBdaqAdcCalcTrig

Strona 327

daqAdcDisarm Also See: daqAdcArm, daqAdcTransferStop Format daqAdcDisarm(handle) Purpose daqAdcDisarm disarms an ADC acquisition, if one is currently

Strona 328

daqAdcExpSetBank Also See: daqSetOption Format daqAdcExpSetBank(handle, chan, bankType) Purpose daqAdcExpSetBank internally programs intelligent DBK c

Strona 329

Prototypes C/C++ daqAdcExpSetBank(DaqHandleT handle, DWORD chan, DaqAdcExpType bankType); Visual BASIC VBdaqAdcExpSetBank&(ByVal handle&, ByVa

Strona 330

daqAdcGetFreq Also See: daqAdcSetFreq, daqAdcSetClockSource, daqAdcSetRate Format daqAdcGetFreq(handle, freq) Purpose daqAdcGetFreq reads the samplin

Strona 331 - A2 - 162

daqAdcGetScan Also See: daqAdcSetScan, daqAdcSetMux Format daqAdcGetScan(handle, channels, gains, flags, chanCount) Purpose daqAdcGetScan reads the cu

Strona 332 - Programmer’s Manual

Prototypes C/C++ daqAdcGetScan(DaqHandleT handle, PDWORD channels, DaqAdcGain *gains, PDWORD flags, PDWORD chanCount); Visual BASIC VBdaqAdcGetScan&am

Strona 333 - Appendix A A

daqAdcRd Also See: daqAdcSetMux, daqAdcSetTrig, daqAdcSoftTrig Format daqAdcRd(handle, chan, sample, gain, flags) Purpose daqAdcRd takes a single rea

Strona 334 - 988294 Programmer’s Manual

Introduction 1 API Features... 1-1 Language Support... 1-2 Driver Installation... 1-2 A Note Regarding Devices and API Command Applicability

Strona 335

daqAdcRdN Also See: daqAdcSetFreq, daqAdcSetMux, daqAdcSetClockSource, daqAdcSetTrig, daqSetTimeout Format daqAdcRdN(handle, chan, buf, scanCount, t

Strona 336 - 939198 Programmer’s Manual

Returns DerrFIFOFull Buffer overrun DerrInvGain Invalid gain DerrIncChan Invalid channel DerrInvTrigSource Invalid trigger DerrInvLevel Inva

Strona 337 - Custom OEM Installation C

daqAdcRdScan Also See: daqAdcSetMux, daqAdcSetClockSource, daqAdcSetTrig, daqAdcRdN Format daqAdcRdScan(handle, startChan, endChan, buf, gain, flags)

Strona 338 - WIN NT/2000/XP

Prototypes C/C++ daqAdcRdScan(DaqHandleT handle, DWORD startChan, DWORD endChan, PWORD buf, DaqAdcGain gain, DWORD flags); Visual BASIC VBdaqAdcRdSc

Strona 339 - Installation Locations:

daqAdcRdScanN Also See: daqAdcSetMux, daqAdcSetClockSource, daqAdcSetTrig, daqAdcRdN Format daqAdcRdScanN(handle, startChan, endChan, buf, scanCount,

Strona 340 - 958293 Programmer’s Manual

Returns DerrInvGain Invalid gain DerrInvChan Invalid channel DerrInvTrigSource Invalid trigger DerrInvLevel Invalid level DerrFIFOFull Buffe

Strona 341

daqAdcSetAcq Also See: daqAdcArm, daqAdcDisarm, daqAdcSetTrig Format daqAdcSetAcq(handle, mode, preTrigCount, postTrigCount) Purpose daqAdcSetAcq con

Strona 342 - 938295 Programmer’s Manual

DaamNShotRearm -- Once triggered, this mode continues the acquisition for the specified post-trigger count, then re-arms the acquisition with the same

Strona 343

Prototypes C/C++ daqAdcSetAcq(DaqHandleT handle, DaqAdcAcqMode mode, DWORD preTrigCount, DWORD postTrigCount); Visual BASIC VBdaqAdcSetAcq&(ByVal

Strona 344

daqAdcSetClockSource Also See: daqAdcSetFreq, daqAdcGetFreq, daqAdcSetRate Format

Strona 345

Language Support The following three languages are supported: C/C++ Visual Basic The Programming Language Support folder is located i

Strona 346

Returns DerrNoError No error Prototypes C/C++ daqAdcSetClockSource(DaqHandleT handle, DaqAdcClockSource clockSource); Visual BASIC VBdaqAdcSetCloc

Strona 347 - Format

daqAdcSetDataFormat Also See: daqAdcSetMux, daqAdcSetClockSource, daqAdcSetTrig, daqAdcRdN Format daqAdcSetDataFormat(handle, rawFormat, postProc

Strona 348

Post-Acquisition Data Formats The postProcFormat parameter specifies the format for which post-acquisition data will be presented. It is only valid f

Strona 349

daqAdcSetDiskFile Also See: daqAdcTransferGetStat, daqAdcTransferSetBuffer, daqAdcTransferStart, daqAdcTransferStop Format daqAdcSetDiskFile(handle,

Strona 350

Function Usage The daqAdcSetDiskFile function sends acquisition scan data to a disk file specified by the user. Data written to the disk file is the s

Strona 351

daqAdcSetFreq Also See: daqAdcGetFreq, daqAdcSetClockSource, daqAdcSetRate Format daqAdcSetFreq(handle, freq) Purpose daqAdcSetFreq calculates and s

Strona 352

daqAdcSetMux Also See: daqAdcSetScan, daqAdcGetScan Format daqAdcSetMux(handle, startChan, endChan, gain, flags) Purpose daqAdcSetMux sets a simple sc

Strona 353

Prototypes C/C++ daqAdcSetMux(DaqHandleT handle, DWORD startChan, DWORD endChan, DaqAdcGain gain, DWORD flags); Visual BASIC VBdaqAdcSetMux&(ByVal

Strona 354

daqAdcSetRate Also See: daqAdcSetAcq, daqAdcSetTrig, daqAdcArm, daqAdcSetFreq, daqAdcGetFreq Format daqAdcSetRate(handle, mode, state, reqValue, ac

Strona 355

Setting the Scan Rate The daqAdcSetRate function sets the scan rate interval for a channel scan group. The scan rate is set by the reqValue paramete

Strona 356 - Time-of-Day Configuration

Programmer’s Manual 908494 Introduction 1-3 Driver Installation Driver installation uses a 32-bit setup on a Windows 95/98/Me or Windows NT/200

Strona 357

Scan Rate State The state parameter indicates the acquisition state for which the channel scan rate applies. The possible values for this parameter a

Strona 358

Prototypes C/C++ daqAdcSetRate(DaqHandleT handle, DaqAdcRateMode mode, DaqAdcAcqState state, FLOAT reqValue, PFLOAT actualValue); Visual BASIC VBdaqAd

Strona 359 - Glossary

daqAdcSetScan Also See: daqAdcGetScan, daqAdcSetMux Format daqAdcSetScan(handle, channels, gains, flags, chanCount) Purpose daqAdcSetScan configures a

Strona 360 - 986896 Programmer’s Manual

Counter Channel Flags (DaqBook/2000 Series; 1000, 2000, 3000 Series DaqBoards; DaqLab/2000 Series, DaqScan/2000 Series and cPCI DaqBoard/2000c Series,

Strona 361 - 986896 Glossary G-3

gains—(DaqAdcGain) Base Unit Definition Description Applies to … DgainX1 Main Unit-signal gain x 1 Daq products. DgainX2 Main Unit-signal

Strona 362

DBK9 Dbk9VoltageA DBK9-RTD reading A Dbk9VoltageB DBK9-RTD reading B Dbk9VoltageC DBK9-RTD reading C Dbk9VoltageD DBK9-RTD reading D DBK12 Dbk12X1 DB

Strona 363 - 986896 Glossary G-5

DBK18 Definition Description Dbk18X1 DBK18-signal gain x 1 DBK19 Bipolar1 Definition Description Dbk19BiCJC DBK19-Bipolar CJC Dbk19BiTypeJ DBK19

Strona 364

DBK52 Unipolar Definition Description Dbk52UniCJC DBK52-Unipolar CJC Dbk52UniTypeT DBK52-Unipolar Type T TC Dbk52UniTypeE DBK52-Unipolar Type E TC

Strona 365 - 986896 Glossary G-7

Returns DerrNotCapable No digital or counter DerrInvGain Invalid gain DerrInvChan Invalid channel DerrNoError No error For more details on error

Strona 366

The chanCount parameter is not a configuration parameter in the same sense as the channels, gains and flags parameters—it simply represents the total

Komentarze do niniejszej Instrukcji

Brak uwag