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.
|*CLS||Clear the status|
|*ESE||Enable standard event|
|*ESE?||Query if event is enabled and standard|
|*ESR?||Query standard event status register|
|*IDN?||Query instrument identification|
|*OPC?||Query if operation is complete|
|*SRE||Query id service request is enabled|
|*STB?||Query read of status byte|
|*TST?||Query instrument self-test|
|*WAI||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)