| ||||||||||||||||||||||||
rsRsiAddTestPointAdd a test point to an .rsi file. SyntaxtpId = rsRsiAddTestPoint(rsiId,location) Description
For Simulink, location should contain the path and name of a block and an output port number, e.g., sys1/sys2/testblock/3 adds output port #3 of block "testblock" located within sys1/sys2 as a test point. For Stateflow, location should contain the name of a variable within a Stateflow chart, e.g., sys1/sys2/chart/var adds the variable named "var", located within Stateflow chart "chart" which itself is located within "sys1/sys2". For variables defined within Stateflow sub-states, the state path must also be given, e.g. sys1/sys2/chart/state1/state2/var. tpId is an identifier for the test point used when calling other rsRsiTestPoint* functions. See AlsorsRsiOpen, rsRsiClearTestPoints, rsRsiDefaultTestPoints, rsRsiGetTestPoints, rsRsiImportTestPoints, rsRsiSyncTestPoints, rsRsiRemoveTestPoint, rsRsiGetTestPointParameterValue, rsRsiSetTestPointParameterValuersRsiImportTestPointsImports all Simulink test point set in the model and adds them as Reactis test points. SyntaxrsRsiImportTestPoints(rsiId) rsRsiImportTestPoints(rsiId,kinds) Description
See AlsorsRsiOpen, rsRsiClearTestPoints, rsRsiDefaultTestPoints, rsRsiGetTestPoints, rsRsiSyncTestPoints, rsRsiAddTestPoint, rsRsiRemoveTestPoint, rsRsiGetTestPointParameterValue, rsRsiSetTestPointParameterValuersRsiClearTestPointsRemove all test points from an .rsi file. SyntaxrsRsiClearTestPoints(rsiId) Description
See AlsorsRsiOpen, rsRsiDefaultTestPoints, rsRsiGetTestPoints, rsRsiImportTestPoints, rsRsiSyncTestPoints, rsRsiAddTestPoint, rsRsiRemoveTestPoint, rsRsiGetTestPointParameterValue, rsRsiSetTestPointParameterValuersRsiDefaultTestPointsReset all test point constraints to default values. SyntaxrsRsiDefaultTestPoints(rsiId) Description
See AlsorsRsiOpen, rsRsiClearTestPoints, rsRsiGetTestPoints, rsRsiImportTestPoints, rsRsiSyncTestPoints, rsRsiAddTestPoint, rsRsiRemoveTestPoint, rsRsiGetTestPointParameterValue, rsRsiSetTestPointParameterValuersRsiGetTestPointsGet all test points from an .rsi file. SyntaxtpIds = rsRsiGetTestPoints(rsiId) Description
See AlsorsRsiOpen, rsRsiClearTestPoints, rsRsiDefaultTestPoints, rsRsiImportTestPoints, rsRsiSyncTestPoints, rsRsiAddTestPoint, rsRsiRemoveTestPoint, rsRsiGetTestPointParameterValue, rsRsiSetTestPointParameterValuersRsiSyncTestPointsSynchronize data types of test points between the .rsi file and associated model. SyntaxrsRsiSyncTestPoints(rsiId) Description
See AlsorsRsiOpen, rsRsiClearTestPoints, rsRsiGetTestPoints, rsRsiImportTestPoints, rsRsiDefaultTestPoints, rsRsiAddTestPoint, rsRsiRemoveTestPoint, rsRsiGetTestPointParameterValue, rsRsiSetTestPointParameterValuersRsiRemoveTestPointRemove a test point from an .rsi file. SyntaxrsRsiRemoveTestPoint(rsiId,tpId) Description
See AlsorsRsiOpen, rsRsiClearTestPoints, rsRsiDefaultTestPoints, rsRsiGetTestPoints, rsRsiImportTestPoints, rsRsiSyncTestPoints, rsRsiAddTestPoint, rsRsiSetTestPointParameterValue, rsRsiSetTestPointParameterValuersRsiGetTestPointParameterValueGet the value of a test point parameter. Syntaxvalue = rsRsiGetTestPointParameterValue(rsiId,tpId,paramName) Description
See the documentation for rsRsiSetTestPointParameterValue for a list of available parameters. See AlsorsRsiOpen, rsRsiClearTestPoints, rsRsiDefaultTestPoints, rsRsiGetTestPoints, rsRsiImportTestPoints, rsRsiSyncTestPoints, rsRsiRemoveTestPoint, rsRsiAddTestPoint, rsRsiSetTestPointParameterValuersRsiSetTestPointParameterValueSet the value of a test point parameter. SyntaxrsRsiSetTestPointParameterValue(rsiId,tpId,name1,val1,name2,val2,....) 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. tpId must be a test point id returned by rsRsiGetTestPoints or rsRsiAddTestPoint. The following parameters are available:
See AlsorsRsiOpen, rsRsiSave, rsRsiClearTestPoints, rsRsiDefaultTestPoints, rsRsiGetTestPoints, rsRsiImportTestPoints, rsRsiSyncTestPoints, rsRsiRemoveTestPoint, rsRsiAddTestPoint, rsRsiGetTestPointParameterValuersRsiGetTestPointIntervalsGet the coverage intervals specified for a test point in the .rsi file. SyntaxrsRsiGetTestPointIntervals(rsiId,tpId) rsRsiGetTestPointIntervals(rsiId,tpId,element) Description
rsiId is the identifier of an .rsi file previously opened by rsRsiOpen. tpId must be a test point id returned by rsRsiGetTestPoints or rsRsiAddTestPoint. See rsRsiSetTestPointIntervals for a description of the interval syntax. See AlsorsRsiOpen, rsRsiGetTestPoints, rsRsiSetTestPointIntervalsrsRsiSetTestPointIntervalsSet the coverage intervals specified for a test point in the .rsi file. SyntaxrsRsiSetTestPointTolerance(rsiId,tpId,intervals) rsRsiSetTestPointTolerance(rsiId,tpId,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. tpId must be a test point id returned by rsRsiGetTestPoints or rsRsiAddTestPoint. 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 test point, i.e. the test point's value at the end of the first simulation step (time 0.0). Thus, specifying an interval of ~y0 will track whether the test point's value has ever changed during a test. ExamplestpIds = rsRsiGetTestPoints(rsiId); rsRsiSetTestPointIntervals(rsiId,tpIds(1),{'[0:20]', ']20:40]', ']40:60]'}) See AlsorsRsiOpen, rsRsiSave, rsRsiGetTestPoints, rsRsiGetTestPointIntervals | ||||||||||||||||||||||||