Select a Random n of N Properties to Present
 
 
 
PST User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Select a Random n of N Properties to Present Expand / Collapse
Author
Message
Posted 8/7/2008 3:32:42 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 12/17/2008 10:58:15 AM
Posts: 1, Visits: 20
Hello All!

I have been using E-Prime for some time now, but I am getting a project ready and I am having trouble programming. The project involved a visual memory task. I present a set of visual stimuli (memory set) and then later later the subject is presented with a set of stimuli (memory test) that are identical to those in the memory set, or one item is different. This problem actually has several parts, so I'll break it down:

(1) I want to present four colored squares at the beginning of a trial (see attached example). The color of each square is unique and randomly chosen from seven possible colors. Currently, I have these seven colors in a List that my Inline script is embedded in, but as you will see, all four squares end up appearing in the same color. So...I am wondering how I can list a set of seven colors, but randomly chose four of them to present.

(2) At the end of the trial subjects will be presented with a test display, also with four colored squares. This test display will have the same four colors as the memory set on some trials, or one color will be different and will be one of the three colors that were not presented in the memory set. Thus, I am wondering how I can store the colors presented in the memory set so that the memory test display can be the same as the memory set display, or one color can be different.

Any help that anyone can provide would be GREATLY appreciated.

Thanx, Bryan

  Post Attachments 
Visual Memory.es2 (9 views, 35.36 KB)

Post #1926
Posted 8/8/2008 2:15:34 PM


Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: Yesterday @ 4:03:21 PM
Posts: 34, Visits: 153
Okay, I gave it a shot.

I removed the color attribute from your list, and put it in a new (unreferenced) list.

In your inline object, I added 4 string variables (one for each color), and each one gets assigned to a random color from the list.

Once each color is assigned, they are stored in a trial attribute that gets logged. For your later trials, you should still be able to access these attributes to see which colors were used for those trials.


Hope this helps!


  Post Attachments 
Visual_memory_new.es2 (6 views, 40.52 KB)
Post #1933
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -5:00, Time now is 2:52am

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.109. 12 queries. Compression Disabled.