Main Content

Exporting Image Acquisition Tool Hardware Configurations to MATLAB

You can export the video input objects and their configured parameters from the tool to a choice of multiple formats. You can then access the video object in MATLAB®.

To export a hardware configuration:

  1. Select File > Export Hardware Configuration.

    The Export Hardware Configuration dialog box opens.

  2. Select the file format from the Object destination list.

    • MATLAB Workspace saves the video input object to the MATLAB Workspace for the duration of the MATLAB session. (You can then save it before exiting MATLAB if you want to retain it.)

    • MATLAB Code File is the same as the File > Generate MATLAB Code File command. It generates a MATLAB code file containing the video input object and its configured parameters. You could then incorporate the MATLAB code file into other MATLAB code or projects.

    • MAT-File saves the video input object and its parameters to a MAT-file.

  3. Decide what object configuration(s) to export.

    The Object Exporter dialog box lists the currently selected device format, as well as any others you selected in the Hardware Browser during the tool session. All formats are selected by default, meaning their configurations will be saved. If you do not want to save a configuration, clear it from the list.

  4. Click Save.

    If you exported to the MATLAB Workspace, the dialog box closes and the data is saved to the MATLAB Workspace.

  5. If you export to a MAT-file or MATLAB code file, an Export dialog box opens. Select the save location and type a file name, and then click Save.


You can also save configuration information to an Image Acquisition Tool (IAT) file that can then be loaded in the tool in a future session. See Saving Image Acquisition Tool Configurations.