Group: Administrators
Posts: 13K,
Visits: 104K
|
Yes, of course. <port> elements work just like other stimulus types (<text>, <picture>, etc.). You simply display them via a <trial>'s /stimulustimes at the desired point(s) in time. Suppose you have a video and want to sent different markers a, b, c at 5000ms, 10000ms and 15000ms respectively (and lower any bits in-between to avoid any crosstalk).
<trial sometrial> / stimulustimes = [0=myvideo; 5000=signal_a; 5100=allbitstolow; 10000=signal_b; 10100=allbitstolow; 15000=signal_c; 15100=allbitstolow] ... </trial>
with
<video myvideo> / items = ("thevideo.mpg") ... </video>
and
<port signal_a> / items = ("00000001") .... </port>
<port signal_b> / items = ("00000010") .... </port>
<port signal_c> / items = ("00000011") .... </port>
<port allbitstolow> / items = ("00000000") .... </port>
|