Ask Your Question
3

What is the method to make a datalogger stop when there is no movement through the use of NET()?

asked 2023-05-24 05:18:23 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-05-24 05:43:01 +0000

david gravatar image

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.
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-24 05:18:23 +0000

Seen: 7 times

Last updated: May 24 '23