Buffer data bn – Measurement Computing Analyzer488 User Manual

Page 219

Advertising
background image

Section 6

Instrument Simulator

6.9

Buffer Data Bn

The Buffer Data command, Bn, allows the user to write data to the data buffer.

The data buffer consists of 4096 locations. Each location can store one character (a
binary number from 0 to 255). Data sent to the buffer is stored as it is received. When
the Analyzer488 is commanded to output data from the data buffer, all data currently in
the buffer is output in the order that it was received. The Execute command (X) is not
required when using the Buffer Data command.

The data sent with this command may be a delimited string or a number in the

range 0 to 255. Once the buffer is full, any excess data sent to the buffer will be
ignored. The entire buffer may be cleared by executing the Clear Buffer (C0)
command.

A string is a list of alphanumeric characters delimited at the beginning and end

by single character. The delimiter can be a Slash (/), Backslash (\), Single Quote ('),
or Double Quote ("). The delimiter is taken as the first of these characters after the B
and the Analyzer488 will accept all input up to the next occurrence of that character as
the string to be displayed. It is up to the user to insure that the opening and closing
delimiters match.

SYNTAX:

B/string/

Send a string to the data buffer. A string may be

one or more characters.
Bn,m,z

Send a binary value to the data buffer (n,m,z can

be 0 to 255)
B?

Always returns B0

Note: Any number of data values may be sent when specifying data
as binary values.

EXAMPLES:

PRINT#1,"CLEAR10"

reset the Analyzer488

PRINT#1,"OUTPUT10;C0X"

clear the Analyzer488 data buffer

PRINT#1,"OUTPUT10;B/NDCV+0.0000E+0/"

send the

string

NDCV+0.0000E+0

to the data

buffer

PRINT#1,"OUTPUT10;B13,10"

send ASCII codes for a

Carriage Return and Line Feed

PRINT#1,"OUTPUT10;W21X"

select Waveform 21 (the user

waveform)

Advertising