Opened 7 years ago

Closed 7 years ago

#4613 closed enhancement (duplicate)

Automatically update plots in OMEdit while running simulations

Reported by: Francesco Casella Owned by: Adeel Asghar
Priority: high Milestone: 1.13.0
Component: OMEdit Version:
Keywords: Cc:

Description

Use case: you are simulating one model, the simulation takes a lot of time (> 30 s), there are many variables to monitor, possibly spread over multiple windows, and you'd like to see what is happeing as the simulation time increases, to stop the simulation if neecessary and avoid wasting time to wait until the end if something goes wrong. Possibly, variables from other .mat files could be open in the same windows, and they should stay untouched.

There is one and only one .mat file being written, the tool knows where it is. I would suggest that every X_r seconds we poll the file size from the file system, and if it has increased, then the plots are updated automatically. X_r must be chosen to avoid choking the system on one hand, and to avoid too large delays on the other hand, so probably something like 2-5 seconds. Alternatively, we could use stuff stored in memory. This is irrelevant from an end-user point of view, what is important is the ability of seeing the simulation results as the computation is progressing.

As long as we use less than 100% computing power of one CPU to do this on a multi-core machine, there will be no performance penalty, as the simulation typically runs on a single thread as of today, and the update will be done on a different core.

Of course, if it is found that more than X_r seconds are taken to refresh the result, the whole thing should not hang but rather X_r should be multiplied by a factor of 1.5 of something like that.

Change History (1)

comment:1 by Francesco Casella, 7 years ago

Resolution: duplicate
Status: newclosed

Sorry, I forgot I had already posted this as a comment to #4609

Note: See TracTickets for help on using tickets.