MapleSim[Test]
Compare
compare, via plots, the output and reference files for a MapleSim model
Calling Sequence
Parameters
Options
Description
Examples
Test:-Compare(msim,opts)
msim
-
string; name of msim file
opts
(optional) equation(s) of the form option = value; specify options for Compare
err = truefalse
True means plot the error between the output and reference files for each of the selected variables. False means plot both values of each of the selected variables. The default is false.
vars = probes, diffs, or states
Specifies the variables to compare:
probes: use the probes in the model. This is the default.
diffs: use the state variables that are integrated.
states: use all the state variables (includes index-1 and discrete variables).
The Test:-Compare command compares, via plots, the signal data in the output and reference files for a given MapleSim model.
The msim parameter is the filename of a MapleSim model. The output and reference files for the MapleSim model must have been previously created using the MapleSim:-Test command.
A plot is printed for each variable.
Create a test file for a MapleSim model.
MapleSim:-Test⁡foo.msim,update
Run the test to generate the output file.
MapleSim:-Test⁡foo.msim
Generate plots for the probes.
MapleSim:-Test:-Compare⁡foo.msim
Generate the error plots for the state variables.
MapleSim:-Test:-Compare⁡foo.msim,err,vars=states
See Also
MapleSim
Download Help Document