Passes a signal to initiate data collection, and then plots the recieved data. More...
Variables | |
| ME405_Lab0x03_FrontEnd.ser = serial.Serial(port='COM4', baudrate=115273, timeout = 1) | |
| Defines the serial port, the sampling rate, and the timeout. | |
| ME405_Lab0x03_FrontEnd.goCmd = input('Enter a "g" to begin data collection') | |
| Enables the user to enter a command at the beginning of the program. More... | |
| list | ME405_Lab0x03_FrontEnd.TimeList = [] |
| Creates an empty list to be filled with TIME STAMPS from the BackEnd. | |
| list | ME405_Lab0x03_FrontEnd.DataList = [] |
| Creates an empty list to be filled with VOLTAGES from the BackEnd. | |
Passes a signal to initiate data collection, and then plots the recieved data.
The Front End allows the user to pass a "go" command to the Back End. The Back End receives this code and begins a data collection process. This data is then sent back to the Front End, which reads the data, clears away irrelevant characters, and prepares the data to be exported as a CSV. The data is also plotted.
source code: https://bitbucket.org/nicho755/me-305-labs/src/master/ME405_Lab0x03_PushingTheRightButtons/ME405_Lab0x03_FrontEnd.py
| ME405_Lab0x03_FrontEnd.goCmd = input('Enter a "g" to begin data collection') |
Enables the user to enter a command at the beginning of the program.
This command will initiate data colleciton in the Back End