Reactis API V2020
API - Reactis: MATLAB Bindings - Reactis Info File (General)
rsRsiOpen
Open an existing or create a new .rsi file.
Syntax
rsiId = rsRsiOpen(rsiFilename,modelFilename)
Description
rsiId = rsRsiOpen(rsiFilename,modelFilename)
If file rsiFilename exists, rsRsiOpen opens the existing file.
modelFilename must refer to the model associated with
the .rsi file.
If file rsiFilename does not exist, this function creates the
file on disk, populates the list of input and output ports to match
modelFilename, and initializes all other settings to their default
values.
The return value rsiId is a number (integer-valued double) that
identifies the .rsi file when calling other API functions.
Examples
rsiId = rsRsiOpen('cruise.rsi','cruise.slx');
See Also
rsRsiClose,
rsRsiSave
rsRsiClose
Close an .rsi file.
Syntax
rsRsiClose(rsiId)
Description
rsRsiClose(rsiId)
closes the .rsi file.
Any changes since the last call to rsRsiSave will be discarded.
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen.
See Also
rsRsiOpen,
rsRsiSave
rsRsiSave
Save changes to an .rsi file.
Syntax
rsRsiSave(rsiId)
rsRsiSave(rsiId, rsiFilename)
Description
rsRsiSave(rsiId)
writes any changes made to the .rsi file
to disk, using the same filename as used in the rsRsiOpen call that
opened the file.
rsRsiSave(rsiId, rsiFilename)
writes any changes made to
the .rsi file to disk, into the file named rsiFilename.
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen.
See Also
rsRsiOpen,
rsRsiClose
rsRsiGetParameterValue
Get the value of a model-specific setting.
Syntax
value = rsRsiGetParameterValue(rsiId,paramName)
Description
value = rsRsiGetParameterValue(rsiId,paramName)
returns the
value of model-specific setting paramName.
Parameters of any data type may be queried by rsRsiGetParameterValue.
The return value is always a string.
Valid parameters names and their allowed values are listed in the
Model-Specific and Harness-Library-Specific Parameters section of the Reactis API documentation.
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen.
Examples
>> rsiId = rsRsiOpen('cruise.rsi','cruise.slx');
>> v = rsRsiGetParameterValue(rsiId,'OnIntegerOverflow')
v =
'error'
See Also
rsRsiOpen,
rsRsiSetParameterValue
rsRsiSetParameterValue
Set the value of a model-specific setting.
Syntax
rsRsiSetParameterValue(rsiId, paramName, paramValue)
Description
rsRsiSetParameterValue(rsiId, paramName, paramValue)
sets
the model-specific setting paramName to paramValue.
Parameters of any data type may be set by rsRsiSetParameterValue
but the paramValue argument must be given as a string.
Valid parameters names and their possible values are listed in the
Model-Specific and Harness-Library-Specific Parameters section of the Reactis API documentation.
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen.
Examples
rsRsiSetParameterValue(rsiId,'OnIntegerOverflow','warning');
See Also
rsRsiOpen,
rsRsiGetParameterValue
rsRsiGetDependencies
Return list of additional dependencies from the .rsi file.
Syntax
files = rsRsiGetDependencies(rsiId)
Description
rsRsiGetDependencies(rsiId)
returns a cell array containing the list
of additional file dependencies specified in the .rsi file.
See Also
rsRsiOpen,
rsRsiSetDependencies
rsRsiSetDependencies
Sets the list of additional dependencies in the .rsi file.
Syntax
rsRsiSetDependencies(rsiId,files)
Description
rsRsiSetDependencies(rsiId,files)
sets the list of
additional file dependencies in the .rsi file to the list given
in the files parameter.
- rsiId
- Identifies the .rsi file to be updated.
- files
- Must be a cell array of strings, one entry for each dependent file.
See Also
rsRsiOpen,
rsRsiGetDependencies