You can use the Instrument Control Toolbox™ to communicate with NI-FGEN function generators. You can control and configure the function generator, and perform tasks such as generating sine waves.
This feature is available through the Instrument Control Toolbox Support Package for NI-FGEN Function Generators. Using this installation process, you download and install the following file(s) on your host computer:
MATLAB Instrument Driver for NI-FGEN support
National Instruments® driver file: NI-FGEN driver version 2.9.1
Note: You can use this support package only on a host computer running a version of 64-bit Windows® that Instrument Control Toolbox supports.
Supported Compiler Requirement
Certain functionality in the NI-FGEN support package may require a supported compiler on your system. For the current list of supported compilers, see Supported and Compatible Compilers on the MathWorks® website.
Once you have installed a supported C compiler, set up your
compiler by running
mex -setup, as described in
the documentation for
mex in the MATLAB® Function
Installing the Support Package
To install the Instrument Control Toolbox Support Package for NI-FGEN Function Generators:
On the MATLAB Home tab, in the Environment section, click Add-Ons > Get Hardware Support Packages.
In the Add-On Explorer, scroll to the Hardware Support Packages section, and click show all to find your support package.
To uninstall support packages:
On the MATLAB Home tab, in the Environment section, click Add-Ons > Manage Add-Ons.
To update existing support packages:
On the MATLAB Home tab, in the Environment section, click Add-Ons > Check for Updates > Hardware Support Packages.
For more information about using Add-On Explorer, see Get Add-Ons.