Sense:serial[1|2|3|4]:Data? [N] - HP E2261A User Manual

Quad serial m-module
Table of Contents

Advertisement

SENSe:SERIAL[1|2|3|4]:DATA? [ n ]
30 SCPI Command Reference
This command receives either a binary block of information or ASCII text from the
external device. The command stores the binary data in a buffer until a terminating
condition is reached. When the terminating condition is reached, the binary data is
sent to the host (system) computer. The maximum data length is 2048 characters. If
you need to receive more than 2048 characters, multiple
used.
There are three possible terminating conditions for data (see the
SYStem:COMMunicate:SERIAL[1|2|3|4]:TERMinator
The first terminating condition is when a specified terminating character is
received. This condition is NOT valid when receiving binary data; it is only
valid when receiving ASCII text. The terminating character is typically a
Carriage Return (CR) or Line Feed (LF) or both (CRLF). The terminating
character must not be set to
soon as the terminator is received. Use the
SYStem:COMMunicate:SERIAL[1|2|3|4]:TERMinator:RECeive
set the terminating character. The terminator is normally not part of the
returned ASCII string. You can use the
SYStem:COMMunicate:SERIAL[1|2|3|4]:TERMinator:PASSthrough
to make the terminator character(s) part of the returned data string.
The second terminating condition is a specified number of bytes are received
from the external device. Use the
Default and maximum number of bytes is 2048.
The third terminating condition is a time-out. The data is returned to the host
computer when a specified amount of time has elapsed. Set the timeout value
with the
SYStem:COMMunicate:SERIAL[1|2|3|4]:TERMinator
command. The warning message, "Read/write job timeout" is added to the
error queue.
:DATA?
commands).
NONE
. The
:DATA?
command returns the data as
parameter [ n ]
to set the number of bytes.
command must be
command to
command
:
TIMEout

Advertisement

Table of Contents
loading

Table of Contents