ME405 Portfolio
The following documentation details each step of the ME 405 term project.
Lab_03_Front.py File Reference

This is the frontend of lab 3 which recieves, plots, and saves data. More...

Variables

 Lab_03_Front.ser = serial.Serial(port='COM3',baudrate=115273,timeout=1)
 
 Lab_03_Front.inv
 
int Lab_03_Front.state = 0
 Variable representing the current program state. More...
 
list Lab_03_Front.data = []
 Variable holding the data recieved from the Nucleo.
 
list Lab_03_Front.voltage = []
 Variable representing voltage data.
 
 Lab_03_Front.time = numpy.arange(0 , 101)
 Variable storing the array of time data.
 

Detailed Description

This is the frontend of lab 3 which recieves, plots, and saves data.

When run, this program first asks the user for an input. If the user provides the correct input it is sent to the backend of the lab on the Nucleo which starts the data collection. This program then waits to recieve the data via serial communication, after which it plots the data as a function of time and saves both the time and voltage data in a csv file.

Variable Documentation

◆ inv

Lab_03_Front.inv
Initial value:
1 = input('Input G to initialize program. \n'
2  'Next press blue button on Nucleo to begin data collection. \n'
3  'LED on Nucleo will indicate when to push button, may need to press \n'
4  'more than once if LED does not turn off. \n')

◆ state

int Lab_03_Front.state = 0

Variable representing the current program state.

Varaible storing the stripped and split voltage data from Nucleo.