Interface / Standard
Using SCPI Commands from MATLAB
Control Instruments using SCPI Commands
MATLAB supports the programming of instruments using SCPI commands through Instrument Control Toolbox. Once data is in MATLAB, you can analyze and visualize the data for analysis tasks such as signal processing, statistical analysis, digital filtering, and curve fitting. You can also create graphical interfaces for collecting and analyzing your data and automating tests.
SCPI (Standard Commands for Programmable Instruments) defines a syntax and text-based commands for controlling programmable test and measurement instruments.
|Clear the status
|Enable standard event
|Query if event is enabled and standard
|Query standard event status register
|Query instrument identification
|Query if operation is complete
|Query id service request is enabled
|Query read of status byte
|Query instrument self-test
|Wait to continue
You can program instruments directly from MATLAB using SCPI commands and Instrument Control Toolbox. The SCPI standard does not define a physical interface and can be used over several different physical interfaces from MATLAB, such as:
SCPI commands are ASCII-based and can be sent directly from MATLAB using the toolbox and the
fscanf commands and the associated command for the interface.
- IVI Foundation - SCPI Consortium
- Using SCPI Commands - MATLAB & Simulink
- Command Expert - Easily control Keysight instruments from MATLAB - Third-Party Products & Services - MATLAB & Simulink
- How to use Rohde & Schwarz Instruments in MATLAB
- Using MATLAB Applications with Anritsu Signal Analyzer Application Note
- Read Waveform from Tektronix TDS 1002 Scope Using SCPI Commands - MATLAB & Simulink Example (mathworks.com)