Millisecond Forums

add a block

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

By nakayama - 11/29/2015

Hi, Dave,
How can I add an addition block<sample> to under the following syntax, and block<sample> appear after every ten times of other blocks.
goes like, for example:

1,5,4,3,5,3,2,4, 6, 7, sample;
3,4,5,3,4,12,11,10,1,7, sample (randomly)
....

<expt >
/ preinstructions = (instruction)
/ blocks = [1-120=noreplace(
1,1,1,1,1,1,1,1,1,1,
2,2,2,2,2,2,2,2,2,2,
3,3,3,3,3,3,3,3,3,3,
4,4,4,4,4,4,4,4,4,4,
5,5,5,5,5,5,5,5,5,5,
6,6,6,6,6,6,6,6,6,6,
7,7,7,7,7,7,7,7,7,7,
8,8,8,8,8,8,8,8,8,8,
9,9,9,9,9,9,9,9,9,9,
10,10,10,10,10,10,10,10,10,10,
11,11,11,11,11,11,11,11,11,11,
12,12,12,12,12,12,12,12,12,12)]
/ onblockend = [instruct.finishlabel="press enter to end the test"]
/ postinstructions = (result)
</expt>

Best,
nakayama
By Dave - 11/29/2015

You specify

<expt >
/ blocks = [1-10,12-21,23-32,34-43,45-54,56-65,67-76,78-87,89-98,100-109,111-120,122-131 = noreplace(1,2,3,4,5,6,7,8,9,10,11,12);
    11,22,33,44,55,66,77,88,99,110,121 = sample;  ]
</expt>
By nakayama - 11/29/2015

Oh i got it! Thank you Dave!
By nakayama - 12/2/2015

Hi Dave,
How Can I change the syntax to prevent the same two block or more are presented in sequence?
For example, to avoid: 12,12,12,3,6,3
Best,
Nakayama
By Dave - 12/2/2015

<expt >
/ blocks = [1-10,12-21,23-32,34-43,45-54,56-65,67-76,78-87,89-98,100-109,111-120,122-131 = noreplacenorepeat(1,2,3,4,5,6,7,8,9,10,11,12);
    11,22,33,44,55,66,77,88,99,110,121 = sample;  ]
</expt>
By nakayama - 12/4/2015

Many thanks!