Appendix d daqx api - command reference, Daqx api - command reference appendix d – Measurement Computing WaveBook rev.3.0 User Manual

Page 197

Advertising
background image

WaveBook User’s Manual,

6-24-99

daqX API - Command Reference D-1

daqX API - Command Reference

Appendix D

Commands in Alphabetical Order…… D-3
API Reference Tables…… D-31

This chapter describes the WaveBook driver commands for the daqX API (Windows 95/98 and
Windows NT in 32-bit Enhanced mode). The first table lists the commands by their function types as
defined in the driver header files. Then, the prototype commands are described in alphabetical order as
indexed below. Lastly, several reference tables define parameters for: Event-handling definitions, hardware
definitions, ADC trigger-source and miscellaneous definitions, WBK card definitions, the API error codes,
etc.

Note:

The daqx API provides a common Application Programming Interface for 32-bit data acquisition
applications. The WaveBook Enhanced API is a subset of daqX Enhanced API.

Function

Description

Page

Device Initialization Prototypes
daqOpen

Open a session with WaveBook

D-27

daqClose

End communication with the Daq* (including WaveBook)

D-20

daqOnline

Check online status of the Daq* (including WaveBook)

D-26

daqGetDeviceCount

Return the number of currently configured devices

D-22

daqGetDeviceList

Return the list of currently configured devices

D-22

daqGetDeviceProperties

Return the properties of specified device

D-23

Error Handler Function Prototypes
daqSetDefaultErrorHandler

Set the default error handler

D-27

daqSetErrorHandler

Specify a user defined routine to call when an error occurs

D-28

daqProcessError

Process a driver defined error condition

D-27

daqGetLastError

Return the last logged error condition

D-24

daqDefaultErrorHandler

Call the default error handler

D-21

daqFormatError

Return text string for specified error

D-22

Event Handling Function Prototypes
daqSetTimeout

Set the time-out value for the Daq* operation (including WaveBook)

D-28

daqWaitForEvent

Wait for specified Daq* device event (including WaveBook)

D-30

daqWaitForEvents

Wait for multiple specified Daq* device events (including WaveBook)

D-30

Utility Function Prototypes
daqGetInfo

Returns hardware and configuration information.

D-23

daqGetDriverVersion

Return the software version

D-23

daqGetHardwareInfo

Return the hardware version

D-23

Expansion Configuration Prototypes
daqSetOption

Set options for a device’s channel/signal path configuration

D-28

Custom ADC Acquisition Prototypes - Scan Sequence
daqAdcSetMux

Configure a scan specifying start and end channels

D-11

daqAdcSetScan

Configure up to 256 channels in an A/D or HS digital input scan

D-12

daqAdcGetScan

Read the current scan configuration

D-5

Custom ADC Acquisition Prototypes - Trigger
daqAdcCalcTrig

Calculate the trigger level and trigger source for an analog trigger

D-4

daqAdcSetTrig

Configure an A/D trigger

D-13

daqAdcSetTrigEnhanced

Configure an A/D trigger with multiple trigger-event conditions

D-14

daqAdcSoftTrig

Send a software trigger command

D-15

Custom ADC Acquisition Prototypes - Scan Rate and Source
DacAdcSetClockSource

Sets clock source to drive the ADC acquisition frequency.

D-9

dacAdcSetRate

Configure the ADC scan rate with the mode parameter

D-12

daqAdcSetFreq

Configure the pacer clock frequency in Hz

D-11

daqAdcGetFreq

Read the current pacer clock frequency

D-5

Advertising