Remote control commands and queries – Teledyne LeCroy X-STREAM OSCILLOSCOPES Remote Control User Manual
Page 261

Remote Control Commands and Queries
WM-RCM-E Rev D
ISSUED: February 2005
255
QUERY SYNTAX
TC,TD,M1,M2,M3,M4,C1,C2,C3,C4}
. TA through TD are
for compatibility with existing software with earlier instruments.
These four mnemonics are not returned by queries.
If you do not give a parameter, ALL will be assumed.
RESPONSE FORMAT
T
T
I
I
P
P
:
: It may be convenient to disable the response header if the
waveform is to be restored. See the
COMM_HEADER
command
for further details.
AVAILABILITY
oscilloscopes.
EXAMPLES (GPIB)
The following instruction reads the block DAT1 from Memory 1 and
saves it in the file “MEM1.DAT”. The path header “M1:” is saved
together with the data.
FILE$ = “MEM1.DAT”
CMD$ = “M1:WF? DAT1”
CALL
IBWRT(SCOPE%,CMD$)
CALL
IBRDF(SCOPE%,FILE$)
In the following example, the entire contents of Channel 1 are saved
in the file “CHAN1.DAT”. The path header “C1:” is skipped to
ensure that the data can later be recalled into the oscilloscope.
FILE$=“CHAN1.DAT”:RD$=SPACE$(3)
CMD$=“CHDR SHORT; C1:WF?”
CALL
IBWRT(SCOPE%,CMD$)
CALL IBRD(SCOPE%,RD$) Skip first 3 characters
“C1:”
CALL IBRDF(SCOPE%,FILE$) Save data in file
“CHAN1.DAT”
The following instruction illustrates how the waveform data saved in
the preceding example can be recalled into Memory 1:
FILE$ = “CHAN1.DAT”
CMD$
=“M1:”