Time

From SweepMe! Wiki
Jump to navigation Jump to search

The Sequencer has an invisible root module 'Time' that is at the top of all other modules. It is part of all measurements and all branches. At each measurement point, it takes the time and a timestamp when the measurement of the point starts, and it provides the following variables:

Variable Unit Description Plot Saved to file
elapsed s Time since the start of the run yes yes
stamp Date and time of the measurement point yes yes
left s Estimated remaining time of the run no no
progress % Progress of the run yes no
index Number of the measurement point, starting at 1 yes no

The saved values are always in the first columns of the data file. The variables can be used in widgets such as Plot (except 'left') or Gauge and in the Parameter system, e.g. {Time_elapsed_s}, {Time_stamp}, {Time_progress_%} or {Time_index}.

The estimated remaining time and the progress are calculated from the elapsed time and the number of measurement points. For endless runs and for runs with dynamic sweep values, the total number of points is not known in advance and both values are 0.

In the Plot widget with plot style 'Lines', the timestamp can be used as axis. It is displayed in the format hours:minutes:seconds.