DataTime (Data Time)

The DataTime instruction is used in a data table to specify whether timestamps are recorded with the datalogger's system time at the top of the scan, or alternatively, with the datalogger's system time at the time of storing data.

Syntax

DataTable (TableName,True,1000)

  DataTime ( DataTimeOpt )

  'Output instructions

EndTable

Remarks

By default, timestamps are recorded in data tables with the datalogger's system time at the top of the scan. However, for some applications it may be desired to record timestamps at the time of storing data, rather than at the top of the scan. The DataTime instruction is used in a data table to specify whether timestamps are recorded with the datalogger's system time at the top of the scan, or with the datalogger's system time at the time of storing data.

Parameter

DataTimeOpt (Timestamp Options)

Use the drop-down list in the CRBasic Editor to select one of two option codes:

Code Description
0 Scan time: Timestamps records in the table with the datalogger's system time at the top of the scan.
1 System time: Timestamps records in the table with the datalogger's system time at the time of storing the data.

Type: Constant

If DataTime is not used in a data table, the records are timestamped with the time at the top of the scan.

The use of DataTime does not affect the DataInterval. It still triggers based on the time at the top of the scan.