#CAPTION# compareSimulationResults ————————
This function compares a given signal of two result files within absolute and relative tolerances. #END#
#LUA# .. code-block:: lua
oms_compareSimulationResults(filenameA, filenameB, var, relTol, absTol)
#END#
#PYTHON# .. code-block:: python
oms.compareSimulationResults(filenameA, filenameB, var, relTol, absTol)
#END#
#CAPI# .. code-block:: c
int oms_compareSimulationResults(const char* filenameA, const char* filenameB, const char* var, double relTol, double absTol);
#END#
#OMC# .. code-block:: Modelica
status := oms_compareSimulationResults(filenameA, filenameB, var, relTol, absTol);
#END#
#DESCRIPTION# The following table describes the input values:
Input | Type | Description |
---|---|---|
filenameA | String | Name of first result file to compare. |
filenameB | String | Name of second result file to compare. |
var | String | Name of signal to compare. |
relTol | Number | Relative tolerance. |
absTol | Number | Absolute tolerance. |
The following table describes the return values:
Type | Description |
---|---|
Integer | 1 if the signal is considered as equal, 0 otherwise |
#END#