Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The method to make a datalogger stop when there is no movement through the use of NET() is as follows:

  1. Set up a variable to store the previous position data, such as "prevPos".
  2. Use the NET() function to determine the current position data, and store it in a variable such as "curPos".
  3. Use a conditional statement to check if "curPos" is equal to "prevPos". If it is, this means there has been no movement.
  4. If there has been no movement, set a flag variable to indicate that the datalogger should stop recording.
  5. If there has been movement, update the "prevPos" variable with the current position data, and continue recording data.