Scheduler

Contents


Exporting To A Text File

It is possible to save the simulation results in a text file.

To export the results, click on File/Export... In the dialog box, just give the name of the file (with extension .sim by default).

At this point, no file is created. The simulation must be run using Simulation/Start. When the simulation is competed, the file is automatically written.

A line is the file has the following format
Date :[TaskMissedDeadline miss :[AnotherTaskMissedDeadline miss]] :[TaskCurrentlyExecuted(TaskName)] :

TaskMissedDeadline, AnotherTaskMissedDeadline, and TaskCurrentlyExecuted are the reference number in the set of tasks.

TaskName is the name of the task as it appears in the Scheduler window.

The file ends either with
Simulation completed successfully
or with
An error has occured during simulation
Unexpected end of simulation

Sample:
0 :0(Task 0) :
1 :2(Task 2) :
2 :0(Task 0) :
3 :2(Task 2) :
4 :1(Task 1) :
5 :2 miss :2(Task 2) :
6 :0(Task 0) :
7 :1(Task 1) :
8 :2(Task 2) :
9 :0 miss :0(Task 0) :
10 :2 miss :1(Task 1) :
11 :2 miss :0(Task 0) :
12 :2 miss :1(Task 1) :
13 :2 miss :0 miss :2(Task 2) :
14 :0 miss :2 miss :0(Task 0) :
15 :2 miss :1(Task 1) :
16 :2 miss :2(Task 2) :
17 :1(Task 1) :
18 :1 miss :1(Task 1) :
19 :1(Task 1) :
20 :1(Task 1) :
Simulation completed successfully

After generating, it is possible to import the file, for example in Microsoft Excel, where a wizard helps in importing data. One can imagine a macro that would arrange the data at will.


Contents