<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=COMPARE</id>
	<title>COMPARE - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=COMPARE"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=COMPARE&amp;action=history"/>
	<updated>2026-04-09T17:28:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.ice-online.com/index.php?title=COMPARE&amp;diff=736&amp;oldid=prev</id>
		<title>ConvertBot: compare two data files or one file with zero</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=COMPARE&amp;diff=736&amp;oldid=prev"/>
		<updated>2020-04-27T22:04:41Z</updated>

		<summary type="html">&lt;p&gt;compare two data files or one file with zero&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;compare two data files or one file with zero&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;IN1&amp;gt;      First input file&lt;br /&gt;
&amp;lt;IN2&amp;gt;      Second input file (optional)&lt;br /&gt;
&amp;lt;MAX_OUT&amp;gt;  Optional results parameter with maximum difference value&lt;br /&gt;
&amp;lt;MIN_OUT&amp;gt;  Optional results parameter with minimum difference value&lt;br /&gt;
&amp;lt;MAX_THR&amp;gt;  Optional threshold below which maximum difference should fall&lt;br /&gt;
&amp;lt;MIN_THR&amp;gt;  Optional threshold above which minimum difference should fall&lt;br /&gt;
&amp;lt;RESULT&amp;gt;   Optional result label, set to 1 if diff w/in thresholds, 0 if not&lt;br /&gt;
&lt;br /&gt;
COMPARE differences of two input files and outputs the max/min of the difference&lt;br /&gt;
if the /VERBOSE switch is used. If only the first input file is given, the&lt;br /&gt;
results are compared to zero, and essentially the result is similar to the&lt;br /&gt;
MAXMIN command.&lt;br /&gt;
&lt;br /&gt;
The maximum and minimum values of the difference are (optionally) saved in&lt;br /&gt;
results parameters.&lt;br /&gt;
&lt;br /&gt;
If RESULT is given, the max and min are compared to MAX_THR and MIN_THR&lt;br /&gt;
respectively; the parameter set by RESULT becomes 1 if they are within the&lt;br /&gt;
threshold bounds, 0 otherwise.  The thresholds default to +-1E-9.&lt;br /&gt;
&lt;br /&gt;
Since NeXtMidas 2.9.2, support for record base files (type 3000, 5000, and 6000)&lt;br /&gt;
was added. Only numeric SubRecords are compared. When running from terminal, a&lt;br /&gt;
message will be printed out for any SubRecords that are not numeric unless the&lt;br /&gt;
/VERBOSE=FALSE switch is specified. When comparing two record based files that&lt;br /&gt;
do not have exactly the same SubRecords (names, types, etc.), this command will&lt;br /&gt;
error with appropriate message. Likewise when comparing record base data to&lt;br /&gt;
frame based data (type 1000, 2000).&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
  1. Compare a file with zero (max, min)&lt;br /&gt;
    nM&amp;gt; WAVEFORM,OUT=TEMP3,FORM=SF,ELEM=100,SHAPE=SIN,AMP=3,FREQ=.01&lt;br /&gt;
    nM&amp;gt; COMPARE TEMP3&lt;br /&gt;
    INFO: Diff MAX = 3.0 [COMPARE]&lt;br /&gt;
    INFO: Diff MIN = -3.000001 [COMPARE]&lt;br /&gt;
    INFO: Diff within THRESHOLDS = 0 [COMPARE]&lt;br /&gt;
&lt;br /&gt;
  2. Compare above file with a new file with different amplitude&lt;br /&gt;
    nM&amp;gt; WAVEFORM,OUT=temp1,FORM=SF,ELEM=100,SHAPE=SIN,AMP=1,FREQ=.01&lt;br /&gt;
    nM&amp;gt; compare temp1 temp3 MAX_OUT=max MIN_OUT=min result=withinThreshold&lt;br /&gt;
&lt;br /&gt;
    the results min and max hold the answers.&lt;br /&gt;
      F: MAX             = 2.0000005&lt;br /&gt;
      F: MIN             = -2.0000021&lt;br /&gt;
      L: WITHINTHRESHOLD = 0&lt;br /&gt;
&lt;br /&gt;
  3. Compare two type 3000 files (record based data) with same values&lt;br /&gt;
    nM&amp;gt; compare test3000_ieee.prm test3000_eeei.prm&lt;br /&gt;
    INFO: Diff MAX = 0.0 [COMPARE]&lt;br /&gt;
    INFO: Diff MIN = 0.0 [COMPARE]&lt;br /&gt;
    INFO: Diff within THRESHOLDS = 1 [COMPARE]&lt;br /&gt;
&lt;br /&gt;
  4. Compare two type 5000 files (record based data) with very large thresholds&lt;br /&gt;
    nM&amp;gt; compare sv1.prm sv2.prm MAX_THR=3e7 MIN_THR=-2e7&lt;br /&gt;
    INFO: Diff MAX = 2.0299538E7 [COMPARE]&lt;br /&gt;
    INFO: Diff MIN = -1.5621862E7 [COMPARE]&lt;br /&gt;
    INFO: Diff within THRESHOLDS = 1 [COMPARE]&lt;br /&gt;
&lt;br /&gt;
Switches:&lt;br /&gt;
  /LEGACYSCALE - DEPRECATED since NeXtMidas 2.9.2: Use deprecated max/min/full&lt;br /&gt;
                 scale values for byte and other data type (which does not match&lt;br /&gt;
                 data type's actual max/min/full scale values). [DEF=FALSE]&lt;br /&gt;
  /TL      - The number of elements to be read each process loop.&lt;br /&gt;
             [DEF=4096 for type 1000 or 1 for other file types]&lt;br /&gt;
  /VERBOSE - Force output to the screen if present. Default is to output to the&lt;br /&gt;
             screen if &amp;lt;MAX_OUT&amp;gt; and &amp;lt;MIN_OUT&amp;gt; are not given or when in terminal&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:NXM_Explain]]&lt;/div&gt;</summary>
		<author><name>ConvertBot</name></author>
		
	</entry>
</feed>