Port open during the experiment


Author
Message
Athanasia
Athanasia
Associate Member (261 reputation)Associate Member (261 reputation)Associate Member (261 reputation)Associate Member (261 reputation)Associate Member (261 reputation)Associate Member (261 reputation)Associate Member (261 reputation)Associate Member (261 reputation)Associate Member (261 reputation)
Group: Forum Members
Posts: 19, Visits: 58
Dear Dave,
For our experiment, we have 5 different ports. 4 with odors and 1 with air. We want the air port to be open during instructions/break pages and pretrial jittered intervals. Then, within the trial at stimulus times 0 we still want it open, then change at stimulustimes 2850 to one of the other 4 ports in a random way (solved) and then go back to air port at stimulustime 5000 till the end of the trial.
I thought about the /onexptbegin attribute, to ensure that the port will be also open during the non-trial parts, but I am not sure if this command interferes to the trial stimulustimes command.

<trial xx>
/ ontrialbegin = [trial.xx.resetstimulusframes();
         trial.xx.insertstimulustime(list.xx_odors.nextvalue, 2850);]
/ stimulustimes = [0=port.V5;** 0 = 3; 1000 = 2; 2000 = 1; 3000 = inhale; 5000 = Square; 5000 = port.V5; 7000 = list.Fear_Pictures; 7200 = Square; 7200 = Answer;]
/ pretrialpause = noreplace(1050,1550,2050,2550)

</trial>
<expt complete>
/onexptbegin = [port.V5]

<expt>
** is this necessary or it’s interpreted as a way to close the port when the same command with onexpt begin is repeated at the beginning of the trial?
Thank you in advance for your help.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search