Appendix c. using time stamps – Campbell Scientific CD295 DataView II Dual Line Display User Manual

Page 33

Advertising
background image

Appendix C. Using Time Stamps

At the time of release of this document, the CRx000 series of dataloggers do
not support variables of a “date” type. Dates are currently recorded in a long
integer as the number of seconds that have elapsed since 1/1/1990 00:00:00.
The DataView II is capable of displaying these values in Gregorian Date
format (i.e. Day, Month, Year etc) in a number of different representations.

Below is an example CR1000 program to record a timestamp for display on a
CD295:

Public Time as Long
BeginProg

Scan (1,Sec,0,0)

Time = Public.TimeStamp(1,1)

NextScan

EndProg

In this case when creating the DataView program in PC295 for this variable the
user should select one of the date representations instead of ‘Numeric Value’ as
per the screenshot below:

In this case the DataView II would display the time as below:

Timestamp

24/01/2007 9:34

Please Note: If this value is displayed using ‘Numeric Value’ the DataView II
would show something like this:

Timestamp

538479240

C-1

Advertising