R&S AFQ100A
Getting Started
1401.3084.32 5.3
E-3
Getting Started
The short and simple operating sequence given below permits fast putting into operation of the
instrument and setting of its basic functions. As a prerequisite, the IEC/IEEE-bus address, which is
factory-set to 28, must not have been changed.
1. Connect instrument and controller using IEC/IEEE-bus cable and switch them on.
2. Write and start the following program on the controller:
Dim defaultRM As ViSession
Dim status As ViStatus
Dim vi As ViSession
Dim Cmd As String
Dim retCount As ViUInt32
Dim ErrorDescription As String *
VI_FIND_BUFLEN
status = viOpenDefaultRM(defaultRM)
'Open default resource manager
If status <> VI_SUCCESS Then GoTo
ErrorExit:
status = viOpen(defaultRM,
"GPIB::6::INSTR", 0, 5000, vi)
'Open connection to instrument
If status <> VI_SUCCESS Then GoTo
ErrorExit:
Cmd = "*RST;*CLS;*WAI"
status = viWrite(vi, Cmd, Len(Cmd),
retCount)
'Reset instrument and clear status
registers
If status <> VI_SUCCESS Then GoTo
ErrorExit:
Cmd = "OUTP:STAT ON"
status = viWrite(vi, Cmd, Len(Cmd),
retCount)
'Switch on output
If status <> VI_SUCCESS Then GoTo
ErrorExit:
Cmd = "WAV:SEL 'C:\Program
Files\Rohde&Schwarz\AFQFirmware\Lists\
Waveforms\sine10kHz.wv'"
status = viWrite(vi, Cmd, Len(Cmd),
retCount)
'Load waveform file
If status <> VI_SUCCESS Then GoTo
ErrorExit:
Cmd = "SOUR:STAT ON"
status = viWrite(vi, Cmd, Len(Cmd),
retCount)
'Switch on generation of waveform file