Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 2.08 KB

File metadata and controls

21 lines (13 loc) · 2.08 KB

Convert IVI to MATLAB Driver and Read Waveform (TBS1kB-EDU)

Original Attribution: Will D

The purpose of this example is to demonstrate how to get a MATLAB driver for an instrument not listed in the MathWorks repository here but with a driver available via the IVI Foundation repository here, such as this driver which I am using with a TBS1202B-EDU.

This example will lead you through installing the NI driver, recognizing where that installation is and confirming its existence, then using the ".c" driver to make a MATLAB ".mdd" driver.

First, download and install the NI Driver. This is the relevant driver for my TBS1202B-EDU. You do not need to install the LabVIEW specific components, but you do need to install the LabWindows component, since that will create the necessary ".c" driver file.


After installation, check that the appropriate driver files are in C:\Program Files (x86)\IVI\Drivers. Mine are in C:\Program Files (x86)\IVI\Drivers\tktds1k2k and the directory looks like the attached image. example directory structure


Once you have verified that, you can start up Matlab. This link describes how to convert the ".c" driver to a MATLAB ".mdd" driver via the "makemid" function. When you have created the MATLAB driver, you can begin making use of it in the Instrument Toolbox or MATLAB Command Line. The attached .m file is an example of creating the driver and using the driver functions to plot a waveform in Command Line.

Sample *.m file