/EE_Source_Code

My Custom Data Collection Source Code

Primary LanguageC++

EE Data Collection Source Code

This program uses an encoder to measure the rotation of a swinging arm

Data Collection Procedure (Device Screen Captures):

Step 1: Pull Back Arm

  • The arm needs to be pulled back until its pressing the button

Pull Back

Step 2: Prompt to Release Arm

  • 75: encoder measurement in degrees
  • 1: the arm is currently pressing the button
  • Data collection starts the instant the arm is released

Release

Step 3: Data Collection is Complete, Prompt to Save Data

  • Once the oscilations have settled near 0 degrees, the data collection stops
  • Prompts to save colllected data by pressing the right button

Complete

Step 4: Notify that the Program was Saved

  • Data was successfully saved to .csv (comma separated value) file

Saved

Preview Program Output

  • See the encoder values, sampled every 50ms (20 Hz)
  • See the elapsed time, sampled every 50ms (20 Hz)
  • Output path (file name) of the saved data

debug image