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-15).

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-430             31

CEI-520                6

CEI-620             10

CEI-820             11

CEI-715             16

P-708                20

CNIC-A2P          100

PMC-D1             101

PMC-D2             102

EPMC                103

P-SER               104

P-MIO               105

P-DIS                106

P-10SF              107

AMC-1553          108

(c)PCI-1553       109

QPCI-1553         110

QCP-1553          111

QPCX-1553        112                          

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