ar_query_device

short ar_query_device (short board, short * boardType);

Purpose

This function opens a session to the specified device, determines the identification of that device, then closes the session with the device and returns the identification to the calling application.  This routine should not be invoked with the same board parameter value used in a previous invocation of AR_LOADSLV without first terminating the session with that device via invocation of AR_CLOSE.                                   

Parameters

Input

Name

Type

Description

board

short

(input) Device Number for the product/resource to query, (valid range is 0-127).

Output

 

 

Name

Type

Description

boardType

short (passed by reference)

(output) Identification of the board detected, with valid values defined as follows:

CEI-830             19

CEI-430             21

AMC-A30           22

CEI-530             26

R-830RX            27

RAR-CPCI          28

RAR-EC             29

RAR-PCIE          30

CEI-430A           31

RCEI-830X820   34

RAR-XMC           35

RCEI-830A         36

RAR-MPCIE        38

CEI-520             6

CEI-620             10

CEI-820             11

CEI-715             16

P-708                20

CNIC-A2P          100

EPMC                103

P-SER               104

P-DIS                106

AMC-1553          108

(c)PCI-1553       109

QPCI-1553         110

QCP-1553          111

QPCX-1553        112

R15-EC              113

R15-XMC           114

R15-PCIE           115

R15-LPCIE         116

R15-XMC2         117

RAR15-XMC       119

Return Value

Name

Type

Description

status

short

status of the function call, with valid values of:
ARS_NORMAL                  Success.
ARS_INVBOARD              The board parameter value was invalid.

References

Utility Functions
Alphabetical Function Index
Hierarchical Function Index

CEI-x30 API Description