FAQs from Rohde & Schwarz

Query of waveform data when using the history and segmented memory function

Question

I am using the "History and Segmented Memory Funktion". There are several segments in the memory. How can I query the waveform data of the serveral segments?

With "CHAN1:DATA?" I just get the data of the last waveform.

Answer

It is necessary to address the segment number first before you query the data.

As an example there are four segments in the memory. The numbers are shown in the drawing:

Query of waveform data when using the history and segmented memory function

If you send the query "CHAN1:DATA?" you will get segment number 0.

Here is the SCPI sequence to get the data of the "older" segments:

CHAN1:HIST:CURR -1
CHAN1:DATA?
CHAN1:HIST:CURR -2
CHAN1:DATA?
CHAN1:HIST:CURR -3
CHAN1:DATA?

If you need to know how many segments are available in the memory you get that with:
ACQ:AVA?