User`s manual

330 OUTPUT @Afg;" ARM:STAR:LAY2:SLOP POS" !arm slope
340 OUTPUT @Afg;" ARM:STAR:LAY2:COUN 5" !arm count
350 OUTPUT @Afg;" ARM:STAR:LAY1:COUN 5E3" !repetition count
360 OUTPUT @Afg;"INIT:IMM" !wait-for-arm state
370 SUBEND
380 !
390 SUB Rst
400 Rst: !Subprogram which resets the E1445.
410 COM @Afg
420 OUTPUT @Afg;" *RST;*OPC? !reset the AFG
430 ENTER @Afg;Complete
440 SUBEND
450 !
460 SUB Errmsg
470 Errmsg: !Subprogram which displays E1445 programming errors
480 COM @Afg
490 DIM Message$[256]
500 !Read AFG status byte register and clear service request bit
510 B=SPOLL(@Afg)
520 !End of statement if error occurs among coupled commands
530 OUTPUT @Afg;""
540 OUTPUT @Afg;"ABORT" !abort output waveform
550 REPEAT
560 OUTPUT @Afg;"SYST:ERR?" !read AFG error queue
570 ENTER @Afg;Code,Message$
580 PRINT Code,Message$
590 UNTIL Code=0
600 STOP
610 SUBEND
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, STOPTRIG.FRM, is in directory
“VBPROG” and the Visual C example program, STOPTRIG.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
182 Arming and Triggering Chapter 5