instrument-control
Low level I/O functions for serial, i2c, spi, parallel, tcp, gpib, vxi11, udp and usbtmc interfaces.
Select category:
Common Functions
General
GPIB
I2C
Modbus
Parallel
Serial (Deprecated)
Serial Port
SPI
TCP (Deprecated)
TCP Client
TCP Server
UDP (Deprecated)
UDP Port
USBTMC
VXI11
Flush the instruments input buffers
Flush the instruments output buffers
read a binblock of data from a instrument device
read data from a instrument device excluding terminator value
Write a IEEE 488.2 binblock of data to a instrument device
Write data to a instrument device including terminator value
write a ASCII command and read data from a instrument device.
Display instrument help
Query available hardware for instrument-control
Resolve a network host name or address to network name and address
Send clear command to Clear GPIB instrument.
Open gpib interface.
Read from gpib interface.
Write data to a gpib interface.
Set new or get existing gpib interface timeout parameter.
Close the interface and release a file descriptor.
Serial polls GPIB instruments.
Triggers GPIB instrument.
Closes connection to GPIB device OBJ
Opens connection to GPIB device OBJ This currently is a dummy function to improve compatibility to MATLAB
Writes string CMD to GPIB instrument
Reads DATA from GPIB instrument
Reads data RES from GPIB instrument
Writes DATA to GPIB instrument
Open i2c interface.
Set new or get existing i2c slave device address.
Close the interface and release a file descriptor.
Read from i2c slave device.
Write data to a i2c slave device.
Closes I2C connection OBJ
Opens I2C connection OBJ
Reads DATA from I2C instrument
Writes DATA to I2C instrument
Get the properties of i2c object.
Set the properties of i2c object.
Open modbus interface using a specified transport of ’tcpip’ or ’serialrtu’.
Get the properties of modbus object.
Read holding register at ADDRESS from modbus device DEV apply masking and write the change data.
Read data from modbus device DEV target TARGET starting at address ADDRESS.
Set the properties of modbus object.
Write data DATA to modbus device DEV target TARGET starting at address ADDRESS.
Write data VALUES to the modbus device DEV holding registers starting at address WRITEADDRESS and then read READCOUNT register values starting at address READADDRESS.
Open Parallel interface.
Close the interface and release a file descriptor.
Sets or Read the Control lines.
Sets or Read the Data lines.
Controls the Data line drivers.
Reads the Status lines.
Closes parallel connection OBJ
Opens parallel interface OBJ
Reads DATA from parallel instrument
Writes DATA to parallel instrument
Open serial interface.
Returns a list of all serial ports detected in the system.
Read from serial interface.
Write data to a serial interface.
Opens SERIAL interface OBJ
Closes SERIAL connection OBJ
Flush the pending input, which will also make the BytesAvailable property be 0.
Flush the output buffer.
Writes formatted string TEMPLATE using optional parameters to serial instrument
Reads DATA from serial instrument
Writes DATA to serial instrument
Get the properties of serial object.
Send a break to the serial port
Set the properties of serial object.
Set new or get existing serial interface baudrate parameter.
Set new or get existing serial interface byte size parameter.
Close the interface and release a file descriptor.
Flush the pending input/output.
Set new or get existing serial interface parity parameter.
Set new or get existing serial interface stop bits parameter.
Set new or get existing serial interface timeout parameter used for srl_read() requests.
Open serial port interface.
Returns a list of all serial ports detected in the system.
Set terminator for ASCII string manipulation
Flush the serial port buffers
Writes formatted string TEMPLATE using optional parameters to serialport instrument
Reads DATA from serial port instrument
Writes DATA to serial port instrument
Get the properties of serialport object.
Get status of serial pins
Read a specified number of values from a serialport using optional precision for valuesize.
Send a break to the serial port
Set the properties of serialport object.
Set the state of the DTR line
Set the state of the RTS line
Writes DATA to serialport instrument
Open a spi interface.
Close the interface and release a file descriptor.
Read from spi slave device.
Write data to a spi slave device.
Write data to a spi slave device and then read same number of values.
Closes SPI connection OBJ
Opens SPI connection OBJ
Reads DATA from a SPI instrument
Writes DATA to SPI instrument
Get the properties of spi object.
Reads DATA from SPI instrument
Set the properties of spi object.
Writes DATA to SPI instrument
Writes and reads DATA from SPI instrument
Open tcp interface.
Close the interface and release a file descriptor.
Read from tcp interface.
Write data to a tcp interface.
Set new or get existing tcp interface timeout parameter used for tcp_read() requests.
Matlab compatible wrapper to the tcp interface.
Closes TCP connection OBJ
Flush the tcp socket buffers
Flush the pending input, which will also make the BytesAvailable property be 0.
Flush the output buffer.
Opens TCP connection OBJ
Writes formatted string TEMPLATE using optional parameters to TCP instrument
Reads DATA from TCP instrument
Writes DATA to TCP instrument
Get the properties of tcp object.
Reads DATA from TCP instrument
Set the properties of tcp object.
Writes DATA to TCP instrument
Open tcpclient interface.
Set terminator on a tcpclient object for ASCII string manipulation
Flush the tcpclient socket buffers
Get the properties of tcpclient object.
Reads DATA from TCP instrument
Set the properties of tcpclient object.
Writes DATA to TCP instrument
Open tcpserver interface.
Set terminator on a tcpserver object for ASCII string manipulation
Flush the tcpserver socket buffers
Get the properties of tcpserver object.
Reads DATA from TCP instrument
Set the properties of tcpserver object.
Writes DATA to TCP instrument
Open udp interface.
Close the interface and release a file descriptor.
Run test SNTP demonstration for udp class
Read from udp interface.
Set new or get existing udp interface timeout parameter used for udp_read() requests.
Write data to a udp interface.
Closes UDP connection OBJ
Flush the udp socket buffers
Flush the pending input, which will also make the BytesAvailable property be 0.
Flush the output buffer.
Opens UDP connection OBJ This currently is a dummy function to improve compatibility to MATLAB
Writes formatted string TEMPLATE using optional parameters to UDP instrument
Reads DATA from UDP instrument
Writes DATA to UDP instrument
Get the properties of udp object.
Reads DATA from UDP instrument
Set the properties of udp object.
Writes DATA to UDP instrument
Open udpport interface.
Configure udpport device to receive multicast data
Set terminator for ASCII string manipulation
Flush the udpport socket buffers
Reads DATA from UDP instrument
Writes DATA to UDP instrument
Writes formatted string TEMPLATE using optional parameters to UDP instrument
Get the properties of udpport object.
Reads DATA from UDP instrument
Set the properties of udpport object.
Writes DATA to UDP instrument
Write data to a udpport including terminator value
Open usbtmc interface.
Read from usbtmc slave device.
Write data to a usbtmc slave device.
Close the interface and release a file descriptor.
Closes USBTMC connection OBJ
Opens USBTMC connection OBJ This currently is a dummy function to improve compatibility to MATLAB
Reads DATA from usbtmc instrument
Writes DATA to an usbtmc instrument
Open vxi11 interface.
Close the interface and release a file descriptor.
Read from vxi11 slave device.
Write data to a vxi11 slave device.
Closes VXI11 connection OBJ
Opens VXI11 connection OBJ This currently is a dummy function to improve compatibility to MATLAB
Reads DATA from vxi11 instrument
Writes DATA to vxi11 instrument
Package: instrument-control