Trigger to external software not working
Hi there, I asked this question within a previous post, but I thought it better to keep this question on a different thread.
I'm using a Dell (Windows 10).Then I'm using Legacy backend for OS.
I am running a task and at the same time recording fNIRS using OxySoft sofrware on the same computer.
I need to be able to use a keyboard to send a trigger to Oxysoft when a participant (babies) looks away during a block.
I have this working in my baseline block which has a sequence that looks like this:
- A loop containing a inline scrip, then sketchpad, then keyboard response
- through the loop I present a random sequence of jpg's in the sketchpad for ~30s
- the inline script to send the trigger is quite simple:
My problem is that in a different block loop, the same inline script does not send the trigger to Oxysoft. The only difference is that this loop has a sequence that uses a media_player_mpy, playing a random sequence of vide files. In this sequence I have:
- inline script with code:
- keyboard response
I have the keyboard_response with no correct response and Timeout set to 0 (or I've tried 15000 - ie the duration of the block).
The idea is that mostly the sequence will run a few videos and no trigger is needed. But occasionally i'll need to send an x trigger.
I think maybe it's how i've set up the keyboard_response?
I've been playing around with this for a couple of weeks and just can't work it out. Any help much appreciated.