@@ -166,8 +166,7 @@ def read_arduino_data(ser, csv_writer=None, inverted=False):
166
166
channel_data .append (float (value )) # Convert to float and add to channel data
167
167
168
168
if csv_writer : # If CSV logging is enabled, write the data to the CSV file
169
- current_timestamp = datetime .now ().strftime ('%f' ) # Get the timestamp only in microseconds
170
- csv_writer .writerow ([current_timestamp , counter ] + channel_data )
169
+ csv_writer .writerow ([counter ] + channel_data )
171
170
if lsl_outlet : # If LSL streaming is enabled, send the data to the LSL stream
172
171
lsl_outlet .push_sample (channel_data )
173
172
@@ -233,7 +232,7 @@ def parse_data(ser, lsl_flag=False, csv_flag=False, verbose=False, run_time=None
233
232
csv_writer .writerow ([f"Arduino Board: { board } " ])
234
233
csv_writer .writerow ([f"Sampling Rate (samples per second): { supported_boards [board ]} " ])
235
234
csv_writer .writerow ([]) # Blank row for separation
236
- csv_writer .writerow (['Timestamp' , ' Counter' , 'Channel1' , 'Channel2' , 'Channel3' , 'Channel4' , 'Channel5' , 'Channel6' ]) # Write header
235
+ csv_writer .writerow (['Counter' , 'Channel1' , 'Channel2' , 'Channel3' , 'Channel4' , 'Channel5' , 'Channel6' ]) # Write header
237
236
238
237
end_time = time .time () + run_time if run_time else None
239
238
send_command (ser , 'START' )
0 commit comments