Reactive Systems logo
February 18, 2020
Reactis API
 
Spacer

API - Reactis: MATLAB Bindings - Reactis Info File (General)


rsRsiOpenOpen an existing or create a new .rsi file.
rsRsiCloseClose an .rsi file.
rsRsiSaveSave changes to an .rsi file.
rsRsiGetParameterValueGet the value of a model-specific setting.
rsRsiSetParameterValueSet the value of a model-specific setting.


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



Spacer