Chapter 11 - daqcommand reference (enhanced api), Overview, Daqcommand reference (enhanced api) – Measurement Computing TempBook rev.3.0 User Manual
Page 125

daqCommand Reference (Enhanced API)
11
TempBook User’s Manual
daqCommand Reference (Enhanced API) 11-1
Overview
The first part of this chapter describes the TempBook driver commands for Windows95 and WindowsNT in
32-bit Enhanced mode (this is the Enhanced API and is not to be confused with the Standard API). 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. Note: The TempBook API is a
subset of the Daq* API which also applies to other products; only TempBook-related commands are
described here.
Beginning on page 11-35, 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.
Function
Description
Page
Device Initialization Prototypes
daqOpen
Open a session with the Daq* (including TempBook)
daqClose
End communication with the Daq* (including TempBook)
daqOnline
Check online status of the Daq* (including TempBook)
daqGetDeviceCount
Return the number of currently configured devices
daqGetDeviceList
Return the list of currently configured devices
daqGetDeviceProperties
Return the properties of specified device
Error Handler Function Prototypes
daqSetDefaultErrorHandler
Set the default error handler
daqSetErrorHandler
Specify a user defined routine to call when an error occurs in any command
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
Event Handling Function Prototypes
daqSetTimeout
Set the time-out value for the Daq* operation (including TempBook)
daqWaitForEvent
Wait for specified Daq* device event (including TempBook)
daqWaitForEvents
Wait for multiple specified Daq* device events (including TempBook)
Utility Function Prototypes
daqGetDriverVersion
Return the software version
daqGetHardwareInfo
Return the hardware version
Expansion Configuration Prototypes
daqSetOption
Set options for a device’s channel/signal path configuration
Custom ADC Acquisition Prototypes - Scan Sequence
daqAdcSetMux
Configure a scan specifying start and end channels
daqAdcSetScan
Configure up to 256 channels making up an A/D or HS digital input scan
daqAdcGetScan
Read the current scan configuration
Custom ADC Acquisition Prototypes - Trigger
daqAdcCalcTrig
Calculate the trigger level and trigger source for an analog trigger
daqAdcSetTrig
Configure an A/D trigger
daqAdcSoftTrig
Save a software trigger command to the DaqBook/DaqBoard
Custom ADC Acquisition Prototypes - Scan Rate and Source
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
Custom ADC Acquisition Prototypes - Scan Count, Rate and Source
daqAdcSetAcq
Set acquisition configuration information
Custom ADC Acquisition Prototypes - Direct-to-Disk
daqAdcSetDiskFile
Specify the disk file for direct-to-disk transfers
Custom ADC Acquisition Prototypes - Acquisition Control
daqAdcArm
Arm an acquisition
daqAdcDisarm
Disarm an acquisition
Custom ADC Acquisition Prototypes - Data Transfer without Buffer Allocation
daqAdcTransferBufData
Transfer scans from driver-allocated buffer to user-specified buffer
daqAdcTransferSetBuffer
Setup a destination buffer for an ADC transfer
daqAdcTransferStart
Start an ADC transfer
daqAdcTransferGetStat
Retrieve status of an ADC transfer