Appendix D: Programming Example
> rem “Be sure to use the *esr? query to check for measurement errors.”
> measu:immed:type freq
> measu:immed:value
:MEASUREMENT:IMMED:VALUE9.9100E+37
> *esr?
16
> allev?
:ALLEV 2202,”Measurement error, No period found “
> rem “Query out the waveform points, for later analysis on your controller
computer.”
> data:encdg ascii
> curve?
:CURVE 7,6,5,5,5,6,6,6,8 [...]
> rem “Query out the parameters used for calculating the times and voltages of
the waveform points.”
>wfmpre?
:WFMPRE:BYT_NR 1;BIT_NR 8;ENCDG ASCII;BN_FMT RI;BYT_OR
MSB;NR_PT 10000; [...]
D-2 MSO4000 and DPO4000 Series Programmer Manual