
Annex
NRP2
360
User Manual 1173.9140.02 ─ 07
The IP address is specified using the familiar dot notation (e.g. 89.10.65.59).
●
Annex C of the TCP/IP Instrument Protocol Specification VXI11 contains an RPCL
description of the protocol. The program rpcgen, which is included in any ONC
RPC distribution, is used to generate stubs. Stubs can be inserted into separate C
programs, where the functions from the table below can be called like ordinary
library functions. This procedure requires RPC programming skills.
Table 1-5: VXI11 protocol functions
Function name
Channel
Meaning
create_link()
core
Opens a link to a network instrument device. Socket connec-
tions are set up for the core and abort channels, but no interrupt
channel.
destroy_link()
core
Destroys a link to a network instrument device.
device_write()
core
Transmits an IEEE488.2 or SCPI command as a string to a net-
work instrument device.
device_read()
core
Reads responses from the network instrument device.
device_readstb()
core
Reads the status byte of the network instrument device.
device_trigger()
core
Initiates triggering in a network instrument device; equivalent to
*TRG.
device_clear()
core
Initiates a device clear (DCL) in network instrument device. In
the R&S
NRP2, DCL and abort cause the same actions. Since
device_abort(), unlike device_clear(), runs via the abort channel,
it is not serialized together with other commands, but directly
accesses the device and is therefore preferable.
device_remote()
core
Puts the network instrument device in the remote mode.
device_local()
core
Puts the network instrument device in the local mode.
device_lock()
core
Local lockout (LLO). The keyboard of the network instrument
device is locked.
device_unlock()
core
Undoes the LLO status.
device_docmd()
core
The network instrument device executes a command.
device_abort()
abort
The network instrument device aborts a running command; see
device_clear().
create_intr_chan()
core
An interrupt channel to the network instrument device is set up.
destroy_intr_chan()
core
An existing interrupt channel to the network instrument device is
destroyed.
device_enable_srq()
core
Activates/deactivates the transmission of service requests from
the network instrument device to the network instrument control-
ler.
device_intr_srq()
interrupt
This is the only function the network instrument device calls
from the network instrument device. This function signals a ser-
vice request (SRQ).
Remote control interfaces
北京海洋兴业科技股份有限公司(证券代码:839145)
电话:010-62176775
网址:www.hyxyyq.com