User`s manual

[SOURce:]ARBitrary:DAC:FORMat SIGNed command. The
downloading method used depends on the device that downloads the
data. For example, the device may be an embedded controller or a
command module. The AFG output depends on the data received by
the DAC and the currently selected amplitude.
BASIC Program Example (VXISRCE)
The program uses the V360 Controller to download the data using the
VXIbus instead of transferring it directly to the AFG using GPIB.
1 !RE-STORE"VXISRCE"
2 !This program uses the V/360 embedded controller to send waveform
3 !data directly to the AFG dac over the VXIbus backplane.
4 !
10 !Assign I/O path between the computer and E1445A.
20 ASSIGN @Afg TO 1680
30 COM @Afg,Addr
40 !
50 !Call the subprograms which reset the AFG and determine the base
60 !address of the registers in A24 address space.
70 CALL Rst
80 CALL A24_offset
90 !
100 !Scale the amplitude, set the dac data format and dac data source.
110 OUTPUT @Afg;"SOUR:VOLT:LEV:IMM:AMPL 5.11875V" !amplitude
120 OUTPUT @Afg;"SOUR:ARB:DAC:FORM SIGN" !dac data format (signed)
130 OUTPUT @Afg;"SOUR:ARB:DAC:SOUR VXI" !dac data source
140 OUTPUT @Afg;"*OPC?" !Wait for the SCPI commands to complete
150 ENTER @Afg;Complete
160 !
170 !Call the subprogram which sends data directly to the dac.
180 CALL Dac_drive
190 END
200 !
210 SUB A24_offset
220 A24_offset: !Subprogram which determines the base address for
230 !the AFG registers in A24 address space, then adds the
240 !offset and register number to the base to get the
250 !complete address.
260 COM @Afg,Addr
270 !CONTROL 16,25;2 !access A16 space with READIO and WRITEIO
280 A16_addr=DVAL("D400",16) !AFG A16 base address
290 Offset=READIO(-16,A16_addr+6) !read AFG offset register
300 Base_addr=Offset*256 !shift offset for 24-bit address
310 !Add the register number of the high speed data register
320 !to the A24 base address.
330 Addr=Base_addr+IVAL("26",16)
340 SUBEND
Continued on Next Page
270 High Speed Operation Chapter 7