This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Instrument Driver Editing and Testing

Create and modify instrument drivers; test and verify instrument driver functionality

Generic drivers allow the Instrument Control Toolbox™ to communicate with devices or software that do not use industry-standard drivers or protocols. You create a generic driver using the Instrument Driver Editor. See Creating MATLAB Instrument Drivers for information about using the Instrument Driver Editor.

After you create a driver, you can test it using the Instrument Driver Testing Tool. The tool provides a graphical environment for creating a test to verify the functionality of a MATLAB instrument driver. You can verify property and function behavior and export the test results in a variety of formats. See Instrument Driver Testing Tool Overview.


clear Remove instrument objects from MATLAB workspace
connect Connect device object to instrument
delete Remove instrument objects from memory
disconnect Disconnect device object from instrument
disp Display instrument object summary information
get Instrument object properties
inspect Open Property Inspector
instrhwinfo Information about available hardware
instrreset Disconnect and delete all instrument objects
invoke Execute driver-specific function on device object
makemid Convert driver to MATLAB instrument driver format
methods Class method names and descriptions
midedit Open graphical tool for creating and editing MATLAB instrument driver
midtest Open graphical tool for testing MATLAB instrument driver
propinfo Instrument object property information
save Save instrument objects and variables to MAT-file
selftest Run instrument self-test
set Configure or display instrument object properties
tmtool Open Test & Measurement Tool

Examples and How To

Creating MATLAB Instrument Drivers

How to create, modify, save, and verify instrument drivers using the MATLAB Instrument Driver Editor.


Defining instrument functionality as properties of the device object to ease communications with your instrument.


Defining instrument functionality as functions of the device object to ease communications with your instrument.


Combining common capabilities of the device object.

Using Existing Drivers

Adapting existing drivers for your instrument.

Setting Up Your Test

Providing global information for your test, including name, description, driver, interface, and preferences.

Defining Test Steps

Creating steps to test setting property values, getting property values, and driver functions.

Saving Your Test

Saving your test for future midtest sessions, or as code, or as a driver function.

Testing and Results

Running a complete or partial test; exporting or saving test results.


MATLAB Instrument Driver Editor Overview

An explanation of MATLAB® instrument drivers, their features, capabilities, and usage.

Instrument Driver Testing Tool Overview

An explanation of the MATLAB Instrument Driver Testing Tool, its capabilities, and usage.

Instrument Control Toolbox Properties

These properties are available in the toolbox.

Was this topic helpful?