Main Content

Interface-Based Communication

Communicate with instruments using interfaces

With interface-based communication, the basic workflow comprises common steps regardless of interface type. First, you create an object of the interface type you are using to connect to the instrument. Then, you can set connection and communication properties based on your workflow and instrument configuration. Next, write data to and read data from the instrument. Finally, when you are done working with your instrument, disconnect from it by clearing the object from the workspace.

Functions

tcpclientCreate TCP/IP client connection with TCP/IP server
tcpserverCreate TCP/IP server
udpportConnect to UDP socket
serialportConnection to serial port
visadevCreate connection to device using VISA

Apps

Modbus ExplorerRead and write to Modbus coils and registers
TCP/IP ExplorerConnect to and communicate with TCP/IP server
Serial ExplorerCommunicate with devices connected to serial port
Test and Measurement ToolControl oscilloscopes and other instruments

Topics

Create Interface Object

Communicate with your instrument by creating an object that represents a connection to the instrument.

Configure and Return Properties

Configure instrument object behavior by assigning values to properties.

Write and Read Data

Write and read ASCII string data, binary data, or binblock data with the instrument.

Use SCPI Commands

Use SCPI commands to control multiple instruments using similar functions.