void table() { table = new Table(); table.addColumn("Timestamp"); table.addColumn("pNum"); table.addColumn("videoNum"); table.addColumn("vibroMode"); table.addColumn("thermalTemp"); table.addColumn("arousalVal"); table.addColumn("valenceVal"); table.addColumn("familiarityVal"); table.addColumn("comfortVal"); saveTable(table, "C:/Users/20173880/Documents/M2.1data/P10questions.csv"); //Change this name per participant! Otherwise it overwrites table2 = new Table(); table2.addColumn("Timestamp"); table2.addColumn("pNum"); table2.addColumn("videoNum"); table2.addColumn("thermalTemp"); table2.addColumn("tempMeasured"); saveTable(table2, "C:/Users/20173880/Documents/M2.1data/P10temp.csv"); //Change this name per participant! Otherwise it overwrites } void saveAnswers() { TableRow newRow = table.addRow(); newRow.setLong("Timestamp", currentMillis); newRow.setInt("pNum", pNum); newRow.setInt("videoNum", shownVideo); newRow.setInt("vibroMode", vibroMode); newRow.setInt("thermalTemp", temp); newRow.setInt("arousalVal", arousalVal); newRow.setInt("valenceVal", valenceVal); newRow.setString("familiarityVal", familiarityVal); newRow.setInt("comfortVal", comfortVal); saveTable(table, "C:/Users/20173880/Documents/M2.1data/P10questions.csv"); } void saveTemps() { TableRow newRow = table2.addRow(); newRow.setLong("Timestamp", currentMillis); newRow.setInt("pNum", pNum); newRow.setInt("videoNum", chosenVideo); newRow.setInt("thermalTemp", temp); newRow.setString("tempMeasured", serialReceived); saveTable(table2, "C:/Users/20173880/Documents/M2.1data/P10temp.csv"); }