Function
Sets communication status and all kinds of information.
Format
Ret = GpibSetStatus ( 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#: int ]
Sets data for parameter.
Select |
Data |
Description |
08H |
0 to 30 |
Primary address of device |
0AH |
0: Master Except 0 : Slave |
Master/Slave |
0CH |
0 : INT (fixed) 2 : FIFO 3 : BusMaster |
Transfer mode |
15H |
0 : None 1 : CR+LF 2 : CR 3 : LF |
Delimiter |
20H |
0 : Not use 96 to 126 |
Secondary address of device |
21H |
|
Reserved |
22H |
|
Reserved |
23H |
0 : Disabled 1 : Enabled |
Control for ATN line |
28H |
|
Reserved |
2AH |
|
Up-setting 1 for EOS (Reserved) |
2BH |
|
Up-setting 2 for EOS (Reserved) |
2CH |
|
Up-setting 3 for EOS (Reserved) |
2DH |
|
Reserved |
2EH |
|
Reserved |
31H |
0 : Not transmit Except 0 : Transmit |
Setting for transmitting delimiter |
32H |
0 : Not count Except 0 : Count |
Setting for counting delimiter |
36H |
0 : Not transmit Except 0 : 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 |
13052 |
The value of Select is outside the designated range |
23077 |
No current function in device |
23097 |
Being used in other process |
Initial Value
Not open
Remarks
Example
Sets to count delimiter.
C |
short Select; long Data; Select = 0x32; Data = 1; Ret = GpibSetStatus ( Id, Select, Data ); |
See Also