Millisecond Forums

Progress bar in a block

https://forums.millisecond.com/Topic26304.aspx

By Rebecca17 - 1/28/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?
By Dave - 1/28/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.
By Rebecca17 - 1/29/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>
By Dave - 1/29/2019

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>