Function
Sets delimiter code and EOI line.
Format
Ret = GpibSetDelim ( Id, Delim, Eoi, Eos )
Parameter
Id [ short ]
When using DevID:
Sets delimiter for specified DevID.
When using EqpID:
Sets delimiter for specified EqpID.
Delim [ short ]
Specifies delimiter to attach to last of data.
|
0 |
None |
|
1 |
CR+LF |
|
2 |
CR |
|
3 |
LF |
|
4 |
reserved |
Eoi [ short ]
Sets status of EOI line for transmitting last data.
|
0 |
Not output |
|
Except 0 |
Output |
Eos [ short ]
Reserved
|
0 |
Fixed |
Return Value
Ret [ Long ]
|
0 |
Normality completion |
|
10001 |
Invalid ID was specified |
|
10002 |
Driver can not be called |
|
11302 |
The value of Delim is outside the designated range |
Initial Value
DevID:
|
Delim |
1 |
CR+LF |
|
Eoi |
1 |
Output |
|
Eos |
10(0AH) |
LF |
EqpID:
None
Example
Sets delimiter to CR+LF and EOI enabled for specified EqpID. (It is same for DevID.)
|
C |
short Delim, Eoi, Eos; Delim = 1; Eoi = 1; Eos = 0; Ret = GpibSetDelim ( EqpId, Delim, Eoi, Eos ); |
Remark
See Also