interruptible flag

swegger's Avatar

swegger

16 Dec, 2015 07:53 PM

Hi Chris,

I'm curious, what does the interruptible flag do for task_system_states in MWorks (c.f. below)?

<task_system_state tag="Fix Wait" interruptible="YES">

Thanks,

Seth

  1. Support Staff 1 Posted by Christopher Sta... on 16 Dec, 2015 08:21 PM

    Christopher Stawarz's Avatar

    Hi Seth,

    The interruptible parameter is supported by all paradigm components (protocol, block, trial, list, task system, and task system state). Setting it to NO prevents the experiment from begin paused or stopped while that component (or any of its child components) is executing. If you attempt to pause or stop within a non-interruptible component, then the pause or stop won't take effect until the component's execution completes.

    One situation where this feature is useful is when dispensing a reward to an animal. If the sequence of actions is:

    1. Start the juice pump
    2. Wait for some amount of time
    3. Stop the juice pump

    then you don't want the experiment paused/stopped between the execution of steps 1 and 3. Putting all three actions inside, say, a list with interruptible="NO" prevents this from happening.

    Cheers,
    Chris

  2. Christopher Stawarz closed this discussion on 04 Jan, 2016 04:04 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac