Terminate Experiment After Elapsed Time X


Author
Message
DCole9
DCole9
Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)Distinguished Member (4.4K reputation)
Group: Forum Members
Posts: 42, Visits: 220
Hey Inquisiters,
I'm trying to have my experiment terminate itself after expt.name.elapsedtime becomes > a certain duration.  I tried doing the following.

<trial>
...
/branch = [if (expt.myexpt.elapsedtime < 810000) block.theblock)]
</trial>
<exp myexptt>
/blocks [1 = theblock]
</expt>


This is giving me the error that block.theblock is the wrong element type.  I suspect that is because I am trying to branch to a block from a trial?  I have to code my experiment this way b/c my trials refresh on each button press (fills a bar).  So I have blocks as my "trials".  Is there a way to 'break' the experiment with a certain command or to branch to a block from a trial?  Maybe there is something I am missing.

Thanks for your time,
Dan





GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search