Timebase
Previous  Top  Next

The [Timebase] section configures different time bases you can use to save in your recorded data. The section name is actually not [Timebase] but a name you specify in the Timebase entry in the [Recorder] section. Please see the example below. Once you specify a time base you can navigate the recorder data by this time base. See also the [Recorder] section for other recorder specific configuration settings.


EntryDescription  
NameThe name is used as a label in the user interface. Please keep it relatively short since it will determine the space of the other user elements. This name is also saved in the recorder file together with the actual times recorded.  
 
TimeA Python expression that returns a long value that represents the current time of you time base. Python long values are not restricted in length so you can use any precision required.  
 
FormatA Python expression that results in a string representing a given time. The time variable you will get passed to this function is 'Time'. The value of 'Time' is the long you saved earlier with your Time function. You should return a string that is a human readable representation of your time.  


Example

The following example defines a Timebase Clock and configures it in the time base section [Clock]:

[Recorder]
...
TimeBase = Clock
...

[Clock]
Name   = Realtime
Time   = long(time.time())
Format = time.strftime("%Y/%m/%d %H:%M:%S", Time)