Howdy, Stranger!

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

Supported by

[open] sending serial trigger to Emotive EEG

edited January 2014 in OpenSesame

Hi

Now i am facing a big problem in serial trigger sending , i found many tutorial here about serial trigger but python use only win 32 and i am running on win64 how can i solve this problem ? i found boks on the website ?

Another crucial problem is sending trigger after or before stimulus ? i am really weird may say it is preferable to send before stimulus so what is accurate besides i will gonna to use VEP so 100 trials
if i supposed to send before stimulus when i am calculating how can i know the delay please i need clear clarification for that

My system supposed using Emotive EEG , VSPE , and opensesame

Thanks

Comments

  • edited January 2014

    Hi,

    Welcome to the forum. In the future, please do not open multiple discussions for the same problem!

    i found many tutorial here about serial trigger but python use only win 32 and i am running on win64 how can i solve this problem ?

    That's no problem: You can use 32 bits software on your 64 bits computer.

    Another crucial problem is sending trigger after or before stimulus ? i am really weird may say it is preferable to send before stimulus so what is accurate besides i will gonna to use VEP so 100 trials if i supposed to send before stimulus when i am calculating how can i know the delay please i need clear clarification for that

    I'm afraid that I don't understand this question. Could you please try to rephrase? Don't worry, the English doesn't have to be perfect (most people on this forum are not native English speakers). But we have to be able to understand it!

    (...) i am really weird (...)

    ;)

    Cheers,
    Sebastiaan

  • edited January 2014

    Thanks sebastiann , i am so sorry for multiple posting :)
    Okay now i reached to the point for solving my problem with pyserial on my win64 i find solution :) another thing is how can deal with the serial port communication i supposed to use emotive eeg headset with opensesame , so i found ur discussion with another member really it was good after tough few days in trying
    i reached to using Virtual serial port emulator between opensesame and emotive eeg
    the result was as shown in the attached photo

    i have 2 cycles each cycle =10 times so the total number of the trial is 20 random
    i made python inline code for trial type by adding if condition in the loop experiment then sending
    exp.serial_port.write(chr(1)) # Send the byte 1 as a character
    for each stimulus so the result i found reading 20 bytes
    i don't know if it was right or not
    image

    Thanks :)

  • edited 9:51PM

    I am trying to do the same thing...send a marker at the presentation of a visual stimulus to Testbench which is the software for the EPOC EEG. Testbench revieves events via a serial COM port.

    I have tried using an Inline script....

    On the prepare phase tab
    exp.serial_port = serial.Serial(COM7, 9600, timeout=1) #
    On the run tab
    On the exp.serial_port.write("\x7f") # Send decimal 127
    exp.serial_port.flush()

    Is this correct? I am very new to programming and would be very grateful for some help

  • edited 9:51PM

    I have just solved the about by reading through some of the previous postings

    ref: [open] Serial port trigger for EEG?? pénélopepénélope January 8
    Thanks for the detail provided as this is a real help :-)

  • edited 9:51PM

    Hi @Jarrod and @meldiwiny,

    As far as I can tell from your descriptions, I think that you have both set things up correctly. And as Jarrod pointed out, you can find a detailed discussion about sending triggers via the serial port here:

    But the best way to find out whether things work correctly is by checking your logfile, of course! Are your triggers recorded and logged as you would expect them to?

    Cheers!
    Sebastiaan

Sign In or Register to comment.