5 - Logging (Applies to T-Series and UD-Series)
Logging Overview
DAQFactory offers a number of different logging options. There are logging sets, export sets, and for those that need total flexibility, the File. series of functions for direct file access.
Logging sets are used to do continuous logging. They can be started and stopped, but are not designed for conditional logging because of the way they collect their data. Typically you will run a logging set in one of two modes:
All Data Points (aligned): this will log all data from any channel you assign to the logging set. If your data is coming in with different time stamps, it will try and align the data points to put them on the same line in the log based on the align parameter. The default align parameter of 0 means that if two data points have a different time, they will end up on a separate line in the log. You can increase this and data will be combined on the same line if their times are closer than the align threshold (in seconds). The only problem is that if your data is coming in faster than the align threshold on a single channel, some of that channel's data will not get logged.
Fixed Interval: this will cause the logging set to go out every Interval (in seconds) and either average all the data accumulated on each channel and log the average, or take a snapshot of whatever the most recent reading was. This is useful if, for example, you want to simply log your data every minute, even though some data points are coming in once a second, others every 5 seconds, etc. You'd select Fixed Interval, then Snapshot and an Interval of 60.
The File functions are more advanced and covered in the DAQFactory user's guide.