Function
Retrieves communication status and all kinds of information.
Format
Ret = GpibGetStatus ( Id, Select, Data )
Parameter
Id [ VB.NET: Short ][ C, C++: short ][ C#: short ]
Specifies DevID or EqpID.
Whichever it specifies, operation does not change.
Select [ VB.NET: Short ][ C, C++: short ][ C#: short ]
Sets type of parameter.
Data [ VB.NET: Integer ][ C, C++: long * ][ C#: out int ]
Retrieves data for parameter.
Select |
Data |
Description |
00H |
00H to FFH |
Data in register |
01H |
00H to FFH |
Interrupt status 1 |
02H |
00H to FFH |
Interrupt status 2 |
03H |
00H to FFH |
Serial poll register |
04H |
00H to FFH |
Address status register |
05H |
00H to FFH |
Command path through register |
06H |
00H to FFH |
Address 0 register |
07H |
00H to FFH |
Address 1 register |
08H |
0 to 30 |
Primary address of device |
09H |
0000H to FFFFH |
IRQ number |
0AH |
0 : Master 1 : Slave |
Master/Slave |
0BH |
0000H to FFFFH |
I/O address |
0CH |
0 : INT (fixed) 2 : FIFO 3 : BusMaster |
Transfer mode |
0DH |
Fixed |
DMA channel |
0EH |
22H : GP-IB(LPCI)F/GP-IB(PCI)F 23H : GP-IB(LPCI)FL/GP-IB(PCI)FL |
Board type |
0FH |
Unfixed |
Reserved |
10H |
0 : Un-received 1 : Received ( Read reset ) |
SDC/DCL receiving |
11H |
0 : Un-received 1 : Received ( Read reset ) |
GET receiving |
12H |
0 : Un-received 1 : Received |
SRQ receiving |
13H |
0 : Non-talker 1 : Talker |
TA status |
14H |
0 : Non-listener 1 : Listener |
LA status |
15H |
0 : None 1 : CR+LF 2 : CR 3 : LF |
Delimiter |
16H |
0 : Un-received 1 : Received |
EOI receiving |
17H |
0 : Un-received 1 : Received |
IFC receiving |
18H to 1FH |
Unfixed |
Reserved |
20H |
0 : Not use 96 to 126 |
Secondary address of device |
21H |
0000H to FFFFH |
Eos byte data |
22H |
0 : Disabled 1 : Enabled |
Eoi status |
23H |
0 : Disabled 1 : Enabled |
ATN line status |
24H |
0 : Un-received 1 : Received |
REM status |
25H |
0 : Un-received 1 : Received |
LOK status |
26H |
0 : Non-talker 1 : Talker |
TA status on device |
27H |
0 : Non-listener 1 : Listener |
LA status on board |
28H |
0 : Un-generated 1 : Generated |
END generating status |
29H |
0 : Disabled 1 : Enabled |
CIC status |
2AH |
0 : Not end 1 : End |
Setting for ending reception on detecting EOS |
2BH |
0 : Disabled 1 : Enabled |
EOI setting for transmitting EOS |
2CH |
0 : Disabled 1 : Enabled |
Setting for EOS 8-bit comparison |
2DH |
0 : Disabled 1 : Enabled |
Setting for END on EOS coincidence |
2EH |
0 : Same-phase 1 : Inverse-phase |
Setting for polarity of parallel poll (ist bit) |
2FH |
Unfixed |
Error codes of asynchronous functions |
30H |
Unfixed |
Number of received bytes of asynchronous functions |
31H |
0 : Not transmit 1 : Transmit |
Setting for transmitting delimiter |
32H |
0 : Not count 1 : Count |
Setting for counting delimiter |
33H |
Unfixed |
Check for transmitting status |
34H |
Unfixed |
Number of transmitted commands |
35H |
Unfixed |
Extend error status |
36H |
0 : Not transmit 1 : Transmit |
EOI setting for transmitting SRQ |
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 |
13113 |
Pointer to Data is NULL |
23102 |
The value of Select is outside the designated range |
23147 |
Being used in other process |
Initial Value
Not open
Remarks
Example
Retrieves number of transmitted commands.
C |
short Select; long Data; Select = 0x34; Ret = GpibGetStatus ( Id, Select, &Data ); if ( Ret == 0) Printf ("%ld\n", Data); |
See Also