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.
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.
MATLAB code showing how to take a DC Voltage measurement on a digital multimeter (DMM) over a GPIB connection.