![Rohde & Schwarz 1321.1211.02 User Manual Download Page 331](http://html1.mh-extra.com/html/rohde-and-schwarz/1321-1211-02/1321-1211-02_user-manual_1477772331.webp)
Remote Commands
R&S
®
Cable Rider ZPH
324
User Manual 1321.0950.02 ─ 07
–
status = viOpenDefaultRM(defaultRM)
'open default resource manager
–
status = viOpen(DefaultRM, "TCPIP::172.16.10.10", 0, 0,
vi)
'in case of USB connection
–
status = viopen(DefaultRM, "TCPIP::xxx.xxx.xxx.xxx", 0, 0,
vi)
'in case of a LAN connection, with xxx.xxx.xxx.xxx = IP address
–
cmd = "*RST;*CLS"
–
status = viWrite(vi, Cmd, Len(Cmd), retCount)
'reset instrument and clear status registers
–
cmd = "FREQ:CENT 100MHz"
–
status = viWrite(vi, Cmd, Len(Cmd), retCount)
'set center frequency to 100 MHz
–
cmd = "FREQ:SPAN 10MHz"
–
status = viWrite(vi, Cmd, Len(Cmd), retCount)
'set span to 10 MHz
–
cmd = "DISP:TRAC:Y:RLEV -10dBm"
–
status = viWrite(vi, Cmd, Len(Cmd), retCount)
'set reference level to -10 dBm
–
viclose vi
–
viclose default RM
The instrument now performs a sweep in the frequency range of 95 MHz to 105 MHz.
Changing the IP Address
In order to operate the instrument via remote control, it must be accessed via LAN (IP
address) or USB (fixed IP address). If the factory-set remote control address does not
fit in the network environment, it can be changed.
Refer
Chapter 4.3, "Connecting the R&S Cable Rider ZPH to a PC"
,
on page 59 for
instructions on how to change the IP address.
14.3
Instrument Model and Command Processing
The block diagram in
Figure 14-4
shows how SCPI commands are serviced in the
instrument. The individual components work independently and simultaneously. They
communicate with each other by means of so-called "messages".
Instrument Model and Command Processing