Variations on AutoLog
Autologging (logging at regular intervals for some fixed amount of time) is very
simple with a BP, but there are some useful variations on this theme that are good
to know, including
l Log events can take variable amounts of time (matching, fluorometry, etc.), so
how can we get precise log intervals?
l What if we want the log interval to change with time?
l What if we want to start or stop based on some environmental condition, rather
than just the clock?
Timing
Let’s start with a basic autologging program (Figure 3-4 below) which does a LOOP
lasting 10 minutes (autolog duration) that contains a LOG and a WAIT (the log-
ging interval).
Figure 3-4. A simple autolog program.
A potential shortcoming of this program is that it does not account for how long
the LOG takes, which might range from about half a second to many seconds,
depending on matching, fluorometer actions, etc.. If you were trying to log every 1
or 2 seconds, then this program would be a little frustrating because the log inter-
val might often be longer than that. We could explicitly time the log in our
Section 3. Some examples
3-5Variations on AutoLog