[open] USB device for controlling relay and trigger
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
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
Check out SigmundAI.eu for our OpenSesame AI assistant!
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
Hi Hiro,
In principle, yes, sending the trigger in an
inline_scriptprior 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
Check out SigmundAI.eu for our OpenSesame AI assistant!