Hi,
I am trying to use this extension to send signals to the EmotivPRO EEG software using a virtual serial port connection (com0com). When I open my experiment and start the extension, I am able to connect to my virtual serial port (confirmed by a virtual serial port monitoring software and the extension turning green), however the signals sent by the event dispatch do not seem to be going through. (Chrome developer mode tells me that an event is being dispatched but nothing shows up on the port monitoring software and no markers are sent to Emotiv).
My code is using jsPsych 7.3.3, here is what I have for the on_start function:
on_start: function(test) {
document.dispatchEvent(new CustomEvent('jspsych',{
detail:{
target: 'serial',
action: 'send',
payload: 'stim',
}
})
);},
and then I have a sendSignal function that is called in the after_response function of the image-keyboard-response plugin:
function sendSignal() {
document.dispatchEvent(new CustomEvent('jspsych',{
detail:{
target: 'serial',
action: 'send',
payload: 'response',
}
}));
I am pretty sure it is not a port issue or an issue on Emotiv's end since I set both ports to the same settings (9600 baud, parity none, 8 data bits, 1 stop bit) and am able to send signals to Emotiv with the monitoring software, just not through the extension. Has anyone else encountered any similar issues?
Hi,
I am trying to use this extension to send signals to the EmotivPRO EEG software using a virtual serial port connection (com0com). When I open my experiment and start the extension, I am able to connect to my virtual serial port (confirmed by a virtual serial port monitoring software and the extension turning green), however the signals sent by the event dispatch do not seem to be going through. (Chrome developer mode tells me that an event is being dispatched but nothing shows up on the port monitoring software and no markers are sent to Emotiv).
My code is using jsPsych 7.3.3, here is what I have for the on_start function:
on_start: function(test) {
document.dispatchEvent(new CustomEvent('jspsych',{
detail:{
target: 'serial',
action: 'send',
payload: 'stim',
}
})
);},
and then I have a sendSignal function that is called in the after_response function of the image-keyboard-response plugin:
function sendSignal() {
document.dispatchEvent(new CustomEvent('jspsych',{
detail:{
target: 'serial',
action: 'send',
payload: 'response',
}
}));
I am pretty sure it is not a port issue or an issue on Emotiv's end since I set both ports to the same settings (9600 baud, parity none, 8 data bits, 1 stop bit) and am able to send signals to Emotiv with the monitoring software, just not through the extension. Has anyone else encountered any similar issues?