This error usually indicates the Device ID (DEVID) value is set wrong. The ADT_L0.h file contains the definitions of Alta device codes. For Example:
/* The DEVICE ID is a 32-bit value that identifies the following per the ADT_L0.h file:
* bits 28-31 = Backplane Type (0 = Simulated, 1 = PCI, 2 = ETHERNET)
* bits 20-27 = Board Type
* (0 = SIM-1553, 1 = TEST-1553, 2 = PMC-1553, 3 = PC104P-1553, etc..)
* bits 16-19 = Board Number (0 to 15)
* bits 8-15 = Channel Type (0x10 = 1553, 0x01 = Global)
* bits 0-7 = Channel Number (0 to 255)
*/
#define DEVID_GLOBAL (ADT_PRODUCT_PCCD1553 | ADT_DEVID_BOARDNUM_01 | ADT_DEVID_CHANNELTYPE_GLOBALS | ADT_DEVID_CHANNELNUM_01)
The error 3 usually means the ADT_PRODUCT_XXXXXX is set wrong above.
You may also get error 3 if the device/card is not in the system.