Ports kind of working but only after running Matlab, any ideas?


Author
Message
Andrew Papale
Andrew Papale
Partner Member (990 reputation)Partner Member (990 reputation)Partner Member (990 reputation)Partner Member (990 reputation)Partner Member (990 reputation)Partner Member (990 reputation)Partner Member (990 reputation)Partner Member (990 reputation)Partner Member (990 reputation)
Group: Forum Members
Posts: 66, Visits: 233
Hi Inquisit Team,

We've gotten Inquisit to send parallel port commands to our EEG system using the following code.  However, we discovered during troubleshooting that the port is only 'activated' correctly after running a Matlab script that outputs to the same parallel port.  I'm thinking that Matlab has some configuration setting that we are not thinking of that is getting saved.  Any help is appreciated.  The trigger needs to be configured for a BIOsemi EEG setup with:

Data Rate: 115200
Data Bits: 8
Stop Bits: 1
Parity: none
Flow Control: off
https://www.biosemi.com/faq/USB%20Trigger%20interface%20cable.htm


Again, we got it to work with Inquisit, so it's not a problem with BioSemi or cables or anything like that, but only after running Matlab to do (presumably the exact same thing) first.

<defaults>
  combaudrates = (COM4 = 115200)
</defaults>

<port sendtrialstart>
  port = COM4
 items = (10)
 subport = data
</port>

<trial experiment>
/ stimulustimes = [ sendtrialstart, *other stimuli*]
</trial>



Also as a plug for Inquisit vs Psychtoolbox, the timing jitter for Inquisit was far superior on our setup, coming in at ~1-2ms of jitter compared to 20-40ms for PTB.

Best,
Andrew

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search