User`s manual
1340 B=SPOLL(@Afg_s)
1350 !End of statement if error occurs among coupled commands
1360 OUTPUT @Afg_s;""
1370 OUTPUT @Afg_s;"ABORT" !abort output waveform
1380 REPEAT
1390 OUTPUT @Afg_s;"SYST:ERR?" !read servant AFG error queue
1400 ENTER @Afg_s;Code,Message$
1410 PRINT Code,Message$
1420 UNTIL Code=0
1430 STOP
1440 SUBEND
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, LOCKSTEP.FRM, is in directory
“VBPROG” and the Visual C example program, LOCKSTEP.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
Using Stop Triggers The STOPTRIG program shows you how to use stop triggers to abort the
remaining cycles of a cycle count (
ARM[:STARt][:LAYer[1]]:COUNt). The
program sets up five, 5,000 cycle bursts. Stop triggers are used to abort the
burst before all of the 5,000 cycles occurs. An external arm is used to start
the bursts. A stop trigger aborts a burst at the end of the current cycle.
The steps of the program are:
1. Set the (start) trigger source
TRIGger[:STARt]:SOURce <source>
2. Set the stop trigger source
TRIGger:STOP:SOURce <source>
3. Set the (external) stop trigger slope
TRIGger:STOP:SLOPe <edge>
4. Set the output frequency
[SOURce:]FREQuency[1][:CW | :FIXed] <frequency>
5. Set the output function
[SOURce:]FUNCtion[:SHAPe] <shape>
6. Set the signal amplitude
[SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude] <amplitude>
7. Set the arm source
ARM[:STARt]:LAYer2:SOURce <source>
8. Set the (external) arm slope
ARM[:STARt]:LAYer2:SLOPe <edge>
9. Set the arm count
ARM[:STARt]:LAYer2:COUNt <number>
180 Arming and Triggering Chapter 5