Howdy, Stranger!

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

Supported by

[open] USB device for controlling relay and trigger

keikei
edited February 2014 in OpenSesame

Hi,
I'm a beginner of Opensesame and python, trying to switch from C# development, so not sure well. I'd like to use USB device to controlling relay or digital I/O for triggering EEG or EMG devices. In your documents, PySerial seems necessary. I tried to download and install it on my Windows, but couldn't do it, due to failing to find directory of python. It means I must install python independently, even if I installed opensesame? When installing opensesame, python was not installed as well? If so, what version (python 2.xx or 3.xx) should I install? Please let me suggest.
Hiro

Comments

  • edited 12:32PM

    Hi Hiro,

    If you are using the Windows packages of OpenSesame, pyserial is already included. So you don't need to do anything extra!

    Cheers,
    Sebastiaan

  • keikei
    edited 12:32PM

    Hi Sebastiaan,
    Many thanks for quick reply! Great hospitality! I'll try it soon. Besides, I've another additional question. Now I will want to send trigger by USB I/O interface at the onset of movie clip presentation. Now I guess one solution; inline script item sending trigger will be inserted before video-playback item, but I'm afraid if trigger will be sent precisely at the onset of movie. Otherwise, how should I do?
    Cheers,
    Hiro

  • edited 12:32PM

    Hi Hiro,

    In principle, yes, sending the trigger in an inline_script prior to starting movie playback should be fine. But of course movie playback is complicated and not designed for millisecond accuracy. So if timing is crucial for your experiment, I would verify the timing using, for example, a photodiode.

    Cheers!
    Sebastiaan

Sign In or Register to comment.