Problem with replicator and disc_rand

In order to randomly interleave the stimuli in my new protocol I’m initiating the variable in the replicator, and then I use “disc_rand” to select among them. But for some reason this command doesn’t work. I’m always getting only the first image from the stack. Can you help me with this one?
Thank you in advance.

Vladimir

Hi Vladimir,

I’m happy to help, but I need some more information. Can you send me an example experiment illustrating the problem?

Thanks,
Chris

I’ve solved the problem, the variable was defined as local instead of global.
However, as one problem is solved, another appears.
And this one goes into “X-files” variety.
Since I’m trying to replicate my rat study in humans, I’m using some backward masking to make the task harder. And all of the masks are loaded at the beginning of the protocol. So far, so good, the experiment is working. But then I decide to change my masks, I rename the old folder “Masks_old” and make a new one with the name “Mask" (so I don’t have to touch the protocol). But it keeps showing me the old masks. OK, MWorks seems confused, maybe because both folders are in the same folder together so I move the old folder to a different location. Still no luck. I try renaming the new masks folder and changing the protocol, but then it won’t load the images (reports “probably bug”). I assume that there is still some cache where MWorks looks for the images but I can’t find it (tried in \Documents\MWorks with hidden files on, but no luck). Perhaps I’ll find an answer by the time you reply (since it seems this is how this dynamic works :slight_smile: ), but so far I had no success.

Vladimir