Hi!
I am running my experiment in PTB, while EEG is recording in brain vision recorder.
I am having some difficulties in sending triggers through a parallel port. In previous topics I found this possible code:
ioObj = io64;
status = io64(ioObj);
address = hex2dec(‘E010’);
io64(ioObj,address,value);
WaitSecs(0.01);
io64(ioObj,address,0);
But as soon as I run the experiment MATLAB returns an error in “ioObj=io64” as an unrecognized function or variable. I am new to programming so I’m having some trouble in figuring out what the problem might be.
My stimulation computer is 64-bit with the Windows 10 version, and my MATLAB version is 2018. I’m using the actiChamp amplifier.
Can someone help me find the problem?
Thank you.
Maria
MATLAB returns an error in “ioObj=io64” as an unrecognized function or variable.
io64 is not (and never was) part of Psychtoolbox. Apparently it is no longer available or supported by the original source. You might possibly be able to download a copy from the Wayback machine:
https://web.archive.org/web/20210211055927/http://apps.usd.edu/coglab/psyc770/IO64.html
Best,
Andreas
1 Like
Hi Andreas,
Thank you for your response. It worked!
Thanks!
Maria
Hello,
I am currently encountering an issue with sending a trigger to the parallel port using MATLAB.
I am using the following code:
ioObj = io64;
status = io64(ioObj);
address = hex2dec(‘E010’);
io64(ioObj, address, value);
However, I receive the following error message:
inpoutx64 driver is NOT open
As a result, the trigger is not being sent to the parallel port. I would greatly appreciate any guidance or advice you could provide on resolving this issue.
Thank you for your time and assistance.