Hi Chris -
Another quick question as I learn the ropes!
I’m adapting code from Marianna at NYU that uses range_replicator to determine a range of x/y positions for a stimulus, as follows:
list calibration_list (selection = random_without_replacement) {
range_replicator (
from = -4
to = 4
step = 2
variable = stm_selector_x
) {
range_replicator (
from = -4
to = 4
step = 2
variable = stm_selector_y
) {
I want to remove the hard-coded -4 to 4 range – and replace it with a user defined range in the variables window. I found somewhere in the discussion board that values in the range_replicator must be pre-defined and must have a local range, but I’m not sure where that definition goes or how it’s implemented.
For example, I tried something like this (but it didn’t work):
In the variables section, I added:
var area_sampled = 5 (
scope = local
logging = never
)
Then in the list section I added:
range_replicator (
variable = area_sampled
from = -area_sampled
to = area_sampled
step = 2
variable = stm_selector_x
) {
Tips?
Thanks!
Yasmine