Table of Contents
qc_get_model_arguments
Returns the model arguments for the given model or configuration set.
arguments = qc_get_model_arguments(model, new_arguments) % Returns the given arguments with substitutions appropriate for the given model arguments = qc_get_model_arguments(config_set, new_arguments) % Returns the given arguments with substitutions appropriate for the given configuration set arguments = qc_get_model_arguments(new_arguments) % Returns the given arguments with substitutions appropriate for the current model arguments = qc_get_model_arguments(model) % Returns the model arguments for the given model arguments = qc_get_model_arguments(config_set) % Returns the model arguments for the given configuration set arguments = qc_get_model_arguments % Returns the model arguments for the current model
Returns the model arguments for the given model or configuration set. If arguments are given in the new_arguments parameter then these arguments are used, with the substitutions outlined below. Otherwise the model arguments are taken from the first argument of the MEX-file arguments of the Host/Target interface in the Code Generation/Interface configuration parameters. The following format specifiers are recognized and replaced with the appropriate values:
%d | = | the current Matlab directory in quotes |
%D | = | the current Matlab directory using short filenames (PC) or escaped spaces (UNIX) - requires Simulink Coder. |
%m | = | the model name |
%u | = | the model URI |
%h | = | the hostname from the model URI |
%p | = | the port from the model URI (not usually used) |
%a | = | the authority from the model URI and any path separator e.g. '//hostname:port/', if present |
%P | = | the path from the model URI i.e. the portion following the '/' after the hostname and port (not usually used) |
%o | = | the options from the model URI (not usually used) |
%f | = | the fragment from the model URI i.e. the portion following the '#' (not usually used) |
%q | = | replaced with a double quote since Matlab doesn't recognize double quotes directly |
%(var) | = |
the value of environment variable 'var' (on the host!) e.g. %(PATH )
|
%{expr} | = | the value of MATLAB expression 'expr' (on the host!) e.g. %{pi/2} |
model
A string indicating the name of the model used to find the model arguments. eg. 'q_a_lpbk
' or
MATLAB Command Line
Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:
doc('bdroot')config_set
A Simulink.ConfigSet
configuration set containing the model arguments (see
MATLAB Command Line
Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:
doc('getConfigSet')new_arguments
The model arguments to use instead of those specified in the Host/Target interface parameters. This parameter is not typically used directly.
arguments
The arguments for the model.
arguments = qc_get_model_arguments('q_a_lpbk'); % Returns the arguments for the q_a_lpbk model.
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.