CALPOLY MECHATRONICS
Documentation for all Mechatronics Labs
ME405_FP_DataTask.py File Reference

Writes data from CSV upon command. More...

Functions

def ME405_FP_DataTask.dataCollectionTask ()
 Collects values of the state vector in the "x" & "y" directions. More...
 
def ME405_FP_DataTask.closeCSV ()
 

Variables

string ME405_FP_DataTask.fileName = 'Platform_Motion.csv'
 
 ME405_FP_DataTask.BalanceData_file = open('Platform_Motion.csv','w')
 

Detailed Description

Writes data from CSV upon command.

Imports every state variable queue in both directions of motion and stores the corresponding data in a CSV. There is an additional function that serves to close the CSV at regular intervals (implementation for this in main.py)
source code: https://bitbucket.org/eliotBriefer/me405_term_project/src/master/Tasks/ME405_FP_DataTask.py

Author
Eliot Briefer & Nicholas Greco
Date
6/11/2021

Function Documentation

◆ dataCollectionTask()

def ME405_FP_DataTask.dataCollectionTask ( )

Collects values of the state vector in the "x" & "y" directions.

If the user indicates they want data collection to begin, and this by pressing the "d" command in the User Task, the scheduler will begin to write data into the specified CSV