# Range replicator questions

**URL:** <https://mworks.discourse.group/t/range-replicator-questions/714>\
**Category:** Support\
**Created:** [September 13, 2010, 4:13pm UTC](https://mworks.discourse.group/t/range-replicator-questions/714 "2010-09-13T16:13:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [September 13, 2010, 4:13pm UTC](https://mworks.discourse.group/t/range-replicator-questions/714/1 "2010-09-13T16:13:37Z")

</div>

dear chris,

i know that you are away, but i figured i would document the testing of this while it is in my head.

firstly, in the old days you didn’t need to declare the variable in the range\_replicator, is that different now.  
secondly, when the range\_replicator is used during an experiment, does it have to include a trial in it? or can it replicate over actions?  
finally, the example you sent me loads fine, and when i run it goes through the loading process but then barfs when it is meant to display? any idea on why that might happen on my machine.

i will continue testing, but figure, i would send an email with initial thoughts.

best  
najib

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [September 13, 2010, 4:16pm UTC](https://mworks.discourse.group/t/range-replicator-questions/714/2 "2010-09-13T16:16:44Z")

</div>

I’m attaching the example experiment referenced by Najib.

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [September 13, 2010, 4:16pm UTC](https://mworks.discourse.group/t/range-replicator-questions/714/3 "2010-09-13T16:16:44Z")

</div>

Attachment: [load\_and\_unload.xml](https://mworks.discourse.group/uploads/short-url/mFSeZZbwJ8skPWQw0qKCDEg63Lv.xml) (1.99 KB)

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [September 13, 2010, 6:00pm UTC](https://mworks.discourse.group/t/range-replicator-questions/714/4 "2010-09-13T18:00:10Z")

</div>

Hey Najib,

> firstly, in the old days you didn’t need to declare the variable in the range\_replicator, is that different now.

Yes, you need to declare the variable used in a range replicator, and the variable’s scope must be “local”.

> secondly, when the range\_replicator is used during an experiment, does it have to include a trial in it? or can it replicate over actions?

In an experiment, a range replicator can contain only paradigm components (protocols, blocks, trials, lists, task systems, task system states, or other range replicators). If you want to replicate over actions, you have to enclose them in a paradigm component.

> finally, the example you sent me loads fine, and when i run it goes through the loading process but then barfs when it is meant to display? any idea on why that might happen on my machine.

The entire experiment runs successfully on my machine. In what way does it “barf” for you?

Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 19, 2022, 11:54pm UTC](https://mworks.discourse.group/t/range-replicator-questions/714/5 "2022-07-19T23:54:19Z")

</div>

Closed on July 19, 2022, 11:54pm UTC


