Log trigger from external device
Hi, I´m trying to figure out how can I log the data from a external device.
I have this code that I found here in the forum, so I think I could figure out how to make the connection with my device. But know I dont know how to log the data.
# we will need to import the 'serial' module,
# which allows us to send and receive
# information via the serial port
# next, we will need to start a connection to
# the serial port
exp.trigger = serial.Serial('/dev/tty.SLAB_USBtoUART')
# finally, we want to make sure that the
# connection to the serial port will be stopped
# when the experiment is aborted or finished