Agilent Technologies 1660AS TV Converter Box User Manual


 
Transferring waveform data in Byte format
This program sets up the oscilloscope module to move oscilloscope waveform
data from the 1660-series to a controller in Byte format.
10 ! Transferring Waveform Data
20 ! Byte Format
30 !
40 CLEAR 707
50 !*************** Select the oscilloscope ******I****************
60 !
70 OUTPUT 707;":SELECT 2"
80 !
90 !*************** Set EOI on and Headers Off ********************
100 OUTPUT 707;":EOI ON"
110 OUTPUT 707;":SYSTEM:HEADER OFF"
120 !
130 !*************** Set up the Oscilloscope ***********************
140 !
150 OUTPUT 707;":ACQUIRE:TYPE NORMAL"
160 OUTPUT 707;":WAVEFORM:SOURCE CHANNELS"
170 OUTPUT 707 WAVEFORM:FORMAT BYTE"
180 OUTPUT 707;":WAVEFORM:RECORD FULL"
190 !
200 !*************** Start Waveform Acquisition ********************
210 OUTPUT 707;":AUTOSCALE"
220 !
230 ! *************** Dimension a string for the data ***************
240 !
250 DIM Header$[20]
260 !
270 ! *************** Digitize the data and display Waveform menu ***
280 !
290 OUTPUT 707; ":DIGITIZE"
300 OUTPUT 707; ":MENU 2,3"
310 WAIT 5
320 Length=8000
330 ALLOCATE INTEGER Waveform(1:Length)
340 !
350 !*************** Transfer the waveform data ********************
360 !
370 OUTPUT 707;":WAVEFORM:DATA?"
380 ENTER 707 USING "#,l0A";Header$
Programming Examples
Transferring waveform data in Byte format
36–28