User`s guide

53220A/53230A User’s Guide 247
Formats and Data Flow 7
*RST;*CLS // reset, start from known state
SYST:TIM .001 // set a 1 ms measurement timeout
CONF:FREQ 1E6, 0.1, (@1) // configure measurements
TRIG:COUN 5 // send 5 system triggers
SAMP:COUN 250E3 // take 250k readings/trigger
FORM:DATA REAL, 64 // set data format to binary
DATA:POIN:EVEN:THR 10E3 // set memory threshold to 10k
INIT // initiate readings
// loop until all readings complete
For (cnt=0;cnt<1.25E6;cnt +=10000)
Do
{spoll=STAT:OPER:COND?; // serial poll condition reg
sleep (100) // wait 100 ms
}while !(spoll&4096) // repeat until threshold is reached
R? 10E3 // retrieve readings from memory 10k at a time
Counter File System
Measurements in volatile reading memory and counter configuration states
can be stored in files within the counter’s internal (non-volatile) flash mem-
ory, or on a external USB memory device connected to the ‘host’ port on the
front panel (Figure 7-1).
Files are created within folders on the root directory, or within sub-folders rel-
ative to the root directory. The relationship of folders and files in internal
flash memory and on the USB drive is shown in Figure 7-2.