Q: How do I make my datalogger do something, besides storing data, based on a set time?
A: Most CRBasic programmers are familiar with the DataInterval() instruction because that is what we use to store data on a specific interval, say every hour at the top of the hour.
To do something else, such as turn on or off a device, take a measurement or do a calculation, you'll use the TimeIntoInterval() instruction within a logic statement.
Tip: If you turn a piece of hardware on under datalogger control, you also need to turn it off. Just having a condition be false does not change the state of the port.
Learn more: https://www.campbellsci.com/tips-decisions
Next time: CR6 Drivers