GpibSetDelim


Function

Sets delimiter code and EOI line.

Format

Ret = GpibSetDelim (  Id, Delim, Eoi, Eos )

Parameter

Id [ VB.NET: Short ][ C, C++: short ][ C#: short ]

When using DevID:

Sets delimiter for specified DevID.

When using EqpID:

Sets delimiter for specified EqpID.

 

Delim [ VB.NET: Short ][ C, C++: short ][ C#: short ]

Specifies delimiter to attach to last of data.

 

0

None

1

CR+LF

2

CR

3

LF

4

reserved

 

Eoi [ VB.NET: Short ][ C, C++: short ][ C#: short ]

Sets status of EOI line for transmitting last data.

 

0

Not output

Except 0

Output

 

Eos [ VB.NET: Short ][ C, C++: short ][ C#: short ]

Reserved

 

0

Fixed

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

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

Remarks

 

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 );

See Also

GpibSendData | GpibRecData | GpibGetDelim