How to code for receiving a trigger signal from the scanner in the matlab script ?

Hello all
I am trying to get the trigger signal from the scanner and make matlab script to run. How can I code to get the trigger signal and then run it?
I am wondering if yo can give me some advice or other example matlab code?

Thanks in advance.
Dear Hye Young Heo,

It really depends on your scanner. There is no ready-made solution, because it depends on the shape and type of trigger that the scanner would send upon startup and/or just before each volume acquisition. Best is to contact the manufacturer of the scanner you will be using, ask them about the signal matlab should be reading, then figuring out if psychtoolbox can read it or if you'd have to use other means to so, e.g. specialised i/o toolbox. The manufacturer can probably advise you on what has worked in the past. Once you can read that signal, it is just a matter of launching the script from your i/o reading script.

Kind regards,

Etienne


On 11 Jan 2012, at 21:08, Hye Young Heo wrote:

Hello all
I am trying to get the trigger signal from the scanner and make matlab script to run. How can I code to get the trigger signal and then run it? 
I am wondering if yo can give me some advice or other example matlab code? 

Thanks in advance.