qc_get_default_model_copy qc_get_default_model_log navigation bar

Table of Contents

qc_set_default_model_copy

Sets the default filename to which models are copied.

Syntax

qc_set_default_model_copy(filename) % set default filename to which models are copied
    

Description

Sets the default filename to which to models are copied as part of QUARC's model logging capabilities. To disable automatic model copying then set the filename to the empty string.

The following format specifiers are replaced in the copy 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:

%{date}

date that model started

%{time}

time that model started

%{instance(3)}

three digit instance number

The default filename for model copies may be retrieved using the qc_get_default_model_copy command.

Parameters

filename

A string containing the filename to which models are copied by default, as part of QUARC's model logging feature.

Outputs

This function has no outputs.

Examples

qc_set_default_model_copy(filename); % Sets the default filename to which models are copied
    

See Also

 

navigation bar