Function
Retrieves specification information of address to use with Device ID.
Format
Ret = GpibGetAddrInfo ( Id, Talker, ListenerArray )
Parameter
Id [ short ]
Specifies DevID or EqpID.
Whichever it specifies, operation does not change.
Talker [ short * ]
Retrieves whether talker is specified or canceled.
|
0 to 30 |
The device is set to talker whose primary address is the value |
|
31 |
The active Talker is canceled (UNT) |
|
-1 |
Talker is not specified |
(Secondary address can be acquired with the value that OR to higher bits of primary address)
ListenerArray [ short * ]
Retrieves whether listeners are specified or canceled with array.
|
0 to 30 |
The device is set to listener whose primary address is the value |
|
31 |
The active Listener is canceled (UNL) |
|
-1 |
Listener is not specified |
(Secondary address can be acquired with the value that OR to higher bits of primary address)
Return Value
Ret [ Long ]
|
0 |
Normality completion |
|
10001 |
Invalid ID was specified |
|
10002 |
Driver can not be called |
|
12062 |
Pointer to Talker is NULL |
|
12063 |
Pointer to ListenerArray is NULL |
Initial Value
|
Talker |
-1 |
Not specify talker |
|
ListenerArray[0] |
-1 |
Not specify listener |
Example
Retrieves setting information for address
|
C |
short Talker, ListenerArray[255]; Ret = GpibGetAddrInfo ( Id, &Talker, ListenerArray ); |
Remark
See Also