User`s manual

390 OUTPUT @Afg;"SOUR:ARB:DAC:SOUR INT" !dac data source
400 OUTPUT @Afg;"SOUR:ARB:DAC:FORM SIGN" !dac data format (signed)
410 OUTPUT @Afg;"SOUR:LIST1:SEGM:SEL RAMP" !segment name
420 OUTPUT @Afg;" SOUR:LIST1:SEGM:DEF 200" !segment size
430 OUTPUT @Afg;" SOUR:LIST1:SEGM:VOLT:DAC ";Waveform(*) !waveform pts
440 !
450 OUTPUT @Afg;"SOUR:LIST1:SSEQ:SEL RAMP_OUT" !sequence name
460 OUTPUT @Afg;" SOUR:LIST1:SSEQ:DEF 1" !sequence size
470 OUTPUT @Afg;" SOUR:LIST1:SSEQ:SEQ RAMP" !segment order
480 SUBEND
490 !
500 SUB Rst
510 Rst: !Subprogram which resets the E1445.
520 COM @Afg
530 OUTPUT @Afg;"*RST;*OPC?" !reset the AFG
540 ENTER @Afg;Complete
550 SUBEND
560 !
570 SUB Wf_del
580 Wf_del: !Subprogram which deletes all sequences and segments.
590 COM @Afg
600 OUTPUT @Afg;"FUNC:USER NONE" !select no sequences
610 OUTPUT @Afg;"LIST:SSEQ:DEL:ALL" !Clear sequence memory
620 OUTPUT @Afg;"LIST:SEGM:DEL:ALL" !Clear segment memory
630 SUBEND
640 !
650 SUB Errmsg
660 Errmsg: !Subprogram which displays E1445 programming errors
670 COM @Afg
680 DIM Message$[256]
690 !Read AFG status byte register and clear service request bit
700 B=SPOLL(@Afg)
710 !End of statement if error occurs among coupled commands
720 OUTPUT @Afg;""
730 OUTPUT @Afg;"ABORT" !abort output waveform
740 REPEAT
750 OUTPUT @Afg;"SYST:ERR?" !read AFG error queue
760 ENTER @Afg;Code,Message$
770 PRINT Code,Message$
780 UNTIL Code=0
790 STOP
800 SUBEND
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, SIGN_DAT.FRM, is in directory
“VBPROG” and the Visual C example program, SIGN_DAT.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
These programs are very similar to the example programs used in Chapter 3.
The only difference is that this program transfers the segment data as DAC
codes in the Signed number format instead of voltage values.
228 High Speed Operation Chapter 7