beautypg.com

Error codes, Api error codes - daqerror – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 319

background image

Programmer’s Manual

908594

Daq API Command Reference 4.7-1

API Error Codes - daqError

Error Name

Code # hex - dec

Description

DerrNoError

00h - 0

No error – No errors encountered in performing action.

DerrBadChannel

01h - 1

Specified LPT channel was out-of-range (Error Code Obsolete)

DerrNotOnLine

02h - 2

Requested device is not online - The device cannot be detected.
Corrective Actions:
If using a Book product:

Check power on the device.

Check that cabling is IEEE-1284 compliant and is securely connected to the
device and the computer. (if applicable).

If using a plug in PCI or ISA parallel port, check to ensure that the plug in board
is properly installed and firmly seated in the bus slot.

If using a PCMCIA (PC Card) parallel port card make sure that the card is firmly
and completely inserted into the socket controller. Also make sure that the
operating system properly recognizes the card as a parallel port device and
that its interrupt setting has no conflicts.

Check that the device is properly configured in the Daq Configuration Applet in
the Control Panel. Make sure that the device is connected to the parallel port
for which it is configured.

If using a Daq PC card product:

Check to ensure that the card is properly and fully inserted into the socket.

Check to make sure that the operating system recognizes the card in the
Device Manager of the Control Panel; and make sure that its interrupt setting
has no conflicts.

Check to ensure that the socket in which the card is installed corresponds to
the socket configured in the Daq Configuration Applet in the Control Panel

If using an ISA-board:

Check to ensure that the product is firmly seated into the ISA bus slot.

Check the Base Address and Interrupt settings on the board match the settings
in the Daq Configuration Applet in the Control Panel

If using a PCI-board:

Check to ensure that the product is firmly seated into the PCI bus slot.

Check that the operating system properly recognizes the device in the Device
Manager of the Control Panel.

Check that the Serial Number on the device matches that reported by the Daq
Configuration Applet in the Control Panel.

Check that the Bus and Slot number reported in the Daq Configuration Applet
in the Control Panel match the physical bus and slot number in which the
device is installed.

DerrNoDaqbook

03h - 3

Reserved for future use

DerrBadAddress

04h - 4

Reserved for future use

DerrFIFOFull

05h - 5

FIFO Full detected, possible data corruption. Input FIFO on device has oveflowed –

data loss or data corruption is possible under these conditions.

Corrective Actions:

Reduce scan rate or channel count.

If Book product select a parallel port protocol capable of higher throughput
speeds.

DerrBadDma

06h - 6

DMA is currently being used (DaqBoard(ISA) only) by another device
Corrective Actions:

Change DMA channel for the DaqBoard in the Daq configuration Applet in the
system Control Panel to another setting not used by other devices.

DerrBadInterrupt

07h - 7

Bad or illegal INTERRUPT level specified for device - Interrupt could not be

acquired.

Corrective Actions:

Check system for devices configured with the same interrupt or interrupt
conflicts.

If using DaqBook check system to make sure that the interrupt is enabled on
the LPT port connected to DaqBook (BIOS and system settings configuration in
the Control Panel)

DerrDmaBusy

08h - 8

DMA is currently being used (DaqBoard(ISA) only)
Corrective Actions:

Change DMA channel for the DaqBoard in the Daq configuration Applet in the
system Control Panel to another setting not used by other devices.

DerrInvChan

10h - 16

Invalid analog input channel - Channel number selected cannot be included in the

scan group because it is an invalid channel.

Corrective Actions:

Check channel setting to ensure that it is correlated to a real physical channel
on the main unit or expansion device.

Check that the channel is being configured on the desired device. Device
Handle should correspond to the device for which the channel is being
configured