3 - 60 USING THE COMBISCOPE INSTRUMENTS
3.10.4 Reading data from trace memory
The TRACe? query allows you to read the contents from one of the following trace
memory registers:
•
An acquisition trace from one of the input channels (CH1 to CH4).
•
Previously stored trace data from one of the memory registers (M1 to M8 or to
M50). This can be either an acquisition trace or a trace of constant values
(refer to section 3.10.3).
•
The result of a post processing function; CALCulate1 in M1 and CALCulate2
in M2 (refer to section 3.9 "Post processing").
PROGRAM EXAMPLE:
’
*****
’Read the actual channel 1 trace into trace1$ and the filtered
’channel 1 trace into trace2$.
’
*****
DIM trace1 AS STRING
*
2000 ’
Dimensions trace buffer 1
DIM trace2 AS STRING
*
2000 ’
Dimensions trace buffer 2
CALL Send(0, 8, "TRACe? CH1", 1) ’
Requests for channel 1 trace
CALL Receive(0, 8, trace1$, 256) ’
Reads channel 1 trace into trace1$
CALL Send(0, 8, "CALCulate:FEED ’CH1’", 1) ’
Input source = CH1
CALL Send(0, 8, "CALCulate:FILTer:FREQuency:STATe ON", 1)
’
Enables frequency filtering; the filtered channel 1 trace is stored in M1_1
.
CALL Send(0, 8, "TRACe? M1_1", 1) ’
Requests for M1_1 trace
CALL Receive(0, 8, trace2$, 256) ’
Reads M1_1 trace into trace2$