| ||||||||||||||||||||||||||||||||||||||
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. 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, 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, rsRsiGetInputsrsRsiGetOutputToleranceGet 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. ExamplesrsRsiSetOutputTolerance(rsiId,'speed',0.0001) See AlsorsRsiOpen, rsRsiGetOutputs, rsRsiSetOutputTolerancersRsiGetOutputTypeGet 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, rsRsiGetOutputsrsRsiDefaultInputsReset 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 | ||||||||||||||||||||||||||||||||||||||