Table of Contents
qc_set_default_model_log
Sets the default filename for model logging.
qc_set_default_model_log(filename) % set default filename for models' log files
Sets the default filename for model logs to filename. If filename is the empty string then automatic logging is turned off for all models, except those that override the default setting.
The following format specifiers are replaced in the log filename with the appropriate values when the filename is used:
Format Specifier |
Description |
||||||
---|---|---|---|---|---|---|---|
%d |
the current Matlab directory in quotes e.g. "C:\Documents and Settings\myname\My Documents\MATLAB" |
||||||
%D |
the current Matlab directory using short filenames (PC) or escaped spaces (UNIX) e.g. "C:\Docume~1\myname\MyDocu~1\MATLAB" (requires Simulink Coder) |
||||||
%m |
the model name e.g. mymodel |
||||||
%q |
replaced with a double quote (since MATLAB does not accept double quote characters) |
||||||
%t |
the target type for the given model or configuration set (e.g. windows, qnx_x86, etc.) |
||||||
%(var) |
the value of environment variable 'var' (on the host!) e.g. %(HOME) |
||||||
%{expr} |
the value of a MATLAB expression as a string. For example:
|
The default filename for model logs may be retrieved using the qc_get_default_model_log command.
filename
A string containing the new default log filename e.g.'%m_%{time}.log'
This function has no outputs.
qc_set_default_model_log('%{date}/%m_{time}.log'); % Sets default log filename to '%{date}/%m_{time}.log'.
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.