Matthew's Portfolio
dataTask.dataTask Class Reference

Data collection system for the controller. More...

Public Member Functions

def __init__ (self, debugFlag=True)
 Create a data collection task. More...
 
def dataTaskFcn (self)
 Send the data over serial to the PC Front End. More...
 

Public Attributes

 debugFlag
 Debugging flag for detailed analysis while running.
 
 dataToSave
 A flag to determine if we're saving x or y data.
 

Detailed Description

Data collection system for the controller.

This class collects the data from shares.py and send it through serial to the PC Frontend to plot it.

Constructor & Destructor Documentation

◆ __init__()

def dataTask.dataTask.__init__ (   self,
  debugFlag = True 
)

Create a data collection task.

This task will be called at the end of the program in order send the data through the serial port.

Parameters
debugFlagEnables or prevents certain print statements from appearing.

Member Function Documentation

◆ dataTaskFcn()

def dataTask.dataTask.dataTaskFcn (   self)

Send the data over serial to the PC Front End.

When the user taps CTRL-C, this file is run in order to send the data over serial, one line at a time. Once all the data has been sent, a plotting command will be sent for the PC FrontEnd to generate plots.


The documentation for this class was generated from the following file: