Variable to control stimulus times


Author
Message
lwise
lwise
Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)
Group: Forum Members
Posts: 10, Visits: 28
Is it possible to control stimulus presentation times via a variable?

For example:
/ stimulustimes = [1=Fixation; 1000=Video1; 1500=TextLT; 2000=MaskLT]

if I wanted to display the TextLT and MaskLT at different times, can I control this programmatically (replacing 1500 and 2000 with a value or parameter), or do I need different types of trials with pre-specified stimulus times for each stimulus presentation sequence? 

Lisa
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
lwise - Sunday, January 22, 2017
Is it possible to control stimulus presentation times via a variable?

For example:
/ stimulustimes = [1=Fixation; 1000=Video1; 1500=TextLT; 2000=MaskLT]

if I wanted to display the TextLT and MaskLT at different times, can I control this programmatically (replacing 1500 and 2000 with a value or parameter), or do I need different types of trials with pre-specified stimulus times for each stimulus presentation sequence? 

Lisa

You can control this programmatically, but not via the /stimulustimes attribute. Instead you ought to use the /insertstimulustime function /ontrialbegin. See e.g.

https://www.millisecond.com/forums/FindPost19286.aspx or https://www.millisecond.com/forums/FindPost19694.aspx

lwise
lwise
Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)
Group: Forum Members
Posts: 10, Visits: 28
Dave - Monday, January 23, 2017
lwise - Sunday, January 22, 2017
Is it possible to control stimulus presentation times via a variable?

For example:
/ stimulustimes = [1=Fixation; 1000=Video1; 1500=TextLT; 2000=MaskLT]

if I wanted to display the TextLT and MaskLT at different times, can I control this programmatically (replacing 1500 and 2000 with a value or parameter), or do I need different types of trials with pre-specified stimulus times for each stimulus presentation sequence? 

Lisa

You can control this programmatically, but not via the /stimulustimes attribute. Instead you ought to use the /insertstimulustime function /ontrialbegin. See e.g.

https://www.millisecond.com/forums/FindPost19286.aspx or https://www.millisecond.com/forums/FindPost19694.aspx

Thanks for that - it solves my problem.

Where do I find documentation on the various things one can do with /ontrialbegin ?

Thanks again
Lisa
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
lwise - Monday, January 23, 2017
Dave - Monday, January 23, 2017
lwise - Sunday, January 22, 2017
Is it possible to control stimulus presentation times via a variable?

For example:
/ stimulustimes = [1=Fixation; 1000=Video1; 1500=TextLT; 2000=MaskLT]

if I wanted to display the TextLT and MaskLT at different times, can I control this programmatically (replacing 1500 and 2000 with a value or parameter), or do I need different types of trials with pre-specified stimulus times for each stimulus presentation sequence? 

Lisa

You can control this programmatically, but not via the /stimulustimes attribute. Instead you ought to use the /insertstimulustime function /ontrialbegin. See e.g.

https://www.millisecond.com/forums/FindPost19286.aspx or https://www.millisecond.com/forums/FindPost19694.aspx

Thanks for that - it solves my problem.

Where do I find documentation on the various things one can do with /ontrialbegin ?

Thanks again
Lisa

/ontrialbegin, /ontrialend, etc. are event attributes. They execute logic at the start or end of a trial. See the documentation on event atributes, the functions reference, as well as the available properties and functions in a given element's language reference topic.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search