time in datasheet


Author
Message
nrouhani
nrouhani
Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)
Group: Forum Members
Posts: 83, Visits: 261
hello! 

is there away to get different time stamps for when people start different blocks? in my datafile i only see a single time stamp for each participant. 

thank you so much! 
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: 104K
nrouhani - 9/11/2019
hello! 

is there away to get different time stamps for when people start different blocks? in my datafile i only see a single time stamp for each participant. 

thank you so much! 

You can log the given <block> element's timestamp properties or the current time at the start of a given block. Something like

<values>
/ blockstarttime = -1
/ blocktimestamp = -1
</values>


<block a>
/ onblockbegin = [
values.blockstarttime = script.currenttime;
values.blocktimestamp = block.a.timestamp;
]
/ trials = [1-4 = mytrial]
</block>

<block b>
/ onblockbegin = [
values.blockstarttime = script.currenttime;
values.blocktimestamp = block.b.timestamp;
]
/ trials = [1-4 = mytrial]
</block>

<trial mytrial>
/ posttrialpause = 500
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<text mytext>
/ items = ("Press SPACE")
</text>

<data>
/ columns = (date time subject group blocknum blockcode values.blockstarttime values.blocktimestamp trialnum trialcode stimulusitem response latency correct)
</data>



nrouhani
nrouhani
Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)
Group: Forum Members
Posts: 83, Visits: 261
Dave - 9/11/2019
nrouhani - 9/11/2019
hello! 

is there away to get different time stamps for when people start different blocks? in my datafile i only see a single time stamp for each participant. 

thank you so much! 

You can log the given <block> element's timestamp properties or the current time at the start of a given block. Something like

<values>
/ blockstarttime = -1
/ blocktimestamp = -1
</values>


<block a>
/ onblockbegin = [
values.blockstarttime = script.currenttime;
values.blocktimestamp = block.a.timestamp;
]
/ trials = [1-4 = mytrial]
</block>

<block b>
/ onblockbegin = [
values.blockstarttime = script.currenttime;
values.blocktimestamp = block.b.timestamp;
]
/ trials = [1-4 = mytrial]
</block>

<trial mytrial>
/ posttrialpause = 500
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<text mytext>
/ items = ("Press SPACE")
</text>

<data>
/ columns = (date time subject group blocknum blockcode values.blockstarttime values.blocktimestamp trialnum trialcode stimulusitem response latency correct)
</data>



thank you!
nrouhani
nrouhani
Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)
Group: Forum Members
Posts: 83, Visits: 261
nrouhani - 9/11/2019
Dave - 9/11/2019
nrouhani - 9/11/2019
hello! 

is there away to get different time stamps for when people start different blocks? in my datafile i only see a single time stamp for each participant. 

thank you so much! 

You can log the given <block> element's timestamp properties or the current time at the start of a given block. Something like

<values>
/ blockstarttime = -1
/ blocktimestamp = -1
</values>


<block a>
/ onblockbegin = [
values.blockstarttime = script.currenttime;
values.blocktimestamp = block.a.timestamp;
]
/ trials = [1-4 = mytrial]
</block>

<block b>
/ onblockbegin = [
values.blockstarttime = script.currenttime;
values.blocktimestamp = block.b.timestamp;
]
/ trials = [1-4 = mytrial]
</block>

<trial mytrial>
/ posttrialpause = 500
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<text mytext>
/ items = ("Press SPACE")
</text>

<data>
/ columns = (date time subject group blocknum blockcode values.blockstarttime values.blocktimestamp trialnum trialcode stimulusitem response latency correct)
</data>



thank you!

I am now having a problem where when i'm declaring the data columns (see below), the stimulusnumber/item/onset only appears for the first stimulus and no longer includes stimulusitem2-6 (perhaps also because each block has a different number of stimuli appearing on each trial), however when i separately declare "stimulusitem2, stimulusitem3" etc. in data, it gives warnings and doesn't appear to record that data.
<data>
/ columns = (date time values.blockstarttime values.blocktimestamp group subject blocknum trialnum blockcode trialcode pretrialpause posttrialpause trialduration trialtimeout response latency stimulusnumber stimulusitem stimulusonset)
</data>
thank you for your help!!
 


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: 104K
nrouhani - 9/18/2019
nrouhani - 9/11/2019
Dave - 9/11/2019
nrouhani - 9/11/2019
hello! 

is there away to get different time stamps for when people start different blocks? in my datafile i only see a single time stamp for each participant. 

thank you so much! 

You can log the given <block> element's timestamp properties or the current time at the start of a given block. Something like

<values>
/ blockstarttime = -1
/ blocktimestamp = -1
</values>


<block a>
/ onblockbegin = [
values.blockstarttime = script.currenttime;
values.blocktimestamp = block.a.timestamp;
]
/ trials = [1-4 = mytrial]
</block>

<block b>
/ onblockbegin = [
values.blockstarttime = script.currenttime;
values.blocktimestamp = block.b.timestamp;
]
/ trials = [1-4 = mytrial]
</block>

<trial mytrial>
/ posttrialpause = 500
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<text mytext>
/ items = ("Press SPACE")
</text>

<data>
/ columns = (date time subject group blocknum blockcode values.blockstarttime values.blocktimestamp trialnum trialcode stimulusitem response latency correct)
</data>



thank you!

I am now having a problem where when i'm declaring the data columns (see below), the stimulusnumber/item/onset only appears for the first stimulus and no longer includes stimulusitem2-6 (perhaps also because each block has a different number of stimuli appearing on each trial), however when i separately declare "stimulusitem2, stimulusitem3" etc. in data, it gives warnings and doesn't appear to record that data.
<data>
/ columns = (date time values.blockstarttime values.blocktimestamp group subject blocknum trialnum blockcode trialcode pretrialpause posttrialpause trialduration trialtimeout response latency stimulusnumber stimulusitem stimulusonset)
</data>
thank you for your help!!
 


> however when i separately declare "stimulusitem2, stimulusitem3" etc. in data, it gives warnings and doesn't appear to record that data.

You don't declare stimulusitem2, stimulusitem3, etc. You simply declare additional stimulusitem columns, without any numbering, as detailed in the documentation: https://www.millisecond.com/support/docs/v5/html/language/attributes/columns.htm

/ columns = (date time values.blockstarttime values.blocktimestamp group subject blocknum trialnum blockcode trialcode pretrialpause posttrialpause trialduration trialtimeout response latency stimulusnumber stimulusitem stimulusonset stimulusnumber stimulusitem stimulusonset stimulusnumber stimulusitem stimulusonset stimulusnumber stimulusitem stimulusonset ...)

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search