slrealtime.fmu.compileFMUSources(fmuFile,Name-Value Arguments)
compiles an FMU file that contains source code. The process outputs an FMU file and Simulink
Real-Time binary file in the same folder as the input FMU file and appends an
_slrt suffix to the output file name.
This example selects an FMU file to compile and overwrites previous
compiler output.
% open the FMU example
openExample('slrealtime/SlrtCompileSourceCodeForFunctionalMockupUnitsExample');
% copy an example file to the current working folder
mkdir tempdirmyFmuDir
cd tempdir
cd myFmuDir
copyfile ../../slrt_ex_fmu_work;
% create variable to provide path and file name
my_file = ['vanDerPol.fmu']
% compile the FMU file and overwrite previous output
slrealtime.fmu.compileFMUSources(my_file,'overwriteBinary',true)
Selects FMU file to compile. Accepts a file name as input or accepts a variable that
provides [path,filename] to identify FMU file. If
fmuFile input is omitted, opens a file selection UI.
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN, where Name is
the argument name and Value is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.