Mechatronics
Documentation for ME 405 labs
UI_front.py File Reference

Contains the front-end User Interface for interacting with the Nucleo. More...

Functions

def UI_front.main ()
 Run the frontend user interface for determining the time constant of the Nucleo's user button. More...
 
def UI_front.clean_data (raw_data)
 Reformat the raw data into a list of strings. More...
 
def UI_front.gen_csv (filename, data)
 Generate a .CSV file from the given data. More...
 
def UI_front.calc_time_constant (times, values)
 Calculate the time constant of a button rising edge. More...
 
def UI_front.gen_image (filename, data)
 Generate a plot of user button rising edge response. More...
 

Variables

string UI_front.START_DATA_COLLECTION = "START_DATA_COLLECTION\n".encode("ascii")
 Define a constant for data collection start.
 
string UI_front.STOP_DATA_COLLECTION = "STOP_DATA_COLLECTION\n".encode("ascii")
 Define a constant for data collection stop.
 
bool UI_front.UI_DEBUG = True
 set a debug flag for extra messages and buffer space
 

Detailed Description

Contains the front-end User Interface for interacting with the Nucleo.

Currently only supported on Linux environments (64-bit Ubuntu 20.04.1)

Author
Tyler Olson
Date
May 6, 2021