beautypg.com

Api error codes (cont.) – daqerror – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 326

background image

4.7-8 Daq API Command Reference

908594

Programmer’s

Manual

API Error Codes (Cont.) – daqError

Error Name

Code # hex - dec

Description

DerrBufTooSmall

6Eh - 110

Buffer specified is too small for the requested operation. This is a general purpose
error code for operations that require a minimum buffer size. This error code is
device and operation specific.
Corrective Action:

Refer to device documentation for specific buffer size requirements for the
operation and device.

DerrInvType

6Fh - 111

Invalid Port/Channel type – This error indicates that an invalid request has been
made to perform an operation on a port or channel which is not capable of
performing the operation.
Corrective Operation:

Check the port/channel number and type to determine if the operation is
appropriate for that channel/port.

DerrArraySize

70h - 112

Used as a catch all for arrays not large enough. Returned if the operation cannot be
performed because the array is too small. This error code can be generated when
calling daqCvtLinearConvert when the number of (scans x nReadings) > nValues
when using moving average or when (nReadings > nValues when using block
averaging.
Corrective Actions:

Check array size definitions and parameters

If using daqCvtLinearConvert check that the nReadings are properly defined
and that daqCvtLinearSetup has been called prior to daqCvtLinearConvert.
Also make sure that scans, nReadings and nValues are properly set for the
averaging mode selected.

DerrBadAlias

71h - 113

Invalid Alias Name – The device alias name does not exist or is corrupt. The name
supplied or its associated device configuration is not properly stored in the operating
system registry. This is normally encountered when trying to open the
device(daqOpen) using the string defined by daqName or get the device properties
(daqDevicePropsT). This problem is generally due to the device either not being
configured at all or a typo in the name of the device.
Corrective Actions:

Run the Daq Configuration Control Panel Applet. Check to see that the device
appears in the device list.

If the device does not appear in the device list then Click and
follow instructions for configuring the device.

If the device does appear in the list double-check spelling and other readable
characters such as _.-><)(. Remember that the device alias names are case
dependent so that the string used should match exactly as it appears in the
device list in the Daq Configuration Applet.

DerrInvCommand

72h - 114

Invalid test command – This error occurs when calling the daqTest API with an
invalid or undefined test. The command parameter is not a valid DaqTestCommand
type.
Corrective Action:

Check the command parameter of the daqTest API to ensure that its value
represents a valid DaqTestCommand type.

DerrInvHandle

73h - 115

Invalid device handle. The handle passed to the DaqX API is not a valid handle.
The handle is created by calling the daqOpen API with the appropriately defined
device name.
Corrective Actions:

Make sure that daqOpen for the device has been invoked before calling any
handle based API’s for the device.

Check the returned handle value from daqOpen. If the handle is < 0 then the
handle is invalid indicating that the device associated with the daqName
parameter could not be successfully opened. (See DerrBadAlias for more
details)

Check that the device has not been inadvertently closed (daqClose) prior to
calling a handle based API.

DerrNoTransferActive

74h - 116

Transfer not active – An operation that requires an input or output transfer to be
active was called when no transfer was currently active. This normally occurs if
daqAdcTransferBufData is called without a transfer currently being active.
Corrective Action:

Make sure that daqAdcTransferStart API has been called and the transfer is
currently active or was active before calling daqAdcTransferBufData.

DerrNoAcqActive

75h - 117

Acquisition not active – An operation that requires an acquisition to be active was
called when no acquisition was currently active.

DerrInvOpstr

76h - 118

Invalid operation string used for enhanced triggering (WaveBook only)

DerrDspCommFailure

77h - 119

Device with DSP failed communication (WaveBook only)

DerrEepromCommFailure

78h - 120

Device with EEPROM failed communication (WaveBook only)