| ||||||||||||||||||||||||||||||||||||||||||
rsRsiGetInputsGet input ports in the .rsi file. Syntaxnames = rsRsiGetInputs(rsiId) Description
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. Examples>> rsRsiGetInputs(rsiId) ans = 'onOff' 'accelResume' 'cancel' 'decelSet' 'brake' 'gas' 'inactiveThrottleDelta' 'drag' See AlsorsRsiOpenrsRsiGetInputTypeGet the type of an input in the .rsi file. SyntaxrsRsiGetInputType(rsiId, inputName) rsRsiGetInputType(rsiId, inputName, element) Description
Raises an error if inputType is not valid for the given port. rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. See AlsorsRsiOpen, rsRsiGetInputs, rsRsiSetInputTypersRsiSetInputTypeSet the type of an input in the .rsi file. SyntaxrsRsiSetInputType(rsiId,inputName,inputType) rsRsiSetInputType(rsiId,inputName,element,inputType) Description
If either the port specified by inputName is a scalar or the element specification selects a scalar out of the input then the rsRsiRange, rsRsiSet and rsRsiDelta functions can be used to construct a type. Otherwise, inputType must be a full type specification including the base type of the inport element(s) to be set. Type restrictions can be added to the type as specified in section 5.3.2 Type Constraint Syntax in the Reactis User's Guide. Raises an error if inputType is not valid for the given port. rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. rsRsiSave must be called to save modifications to .rsi file in order for them to be used by subsequent calls to rsSimOpen or rsTester. Updates to .rsi file are not propagated to any running Simulator or Tester sessions. ExamplesrsRsiSetInputType(rsiId, 'In1', rsRsiRange(0,100))If input port In1 is a scalar then its range will be set to 0...100, otherwise an error will be raised. rsRsiSetInputType(rsiId, 'In2', '(2)', rsRsiRange(0, 10))If input port In2 is a vector, its second element will be set to have a range of 0...10, otherwise an error will be raised rsRsiSetInputType(rsiId, 'In3', 'cancel', rsRsiSet([0, 1]))If input port In3 is a bus with an element 'cancel', possible values for that element will be 0 or 1. rsRsiSetInputType(rsiId, 'In4', 'b.b1.arrayval(5,3)', rsRsiSet([0]))Sets element (5,3) of a 2-d array element "arrayval" which is an element of sub-bus "b1" which is an element of bus "b". rsRsiSetInputType(rsiId, 'In5', '<|double{1,2,3} * double[1,10]|>')Sets both elements of a 2-element vector (must use full types in this case). rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. See AlsorsRsiOpen, rsRsiSave, rsRsiGetInputs, rsRsiGetInputType, rsRsiRange, rsRsiSet, rsRsiDeltarsRsiDeltaCreate a string representing a delta restriction. SyntaxrsRsiDelta(min, max) Description
See AlsorsRsiSetInputType, rsRsiRange, rsRsiSetrsRsiIfThenElseCreate a string representing a conditional type. SyntaxrsRsiIfThenElse(ifExpr, thenType, elseType) rsRsiIfThenElse(ifExpr, type, elseIfExpr1, type1, elseIfExpr2, type2, ..., elseType) Description
rsRsiRangeCreate a string representing a value range. SyntaxrsRsiRange(min, max) rsRsiRange(min, step, max) rsRsiRange(min, max, deltaMin, deltaMax) rsRsiRange(min, step, max, deltaMin, deltaMax) Description
See AlsorsRsiSetInputType, rsRsiSet, rsRsiDeltarsRsiSetCreate a string representing a value set. SyntaxrsRsiSet(a) Description
rsRsiGetOutputsGet output ports in the .rsi file. SyntaxoutputNames = rsRsiGetOutputs(rsiId) Description
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. Examples>> rsRsiGetOutputs(rsiId) ans = 'active' 'throttleDelta' 'speed' See AlsorsRsiOpen, rsRsiGetInputsrsRsiGetOutputTypeGet the type of an output in the .rsi file. SyntaxrsRsiGetOutputType(rsiId,outputName) Description
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. See AlsorsRsiOpen, rsRsiGetOutputsrsRsiGetOutputToleranceGet the tolerance for an output in the .rsi file. Syntaxtol = rsRsiGetOutputTolerance(rsiId,outputName) Description
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. Examples>> tol = rsRsiGetOutputTolerance(rsiId,'speed') tol = -1 See AlsorsRsiOpen, rsRsiGetOutputs, rsRsiSetOutputTolerancersRsiSetOutputToleranceSet the tolerance for an output in the .rsi file. SyntaxrsRsiSetOutputTolerance(rsiId,outputName,tol) Description
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. rsRsiSave must be called to save modifications to .rsi file in order for them to be used by subsequent calls to rsSimOpen or rsTester. Updates to .rsi file are not propagated to any running Simulator or Tester sessions. ExamplesrsRsiSetOutputTolerance(rsiId,'speed',0.0001) See AlsorsRsiOpen, rsRsiSave, rsRsiGetOutputs, rsRsiGetOutputTolerancersRsiGetOutputIntervalsGet the coverage intervals specified for an output in the .rsi file. SyntaxrsRsiGetOutputIntervals(rsiId,outputName) rsRsiGetOutputIntervals(rsiId,outputName,element) Description
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. See rsRsiSetOutputIntervals for a description of the interval syntax. See AlsorsRsiOpen, rsRsiGetOutputs, rsRsiSetOutputIntervalsrsRsiSetOutputIntervalsSet the coverage intervals specified for an output in the .rsi file. SyntaxrsRsiSetOutputTolerance(rsiId,outputName,intervals) rsRsiSetOutputTolerance(rsiId,outputName,element,intervals) Description
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. rsRsiSave must be called to save modifications to .rsi file in order for them to be used by subsequent calls to rsSimOpen or rsTester. Updates to .rsi file are not propagated to any running Simulator or Tester sessions. A basic interval is specified by the string [min:max] where min and max are double values specifying the (inclusive) minimum and (inclusive) maximum boundaries of the interval. To exclude the minimum value use ']' instead of '[' as the left delimiter. To exclude the maximum value use '[' instead of ']' as the right delimiter. An interval may be prefixed by a '~' character to invert it. The special string 'y0' describes the initial value of the output, i.e. the output's value at the end of the first simulation step (time 0.0). Thus, specifying an interval of ~y0 will track whether the output's value has ever changed during a test. ExamplesrsRsiSetOutputIntervals(rsiId,'speed',{'[0:20]', ']20:40]', ']40:60]'}) See AlsorsRsiOpen, rsRsiSave, rsRsiGetOutputs, rsRsiGetOutputIntervalsrsRsiDefaultInputsReset input types in .rsi file to their defaults. SyntaxrsRsiDefaultInputs(rsiId) Description
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. See AlsorsRsiOpen, rsRsiSave, rsRsiGetInputTypersRsiDefaultOutputsReset output tolerances in .rsi file to defaults. SyntaxrsRsiDefaultOutputs(rsiId) Description
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. See AlsorsRsiOpen, rsRsiSave, rsRsiGetOutputTolerancersRsiDefaultAllCombines effects of rsRsiDefaultInputs and rsRsiDefaultOutputs. SyntaxrsRsiDefaultAll(rsiId) Description
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. See AlsorsRsiOpen, rsRsiSave, rsRsiDefaultInputs, rsRsiDefaultOutputsrsRsiSyncInputsSynchronize input types between .rsi file and associated model. SyntaxrsRsiSyncInputs(rsiId) Description
Any changes made by rsRsiSyncInputs will be saved to disk during the next call to rsRsiSave. rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. See AlsorsRsiOpen, rsRsiSave, rsRsiGetInputTypersRsiSyncOutputsSynchronize outputs between .rsi file and associated model. SyntaxrsRsiSyncOutputs(rsiId) Description
Any changes made by rsRsiSyncOutputs will be saved to disk during the next call to rsRsiSave. rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. See AlsorsRsiOpen, rsRsiSave, rsRsiGetOutputTolerancersRsiSyncAllCombines effects of rsRsiSyncInputs and rsRsiSyncOutputs. SyntaxrsRsiSyncAll(rsiId) Description
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. See AlsorsRsiOpen, rsRsiSave, rsRsiSyncInputs, rsRsiSyncOutputsrsRsiTlSyncInputRangesSynchronize input ranges between .rsi file and TargetLink. SyntaxrsRsiTlSyncInputRanges(rsiId) Description
Any changes made by rsRsiTlSyncInputRanges will be saved to disk during the next call to rsRsiSave. See AlsorsRsiOpen, rsRsiSave, rsRsiGetInputType | ||||||||||||||||||||||||||||||||||||||||||