Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Log trigger from external device

edited March 11 in OpenSesame

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

import serial

# 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



Sign In or Register to comment.