predicted output time

Lindsey Glickfeld's Avatar

Lindsey Glickfeld

01 Oct, 2018 02:31 PM

Hi Chris,

I saw a discussion recently in which you showed Beshoy how to predict stimulus onset to reduce jitter in timing. We'd like to use this as well- could you tell me how to do this in the XML (we're not using MWEL).

Along these lines- could you put back some "legacy" pages for syntax for XML? Or is there a standard way to convert XML files into MWEL automatically?

Thanks,
Lindsey.

  1. Support Staff 1 Posted by Christopher Sta... on 01 Oct, 2018 03:01 PM

    Christopher Stawarz's Avatar

    Hi Lindsey,

    I saw a discussion recently in which you showed Beshoy how to predict stimulus onset to reduce jitter in timing. We'd like to use this as well- could you tell me how to do this in the XML (we're not using MWEL).

    The XML version of the code I shared with Beshoy looks like this:

    <action type="queue_stimulus" stimulus="stim" />
    <action type="update_stimulus_display" predicted_output_time="stim_onset_time" />
    <action type="wait" duration="stim_onset_time - now() + 30 ms" />
    <!-- Send the pulse now -->
    

    Along these lines- could you put back some "legacy" pages for syntax for XML?

    The component and expression references apply to both XML- and MWEL-based experiments. The handful of things that work only in MWEL are clearly marked as such.

    The bit that might not be clear is how to use the type signature (e.g. action/update_stimulus_display for the Update Stimulus Display action) in XML. The process is

    1. The part before the slash (e.g. action) becomes the XML tag:

      <action ... />
      
    2. The part after the slash (if any) becomes the value of the "type" attribute:

      <... type="update_stimulus_display" ... />
      

    All other parameters are just attributes in the XML.

    Or is there a standard way to convert XML files into MWEL automatically?

    I wrote a rough XML-to-MWEL converter for Mark Histed. Making a better version is on my to-do list, but I haven't done it yet.

    Cheers,
    Chris

  2. 2 Posted by Lindsey Glickfe... on 01 Oct, 2018 03:48 PM

    Lindsey Glickfeld's Avatar

    Great- thanks for your help!
    Lindsey.

  3. Christopher Stawarz closed this discussion on 02 Oct, 2018 04:19 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

Recent Discussions

07 Feb, 2019 02:24 PM
02 Feb, 2019 01:58 PM
01 Feb, 2019 06:25 PM
26 Jan, 2019 12:15 AM
18 Jan, 2019 05:44 PM