R&S AFQ100A
Switchover to Remote Control
1401.3084.32 5.5
E-3
Remote Control via IEC/IEEE Bus
To be able to control the instrument via the IEC/IEEE bus, instrument and controller must be linked by
an IEC/IEEE-bus cable. An IEC/IEEE-bus card, the card drivers and the program libraries for the
programming language used must be provided in the controller.
The controller must address the instrument with the set IEC/IEEE-bus address. The IEC/IEEE bus
address of the instrument is factory-set to 6. It can be changed via IEC/IEEE bus with command
SYSTem:COMMunicate:GPIB: ADDRess
or manually in the
Environment - GPIB
dialog. Addresses
0 to 30 are permissible.
Manually:
Open the dialog Setup - Remote - GPIB ...
Via IEC/IEEE bus:
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
with old address
If status <> VI_SUCCESS Then GoTo ErrorExit:
Cmd = "SYST:COMM:GPIB:ADDR 18"
status = viWrite(vi, Cmd, Len(Cmd), retCount)
'Set instrument to new address
If status <> VI_SUCCESS Then GoTo ErrorExit:
status = viClose(vi)
'Close old connection and reopen
with new address
If status <> VI_SUCCESS Then GoTo ErrorExit:
status = viOpen(defaultRM, "GPIB::18::INSTR",
0, 5000, vi)