| ||||||||||||||||
rsRsiOpenOpen an existing or create a new .rsi file. SyntaxrsiId = rsRsiOpen(rsiFilename,modelFilename) Description
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. ExamplesrsiId = rsRsiOpen('cruise.rsi','cruise.slx'); See AlsorsRsiClose, rsRsiSaversRsiCloseClose an .rsi file. SyntaxrsRsiClose(rsiId) Description
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. See AlsorsRsiOpen, rsRsiSaversRsiSaveSave changes to an .rsi file. SyntaxrsRsiSave(rsiId) rsRsiSave(rsiId, rsiFilename) Description
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. See AlsorsRsiOpen, rsRsiClosersRsiGetParameterValueGet the value of a model-specific setting. Syntaxvalue = rsRsiGetParameterValue(rsiId,paramName) Description
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 AlsorsRsiOpen, rsRsiSetParameterValuersRsiSetParameterValueSet the value of a model-specific setting. SyntaxrsRsiSetParameterValue(rsiId, paramName, paramValue) Description
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. ExamplesrsRsiSetParameterValue(rsiId,'OnIntegerOverflow','warning'); See AlsorsRsiOpen, rsRsiGetParameterValuersRsiGetDependenciesReturn list of additional dependencies from the .rsi file. Syntaxfiles = rsRsiGetDependencies(rsiId) Description
See AlsorsRsiOpen, rsRsiSetDependenciesrsRsiSetDependenciesSets the list of additional dependencies in the .rsi file. SyntaxrsRsiSetDependencies(rsiId,files) Description
See AlsorsRsiOpen, rsRsiGetDependencies | ||||||||||||||||