GpibGetEquipment


Function

Retrieves Equipment ID (EqpID).

The functions using EqpID can be performed after this function is performed.

Format

Ret = GpibSetEquipment ( EqpId, PrmAddr, ScdAddr, Delim )

Parameter

EqpId [ VB.NET: Short ][ C, C++: short ][ C#: short ]

Specifies EqpID.

 

PrmAddr [ VB.NET: Short ][ C, C++: short * ][ C#: out short ]

Retrieves primary address of slave device.

 

0 to 30

Primary address of slave device

 

ScrAddr [ VB.NET: Short ][ C, C++: short * ][ C#: out short ]

Retrieves secondary address of slave device.

 

0

No specification

96 to 126

Secondary address of slave device

 

Delim [ VB.NET: Short ][ C, C++: short * ][ C#: out short ]

Retrieves the delimiter attached to last of data.

 

0

Not use

1

CR+LF

2

CR

3

LF

4

Reserved

Return Value

Ret [ VB.NET: Integer ][ C, C++: long ][ C#: int ]

 

0

Normality completion

10001

Invalid ID was specified

10002

Driver can not be called

10512

Pointer to PrmAddr is NULL

10513

Pointer to ScrAddr is NULL

10514

Pointer to Delim is NULL

Initial Value

None

Remarks

 

Example

Retrieves setting status from EqpID.

C

short PrmAddr, ScrAddr, Delim;

Ret = GpibSetEquipment ( EqpId, &PrmAddr, &ScrAddr, &Delim);

See Also

GpibSetEquipment