<div dir="ltr"><DIV>Hi everyone,</DIV>
<DIV> </DIV>
<DIV>I started using E-prime about 10 days ago to program an experiment. I sincerely tried to teach myself how to use it and so far always managed to find a solution to every problem I was facing. However, as I don't any programming background, it seems I've been stuck for the last two days and cannot figure out how to fix that. I'm expecting it to be a very simple and obvious explanation that I could not understand, but anyway,, if you could help me it would be very appreciated. </DIV>
<DIV> </DIV>
<DIV>Here is the idea: It's a continuous recognition task where pictures are presented twice within a trial. Some of them (half) are repeated immediately after the first occruence, and the other after a few intervening items. The simple and lazy way would be to set up a list and decide manually in what order the pictures are to be presented, but that would not be very elegant and slightly biased. So the strategy is to have an identical sequence but randomly select what pictures will be in that order from trial to trial: E.g. A B C C D D A E B F F etc. is the sequence and on trial 1 we have A = a plane, B = a tree, C = an apple, etc. and on trial 2 we have A = a tree, B = a truck, C = a plane etc.</DIV>
<DIV> </DIV>
<DIV>In E-prime, after the pictures are uploaded in the Cache memory and their names in list called ImageList, I put an InLine to do the random attribution. The Code (59) array is where I store the elements of my sequence which are order in a List called Sequence which follows the the InLine and has a procedure nested for each element of the sequence (130 in total) to show the image associated with the level.</DIV>
<DIV> </DIV>
<DIV>Dim Code (59) as integer<BR>Dim Stim (59) as string<BR>Dim k as integer<BR>Dim j as integer<BR>Dim l as integer<BR>Dim n as integer</DIV>
<DIV> </DIV>
<DIV>Code(0)= 11<BR>Code(1)= 110<BR>Code(2)= 21<BR>Code(3)= 210<BR>Code(4)= 31<BR>Code(5)= 310<BR>Code(6)= 41<BR>Code(7)= 410<BR>Code(8)= 51<BR>Code(9)= 510<BR>Code(10)= 61<BR>Code(11)= 610<BR>Code(12)= 71<BR>Code(13)= 710<BR>Code(14)= 81<BR>Code(15)= 810<BR>Code(16)= 91<BR>Code(17)= 910<BR>Code(18)= 101<BR>Code(19)= 1010<BR>Code(20)= 111<BR>Code(21)= 1110<BR>Code(22)= 121<BR>Code(23)= 1210<BR>Code(24)= 131<BR>Code(25)= 1310<BR>Code(26)= 141<BR>Code(27)= 1410<BR>Code(28)= 151<BR>Code(29)= 1510<BR>Code(30)= 161<BR>Code(31)= 1610<BR>Code(32)= 171<BR>Code(33)= 1710<BR>Code(34)= 181<BR>Code(35)= 1810<BR>Code(36)= 191<BR>Code(37)= 1910<BR>Code(38)= 201<BR>Code(39)= 2010<BR>Code(40)= 211<BR>Code(41)= 2110<BR>Code(42)= 221<BR>Code(43)= 2210<BR>Code(44)= 231<BR>Code(45)= 2310<BR>Code(46)= 241<BR>Code(47)= 2410<BR>Code(48)= 251<BR>Code(49)= 2510<BR>Code(50)= 261<BR>Code(51)= 2610<BR>Code(52)= 271<BR>Code(53)= 2710<BR>Code(54)= 281<BR>Code(55)= 2810<BR>Code(56)= 291<BR>Code(57)= 2910<BR>Code(58)= 301<BR>Code(59)= 3010</DIV>
<DIV> </DIV>
<DIV>'Creates a string of stimulus pictures</DIV>
<DIV><BR>For k = 1 to 60<BR>Stim(k-1)=ImageList.GetAttrib (k, "ImageList")<BR>Next k</DIV>
<DIV> </DIV>
<DIV>'Randomly select a picture from Stim string and  <BR>'pairs it with an element of Code string</DIV>
<DIV><BR>For l = 0 to 59<BR>j = Random(0, 59)<BR> Stim (j) = Code (l)<BR>Next l</DIV>
<DIV><BR>For k = 1 to 130</DIV>
<DIV><BR>'When code value matches the value in the attribute, <BR>'the associated Stim picture is set in the ID column</DIV>
<DIV><BR>For n = 0 to 59<BR>if Sequence.GetAttrib (k, "order")= Code (n) Then<BR>Sequence.SetAttrib k, "ID", Stim<BR>End if<BR>Next n</DIV>
<DIV> </DIV>
<DIV>Next k</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Ok, now I feel my problem is in the last part because I cannot figure out how to give the instruction to check if the code number in the sequence list matches any number in the code array (and there is only one solution possible) to subsequently assign in the empty attribute called "ID" the picture name that was randomly associated previously. Or maybe I'm far from going anywhere and my strategy is wrong, but if anyone could just help me. I don't mind spending hours through user's guide, e-basic help or this group to find out how functions work until I learn how to use it, but it's been 2 days without improvement, and it's not constructive anymore.<BR></DIV></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe@googlegroups.com.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/e-prime/7853beb6-40bc-4b4f-a7d4-7d2e064d969f%40googlegroups.com">https://groups.google.com/d/msgid/e-prime/7853beb6-40bc-4b4f-a7d4-7d2e064d969f%40googlegroups.com</a>.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />