- :-

Topics Covered

  • Data Logging Block
  • Resetting Sensors
  • Lesson Links

    Check Your Understanding:
    1. 1. How do you command the robot to start or stop logging data as part of a program?
    2. Attach a Data Logger Module to the side of the EV3 before pressing the Run button
      Use a blue Data Logging Block in the program where you want data logging to start or stop
      Click the Live Data Button on your PC or Mac computer when you want data logging to start or stop
      Drag the Experiment File into your Program tab
    3. 2. What data will be recorded, using the block below from the program in this lesson?
    4. 40 data points per second from the Gyro Sensor and Motor Rotation Sensor B
      40 data points total from every sensor on the robot
      One data point each second for 40 seconds
      No data will be recorded because the robot is not plugged in
    Did You Notice?

    Enhancement!

    Don't miss a single data

    Data logging currently stops immediately after the Motors "Off" command is issued. But we know that the robot does not stop instantly – it would make sense to continue gathering data for a short time afterward.

    Add a Wait For 1 Second block after the Motors "Off" block so data logging can continue for one additional second and catch any movement that occurs after the brake command is issued.

    Enhancement!

    Turning off data logging properly

    Data Logging in this version of the program will end when the program ends. This works, but it would be better if the program turned off data logging properly.

    Add a Data Logging Block set to Stop at the end of the program.