General Programming 6 
 
Keysight M8195A Revision 2 – Arbitrary Waveform Generator User’s Guide    243 
Query 
Define a write-only segment with length 1280 samples on channel 1. 
Returns the segment Id. 
:TRAC1:DEF:WONL:NEW? 1280 
 
 
 
6.21.8  :TRAC[1|2|3|4]:DATA[?] 
 
<segment_id>,<offset>,(<length>|<block>|<numeric_values>) 
  < segment_id > – id of the segment 
  <offset> - offset from segment start in samples (marker samples do not 
count) to allow splitting the transfer in smaller portions 
  <length> - number of samples to read in the query case 
  <block> - waveform data samples in the data format described above in 
IEEE binary block format 
  <numeric_values> - waveform data samples in the data format described 
above in comma separated list format 
 
Use this command to load waveform data into the module memory. If <segment_id> 
is already filled with data, the new values overwrite the current values. If length is 
exceeded error -223 (too much data) is reported. 
Reading is only possible, when the signal generation is stopped. Writing is possible, 
when signal generation is stopped or when signal generation is started in dynamic 
mode. 
The target (Internal/Extended Memory) of the waveform transfer is given by the value 
set by the TRAC:MMOD command for the channel. The data format (wavefoirm 
samples only or interleaved waveform and marker samples) is given by the DAC 
Mode set by the INST:DACM command. 
When transferring data to Extended Memory, the parameter <offset> must contain a 
value corresponding to an even number of memory vectors. The number of samples 
in a memory vector equals the waveform memory granularity. This limitation does not 
exist for transferring data to Internal Memory. 
 
This SCPI has the following syntax for command/query: 
Command 
:TRACe[1|2|3|4][:DATA] <segment_id>,<offset>,(<block>|<numeric_values>) 
Query 
:TRACe[1|2|3|4][:DATA][?] <segment_id>,<offset>,<length>