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 [ short ]
Specifies EqpID.
PrmAddr [ short * ]
Retrieves primary address of slave device.
0 to 30 |
Primary address of slave device |
ScrAddr [ short * ]
Retrieves secondary address of slave device.
0 |
No specification |
96 to 126 |
Secondary address of slave device |
Delim [short * ]
Retrieves the delimiter attached to last of data.
0 |
Not use |
1 |
CR+LF |
2 |
CR |
3 |
LF |
4 |
Reserved |
Return Value
Ret [ Long ]
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
Example
Retrieves setting status from EqpID.
C |
short PrmAddr, ScrAddr, Delim; Ret = GpibSetEquipment ( EqpId, &PrmAddr, &ScrAddr, &Delim); |
Remark
See Also