| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Real-Time Workshop Embedded Coder |
| Contents | Index |
| Learn more about Real-Time Workshop Embedded Coder |
addAdditionalSourcePath(hEntry, path)
Handle to a TFL table entry previously returned by instantiating a TFL entry class, such as hEntry = RTW.TflCFunctionEntry or hEntry = RTW.TflCOperationEntry.
String specifying the full path to an additional source file.
The addAdditionalSourcePath function adds a specified additional source file path to the array of additional source file paths for a TFL table.
In the following example, the addAdditionalSourcePath function is used along with addAdditionalHeaderFile, addAdditionalIncludePath, and addAdditionalSourceFile to fully specify additional header and source files for a TFL table entry.
% Path to external header and source files
libdir = fullfile('$(MATLAB_ROOT)','..', '..', 'lib');
op_entry = RTW.TflCOperationEntry;
.
.
.
addAdditionalHeaderFile(op_entry, 'all_additions.h');
addAdditionalIncludePath(op_entry, fullfile(libdir, 'include'));
addAdditionalSourceFile(op_entry, 'all_additions.c');
addAdditionalSourcePath(op_entry, fullfile(libdir, 'src'));addAdditionalHeaderFile, addAdditionalIncludePath, addAdditionalSourceFile
Specifying Build Information for Function Replacements in the Real-Time Workshop Embedded Coder documentation
Replacing Math Functions and Operators Using Target Function Libraries in the Real-Time Workshop Embedded Coder documentation

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2010- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |