Test - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


MapleSim[Test]

  

Compare

  

compare, via plots, the output and reference files for a MapleSim model

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

Test:-Compare(msim,opts)

Parameters

msim

-

string; name of msim file

opts

-

(optional) equation(s) of the form option = value; specify options for Compare

Options

• 

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).

Description

• 

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.

Examples

Create a test file for a MapleSim model.

MapleSim:-Testfoo.msim,update

Run the test to generate the output file.

MapleSim:-Testfoo.msim

Generate plots for the probes.

MapleSim:-Test:-Comparefoo.msim

Generate the error plots for the state variables.

MapleSim:-Test:-Comparefoo.msim,err,vars=states

See Also

MapleSim

MapleSim[Test]