StimTracker Duo and Parallel Port Triggers
I used the instruction for parallel port (EEG triggers) and after installing the parallel_port_trigger plug in and downloading the DLPortIO driver I plugged new_parallel_port_trigger_init to the beginning of my experiment and new_parallel_port_trigger_send to the beginning of the practice_sequence which is where the stimuli first gets presented and ideally where I'd like the triggers to be recorded. I have tried to set it on dummy mode with the port address set to the default 0x378, but when I ran the experiment with the fNIRS connected I got the error message:
exception type: AttributeError
exception message: pptrigger not found
time: Fri Jun 08 13:52:17 2018
This computer does not allow me to directly plug in the DisplayPort Cable directly from the Parallel Port Output. This being the case; I have a CEDRUS StimTracker Duo connected to the computer via USB. This being the case, I fear the StimTracker might be complicating the process, but have not seen this type of issue addressed before.
The StimTracker support makes it clear that a USB driver is necessary and I have already gone ahead and installed that as well.
I have also tested the StimTracker on E-Prime using sample code and it successfully sent the event triggers.
Following a similar set up I tried changing port address to 0x3E8 which is COM3 where the USB Serial Port that the StimTracker is using. Then I also changed the bits per second to 115200. I tried emailing CEDRUS for help but they told me that they did not have any information that is specific to the OpenSesame software because they have no in-house experience with it.
However their website had some sample Python code on GitHub so I downloaded the zip file and placed it into the OpenSesame folder. I then tried to run the following script in the debug window:
# get a list of all attached XID devices devices = pyxid.get_xid_devices() dev = devices # get the first device to use if dev.is_response_device(): dev.reset_base_timer() dev.reset_rt_timer() while True: dev.poll_for_response() if dev.response_queue_size() > 0: response = dev.get_next_response() # do something with the response
I'll then get an indentation error, so once I try and fix it to the best of my ability I get an error code:
ImportErrorTraceback (most recent call last)
----> 1 import pyxid
3 # get a list of all attached XID devices
4 devices = pyxid.get_xid_devices()
ImportError: No module named pyxid
I would really like to run this experiment on OpenSesame so if anyone has any suggestions as to how I can get the software to recognize the StimTracker please let me know.