Next – Measurement Computing Analyzer488 User Manual

Page 142

Advertising
background image

Section 4

Serial Controller

4.48

NEXT

The NEXT command searches the record memory and locates the next

occurrence of a event specified using the FIND command. NEXT returns a five digit
number which is the record memory location containing the event specified in the
FIND

command. If the event is not found, the number 65535 is returned.

Search direction is that which was specified when the FIND command was last

issued.

This command does not have a query option.

TYPE

Record command

SYNTAX

NEXT

RESPONSE

5 digit number, 0-32767, specifying a location in the record
memory, or 65535 if no match is found.

MODE

Any

BUS STATES

None

QUERY

None

RESPONSE

EXAMPLES

PRINT#1,"FIND MATCH &H0D"

Find first location

containing a

carriage return.

INPUT#1,A$

Get query response

PRINT A$

Response: 6
Location 6 contains a carriage
return character

PRINT#1,"NEXT"

Find next location containing a

INPUT#1,A$:PRINT A$

carriage return and print the
location.

Advertising