Real-Time Workshop    

Adding a Custom Target to the System Target
File Browser

As a convenience to end users of your custom target configuration, you can add a custom target configuration to the System Target File Browser. To do this:

  1. Modify (or add) browser comments at the head of your custom system target file. For example,
  2. Create a directory <targetname> (e.g., /mytarget). Move your custom system target file, custom template makefile, and run-time interface files (such as your main program and S-functions) into the <targetname> subdirectory.

  1. Add your target directory to the MATLAB path.
  1. If you want <targetname> included in the MATLAB path each time MATLAB starts up, include this addpath command in your startup.m file.

  1. When the System Target File Browser opens, Real-Time Workshop detects system target files that are on the MATLAB path, and displays the target filenames and target description comments. Figure 14-4 shows how the target file mytarget.tlc, which contains the browser comments above, appears in the System Target File Browser.

Figure 14-4: Custom System Target File Displayed in Browser


  System Target File Structure Template Makefiles