Progress bar in a block


Progress bar in a block

Author
Message
Rebecca17
Rebecca17
New Member
New Member (44 reputation)New Member (44 reputation)New Member (44 reputation)New Member (44 reputation)New Member (44 reputation)New Member (44 reputation)New Member (44 reputation)New Member (44 reputation)New Member (44 reputation)

Group: Forum Members
Posts: 7, Visits: 24
How can I get a progress bar, when a block consists of one trial and that trial consists of 50 text elements?
I already constructed an rectangle and wanted to be its width depending on the number of the current element (1...50) divided by the number of text elements (50).
But how can I implement a value that shows the number of the current text element?

Dave
Dave
Supreme Being
Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)

Group: Administrators
Posts: 9.3K, Visits: 41K
Rebecca17 - Tuesday, January 29, 2019
How can I get a progress bar, when a block consists of one trial and that trial consists of 50 text elements?
I already constructed an rectangle and wanted to be its width depending on the number of the current element (1...50) divided by the number of text elements (50).
But how can I implement a value that shows the number of the current text element?

I don't understand what a "trial consisting of 50 text elements" means. Please post some actual code to illustrate.

Rebecca17
Rebecca17
New Member
New Member (44 reputation)New Member (44 reputation)New Member (44 reputation)New Member (44 reputation)New Member (44 reputation)New Member (44 reputation)New Member (44 reputation)New Member (44 reputation)New Member (44 reputation)

Group: Forum Members
Posts: 7, Visits: 24
Dave - Tuesday, January 29, 2019
Rebecca17 - Tuesday, January 29, 2019
How can I get a progress bar, when a block consists of one trial and that trial consists of 50 text elements?
I already constructed an rectangle and wanted to be its width depending on the number of the current element (1...50) divided by the number of text elements (50).
But how can I implement a value that shows the number of the current text element?

I don't understand what a "trial consisting of 50 text elements" means. Please post some actual code to illustrate.

<block WS>
/ trials = [1-6 = WS]
/ timeout = 420000
/ bgstim = (BG1)
</block>

<trial WS>
/ stimulusframes = [1 = WS]
/ validresponse = ("f", "g", "h", "j", "k")
</trial>

<text WSF>
/ items = WSF
/ select = sequence (1,2,3,4,5,6)
/ position = (50%, 30%)
</text>

<item WSF>
/1 = "Wort1"
/2 = "Wort2"
/3 = "Wort3"
/4 = "Wort4"
/5 = "Wort5"
/6 = "Wort6"
</item>

Dave
Dave
Supreme Being
Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)Supreme Being (568K reputation)

Group: Administrators
Posts: 9.3K, Visits: 41K
Rebecca17 - Wednesday, January 30, 2019
Dave - Tuesday, January 29, 2019
Rebecca17 - Tuesday, January 29, 2019
How can I get a progress bar, when a block consists of one trial and that trial consists of 50 text elements?
I already constructed an rectangle and wanted to be its width depending on the number of the current element (1...50) divided by the number of text elements (50).
But how can I implement a value that shows the number of the current text element?

I don't understand what a "trial consisting of 50 text elements" means. Please post some actual code to illustrate.

<block WS>
/ trials = [1-6 = WS]
/ timeout = 420000
/ bgstim = (BG1)
</block>

<trial WS>
/ stimulusframes = [1 = WS]
/ validresponse = ("f", "g", "h", "j", "k")
</trial>

<text WSF>
/ items = WSF
/ select = sequence (1,2,3,4,5,6)
/ position = (50%, 30%)
</text>

<item WSF>
/1 = "Wort1"
/2 = "Wort2"
/3 = "Wort3"
/4 = "Wort4"
/5 = "Wort5"
/6 = "Wort6"
</item>

<block WS>
/ trials = [1-6 = WS]
/ timeout = 420000
</block>

<trial WS>
/ ontrialbegin = [
values.count += 1;
]
/ stimulusframes = [1 = WS, info]
/ validresponse = ("f", "g", "h", "j", "k")
</trial>

<text WS>
/ items = WSF
/ select = sequence (1,2,3,4,5,6)
/ position = (50%, 30%)
</text>

<item WSF>
/1 = "Wort1"
/2 = "Wort2"
/3 = "Wort3"
/4 = "Wort4"
/5 = "Wort5"
/6 = "Wort6"
</item>

<text info>
/ items = ("word <%values.count%> of <%text.WS.itemcount%>")
/ position = (50%, 10%)
/ size = (20%, 10%)
/ erase = false
</text>

<values>
/ count = 0
</values>



GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search