User`s manual
5. Select the DAC Data Format
[SOURce:]ARBitrary:DAC:FORMat UNSigned
This command selects the UNSigned number format.
7. Store the Waveform Segment as Unsigned DAC Data
[SOURce:]LIST[1][:SEGMent]:VOLTage:DAC <voltage_list>
This command stores the waveform segment into segment memory
according to the Unsigned number format set by the
[SOURce:]ARBitrary:DAC:FORMat UNSigned command.
BASIC Program Example (UNS_DAT)
Use the same BASIC program as the “SIGN_DAT” program beginning on
page 227. The only difference is that this program generates (in line 360)
and transfers (in line 400) the segment data as DAC codes in the Unsigned
number format instead of the Signed format. The following lines show the
differences of the two program examples:
1 !RE-STORE"UNS_DAT"
300 SUB Ramp_wave
310 Ramp_wave: !Subprogram which defines a ramp waveform and output
320 !sequence.
330 COM @Afg
340 DIM Waveform(1:200) !Calculate waveform points as dac codes
350 FOR I=-100 TO 99
360 Waveform(I+101)=((I*.050505)/.00125)+4096
370 NEXT I
380 !
390 OUTPUT @Afg;"SOUR:ARB:DAC:SOUR INT" !dac data source
400 OUTPUT @Afg;"SOUR:ARB:DAC:FORM UNS" !dac data format (unsigned)
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
Visual BASIC and
Visual C/C++ Program
Versions
The Visual BASIC example program, UNS_DAT.FRM, is in directory
“VBPROG” and the Visual C example program, UNS_DAT.C, is in
directory “VCPROG” on the CD that came with your Agilent E1445A.
These program is 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 Unsigned number format instead of voltage values.
230 High Speed Operation Chapter 7