|
VILLASframework
Modular co-simulation framework
|
One of the important uses of the VILLASnode toolbox is the comparison of a list of files.
The following command can be used to compare the files:
where options refers to one or more of the following:
| Option | Description |
|---|---|
| -d LVL | Adjust the debug level |
| -e EPS | Set epsilon for floating point comparisons to EPS |
| -v | Ignore data values |
| -T | Ignore timestamp |
| -s | Ignore sequence no |
| -F fmt | File format for all files |
| -t DT | The data-type format string |
| -h | show this usage information |
| -V | show the version of the tool |
In this example we shall use this tool to compare two files. In the first terminal execute the following command:
Open a second terminal to record the data being sent into another file. Execute the following command:
Now run the following command to compare the two files. He we ignore the timestamps since it will be different in both the cases:
Following return codes are obtained based on the similarity between the two files:
Following command can be used to determine the return codes:
Since the files are equal in this example we get 0 as the return code.
Go to [lab 16] =>(node-lab-15)