Main Content

midtest

(To be removed) Open graphical tool for testing MATLAB instrument driver

This function will be removed in a future release. Use the Instrument Control Toolbox™ Support Package for IVI® and VXIplug&play Drivers instead. For more information on updating your code, see Version History.

Syntax

midtest
midtest('file')

Arguments

'file'

File containing the test to be used by the MATLAB® Instrument Driver Testing Tool

Description

midtest opens the MATLAB Instrument Driver Testing Tool. The MATLAB Instrument Driver Testing Tool provides a graphical environment for creating a test to verify the functionality of a MATLAB instrument driver.

The MATLAB Instrument Driver Testing Tool provides a way to

  • Verify property behavior

  • Verify function behavior

  • Save the test as MATLAB code

  • Export the test results to MATLAB workspace, figure window, MAT file, or the MATLAB Variables editor

  • Save test results as an HTML page

midtest('file') opens the MATLAB Instrument Driver Testing Tool with the test loaded from file.

For a full description of the tool with examples, see Instrument Driver Testing Tool Overview.

Examples

midtest('test.xml')

opens the MATLAB Instrument Driver Testing Tool with the test test.xml loaded.

Version History

Introduced before R2006a

expand all

R2022b: Warns

This function returns a warning that it will be removed in a future release.

For existing MATLAB instrument drivers created with makemid or midedit, the icdevice function still works. For IVI and VXIplug&play drivers, use ividev with one of the supported drivers in the Instrument Control Toolbox Support Package for IVI and VXIplug&play Drivers.

The midedit and midtest functions launch apps to edit and test MATLAB instrument drivers. For existing instrument driver files, you can use a text editor to make edits, if necessary. These apps are not needed for the ividev interface.

For more information about the Instrument Control Toolbox Support Package for IVI and VXIplug&play Drivers, see IVI and VXIplug&play Drivers.