Appendix d daqx api - command reference, Daqx api - command reference appendix d – Measurement Computing WaveBook rev.3.0 User Manual
Page 197
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
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
daqGetDeviceList
Return the list of currently configured devices
daqGetDeviceProperties
Return the properties of specified device
D-23
Error Handler Function Prototypes
daqSetDefaultErrorHandler
Set the default error handler
daqSetErrorHandler
Specify a user defined routine to call when an error occurs
daqProcessError
Process a driver defined error condition
daqGetLastError
Return the last logged error condition
daqDefaultErrorHandler
Call the default error handler
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.
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
daqAdcSetTrig
Configure an A/D trigger
daqAdcSetTrigEnhanced
Configure an A/D trigger with multiple trigger-event conditions
daqAdcSoftTrig
Send a software trigger command
Custom ADC Acquisition Prototypes - Scan Rate and Source
DacAdcSetClockSource
Sets clock source to drive the ADC acquisition frequency.
dacAdcSetRate
Configure the ADC scan rate with the mode parameter
daqAdcSetFreq
Configure the pacer clock frequency in Hz
daqAdcGetFreq
Read the current pacer clock frequency
D-5