From batne at hotmail.com Fri Mar 2 11:20:53 2007 From: batne at hotmail.com (Tobias Johansson) Date: Fri, 2 Mar 2007 11:20:53 +0000 Subject: add items from a list to an array in E-prime Message-ID: An HTML attachment was scrubbed... URL: From goodman2 at cc.wwu.edu Sat Mar 3 04:41:09 2007 From: goodman2 at cc.wwu.edu (Nicholas Goodman) Date: Fri, 2 Mar 2007 20:41:09 -0800 Subject: Slide Images change resolution Message-ID: Hello again E-Primers, Short question. I have a procedure using slide objects which present the bmp files i have stored in the 'My Experiments' folder. when I run the experiment, the images are distorted (the resolution changes, and the images shift position). I don't like that the images shift and would like them to appear the same as they are in the original file. I have made sure that the file in the slide object is formated, but the image always changes resolution during the experiment. Any ideas? Thank you in advance Nicholas Goodman Graduate Student, Experimental Psychology Western Washington University From asa8 at le.ac.uk Sat Mar 3 11:43:17 2007 From: asa8 at le.ac.uk (Andrews, A.S.) Date: Sat, 3 Mar 2007 11:43:17 -0000 Subject: Slide Images change resolution In-Reply-To: <62718.24.17.156.129.1172896869.squirrel@www.ac.wwu.edu> Message-ID: Hi Nicholas Your images could be changing for a number of reasons. Firstly you should make sure your desktop size in the experiment is set to the size you want. The default values are often different to your Windows desktop. You can edit the settings through the Experiment object at the top of the Structure window. Next, you should place an image on a Slide object, and set the size of it to be the same as the largest image you want to display. You should also make sure that 'Stretch' is turned off or it will distort your images to fill the placeholder. Best regards, Tony Andrews Principal Computer Officer School of Psychology University of Leicester. -----Original Message----- From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On Behalf Of Nicholas Goodman Sent: 03 March 2007 04:41 To: eprime at mail.talkbank.org Subject: Slide Images change resolution Hello again E-Primers, Short question. I have a procedure using slide objects which present the bmp files i have stored in the 'My Experiments' folder. when I run the experiment, the images are distorted (the resolution changes, and the images shift position). I don't like that the images shift and would like them to appear the same as they are in the original file. I have made sure that the file in the slide object is formated, but the image always changes resolution during the experiment. Any ideas? Thank you in advance Nicholas Goodman Graduate Student, Experimental Psychology Western Washington University From nikelski at bic.mni.mcgill.ca Mon Mar 5 04:36:50 2007 From: nikelski at bic.mni.mcgill.ca (EJ Nikelski) Date: Sun, 4 Mar 2007 23:36:50 -0500 Subject: Port value out of range Message-ID: Hi all, I have a simple, yet annoying problem. I'm using a NI-DAQ to send a 5-VDC TTL trigger to a TMS machine. When I set the port address and send the pulse using WritePort, I get my pulse (I have a voltmeter on the output pin). If, however, I try to use the OnsetSignal process, I get a runtime error telling me "10008: Port value out of range" while setting OnsetSignalPort. Now, the port value is a little unusual (&hFFE0) since I am addressing a NI PCMCIA card ... but the address is clearly valid (as exemplified by the WritePort exercise ... and verified by checking in the device manager). Does anyone have any idea why OnsetSignal is having a problem with this address? Thanks, -Jim -- Jim Nikelski, Ph.D. Postdoctoral Research Fellow Bloomfield Centre for Research in Aging Lady Davis Institute for Medical Research Sir Mortimer B. Davis - Jewish General Hospital McGill University Tel: (514) 340-8222 x 2298 Fax: (514) 340-8295 From pauls_postbus at hotmail.com Mon Mar 5 05:00:07 2007 From: pauls_postbus at hotmail.com (Paul Gr) Date: Mon, 5 Mar 2007 06:00:07 +0100 Subject: Port value out of range Message-ID: Hi Jim, This is a known (and fixed) issue. More info is available from the EPrime knowledge base: info topic 2575: FEATURE: OnsetSignalDataPort and OffsetSignalDataPort permit wider range of values E-Prime 1.2.1.811 and later permit a wider range of parallel port values. http://www.pstnet.com/e%2Dprime/support/kb.asp?TopicID=2575 So, updating to the latest release should fix the problem. Best,paul Paul Groot VU University Amsterdam > Date: Sun, 4 Mar 2007 23:36:50 -0500> From: nikelski at bic.mni.mcgill.ca> To: eprime at mail.talkbank.org> Subject: Port value out of range> > Hi all,> > I have a simple, yet annoying problem. I'm using a NI-DAQ to send a> 5-VDC TTL trigger to a TMS machine. When I set the port address and send> the pulse using WritePort, I get my pulse (I have a voltmeter on the> output pin). If, however, I try to use the OnsetSignal process, I get a> runtime error telling me "10008: Port value out of range" while setting> OnsetSignalPort.> > Now, the port value is a little unusual (&hFFE0) since I am> addressing a NI PCMCIA card ... but the address is clearly valid (as> exemplified by the WritePort exercise ... and verified by checking in> the device manager). Does anyone have any idea why OnsetSignal is having> a problem with this address?> > Thanks,> > -Jim> > > -- > Jim Nikelski, Ph.D.> Postdoctoral Research Fellow> Bloomfield Centre for Research in Aging> Lady Davis Institute for Medical Research> Sir Mortimer B. Davis - Jewish General Hospital> McGill University> Tel: (514) 340-8222 x 2298> Fax: (514) 340-8295> > _________________________________________________________________ Probeer Live.nl: zoekmachine van de makers van MSN! http://www.live.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From brobinso at mprc.umaryland.edu Wed Mar 7 20:20:49 2007 From: brobinso at mprc.umaryland.edu (Ben Robinson) Date: Wed, 7 Mar 2007 15:20:49 -0500 Subject: add items from a list to an array in E-prime Message-ID: something along these lines should work: Dim i as Integer Dim array(List1.Size-1) as String For i=1 to List1.Size array(i-1) = List1.GetAttrib i, "ColumnName" Next i ben robinson >>> "Tobias Johansson" 3/2/2007 6:20 AM >>> Hi! I have a question about arrays that I cannot really figure out on my own. I have a variable with a number of items in a list. I want these items added to an array in the beginning of the experiment because I want to search through the array through out the course of the experiment, e.g. "If the subjects response in the array then do X, otherwise do Y". I have no problems with the code for searching the array. But I do have problems with adding all of the items in the list to an array in an economical fashion. I have set up a trial procedure with an inline script so the experiment goes through all the items in the list, one by one, and adding them to the array. But this generates a lot of saved trials and the datafile gets messy (of course I can filter the data file, but still....). Is there any way to, in one big fat step, just add a whole list of items to an array, without using any trialprocedure, but just referring to the list? Best regards Tobias Johansson Lund University, Sweden Express yourself instantly with MSN Messenger! MSN Messenger Download today it's FREE! From Fabrizio.Ferri at uv.es Mon Mar 12 15:21:03 2007 From: Fabrizio.Ferri at uv.es (Fabrizio Ferri Benedetti) Date: Mon, 12 Mar 2007 16:21:03 +0100 Subject: Error with RB-530 keyboard (emulating SR pad) Message-ID: Hello, I'm getting this error on some PCs, when using a Cedrus RB-530 response pad (ports from 1 to 4): Run-time Error (Line 462) 10051: An error occurred while attempting to open the device Error: 0x00004a49 Message: 'Unable to open the SRBOX: 0x00000005 The SRBox Device Driver may not be installed' The PC correctly detects the pad, tough. What could be the problem? On other's PCs, the pad works flawlessly. Cheers, Fabrizio -- Fabrizio Ferri Benedetti Departamento de Psicología Evolutiva y Educativa Facultad de Psicología Universidad de Valencia http://www.uv.es/fafebe From tab2006 at med.cornell.edu Wed Mar 14 19:44:14 2007 From: tab2006 at med.cornell.edu (Tracy A. Butler) Date: Wed, 14 Mar 2007 15:44:14 -0400 Subject: 2.0 Beta E-DataAid export problem Message-ID: I made an .emrg file that looks fine in E-DataAid, but when I try to export it (as either statview or excel - they both turn out as .txt anyway) I get a meaningless file filled w/ numbers and letters. Is this a bug? Thanks, Tracy From tab2006 at med.cornell.edu Wed Mar 14 21:39:46 2007 From: tab2006 at med.cornell.edu (Tracy A. Butler) Date: Wed, 14 Mar 2007 17:39:46 -0400 Subject: 2.0 Beta E-DataAid export problem In-Reply-To: <007c01c76671$2516b050$4535fb8c@svc.a.wcmcad.net> Message-ID: This seems to be a Eprime 2.0-specific problem (I've previously had no problems doing this in eprime 1). I will post this on the E-Prime 2.0 users Forum at the PST website. Thanks! -----Original Message----- From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On Behalf Of Tracy A. Butler Sent: Wednesday, March 14, 2007 3:44 PM To: eprime at mail.talkbank.org Subject: 2.0 Beta E-DataAid export problem I made an .emrg file that looks fine in E-DataAid, but when I try to export it (as either statview or excel - they both turn out as .txt anyway) I get a meaningless file filled w/ numbers and letters. Is this a bug? Thanks, Tracy From Stephane.DeBrito at iop.kcl.ac.uk Mon Mar 19 17:15:56 2007 From: Stephane.DeBrito at iop.kcl.ac.uk (De Brito, Stephane) Date: Mon, 19 Mar 2007 17:15:56 -0000 Subject: change of reinforcement contingencies across participants Message-ID: Dear E-prime experts, I am working on a task in which the participant is presented with pairs of picture on the screen. I have 10 different pictures and each picture is associated with a reinforcement value which stays the same throughout the experiment (e.g. the cup always wins you 900 points and the cow always looses you 900 points). On each trial, the participant has to choose one of the two pictures presented (press 'q' for left hand side picture and 'p' for right hand side picture) and win has many points has he can. The reinforcement values are +900 +700 +500 +300 +100 -100 +300 +500 +700 +900. Sometimes the participant is presented with 2 pictures associated with punishment (pun-pun trials) and has to choose the one associated with the lowest punishment (i.e. scored as correct); on pun-rew trials the rew is scored as correct and on rew-rew trials the pictures with highest reinforcement value is scored as correct. The task is running fine, but I would like to change across participants the reinforcement contingency for each picture so that, for example, not every participant wins 900 point when they choose the cup. At the moment, I have the following attributes in my listobject: Picture1 Picture2 Slidestate CorrectAnswer Correct Incorrect cup.bmp cow.bmp 1 q You have won 900 points You have lost 900 points car.bmp spoon.bmp 3 q You have lost 300 points You have lost 500 points Etc... Basically, I would like to keep the pairing for my attributes 'Correct' and 'Incorrect' the same, but I want to change across participants the pairing in my 'Picture 1' and 'Picture 2' attributes. I hope I made myself clear. From the e-prime manual and discussion with colleagues, it seems that the best way to do this would be with an 'array', but I have not managed to work it out yet. Any idea on how to achieve this would be greatly appreciated. Many thanks. Best wishes, Stephane ------------------------------------------ Stephane De Brito, PhD student Institute of Psychiatry King's College London Forensic Mental Health Science Department Box P023 De Crespigny Park Denmark Hill London SE5 8AF United Kingdom Tel: + 44 (0) 20 7848 0711 Fax: + 44 (0) 20 7848 0754 website: www.iop.kcl.ac.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From leisha at decisionresearch.org Mon Mar 19 22:27:27 2007 From: leisha at decisionresearch.org (Leisha Wharfield) Date: Mon, 19 Mar 2007 15:27:27 -0700 Subject: change of reinforcement contingencies across participants In-Reply-To: <7AC047D44A8CD243B7FE9305102D5FD105B69BA7@MAIL.bc.iop.kcl.ac.uk> Message-ID: Hi, Stephane, I never worked out arrays either, but I did something a lot like this. I would embed another list under Correct and Incorrect that allowed as many other values as you like. Say for Correct you have +900 +700 +500 +300 & +100. That is five different values. Embed a list under Correct called CorrectValues, for example. To do this, you put the name of the list in brackets in the list you already have, so it looks like this: [CorrectValues]. CorrectValues will have 5 different rows & the variable [Value] must match what is on your screen. So the screen that shows that value will say [Value] not [Correct]. You can rearrange these names any way you want to, but the name of the variable that matches the screen will be the same as in the embedded list, if you are following me. To be sure that the cow is always worth whatever value that it picks for the same subject, say every time the cow appears you win $500, have the embedded list pick based on subject number. This might result in every fifth subject getting the same pair of + & - numbers, though. I'm not sure. Maybe someone else could help with that part. Hope this helps, Leisha De Brito, Stephane wrote: > Dear E-prime experts, > > > > I am working on a task in which the participant is presented with > pairs of picture on the screen. I have 10 different pictures and each > picture is associated with a reinforcement value which stays the same > throughout the experiment (e.g. the cup always wins you 900 points > and the cow always looses you 900 points). On each trial, the > participant has to choose one of the two pictures presented (press 'q' > for left hand side picture and 'p' for right hand side picture) and > win has many points has he can. The reinforcement values are +900 +700 > +500 +300 +100 -100 +300 +500 +700 +900. Sometimes the participant is > presented with 2 pictures associated with punishment (pun-pun trials) > and has to choose the one associated with the lowest punishment (i.e. > scored as correct); on pun-rew trials the rew is scored as correct and > on rew-rew trials the pictures with highest reinforcement value is > scored as correct. > > > > The task is running fine, but I would like to change across > participants the reinforcement contingency for each picture so that, > for example, not every participant wins 900 point when they choose the > cup. At the moment, I have the following attributes in my listobject: > > > > Picture1 > > > > Picture2 > > > > Slidestate > > > > CorrectAnswer > > > > Correct > > > > Incorrect > > cup.bmp > > > > cow.bmp > > > > 1 > > > > q > > > > You have won 900 points > > > > You have lost 900 points > > car.bmp > > > > spoon.bmp > > > > 3 > > > > q > > > > You have lost 300 points > > > > You have lost 500 points > > Etc... > > > > Basically, I would like to keep the pairing for my attributes > 'Correct' and 'Incorrect' the same, but I want to change across > participants the pairing in my 'Picture 1' and 'Picture 2' attributes. > I hope I made myself clear. From the e-prime manual and discussion > with colleagues, it seems that the best way to do this would be with > an 'array', but I have not managed to work it out yet. Any idea on > how to achieve this would be greatly appreciated. Many thanks. > > > > Best wishes, > > Stephane > > > > ------------------------------------------ > > Stephane De Brito, PhD student > > Institute of Psychiatry > > King's College London > > Forensic Mental Health Science Department > > Box P023 > > De Crespigny Park > > Denmark Hill > > London SE5 8AF > > United Kingdom > > Tel: + 44 (0) 20 7848 0711 > > Fax: + 44 (0) 20 7848 0754 > > website: www.iop.kcl.ac.uk > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From smithel at psych.upenn.edu Wed Mar 21 15:22:44 2007 From: smithel at psych.upenn.edu (Elizabeth Smith) Date: Wed, 21 Mar 2007 11:22:44 -0400 Subject: scorebar Message-ID: I have a probabilistic learning task where I need a scorebar on the side of the screen to go up when the subject gets a correct answer and down when it is incorrect. I found a sample of a scorebar program online, but its not really what I'm looking for. Basically I have two images. A vertical line and a smaller horizontal line. I'm wondering if there is a way to get the small horizontal line image to move up for correct answers and down for incorrect answers and to stay in that position until the next trial. So the movement is cumulative. Any thoughts/ideas would be greatly appreciated. I'm not great at programming and I'm a bit stuck on this problem. Thanks! -- Elizabeth Smith Farah Lab Center for Cognitive Neuroscience University of Pennsylvania 215.573.8534 (office) 215.275.5474 (cell) From kated at psych.utoronto.ca Wed Mar 21 15:56:14 2007 From: kated at psych.utoronto.ca (Kate Dupuis) Date: Wed, 21 Mar 2007 11:56:14 -0400 Subject: Auditory sound presentation Message-ID: Hello all I have a problem concerning presenting sound files in my experiment. The entire presentation time of each of my SoundOut objects is 4000 msec. However, my stimuli are typically not exactly 4000 msec long, therefore I will have a period of silence before and after the stimulus. For example, if Sound 1 is only 2500 msec long, I will have to have 750 msec of silence before and after sound 1 is presented. If sound 2 is 3000 msec long, I will have to have 500 msec of silence before and after it is presented. The period of silence before and after the stimulus is played within that 4000 msec period will vary according to the length of each stimulus. How do I tell EPrime how many msec of silence to present on each trial? That is my question. Thank you, Kate -- Kate Dupuis M.A. Ph.D. student Human Communication Laboratory Department of Psychology University of Toronto at Mississauga From dhair at wfubmc.edu Wed Mar 21 16:03:26 2007 From: dhair at wfubmc.edu (David Hairston) Date: Wed, 21 Mar 2007 12:03:26 -0400 Subject: Auditory sound presentation In-Reply-To: <4052.130.15.96.165.1174492574.squirrel@psych.utoronto.ca> Message-ID: I can think of two ways to solve this offhand. The most direct way would be to just edit your .wav files so that they include they actually last exactly 4000 ms; on that 2500 ms stim, just add 750 ms of silence to the beginning and end. You can do this in GoldWave with about 2 clicks. Another route to go would be add a Wait object before and after the sound. In the primary List object, change the Wait duration according to the stimulus sound length so that it all balances out. On any that need no extra silence, just make the duration 0. *one note* - the actual duration of the wait in these won't be 0, it will be 1 monitor refresh rate, maybe 15 ms or so. -----Original Message----- From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On Behalf Of Kate Dupuis Sent: Wednesday, March 21, 2007 11:56 AM To: eprime at mail.talkbank.org Subject: Auditory sound presentation Hello all I have a problem concerning presenting sound files in my experiment. The entire presentation time of each of my SoundOut objects is 4000 msec. However, my stimuli are typically not exactly 4000 msec long, therefore I will have a period of silence before and after the stimulus. For example, if Sound 1 is only 2500 msec long, I will have to have 750 msec of silence before and after sound 1 is presented. If sound 2 is 3000 msec long, I will have to have 500 msec of silence before and after it is presented. The period of silence before and after the stimulus is played within that 4000 msec period will vary according to the length of each stimulus. How do I tell EPrime how many msec of silence to present on each trial? That is my question. Thank you, Kate -- Kate Dupuis M.A. Ph.D. student Human Communication Laboratory Department of Psychology University of Toronto at Mississauga From psp48d at bangor.ac.uk Wed Mar 21 16:41:41 2007 From: psp48d at bangor.ac.uk (psp48d at bangor.ac.uk) Date: Wed, 21 Mar 2007 16:41:41 +0000 Subject: In line problems Message-ID: Dear E-Prime Experts, I have designed an experiment that has 196 trials, and I wanted to introduce a text page after trial 98 offering a rest period to the participant. My problem is twofold: 1)First of all I tried to get e-prime to keep track of what trial we are on by referncing the “Block” attribute. I did this as follows: Dim Trial Trial=c.GetAttrib (“Block”) However, when running it, e-prime did not recognise block as an attribute. So I tried to create my own: Dim Trial as integer Trial = Trial + 1 This also did not work. 2)Secondly, I placed the “rest” page in my trialproc timeline, and tried to get e-prime to access it via an 'inline' at the end of the timeline: If Trial = 98 then Rest.run 'referncing my textpage for the rest period Else fixation.run 'this last line is trying to get e-prime to revert to the beginning 'of the trialproc timeline if the trial is not 98. This doesn't work End if How do I get e-prime to keep track of the trial number, and how do I introduce a rest page if a certain trial number is satisfied? Yours in confusion! Jim Grange. University of Wales, Bangor. -- This mail sent through http://webmail.bangor.ac.uk -- Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dilëwch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio â defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of the University of Wales, Bangor. The University of Wales, Bangor does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the University of Wales, Bangor Finance Office. www.bangor.ac.uk From brobinso at mprc.umaryland.edu Wed Mar 21 16:54:48 2007 From: brobinso at mprc.umaryland.edu (Ben Robinson) Date: Wed, 21 Mar 2007 12:54:48 -0400 Subject: scorebar Message-ID: if you can calculate their accuracy after each trial you could multiply that percentage times the number of pixels in the height of the screen (eprime defaults to 640x480, so 480 pixels are the height of the screen). something like, after each trial add 1 to a trial counter (trialcounter = trialcounter + 1), and after correct responses add 1 to a correct response counter (If Slide1.ACC = 1 Then... correctcounter = correctcounter + 1... End If). divide correctcounter by trialcounter to get an accuracy between 0 and 1 (currentacc = correctcounter/trialcounter). multiply current accuracy by the height of the screen to determine where on the screen you want your horizontal bar (barheight = currentacc*480). then at the start of the next trial set the Y coordinate of your slideimage object equal to barheight. that might do it. >>> Elizabeth Smith 3/21/2007 11:22 AM >>> I have a probabilistic learning task where I need a scorebar on the side of the screen to go up when the subject gets a correct answer and down when it is incorrect. I found a sample of a scorebar program online, but its not really what I'm looking for. Basically I have two images. A vertical line and a smaller horizontal line. I'm wondering if there is a way to get the small horizontal line image to move up for correct answers and down for incorrect answers and to stay in that position until the next trial. So the movement is cumulative. Any thoughts/ideas would be greatly appreciated. I'm not great at programming and I'm a bit stuck on this problem. Thanks! -- Elizabeth Smith Farah Lab Center for Cognitive Neuroscience University of Pennsylvania 215.573.8534 (office) 215.275.5474 (cell) From brobinso at mprc.umaryland.edu Wed Mar 21 17:02:21 2007 From: brobinso at mprc.umaryland.edu (Ben Robinson) Date: Wed, 21 Mar 2007 13:02:21 -0400 Subject: In line problems Message-ID: create a new list, MainList. first proc in MainList can be called BlockProc. next proc in MainList can be called RestProc. then another BlockProc. then EndProc. so you have four rows in your new, MainList. now drag your list containing 196 trials onto the BlockProc timeline. drag your rest screen onto the RestProc timeline. now go to your list with 196 trials. click properties. click the reset/exit tab. tell your list to reset after 196 trials (all of them). tell your list to exit after 98 trials. what this will do is run 98 trials from your list of trials, then run the rest procedure, then run the remaining 98 trials, culminating with an EndProc, where you could thank people for their participation or tell them how well they did, etc. ben >>> 3/21/2007 12:41 PM >>> Dear E-Prime Experts, I have designed an experiment that has 196 trials, and I wanted to introduce a text page after trial 98 offering a rest period to the participant. My problem is twofold: 1)First of all I tried to get e-prime to keep track of what trial we are on by referncing the "Block" attribute. I did this as follows: Dim Trial Trial=c.GetAttrib ("Block") However, when running it, e-prime did not recognise block as an attribute. So I tried to create my own: Dim Trial as integer Trial = Trial + 1 This also did not work. 2)Secondly, I placed the "rest" page in my trialproc timeline, and tried to get e-prime to access it via an 'inline' at the end of the timeline: If Trial = 98 then Rest.run 'referncing my textpage for the rest period Else fixation.run 'this last line is trying to get e-prime to revert to the beginning 'of the trialproc timeline if the trial is not 98. This doesn't work End if How do I get e-prime to keep track of the trial number, and how do I introduce a rest page if a certain trial number is satisfied? Yours in confusion! Jim Grange. University of Wales, Bangor. -- This mail sent through http://webmail.bangor.ac.uk -- Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dilëwch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio â defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of the University of Wales, Bangor. The University of Wales, Bangor does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the University of Wales, Bangor Finance Office. www.bangor.ac.uk From leisha at decisionresearch.org Wed Mar 21 17:03:40 2007 From: leisha at decisionresearch.org (Leisha Wharfield) Date: Wed, 21 Mar 2007 10:03:40 -0700 Subject: In line problems In-Reply-To: <1174495301.46016045435b0@webmail.bangor.ac.uk> Message-ID: I think that, similar to Elizabeth Smith's question regarding a score bar, you need to use a global attribute. Global attributes supersede individual procedures, so you can keep them going throughout your entire experiment. You need to View the Script, then establish your attribute in the User tab. For example, Dim Trial as integer Then keep that in-line object that is adding Trial + 1 to Trial after each trial. Then your If Trial = 98 should work. (Unless you are already using a global attribute, in which case this advice won't help as much as I'd hoped.) Leisha Wharfield Decision Research Eugene, Oregon, USA psp48d at bangor.ac.uk wrote: >Dear E-Prime Experts, > >I have designed an experiment that has 196 trials, and I wanted to introduce a >text page after trial 98 offering a rest period to the participant. My problem >is twofold: > >1)First of all I tried to get e-prime to keep track of what trial we are on by >referncing the “Block” attribute. I did this as follows: > >Dim Trial >Trial=c.GetAttrib (“Block”) > >However, when running it, e-prime did not recognise block as an attribute. So I >tried to create my own: > >Dim Trial as integer >Trial = Trial + 1 > >This also did not work. > >2)Secondly, I placed the “rest” page in my trialproc timeline, and tried to get >e-prime to access it via an 'inline' at the end of the timeline: > >If Trial = 98 then >Rest.run > 'referncing my textpage for the rest period >Else fixation.run > 'this last line is trying to get e-prime to revert to the beginning > 'of the trialproc timeline if the trial is not 98. This doesn't work >End if > >How do I get e-prime to keep track of the trial number, and how do I introduce a >rest page if a certain trial number is satisfied? > >Yours in confusion! > >Jim Grange. >University of Wales, Bangor. > > > > >-- >This mail sent through http://webmail.bangor.ac.uk > > > > From Stephane.DeBrito at iop.kcl.ac.uk Wed Mar 21 17:07:18 2007 From: Stephane.DeBrito at iop.kcl.ac.uk (De Brito, Stephane) Date: Wed, 21 Mar 2007 17:07:18 -0000 Subject: In line problems Message-ID: Hi Jim, I have designed an experiment with 2 rest periods. I did the following: I created a trial counter which I declared in the User script and wrote in a global inline at the begining of my experiment (gnTrial_Counter =0) In my trialproc timeline, I put an empty textdisplay object, which I called 'break'. I assigned it an infinite duration and the spacebar as allowable reponse in the object property. I put a Label after the 'break' textdisplay so that the textdisplay is skipped except on trial 120 and trial 240. Below is the script I used in my inline before the textdisplay object. Hope this helps. Get back to me if it's not clear. best, stephane gnTrial_Counter = gnTrial_Counter+1 if gnTrial_Counter = 120 then break.Text = "Have a break now" &_ "\nPress the spacebar when you want to continue" elseif gnTrial_Counter = 240 then break.Text = "Have a break now" &_ "\nPress the spacebar when you want to continue" else Goto Label1 end if ------------------------------------------------------------------ Stephane De Brito, PhD student Institute of Psychiatry, King's College London Forensic Mental Health Science Department Box P023 De Crespigny Park Denmark Hill London SE5 8AF United Kingdom Tel: + 44 (0) 20 7848 0711 Fax: + 44 (0) 20 7848 0754 website: www.iop.kcl.ac.uk ________________________________ From: eprime at mail.talkbank.org on behalf of psp48d at bangor.ac.uk Sent: Wed 21/03/2007 16:41 To: eprime at mail.talkbank.org Subject: In line problems Dear E-Prime Experts, I have designed an experiment that has 196 trials, and I wanted to introduce a text page after trial 98 offering a rest period to the participant. My problem is twofold: 1)First of all I tried to get e-prime to keep track of what trial we are on by referncing the "Block" attribute. I did this as follows: Dim Trial Trial=c.GetAttrib ("Block") However, when running it, e-prime did not recognise block as an attribute. So I tried to create my own: Dim Trial as integer Trial = Trial + 1 This also did not work. 2)Secondly, I placed the "rest" page in my trialproc timeline, and tried to get e-prime to access it via an 'inline' at the end of the timeline: If Trial = 98 then Rest.run 'referncing my textpage for the rest period Else fixation.run 'this last line is trying to get e-prime to revert to the beginning 'of the trialproc timeline if the trial is not 98. This doesn't work End if How do I get e-prime to keep track of the trial number, and how do I introduce a rest page if a certain trial number is satisfied? Yours in confusion! Jim Grange. University of Wales, Bangor. -- This mail sent through http://webmail.bangor.ac.uk -- Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dilëwch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio â defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of the University of Wales, Bangor. The University of Wales, Bangor does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the University of Wales, Bangor Finance Office. www.bangor.ac.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From pseudoverlighter at zonnet.nl Wed Mar 21 17:16:33 2007 From: pseudoverlighter at zonnet.nl (mich) Date: Wed, 21 Mar 2007 18:16:33 +0100 Subject: In line problems In-Reply-To: <1174495301.46016045435b0@webmail.bangor.ac.uk> Message-ID: Hi Jim, 1. When you declare a variable (dim...), visual basic always sets it to 0. Therefore, add the dim part to the user script (in the menu, view, i think) and the counting in the inline. 2. I would suggest using goto statements and adding labels to where you want to go (if it's on the same timeline). For example, I usually have a trial counter (as above) and a statement "if trialcounter <> 98 then goto AfterTheBreak". Thus, you always skip the break unless it's trial 98. But beware of goto-spiderwebs! Cheers, Michiel Spapé PhD Student Cognitive Psychology Leiden University Netherlands -----Original Message----- From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On Behalf Of psp48d at bangor.ac.uk Sent: woensdag 21 maart 2007 17:42 To: eprime at mail.talkbank.org Subject: In line problems Dear E-Prime Experts, I have designed an experiment that has 196 trials, and I wanted to introduce a text page after trial 98 offering a rest period to the participant. My problem is twofold: 1)First of all I tried to get e-prime to keep track of what trial we are on by referncing the “Block” attribute. I did this as follows: Dim Trial Trial=c.GetAttrib (“Block”) However, when running it, e-prime did not recognise block as an attribute. So I tried to create my own: Dim Trial as integer Trial = Trial + 1 This also did not work. 2)Secondly, I placed the “rest” page in my trialproc timeline, and tried to get e-prime to access it via an 'inline' at the end of the timeline: If Trial = 98 then Rest.run 'referncing my textpage for the rest period Else fixation.run 'this last line is trying to get e-prime to revert to the beginning 'of the trialproc timeline if the trial is not 98. This doesn't work End if How do I get e-prime to keep track of the trial number, and how do I introduce a rest page if a certain trial number is satisfied? Yours in confusion! Jim Grange. University of Wales, Bangor. -- This mail sent through http://webmail.bangor.ac.uk -- Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dilëwch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio â defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of the University of Wales, Bangor. The University of Wales, Bangor does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the University of Wales, Bangor Finance Office. www.bangor.ac.uk From psp48d at bangor.ac.uk Wed Mar 21 21:20:53 2007 From: psp48d at bangor.ac.uk (psp48d at bangor.ac.uk) Date: Wed, 21 Mar 2007 21:20:53 +0000 Subject: In line problems In-Reply-To: <7AC047D44A8CD243B7FE9305102D5FD1548C6F@MAIL.bc.iop.kcl.ac.uk> Message-ID: Many thanks to all the helpful replies, it is much appreciated. And im sure my participants will also be grateful to you all for a nice rest in the middle of this experiment!! Jim Grange. Quoting "De Brito, Stephane" : > Hi Jim, > > I have designed an experiment with 2 rest periods. I did the following: I > created a trial counter which I declared in the User script and wrote in a > global inline at the begining of my experiment (gnTrial_Counter =0) In my > trialproc timeline, I put an empty textdisplay object, which I called > 'break'. I assigned it an infinite duration and the spacebar as allowable > reponse in the object property. I put a Label after the 'break' textdisplay > so that the textdisplay is skipped except on trial 120 and trial 240. Below > is the script I used in my inline before the textdisplay object. Hope this > helps. Get back to me if it's not clear. > > best, > > stephane > > > gnTrial_Counter = gnTrial_Counter+1 > > > > if gnTrial_Counter = 120 then > > > > break.Text = "Have a break now" &_ > > "\nPress the spacebar when > you want to continue" > > elseif gnTrial_Counter = 240 then > > break.Text = "Have a break now" &_ > > "\nPress the spacebar when > you want to continue" > > else > > Goto Label1 > > end if > > > ------------------------------------------------------------------ > Stephane De Brito, PhD student > Institute of Psychiatry, King's College London > Forensic Mental Health Science Department > Box P023 > De Crespigny Park > Denmark Hill > London SE5 8AF > United Kingdom > > Tel: + 44 (0) 20 7848 0711 > Fax: + 44 (0) 20 7848 0754 > website: www.iop.kcl.ac.uk > > > ________________________________ > > From: eprime at mail.talkbank.org on behalf of psp48d at bangor.ac.uk > Sent: Wed 21/03/2007 16:41 > To: eprime at mail.talkbank.org > Subject: In line problems > > > > Dear E-Prime Experts, > > I have designed an experiment that has 196 trials, and I wanted to introduce > a > text page after trial 98 offering a rest period to the participant. My > problem > is twofold: > > 1)First of all I tried to get e-prime to keep track of what trial we are on > by > referncing the "Block" attribute. I did this as follows: > > Dim Trial > Trial=c.GetAttrib ("Block") > > However, when running it, e-prime did not recognise block as an attribute. So > I > tried to create my own: > > Dim Trial as integer > Trial = Trial + 1 > > This also did not work. > > 2)Secondly, I placed the "rest" page in my trialproc timeline, and tried to > get > e-prime to access it via an 'inline' at the end of the timeline: > > If Trial = 98 then > Rest.run > 'referncing my textpage for the rest period > Else fixation.run > 'this last line is trying to get e-prime to revert to the beginning > 'of the trialproc timeline if the trial is not 98. This doesn't work > End if > > How do I get e-prime to keep track of the trial number, and how do I > introduce a > rest page if a certain trial number is satisfied? > > Yours in confusion! > > Jim Grange. > University of Wales, Bangor. > > > > > -- > This mail sent through http://webmail.bangor.ac.uk > > > > -- > Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, > gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig > gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y > neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar > unwaith a dilëwch y neges. Os na fwriadwyd anfon y neges atoch chi, > rhaid i chi beidio â defnyddio, cadw neu ddatgelu unrhyw wybodaeth a > gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i > hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn > Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu > bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu > 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn > nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract > rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa > Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk > > This email and any attachments may contain confidential material and > is solely for the use of the intended recipient(s). If you have > received this email in error, please notify the sender immediately > and delete this email. If you are not the intended recipient(s), you > must not use, retain or disclose any information contained in this > email. Any views or opinions are solely those of the sender and do > not necessarily represent those of the University of Wales, Bangor. > The University of Wales, Bangor does not guarantee that this email or > any attachments are free from viruses or 100% secure. Unless > expressly stated in the body of the text of the email, this email is > not intended to form a binding contract - a list of authorised > signatories is available from the University of Wales, Bangor Finance > Office. www.bangor.ac.uk > > > > > -- This mail sent through http://webmail.bangor.ac.uk -- Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dilëwch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio â defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of the University of Wales, Bangor. The University of Wales, Bangor does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the University of Wales, Bangor Finance Office. www.bangor.ac.uk From pauls_postbus at hotmail.com Wed Mar 21 21:55:24 2007 From: pauls_postbus at hotmail.com (Paul Gr) Date: Wed, 21 Mar 2007 22:55:24 +0100 Subject: scorebar Message-ID: Hello Elizabeth, The following link contains to a simple E-Prime example to move one image relative to another. In this example both images are placed on a slide object and the smaller (hbar) image will move from the bottom to the top in 11 steps. I also made the hbar image transparent by defining the SourceColorKey (white.) To make things a bit easier a also set the stretch property of both images to true. (This is not required though.)http://www.psy.vu.nl/download/paul/levelbar.zip hope this helps. best, Paul Groot VU University Amsterdam > Date: Wed, 21 Mar 2007 11:22:44 -0400> From: smithel at psych.upenn.edu> To: eprime at mail.talkbank.org> Subject: scorebar> > I have a probabilistic learning task where I need a scorebar on the side > of the screen to go up when the subject gets a correct answer and down > when it is incorrect. I found a sample of a scorebar program online, > but its not really what I'm looking for. Basically I have two images. > A vertical line and a smaller horizontal line. I'm wondering if there > is a way to get the small horizontal line image to move up for correct > answers and down for incorrect answers and to stay in that position > until the next trial. So the movement is cumulative. > > Any thoughts/ideas would be greatly appreciated. I'm not great at > programming and I'm a bit stuck on this problem.> > Thanks!> > -- > Elizabeth Smith> Farah Lab> Center for Cognitive Neuroscience> University of Pennsylvania> 215.573.8534 (office)> 215.275.5474 (cell)> > _________________________________________________________________ Live.nl: je eigen persoonlijk startpagina met nieuws en feeds die JIJ belangrijk vindt! http://www.live.com/getstarted.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From pseudoverlighter at zonnet.nl Wed Mar 21 23:43:28 2007 From: pseudoverlighter at zonnet.nl (mich) Date: Thu, 22 Mar 2007 00:43:28 +0100 Subject: In line problems In-Reply-To: <1174512053.4601a1b5f4139@webmail.bangor.ac.uk> Message-ID: Slightly off-topic, but still some friendly advise: Don't know about your participants, but somehow, mine don't seem to want to take a break. I just finished an experiment that took one and a half hour, but they did not come out of the lab cubicle (which is NOT a friendly work environment!), even though: - They were told there was to be one break in the middle of the experiment and that the experiment was calculated to be exactly 84 minutes excluding the five minutes of relaxing (the other one minute was for explaining the experiment). - During the break, E-Prime (or me, depending on your idea of causation) told them the five minutes started, and heavily recommended stepping outside the lab and go for some coffee. I've done quite a bit of piloting and I can assure you, it puts quite a bit of strain on your concentration. - Also, they were told the break could not be skipped in any way (well, they could unplug the computer), and that the experiment would not automatically start after five minutes. So, basically, people could either sit, gazing at a CRT screen watching five textdisplays counting back the minutes from 5 to "0, press the spacebar to continue", or get some refreshment, walk around, chat with the lab-assistant, ask what they are doing, etc. But they did not. So, my point in this story is that, unless your participants are very different, they will try to continue doing the experiment as fast as they can (even if they can't influence the time spent) and few will take a break. If they are different, it won't hurt to make the break compulsory! Cheers, Mich (i suppose making the screen turn black - with a black textdisplay - should also prompt the participants to leave the lab to take a break) -----Original Message----- From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On Behalf Of psp48d at bangor.ac.uk Sent: woensdag 21 maart 2007 22:21 To: De Brito, Stephane Cc: eprime at mail.talkbank.org Subject: RE: In line problems Many thanks to all the helpful replies, it is much appreciated. And im sure my participants will also be grateful to you all for a nice rest in the middle of this experiment!! Jim Grange. Quoting "De Brito, Stephane" : > Hi Jim, > > I have designed an experiment with 2 rest periods. I did the following: I > created a trial counter which I declared in the User script and wrote in a > global inline at the begining of my experiment (gnTrial_Counter =0) In my > trialproc timeline, I put an empty textdisplay object, which I called > 'break'. I assigned it an infinite duration and the spacebar as allowable > reponse in the object property. I put a Label after the 'break' textdisplay > so that the textdisplay is skipped except on trial 120 and trial 240. Below > is the script I used in my inline before the textdisplay object. Hope this > helps. Get back to me if it's not clear. > > best, > > stephane > > > gnTrial_Counter = gnTrial_Counter+1 > > > > if gnTrial_Counter = 120 then > > > > break.Text = "Have a break now" &_ > > "\nPress the spacebar when > you want to continue" > > elseif gnTrial_Counter = 240 then > > break.Text = "Have a break now" &_ > > "\nPress the spacebar when > you want to continue" > > else > > Goto Label1 > > end if > > > ------------------------------------------------------------------ > Stephane De Brito, PhD student > Institute of Psychiatry, King's College London > Forensic Mental Health Science Department > Box P023 > De Crespigny Park > Denmark Hill > London SE5 8AF > United Kingdom > > Tel: + 44 (0) 20 7848 0711 > Fax: + 44 (0) 20 7848 0754 > website: www.iop.kcl.ac.uk > > > ________________________________ > > From: eprime at mail.talkbank.org on behalf of psp48d at bangor.ac.uk > Sent: Wed 21/03/2007 16:41 > To: eprime at mail.talkbank.org > Subject: In line problems > > > > Dear E-Prime Experts, > > I have designed an experiment that has 196 trials, and I wanted to introduce > a > text page after trial 98 offering a rest period to the participant. My > problem > is twofold: > > 1)First of all I tried to get e-prime to keep track of what trial we are on > by > referncing the "Block" attribute. I did this as follows: > > Dim Trial > Trial=c.GetAttrib ("Block") > > However, when running it, e-prime did not recognise block as an attribute. So > I > tried to create my own: > > Dim Trial as integer > Trial = Trial + 1 > > This also did not work. > > 2)Secondly, I placed the "rest" page in my trialproc timeline, and tried to > get > e-prime to access it via an 'inline' at the end of the timeline: > > If Trial = 98 then > Rest.run > 'referncing my textpage for the rest period > Else fixation.run > 'this last line is trying to get e-prime to revert to the beginning > 'of the trialproc timeline if the trial is not 98. This doesn't work > End if > > How do I get e-prime to keep track of the trial number, and how do I > introduce a > rest page if a certain trial number is satisfied? > > Yours in confusion! > > Jim Grange. > University of Wales, Bangor. > > > > > -- > This mail sent through http://webmail.bangor.ac.uk > > > > -- > Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, > gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig > gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y > neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar > unwaith a dilëwch y neges. Os na fwriadwyd anfon y neges atoch chi, > rhaid i chi beidio â defnyddio, cadw neu ddatgelu unrhyw wybodaeth a > gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i > hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn > Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu > bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu > 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn > nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract > rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa > Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk > > This email and any attachments may contain confidential material and > is solely for the use of the intended recipient(s). If you have > received this email in error, please notify the sender immediately > and delete this email. If you are not the intended recipient(s), you > must not use, retain or disclose any information contained in this > email. Any views or opinions are solely those of the sender and do > not necessarily represent those of the University of Wales, Bangor. > The University of Wales, Bangor does not guarantee that this email or > any attachments are free from viruses or 100% secure. Unless > expressly stated in the body of the text of the email, this email is > not intended to form a binding contract - a list of authorised > signatories is available from the University of Wales, Bangor Finance > Office. www.bangor.ac.uk > > > > > -- This mail sent through http://webmail.bangor.ac.uk -- Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dilëwch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio â defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of the University of Wales, Bangor. The University of Wales, Bangor does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the University of Wales, Bangor Finance Office. www.bangor.ac.uk From asa8 at leicester.ac.uk Thu Mar 22 08:21:43 2007 From: asa8 at leicester.ac.uk (Andrews, A.S.) Date: Thu, 22 Mar 2007 08:21:43 -0000 Subject: In line problems In-Reply-To: <1174512053.4601a1b5f4139@webmail.bangor.ac.uk> Message-ID: I use the same structure of InLine - TextDisplay - Label1 - RestOfTrial with the following code: if not (c.GetAttrib("BlockList.Sample") MOD 31 )=0 then goto Label1 ' change 31 to suit This means that the experiment will offer a rest break after trial 30, trial 61 etc. It is important to use a number that leaves a remainder from the MOD function, or you can find a rest being enforced with one trial to go! Clearly this is something that lots of us have had to create solutions for. Perhaps it is something that could be a feature of the ListObject in a future version of E-Prime. Best Regards, Tony Andrews Principal Computer Officer School of Psychology University of Leicester Lancaster Road Leicester LE1 9HN Tel: 0116 229 7170 Quoting "De Brito, Stephane" : > Hi Jim, > > I have designed an experiment with 2 rest periods. I did the > following: I created a trial counter which I declared in the User > script and wrote in a global inline at the begining of my experiment > (gnTrial_Counter =0) In my trialproc timeline, I put an empty > textdisplay object, which I called 'break'. I assigned it an infinite > duration and the spacebar as allowable reponse in the object property. > I put a Label after the 'break' textdisplay so that the textdisplay is > skipped except on trial 120 and trial 240. Below is the script I used > in my inline before the textdisplay object. Hope this helps. Get back to me if it's not clear. > > best, > > stephane > > > gnTrial_Counter = gnTrial_Counter+1 > > > > if gnTrial_Counter = 120 then > > > > break.Text = "Have a break now" &_ > > "\nPress the spacebar > when you want to continue" > > elseif gnTrial_Counter = 240 then > > break.Text = "Have a break now" &_ > > "\nPress the spacebar > when you want to continue" > > else > > Goto Label1 > > end if > > > ------------------------------------------------------------------ > Stephane De Brito, PhD student > Institute of Psychiatry, King's College London Forensic Mental Health > Science Department Box P023 De Crespigny Park Denmark Hill London SE5 > 8AF United Kingdom > > Tel: + 44 (0) 20 7848 0711 > Fax: + 44 (0) 20 7848 0754 > website: www.iop.kcl.ac.uk > > > ________________________________ > > From: eprime at mail.talkbank.org on behalf of psp48d at bangor.ac.uk > Sent: Wed 21/03/2007 16:41 > To: eprime at mail.talkbank.org > Subject: In line problems > > > > Dear E-Prime Experts, > > I have designed an experiment that has 196 trials, and I wanted to > introduce a text page after trial 98 offering a rest period to the > participant. My problem is twofold: > > 1)First of all I tried to get e-prime to keep track of what trial we > are on by referncing the "Block" attribute. I did this as follows: > > Dim Trial > Trial=c.GetAttrib ("Block") > > However, when running it, e-prime did not recognise block as an > attribute. So I tried to create my own: > > Dim Trial as integer > Trial = Trial + 1 > > This also did not work. > > 2)Secondly, I placed the "rest" page in my trialproc timeline, and > tried to get e-prime to access it via an 'inline' at the end of the > timeline: > > If Trial = 98 then > Rest.run > 'referncing my textpage for the rest period Else fixation.run > 'this last line is trying to get e-prime to revert to the beginning > 'of the trialproc timeline if the trial is not 98. This > doesn't work End if > > How do I get e-prime to keep track of the trial number, and how do I > introduce a rest page if a certain trial number is satisfied? > > Yours in confusion! > > Jim Grange. > University of Wales, Bangor. > > > > > -- > This mail sent through http://webmail.bangor.ac.uk > > > > -- > Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, > gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig > gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y > neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith > a dilëwch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i > chi beidio â defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir > ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn > unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, > Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost > hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. > Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, > nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr > o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, > Bangor. www.bangor.ac.uk > > This email and any attachments may contain confidential material and > is solely for the use of the intended recipient(s). If you have > received this email in error, please notify the sender immediately and > delete this email. If you are not the intended recipient(s), you must > not use, retain or disclose any information contained in this email. > Any views or opinions are solely those of the sender and do not > necessarily represent those of the University of Wales, Bangor. > The University of Wales, Bangor does not guarantee that this email or > any attachments are free from viruses or 100% secure. Unless > expressly stated in the body of the text of the email, this email is > not intended to form a binding contract - a list of authorised > signatories is available from the University of Wales, Bangor Finance > Office. www.bangor.ac.uk > > > > > -- This mail sent through http://webmail.bangor.ac.uk -- Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dilëwch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio â defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of the University of Wales, Bangor. The University of Wales, Bangor does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the University of Wales, Bangor Finance Office. www.bangor.ac.uk From mcfarla9 at msu.edu Fri Mar 23 16:16:53 2007 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 23 Mar 2007 12:16:53 -0400 Subject: In line problems In-Reply-To: Message-ID: Ben Robinson has already outlined how to supply a subject break by just adding a RestProc to a MainList which calls a single subsidiary TrialList before & after the break. Here's another variant on how to do this with nested Lists: - In your main procedure timeline, add a TrialList before the break, then Rest object, then the same TrialList after the break. - The TrialList will have just a single row. Make the weight 98, add a nested list we'll call StimulusList, leave Procedure blank (to be filled in with Procedure from the nested list) or fill it in with TrialProc, as you like. Use sequential selection. - In StimulusList, add all your stimuli & attributes just like in your original trial list. If you filled in the Procedure attribute for the enclosing TrialList, then leave it blank here. Use random selection or whatever here. Keep Reset and Exit at one cycle or whatever (should not need to change these). Your main procedure will now run 98 trials from StimulusList, in random order if that's what you indicated. Then it will run your Rest object. Then the main procedure will resume running StimulusList, in random order, right where you left off. In the end it's a matter of taste whether you supply a break as above, using Ben's method or another variant, or with inline code. -- David McFarlane, Systems Designer Dept. Psychology, Michigan State University mcfarla9 at msu.edu At 2007-03-21 01:02 PM Wednesday, Ben Robinson wrote: >create a new list, MainList. >first proc in MainList can be called BlockProc. >next proc in MainList can be called RestProc. >then another BlockProc. >then EndProc. >so you have four rows in your new, MainList. > >now drag your list containing 196 trials onto the BlockProc timeline. >drag your rest screen onto the RestProc timeline. > >now go to your list with 196 trials. click properties. click the >reset/exit tab. tell your list to reset after 196 trials (all of >them). tell your list to exit after 98 trials. > >what this will do is run 98 trials from your list of trials, then run the >rest procedure, then run the remaining 98 trials, culminating with an >EndProc, where you could thank people for their participation or tell them >how well they did, etc. > >ben > > > >>> 3/21/2007 12:41 PM >>> >Dear E-Prime Experts, > >I have designed an experiment that has 196 trials, and I wanted to introduce a >text page after trial 98 offering a rest period to the participant. My problem >is twofold: > >1)First of all I tried to get e-prime to keep track of what trial we are on by >referncing the "Block" attribute. I did this as follows: > >Dim Trial >Trial=c.GetAttrib ("Block") > >However, when running it, e-prime did not recognise block as an attribute. >So I >tried to create my own: > >Dim Trial as integer >Trial = Trial + 1 > >This also did not work. > >2)Secondly, I placed the "rest" page in my trialproc timeline, and tried >to get >e-prime to access it via an 'inline' at the end of the timeline: > >If Trial = 98 then >Rest.run > 'referncing my textpage for the rest period >Else fixation.run > 'this last line is trying to get e-prime to revert to the beginning > 'of the trialproc timeline if the trial is not 98. This doesn't work >End if > >How do I get e-prime to keep track of the trial number, and how do I >introduce a >rest page if a certain trial number is satisfied? > >Yours in confusion! > >Jim Grange. >University of Wales, Bangor. From Stephane.DeBrito at iop.kcl.ac.uk Fri Mar 30 19:33:00 2007 From: Stephane.DeBrito at iop.kcl.ac.uk (De Brito, Stephane) Date: Fri, 30 Mar 2007 20:33:00 +0100 Subject: FW: change of reinforcement contingencies across participants Message-ID: Dear E-prime community, With regards to my last email (see below), I have been trying to use an array to solve my problem. I have the feeling that I am on the right track, but would need your help. In my SessionProc I have put an Inline (see Inline1 below) to declare my array and randomized it. In the TrialProc, I have put another Inline which changes the pictures displayed in the column attribute Picture1 and Picture2 - the names of the bitmap files in my columns Picture1 and Picture2 are not cow.bmp; car.bmp as I wrote in my first email (this was just to explain the task), but 1.bmp; 2.bmp etc... When I run the task, I am getting the following error message: Cannot load bitmap file "Picarray(8)" Invalid file The error message mention a different file each time I run the task, which seems to indicate that the randomization is working. Any suggestions on how to get this right would be much appreciated! Thanks. Stephan ------------------------------------------------------------------------ -------- Inline1 Dim Picarray(9) As String Picarray(0) = "1.bmp" Picarray(1) = "2.bmp" Picarray(2) = "3.bmp" Picarray(3) = "4.bmp" Picarray(4) = "5.bmp" Picarray(5) = "6.bmp" Picarray(6) = "7.bmp" Picarray(7) = "8.bmp" Picarray(8) = "9.bmp" Picarray(9) = "10.bmp" RandomizeArray Picarray ------------------------------------------------------------------------ --------- Inline2 if c.GetAttrib ("Picture1") = "1.bmp" then c.SetAttrib "Picture1", "Picarray(0)" end if if c.GetAttrib ("Picture1") = "2.bmp" then c.SetAttrib "Picture1", "Picarray(1)" end if if c.GetAttrib ("Picture1") = "3.bmp" then c.SetAttrib "Picture1", "Picarray(2)" end if if c.GetAttrib ("Picture1") = "4.bmp" then c.SetAttrib "Picture1", "Picarray(3)" end if if c.GetAttrib ("Picture1") = "5.bmp" then c.SetAttrib "Picture1", "Picarray(4)" end if if c.GetAttrib ("Picture1") = "6.bmp" then c.SetAttrib "Picture1", "Picarray(5)" end if if c.GetAttrib ("Picture1") = "7.bmp" then c.SetAttrib "Picture1", "Picarray(6)" end if if c.GetAttrib ("Picture1") = "8.bmp" then c.SetAttrib "Picture1", "Picarray(7)" end if if c.GetAttrib ("Picture1") = "9.bmp" then c.SetAttrib "Picture1", "Picarray(8)" end if if c.GetAttrib ("Picture1") = "10.bmp" then c.SetAttrib "Picture1", "Picarray(9)" end if if c.GetAttrib ("Picture2") = "1.bmp" then c.SetAttrib "Picture2", "Picarray(0)" end if if c.GetAttrib ("Picture2") = "2.bmp" then c.SetAttrib "Picture2", "Picarray(1)" end if if c.GetAttrib ("Picture2") = "3.bmp" then c.SetAttrib "Picture2", "Picarray(2)" end if if c.GetAttrib ("Picture2") = "4.bmp" then c.SetAttrib "Picture2", "Picarray(3)" end if if c.GetAttrib ("Picture2") = "5.bmp" then c.SetAttrib "Picture2", "Picarray(4)" end if if c.GetAttrib ("Picture2") = "6.bmp" then c.SetAttrib "Picture2", "Picarray(5)" end if if c.GetAttrib ("Picture2") = "7.bmp" then c.SetAttrib "Picture2", "Picarray(6)" end if if c.GetAttrib ("Picture2") = "8.bmp" then c.SetAttrib "Picture2", "Picarray(7)" end if if c.GetAttrib ("Picture2") = "9.bmp" then c.SetAttrib "Picture2", "Picarray(8)" end if if c.GetAttrib ("Picture2") = "10.bmp" then c.SetAttrib "Picture2", "Picarray(9)" end if ------------------------------------------ Stephane De Brito, PhD student Institute of Psychiatry King's College London Forensic Mental Health Science Department Box P023 De Crespigny Park Denmark Hill London SE5 8AF United Kingdom Tel: + 44 (0) 20 7848 0711 Fax: + 44 (0) 20 7848 0754 website: www.iop.kcl.ac.uk ________________________________ From: De Brito, Stephane Sent: 19 March 2007 17:16 To: 'eprime at mail.talkbank.org' Subject: change of reinforcement contingencies across participants Dear E-prime experts, I am working on a task in which the participant is presented with pairs of picture on the screen. I have 10 different pictures and each picture is associated with a reinforcement value which stays the same throughout the experiment (e.g. the cup always wins you 900 points and the cow always looses you 900 points). On each trial, the participant has to choose one of the two pictures presented (press 'q' for left hand side picture and 'p' for right hand side picture) and win has many points has he can. The reinforcement values are +900 +700 +500 +300 +100 -100 +300 +500 +700 +900. Sometimes the participant is presented with 2 pictures associated with punishment (pun-pun trials) and has to choose the one associated with the lowest punishment (i.e. scored as correct); on pun-rew trials the rew is scored as correct and on rew-rew trials the pictures with highest reinforcement value is scored as correct. The task is running fine, but I would like to change across participants the reinforcement contingency for each picture so that, for example, not every participant wins 900 point when they choose the cup. At the moment, I have the following attributes in my listobject: Picture1 Picture2 Slidestate CorrectAnswer Correct Incorrect cup.bmp cow.bmp 1 q You have won 900 points You have lost 900 points car.bmp spoon.bmp 3 q You have lost 300 points You have lost 500 points Etc... Basically, I would like to keep the pairing for my attributes 'Correct' and 'Incorrect' the same, but I want to change across participants the pairing in my 'Picture 1' and 'Picture 2' attributes. I hope I made myself clear. From the e-prime manual and discussion with colleagues, it seems that the best way to do this would be with an 'array', but I have not managed to work it out yet. Any idea on how to achieve this would be greatly appreciated. Many thanks. Best wishes, Stephane ------------------------------------------ Stephane De Brito, PhD student Institute of Psychiatry King's College London Forensic Mental Health Science Department Box P023 De Crespigny Park Denmark Hill London SE5 8AF United Kingdom Tel: + 44 (0) 20 7848 0711 Fax: + 44 (0) 20 7848 0754 website: www.iop.kcl.ac.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From lak286 at psu.edu Fri Mar 30 19:48:24 2007 From: lak286 at psu.edu (Lauren Killeen) Date: Fri, 30 Mar 2007 15:48:24 -0400 Subject: No subject Message-ID: I am out of town and may not have an opportunity to read or respond to electronic mail until Monday, April 2nd. From uni at robertdoerr.de Sat Mar 31 09:58:24 2007 From: uni at robertdoerr.de (=?UTF-8?B?Um9iZXJ0IETDtnJy?=) Date: Sat, 31 Mar 2007 11:58:24 +0200 Subject: change of reinforcement contingencies across participants In-Reply-To: <7AC047D44A8CD243B7FE9305102D5FD105B69BA7@MAIL.bc.iop.kcl.ac.uk> Message-ID: Hi Stephane, you can do this without using arrays or other Inline code: Create a new List (i call it Dispatcher). This List will have as many rows as you have subject groups (let's say 3) and no extra attributes. Create three new procedures (proc1, proc2, proc3) in the 'Procedure' column of this List. Dispatcher: Weight Nested Procedure 1 proc1 1 proc2 1 proc3 Each procedure only contains a single table (TrialTable1, Trialtable2, ...) like the one you already have in your experiment. You can copy the old one and edit the copys separately according to your pairings. To get the whole thing running you have to adjust 'Selection' and 'Reset/Exit' properties of the Dispatcher List: Selection->Order: 'Offset' Selection->Order by: 'Subject' (or 'Group' if you want more control) Exit List: after 1 samples Subject #1 will now get row 1 of the dispatcher, so proc1 will run with TrialTable1 Subject #2 will get row 2..... Subject #5 will get row 2..... Subject #n will get row n mod 3...... If this was too confusing, feel free to write back. Robert De Brito, Stephane schrieb: > > Dear E-prime experts, > > > > I am working on a task in which the participant is presented with > pairs of picture on the screen. I have 10 different pictures and each > picture is associated with a reinforcement value which stays the same > throughout the experiment (e.g. the cup always wins you 900 points > and the cow always looses you 900 points). On each trial, the > participant has to choose one of the two pictures presented (press ‘q’ > for left hand side picture and ‘p’ for right hand side picture) and > win has many points has he can. The reinforcement values are +900 +700 > +500 +300 +100 -100 +300 +500 +700 +900. Sometimes the participant is > presented with 2 pictures associated with punishment (pun-pun trials) > and has to choose the one associated with the lowest punishment (i.e. > scored as correct); on pun-rew trials the rew is scored as correct and > on rew-rew trials the pictures with highest reinforcement value is > scored as correct. > > > > The task is running fine, but I would like to change across > participants the reinforcement contingency for each picture so that, > for example, not every participant wins 900 point when they choose the > cup. At the moment, I have the following attributes in my listobject: > > > > Picture1 > > > > Picture2 > > > > Slidestate > > > > CorrectAnswer > > > > Correct > > > > Incorrect > > cup.bmp > > > > cow.bmp > > > > 1 > > > > q > > > > You have won 900 points > > > > You have lost 900 points > > car.bmp > > > > spoon.bmp > > > > 3 > > > > q > > > > You have lost 300 points > > > > You have lost 500 points > > Etc… > > > > Basically, I would like to keep the pairing for my attributes > ‘Correct’ and ‘Incorrect’ the same, but I want to change across > participants the pairing in my ‘Picture 1’ and ‘Picture 2’ attributes. > I hope I made myself clear. From the e-prime manual and discussion > with colleagues, it seems that the best way to do this would be with > an ‘array’, but I have not managed to work it out yet. Any idea on > how to achieve this would be greatly appreciated. Many thanks. > > > > Best wishes, > > Stephane > > > > ------------------------------------------ > > Stephane De Brito, PhD student > > Institute of Psychiatry > > King's College London > > Forensic Mental Health Science Department > > Box P023 > > De Crespigny Park > > Denmark Hill > > London SE5 8AF > > United Kingdom > > Tel: + 44 (0) 20 7848 0711 > > Fax: + 44 (0) 20 7848 0754 > > website: www.iop.kcl.ac.uk > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From uni at robertdoerr.de Sat Mar 31 16:21:22 2007 From: uni at robertdoerr.de (=?UTF-8?B?Um9iZXJ0IETDtnJy?=) Date: Sat, 31 Mar 2007 18:21:22 +0200 Subject: change of reinforcement contingencies across participants In-Reply-To: <7AC047D44A8CD243B7FE9305102D5FD105DFE6FC@MAIL.bc.iop.kcl.ac.uk> Message-ID: Hi Stephane, here you can find a screenshot which explains how to integrate the 'Dispatcher' in your experiment structure: http://www.robertdoerr.de/files/eprime/dsp.gif Hope this helps Robert De Brito, Stephane schrieb: > > Hi Robert, > > > > Thank you for your email and your help. I kind of understand what you > suggested, but I am not sure that it would work with the task as it is > designed at the moment. Would you be so kind as to clarify where I > should create the new List ‘Dispatcher’? I have attached a print > screen of the structure of the task as it is. Many thanks again for > your help. > > > > Best wishes, > > > > Stephane > > > > ------------------------------------------ > > Stephane De Brito, PhD student > > Institute of Psychiatry > > King's College London > > Forensic Mental Health Science Department > > Box P023 > > De Crespigny Park > > Denmark Hill > > London SE5 8AF > > United Kingdom > > Tel: + 44 (0) 20 7848 0711 > > Fax: + 44 (0) 20 7848 0754 > > website: www.iop.kcl.ac.uk > > > > ------------------------------------------------------------------------ > > *From:* eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] *On > Behalf Of *Robert Dörr > *Sent:* 31 March 2007 10:58 > *To:* eprime at mail.talkbank.org > *Subject:* Re: change of reinforcement contingencies across participants > > > > Hi Stephane, > > you can do this without using arrays or other Inline code: > > Create a new List (i call it Dispatcher). This List will have as many > rows as you have subject groups (let's say 3) and no extra attributes. > Create three new procedures (proc1, proc2, proc3) in the 'Procedure' > column of this List. > Dispatcher: > > Weight > > > > Nested > > > > Procedure > > 1 > > > > > > > > proc1 > > 1 > > > > > > > > proc2 > > 1 > > > > > > > > proc3 > > > Each procedure only contains a single table (TrialTable1, Trialtable2, > ...) like the one you already have in your experiment. You can copy > the old one and edit the copys separately according to your pairings. > > To get the whole thing running you have to adjust 'Selection' and > 'Reset/Exit' properties of the Dispatcher List: > Selection->Order: 'Offset' > Selection->Order by: 'Subject' (or 'Group' if you want more control) > Exit List: after 1 samples > > Subject #1 will now get row 1 of the dispatcher, so proc1 will run > with TrialTable1 > Subject #2 will get row 2..... > Subject #5 will get row 2..... > Subject #n will get row n mod 3...... > > If this was too confusing, feel free to write back. > > Robert > > > De Brito, Stephane schrieb: > > Dear E-prime experts, > > > > I am working on a task in which the participant is presented with > pairs of picture on the screen. I have 10 different pictures and each > picture is associated with a reinforcement value which stays the same > throughout the experiment (e.g. the cup always wins you 900 points > and the cow always looses you 900 points). On each trial, the > participant has to choose one of the two pictures presented (press ‘q’ > for left hand side picture and ‘p’ for right hand side picture) and > win has many points has he can. The reinforcement values are +900 +700 > +500 +300 +100 -100 +300 +500 +700 +900. Sometimes the participant is > presented with 2 pictures associated with punishment (pun-pun trials) > and has to choose the one associated with the lowest punishment (i.e. > scored as correct); on pun-rew trials the rew is scored as correct and > on rew-rew trials the pictures with highest reinforcement value is > scored as correct. > > > > The task is running fine, but I would like to change across > participants the reinforcement contingency for each picture so that, > for example, not every participant wins 900 point when they choose the > cup. At the moment, I have the following attributes in my listobject: > > > > Picture1 > > > > Picture2 > > > > Slidestate > > > > CorrectAnswer > > > > Correct > > > > Incorrect > > cup.bmp > > > > cow.bmp > > > > 1 > > > > q > > > > You have won 900 points > > > > You have lost 900 points > > car.bmp > > > > spoon.bmp > > > > 3 > > > > q > > > > You have lost 300 points > > > > You have lost 500 points > > Etc… > > > > Basically, I would like to keep the pairing for my attributes > ‘Correct’ and ‘Incorrect’ the same, but I want to change across > participants the pairing in my ‘Picture 1’ and ‘Picture 2’ attributes. > I hope I made myself clear. From the e-prime manual and discussion > with colleagues, it seems that the best way to do this would be with > an ‘array’, but I have not managed to work it out yet. Any idea on > how to achieve this would be greatly appreciated. Many thanks. > > > > Best wishes, > > Stephane > > > > ------------------------------------------ > > Stephane De Brito, PhD student > > Institute of Psychiatry > > King's College London > > Forensic Mental Health Science Department > > Box P023 > > De Crespigny Park > > Denmark Hill > > London SE5 8AF > > United Kingdom > > Tel: + 44 (0) 20 7848 0711 > > Fax: + 44 (0) 20 7848 0754 > > website: www.iop.kcl.ac.uk > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From batne at hotmail.com Fri Mar 2 11:20:53 2007 From: batne at hotmail.com (Tobias Johansson) Date: Fri, 2 Mar 2007 11:20:53 +0000 Subject: add items from a list to an array in E-prime Message-ID: An HTML attachment was scrubbed... URL: From goodman2 at cc.wwu.edu Sat Mar 3 04:41:09 2007 From: goodman2 at cc.wwu.edu (Nicholas Goodman) Date: Fri, 2 Mar 2007 20:41:09 -0800 Subject: Slide Images change resolution Message-ID: Hello again E-Primers, Short question. I have a procedure using slide objects which present the bmp files i have stored in the 'My Experiments' folder. when I run the experiment, the images are distorted (the resolution changes, and the images shift position). I don't like that the images shift and would like them to appear the same as they are in the original file. I have made sure that the file in the slide object is formated, but the image always changes resolution during the experiment. Any ideas? Thank you in advance Nicholas Goodman Graduate Student, Experimental Psychology Western Washington University From asa8 at le.ac.uk Sat Mar 3 11:43:17 2007 From: asa8 at le.ac.uk (Andrews, A.S.) Date: Sat, 3 Mar 2007 11:43:17 -0000 Subject: Slide Images change resolution In-Reply-To: <62718.24.17.156.129.1172896869.squirrel@www.ac.wwu.edu> Message-ID: Hi Nicholas Your images could be changing for a number of reasons. Firstly you should make sure your desktop size in the experiment is set to the size you want. The default values are often different to your Windows desktop. You can edit the settings through the Experiment object at the top of the Structure window. Next, you should place an image on a Slide object, and set the size of it to be the same as the largest image you want to display. You should also make sure that 'Stretch' is turned off or it will distort your images to fill the placeholder. Best regards, Tony Andrews Principal Computer Officer School of Psychology University of Leicester. -----Original Message----- From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On Behalf Of Nicholas Goodman Sent: 03 March 2007 04:41 To: eprime at mail.talkbank.org Subject: Slide Images change resolution Hello again E-Primers, Short question. I have a procedure using slide objects which present the bmp files i have stored in the 'My Experiments' folder. when I run the experiment, the images are distorted (the resolution changes, and the images shift position). I don't like that the images shift and would like them to appear the same as they are in the original file. I have made sure that the file in the slide object is formated, but the image always changes resolution during the experiment. Any ideas? Thank you in advance Nicholas Goodman Graduate Student, Experimental Psychology Western Washington University From nikelski at bic.mni.mcgill.ca Mon Mar 5 04:36:50 2007 From: nikelski at bic.mni.mcgill.ca (EJ Nikelski) Date: Sun, 4 Mar 2007 23:36:50 -0500 Subject: Port value out of range Message-ID: Hi all, I have a simple, yet annoying problem. I'm using a NI-DAQ to send a 5-VDC TTL trigger to a TMS machine. When I set the port address and send the pulse using WritePort, I get my pulse (I have a voltmeter on the output pin). If, however, I try to use the OnsetSignal process, I get a runtime error telling me "10008: Port value out of range" while setting OnsetSignalPort. Now, the port value is a little unusual (&hFFE0) since I am addressing a NI PCMCIA card ... but the address is clearly valid (as exemplified by the WritePort exercise ... and verified by checking in the device manager). Does anyone have any idea why OnsetSignal is having a problem with this address? Thanks, -Jim -- Jim Nikelski, Ph.D. Postdoctoral Research Fellow Bloomfield Centre for Research in Aging Lady Davis Institute for Medical Research Sir Mortimer B. Davis - Jewish General Hospital McGill University Tel: (514) 340-8222 x 2298 Fax: (514) 340-8295 From pauls_postbus at hotmail.com Mon Mar 5 05:00:07 2007 From: pauls_postbus at hotmail.com (Paul Gr) Date: Mon, 5 Mar 2007 06:00:07 +0100 Subject: Port value out of range Message-ID: Hi Jim, This is a known (and fixed) issue. More info is available from the EPrime knowledge base: info topic 2575: FEATURE: OnsetSignalDataPort and OffsetSignalDataPort permit wider range of values E-Prime 1.2.1.811 and later permit a wider range of parallel port values. http://www.pstnet.com/e%2Dprime/support/kb.asp?TopicID=2575 So, updating to the latest release should fix the problem. Best,paul Paul Groot VU University Amsterdam > Date: Sun, 4 Mar 2007 23:36:50 -0500> From: nikelski at bic.mni.mcgill.ca> To: eprime at mail.talkbank.org> Subject: Port value out of range> > Hi all,> > I have a simple, yet annoying problem. I'm using a NI-DAQ to send a> 5-VDC TTL trigger to a TMS machine. When I set the port address and send> the pulse using WritePort, I get my pulse (I have a voltmeter on the> output pin). If, however, I try to use the OnsetSignal process, I get a> runtime error telling me "10008: Port value out of range" while setting> OnsetSignalPort.> > Now, the port value is a little unusual (&hFFE0) since I am> addressing a NI PCMCIA card ... but the address is clearly valid (as> exemplified by the WritePort exercise ... and verified by checking in> the device manager). Does anyone have any idea why OnsetSignal is having> a problem with this address?> > Thanks,> > -Jim> > > -- > Jim Nikelski, Ph.D.> Postdoctoral Research Fellow> Bloomfield Centre for Research in Aging> Lady Davis Institute for Medical Research> Sir Mortimer B. Davis - Jewish General Hospital> McGill University> Tel: (514) 340-8222 x 2298> Fax: (514) 340-8295> > _________________________________________________________________ Probeer Live.nl: zoekmachine van de makers van MSN! http://www.live.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From brobinso at mprc.umaryland.edu Wed Mar 7 20:20:49 2007 From: brobinso at mprc.umaryland.edu (Ben Robinson) Date: Wed, 7 Mar 2007 15:20:49 -0500 Subject: add items from a list to an array in E-prime Message-ID: something along these lines should work: Dim i as Integer Dim array(List1.Size-1) as String For i=1 to List1.Size array(i-1) = List1.GetAttrib i, "ColumnName" Next i ben robinson >>> "Tobias Johansson" 3/2/2007 6:20 AM >>> Hi! I have a question about arrays that I cannot really figure out on my own. I have a variable with a number of items in a list. I want these items added to an array in the beginning of the experiment because I want to search through the array through out the course of the experiment, e.g. "If the subjects response in the array then do X, otherwise do Y". I have no problems with the code for searching the array. But I do have problems with adding all of the items in the list to an array in an economical fashion. I have set up a trial procedure with an inline script so the experiment goes through all the items in the list, one by one, and adding them to the array. But this generates a lot of saved trials and the datafile gets messy (of course I can filter the data file, but still....). Is there any way to, in one big fat step, just add a whole list of items to an array, without using any trialprocedure, but just referring to the list? Best regards Tobias Johansson Lund University, Sweden Express yourself instantly with MSN Messenger! MSN Messenger Download today it's FREE! From Fabrizio.Ferri at uv.es Mon Mar 12 15:21:03 2007 From: Fabrizio.Ferri at uv.es (Fabrizio Ferri Benedetti) Date: Mon, 12 Mar 2007 16:21:03 +0100 Subject: Error with RB-530 keyboard (emulating SR pad) Message-ID: Hello, I'm getting this error on some PCs, when using a Cedrus RB-530 response pad (ports from 1 to 4): Run-time Error (Line 462) 10051: An error occurred while attempting to open the device Error: 0x00004a49 Message: 'Unable to open the SRBOX: 0x00000005 The SRBox Device Driver may not be installed' The PC correctly detects the pad, tough. What could be the problem? On other's PCs, the pad works flawlessly. Cheers, Fabrizio -- Fabrizio Ferri Benedetti Departamento de Psicolog?a Evolutiva y Educativa Facultad de Psicolog?a Universidad de Valencia http://www.uv.es/fafebe From tab2006 at med.cornell.edu Wed Mar 14 19:44:14 2007 From: tab2006 at med.cornell.edu (Tracy A. Butler) Date: Wed, 14 Mar 2007 15:44:14 -0400 Subject: 2.0 Beta E-DataAid export problem Message-ID: I made an .emrg file that looks fine in E-DataAid, but when I try to export it (as either statview or excel - they both turn out as .txt anyway) I get a meaningless file filled w/ numbers and letters. Is this a bug? Thanks, Tracy From tab2006 at med.cornell.edu Wed Mar 14 21:39:46 2007 From: tab2006 at med.cornell.edu (Tracy A. Butler) Date: Wed, 14 Mar 2007 17:39:46 -0400 Subject: 2.0 Beta E-DataAid export problem In-Reply-To: <007c01c76671$2516b050$4535fb8c@svc.a.wcmcad.net> Message-ID: This seems to be a Eprime 2.0-specific problem (I've previously had no problems doing this in eprime 1). I will post this on the E-Prime 2.0 users Forum at the PST website. Thanks! -----Original Message----- From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On Behalf Of Tracy A. Butler Sent: Wednesday, March 14, 2007 3:44 PM To: eprime at mail.talkbank.org Subject: 2.0 Beta E-DataAid export problem I made an .emrg file that looks fine in E-DataAid, but when I try to export it (as either statview or excel - they both turn out as .txt anyway) I get a meaningless file filled w/ numbers and letters. Is this a bug? Thanks, Tracy From Stephane.DeBrito at iop.kcl.ac.uk Mon Mar 19 17:15:56 2007 From: Stephane.DeBrito at iop.kcl.ac.uk (De Brito, Stephane) Date: Mon, 19 Mar 2007 17:15:56 -0000 Subject: change of reinforcement contingencies across participants Message-ID: Dear E-prime experts, I am working on a task in which the participant is presented with pairs of picture on the screen. I have 10 different pictures and each picture is associated with a reinforcement value which stays the same throughout the experiment (e.g. the cup always wins you 900 points and the cow always looses you 900 points). On each trial, the participant has to choose one of the two pictures presented (press 'q' for left hand side picture and 'p' for right hand side picture) and win has many points has he can. The reinforcement values are +900 +700 +500 +300 +100 -100 +300 +500 +700 +900. Sometimes the participant is presented with 2 pictures associated with punishment (pun-pun trials) and has to choose the one associated with the lowest punishment (i.e. scored as correct); on pun-rew trials the rew is scored as correct and on rew-rew trials the pictures with highest reinforcement value is scored as correct. The task is running fine, but I would like to change across participants the reinforcement contingency for each picture so that, for example, not every participant wins 900 point when they choose the cup. At the moment, I have the following attributes in my listobject: Picture1 Picture2 Slidestate CorrectAnswer Correct Incorrect cup.bmp cow.bmp 1 q You have won 900 points You have lost 900 points car.bmp spoon.bmp 3 q You have lost 300 points You have lost 500 points Etc... Basically, I would like to keep the pairing for my attributes 'Correct' and 'Incorrect' the same, but I want to change across participants the pairing in my 'Picture 1' and 'Picture 2' attributes. I hope I made myself clear. From the e-prime manual and discussion with colleagues, it seems that the best way to do this would be with an 'array', but I have not managed to work it out yet. Any idea on how to achieve this would be greatly appreciated. Many thanks. Best wishes, Stephane ------------------------------------------ Stephane De Brito, PhD student Institute of Psychiatry King's College London Forensic Mental Health Science Department Box P023 De Crespigny Park Denmark Hill London SE5 8AF United Kingdom Tel: + 44 (0) 20 7848 0711 Fax: + 44 (0) 20 7848 0754 website: www.iop.kcl.ac.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From leisha at decisionresearch.org Mon Mar 19 22:27:27 2007 From: leisha at decisionresearch.org (Leisha Wharfield) Date: Mon, 19 Mar 2007 15:27:27 -0700 Subject: change of reinforcement contingencies across participants In-Reply-To: <7AC047D44A8CD243B7FE9305102D5FD105B69BA7@MAIL.bc.iop.kcl.ac.uk> Message-ID: Hi, Stephane, I never worked out arrays either, but I did something a lot like this. I would embed another list under Correct and Incorrect that allowed as many other values as you like. Say for Correct you have +900 +700 +500 +300 & +100. That is five different values. Embed a list under Correct called CorrectValues, for example. To do this, you put the name of the list in brackets in the list you already have, so it looks like this: [CorrectValues]. CorrectValues will have 5 different rows & the variable [Value] must match what is on your screen. So the screen that shows that value will say [Value] not [Correct]. You can rearrange these names any way you want to, but the name of the variable that matches the screen will be the same as in the embedded list, if you are following me. To be sure that the cow is always worth whatever value that it picks for the same subject, say every time the cow appears you win $500, have the embedded list pick based on subject number. This might result in every fifth subject getting the same pair of + & - numbers, though. I'm not sure. Maybe someone else could help with that part. Hope this helps, Leisha De Brito, Stephane wrote: > Dear E-prime experts, > > > > I am working on a task in which the participant is presented with > pairs of picture on the screen. I have 10 different pictures and each > picture is associated with a reinforcement value which stays the same > throughout the experiment (e.g. the cup always wins you 900 points > and the cow always looses you 900 points). On each trial, the > participant has to choose one of the two pictures presented (press 'q' > for left hand side picture and 'p' for right hand side picture) and > win has many points has he can. The reinforcement values are +900 +700 > +500 +300 +100 -100 +300 +500 +700 +900. Sometimes the participant is > presented with 2 pictures associated with punishment (pun-pun trials) > and has to choose the one associated with the lowest punishment (i.e. > scored as correct); on pun-rew trials the rew is scored as correct and > on rew-rew trials the pictures with highest reinforcement value is > scored as correct. > > > > The task is running fine, but I would like to change across > participants the reinforcement contingency for each picture so that, > for example, not every participant wins 900 point when they choose the > cup. At the moment, I have the following attributes in my listobject: > > > > Picture1 > > > > Picture2 > > > > Slidestate > > > > CorrectAnswer > > > > Correct > > > > Incorrect > > cup.bmp > > > > cow.bmp > > > > 1 > > > > q > > > > You have won 900 points > > > > You have lost 900 points > > car.bmp > > > > spoon.bmp > > > > 3 > > > > q > > > > You have lost 300 points > > > > You have lost 500 points > > Etc... > > > > Basically, I would like to keep the pairing for my attributes > 'Correct' and 'Incorrect' the same, but I want to change across > participants the pairing in my 'Picture 1' and 'Picture 2' attributes. > I hope I made myself clear. From the e-prime manual and discussion > with colleagues, it seems that the best way to do this would be with > an 'array', but I have not managed to work it out yet. Any idea on > how to achieve this would be greatly appreciated. Many thanks. > > > > Best wishes, > > Stephane > > > > ------------------------------------------ > > Stephane De Brito, PhD student > > Institute of Psychiatry > > King's College London > > Forensic Mental Health Science Department > > Box P023 > > De Crespigny Park > > Denmark Hill > > London SE5 8AF > > United Kingdom > > Tel: + 44 (0) 20 7848 0711 > > Fax: + 44 (0) 20 7848 0754 > > website: www.iop.kcl.ac.uk > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From smithel at psych.upenn.edu Wed Mar 21 15:22:44 2007 From: smithel at psych.upenn.edu (Elizabeth Smith) Date: Wed, 21 Mar 2007 11:22:44 -0400 Subject: scorebar Message-ID: I have a probabilistic learning task where I need a scorebar on the side of the screen to go up when the subject gets a correct answer and down when it is incorrect. I found a sample of a scorebar program online, but its not really what I'm looking for. Basically I have two images. A vertical line and a smaller horizontal line. I'm wondering if there is a way to get the small horizontal line image to move up for correct answers and down for incorrect answers and to stay in that position until the next trial. So the movement is cumulative. Any thoughts/ideas would be greatly appreciated. I'm not great at programming and I'm a bit stuck on this problem. Thanks! -- Elizabeth Smith Farah Lab Center for Cognitive Neuroscience University of Pennsylvania 215.573.8534 (office) 215.275.5474 (cell) From kated at psych.utoronto.ca Wed Mar 21 15:56:14 2007 From: kated at psych.utoronto.ca (Kate Dupuis) Date: Wed, 21 Mar 2007 11:56:14 -0400 Subject: Auditory sound presentation Message-ID: Hello all I have a problem concerning presenting sound files in my experiment. The entire presentation time of each of my SoundOut objects is 4000 msec. However, my stimuli are typically not exactly 4000 msec long, therefore I will have a period of silence before and after the stimulus. For example, if Sound 1 is only 2500 msec long, I will have to have 750 msec of silence before and after sound 1 is presented. If sound 2 is 3000 msec long, I will have to have 500 msec of silence before and after it is presented. The period of silence before and after the stimulus is played within that 4000 msec period will vary according to the length of each stimulus. How do I tell EPrime how many msec of silence to present on each trial? That is my question. Thank you, Kate -- Kate Dupuis M.A. Ph.D. student Human Communication Laboratory Department of Psychology University of Toronto at Mississauga From dhair at wfubmc.edu Wed Mar 21 16:03:26 2007 From: dhair at wfubmc.edu (David Hairston) Date: Wed, 21 Mar 2007 12:03:26 -0400 Subject: Auditory sound presentation In-Reply-To: <4052.130.15.96.165.1174492574.squirrel@psych.utoronto.ca> Message-ID: I can think of two ways to solve this offhand. The most direct way would be to just edit your .wav files so that they include they actually last exactly 4000 ms; on that 2500 ms stim, just add 750 ms of silence to the beginning and end. You can do this in GoldWave with about 2 clicks. Another route to go would be add a Wait object before and after the sound. In the primary List object, change the Wait duration according to the stimulus sound length so that it all balances out. On any that need no extra silence, just make the duration 0. *one note* - the actual duration of the wait in these won't be 0, it will be 1 monitor refresh rate, maybe 15 ms or so. -----Original Message----- From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On Behalf Of Kate Dupuis Sent: Wednesday, March 21, 2007 11:56 AM To: eprime at mail.talkbank.org Subject: Auditory sound presentation Hello all I have a problem concerning presenting sound files in my experiment. The entire presentation time of each of my SoundOut objects is 4000 msec. However, my stimuli are typically not exactly 4000 msec long, therefore I will have a period of silence before and after the stimulus. For example, if Sound 1 is only 2500 msec long, I will have to have 750 msec of silence before and after sound 1 is presented. If sound 2 is 3000 msec long, I will have to have 500 msec of silence before and after it is presented. The period of silence before and after the stimulus is played within that 4000 msec period will vary according to the length of each stimulus. How do I tell EPrime how many msec of silence to present on each trial? That is my question. Thank you, Kate -- Kate Dupuis M.A. Ph.D. student Human Communication Laboratory Department of Psychology University of Toronto at Mississauga From psp48d at bangor.ac.uk Wed Mar 21 16:41:41 2007 From: psp48d at bangor.ac.uk (psp48d at bangor.ac.uk) Date: Wed, 21 Mar 2007 16:41:41 +0000 Subject: In line problems Message-ID: Dear E-Prime Experts, I have designed an experiment that has 196 trials, and I wanted to introduce a text page after trial 98 offering a rest period to the participant. My problem is twofold: 1)First of all I tried to get e-prime to keep track of what trial we are on by referncing the ?Block? attribute. I did this as follows: Dim Trial Trial=c.GetAttrib (?Block?) However, when running it, e-prime did not recognise block as an attribute. So I tried to create my own: Dim Trial as integer Trial = Trial + 1 This also did not work. 2)Secondly, I placed the ?rest? page in my trialproc timeline, and tried to get e-prime to access it via an 'inline' at the end of the timeline: If Trial = 98 then Rest.run 'referncing my textpage for the rest period Else fixation.run 'this last line is trying to get e-prime to revert to the beginning 'of the trialproc timeline if the trial is not 98. This doesn't work End if How do I get e-prime to keep track of the trial number, and how do I introduce a rest page if a certain trial number is satisfied? Yours in confusion! Jim Grange. University of Wales, Bangor. -- This mail sent through http://webmail.bangor.ac.uk -- Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dil?wch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio ? defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of the University of Wales, Bangor. The University of Wales, Bangor does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the University of Wales, Bangor Finance Office. www.bangor.ac.uk From brobinso at mprc.umaryland.edu Wed Mar 21 16:54:48 2007 From: brobinso at mprc.umaryland.edu (Ben Robinson) Date: Wed, 21 Mar 2007 12:54:48 -0400 Subject: scorebar Message-ID: if you can calculate their accuracy after each trial you could multiply that percentage times the number of pixels in the height of the screen (eprime defaults to 640x480, so 480 pixels are the height of the screen). something like, after each trial add 1 to a trial counter (trialcounter = trialcounter + 1), and after correct responses add 1 to a correct response counter (If Slide1.ACC = 1 Then... correctcounter = correctcounter + 1... End If). divide correctcounter by trialcounter to get an accuracy between 0 and 1 (currentacc = correctcounter/trialcounter). multiply current accuracy by the height of the screen to determine where on the screen you want your horizontal bar (barheight = currentacc*480). then at the start of the next trial set the Y coordinate of your slideimage object equal to barheight. that might do it. >>> Elizabeth Smith 3/21/2007 11:22 AM >>> I have a probabilistic learning task where I need a scorebar on the side of the screen to go up when the subject gets a correct answer and down when it is incorrect. I found a sample of a scorebar program online, but its not really what I'm looking for. Basically I have two images. A vertical line and a smaller horizontal line. I'm wondering if there is a way to get the small horizontal line image to move up for correct answers and down for incorrect answers and to stay in that position until the next trial. So the movement is cumulative. Any thoughts/ideas would be greatly appreciated. I'm not great at programming and I'm a bit stuck on this problem. Thanks! -- Elizabeth Smith Farah Lab Center for Cognitive Neuroscience University of Pennsylvania 215.573.8534 (office) 215.275.5474 (cell) From brobinso at mprc.umaryland.edu Wed Mar 21 17:02:21 2007 From: brobinso at mprc.umaryland.edu (Ben Robinson) Date: Wed, 21 Mar 2007 13:02:21 -0400 Subject: In line problems Message-ID: create a new list, MainList. first proc in MainList can be called BlockProc. next proc in MainList can be called RestProc. then another BlockProc. then EndProc. so you have four rows in your new, MainList. now drag your list containing 196 trials onto the BlockProc timeline. drag your rest screen onto the RestProc timeline. now go to your list with 196 trials. click properties. click the reset/exit tab. tell your list to reset after 196 trials (all of them). tell your list to exit after 98 trials. what this will do is run 98 trials from your list of trials, then run the rest procedure, then run the remaining 98 trials, culminating with an EndProc, where you could thank people for their participation or tell them how well they did, etc. ben >>> 3/21/2007 12:41 PM >>> Dear E-Prime Experts, I have designed an experiment that has 196 trials, and I wanted to introduce a text page after trial 98 offering a rest period to the participant. My problem is twofold: 1)First of all I tried to get e-prime to keep track of what trial we are on by referncing the "Block" attribute. I did this as follows: Dim Trial Trial=c.GetAttrib ("Block") However, when running it, e-prime did not recognise block as an attribute. So I tried to create my own: Dim Trial as integer Trial = Trial + 1 This also did not work. 2)Secondly, I placed the "rest" page in my trialproc timeline, and tried to get e-prime to access it via an 'inline' at the end of the timeline: If Trial = 98 then Rest.run 'referncing my textpage for the rest period Else fixation.run 'this last line is trying to get e-prime to revert to the beginning 'of the trialproc timeline if the trial is not 98. This doesn't work End if How do I get e-prime to keep track of the trial number, and how do I introduce a rest page if a certain trial number is satisfied? Yours in confusion! Jim Grange. University of Wales, Bangor. -- This mail sent through http://webmail.bangor.ac.uk -- Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dil?wch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio ? defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of the University of Wales, Bangor. The University of Wales, Bangor does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the University of Wales, Bangor Finance Office. www.bangor.ac.uk From leisha at decisionresearch.org Wed Mar 21 17:03:40 2007 From: leisha at decisionresearch.org (Leisha Wharfield) Date: Wed, 21 Mar 2007 10:03:40 -0700 Subject: In line problems In-Reply-To: <1174495301.46016045435b0@webmail.bangor.ac.uk> Message-ID: I think that, similar to Elizabeth Smith's question regarding a score bar, you need to use a global attribute. Global attributes supersede individual procedures, so you can keep them going throughout your entire experiment. You need to View the Script, then establish your attribute in the User tab. For example, Dim Trial as integer Then keep that in-line object that is adding Trial + 1 to Trial after each trial. Then your If Trial = 98 should work. (Unless you are already using a global attribute, in which case this advice won't help as much as I'd hoped.) Leisha Wharfield Decision Research Eugene, Oregon, USA psp48d at bangor.ac.uk wrote: >Dear E-Prime Experts, > >I have designed an experiment that has 196 trials, and I wanted to introduce a >text page after trial 98 offering a rest period to the participant. My problem >is twofold: > >1)First of all I tried to get e-prime to keep track of what trial we are on by >referncing the ?Block? attribute. I did this as follows: > >Dim Trial >Trial=c.GetAttrib (?Block?) > >However, when running it, e-prime did not recognise block as an attribute. So I >tried to create my own: > >Dim Trial as integer >Trial = Trial + 1 > >This also did not work. > >2)Secondly, I placed the ?rest? page in my trialproc timeline, and tried to get >e-prime to access it via an 'inline' at the end of the timeline: > >If Trial = 98 then >Rest.run > 'referncing my textpage for the rest period >Else fixation.run > 'this last line is trying to get e-prime to revert to the beginning > 'of the trialproc timeline if the trial is not 98. This doesn't work >End if > >How do I get e-prime to keep track of the trial number, and how do I introduce a >rest page if a certain trial number is satisfied? > >Yours in confusion! > >Jim Grange. >University of Wales, Bangor. > > > > >-- >This mail sent through http://webmail.bangor.ac.uk > > > > From Stephane.DeBrito at iop.kcl.ac.uk Wed Mar 21 17:07:18 2007 From: Stephane.DeBrito at iop.kcl.ac.uk (De Brito, Stephane) Date: Wed, 21 Mar 2007 17:07:18 -0000 Subject: In line problems Message-ID: Hi Jim, I have designed an experiment with 2 rest periods. I did the following: I created a trial counter which I declared in the User script and wrote in a global inline at the begining of my experiment (gnTrial_Counter =0) In my trialproc timeline, I put an empty textdisplay object, which I called 'break'. I assigned it an infinite duration and the spacebar as allowable reponse in the object property. I put a Label after the 'break' textdisplay so that the textdisplay is skipped except on trial 120 and trial 240. Below is the script I used in my inline before the textdisplay object. Hope this helps. Get back to me if it's not clear. best, stephane gnTrial_Counter = gnTrial_Counter+1 if gnTrial_Counter = 120 then break.Text = "Have a break now" &_ "\nPress the spacebar when you want to continue" elseif gnTrial_Counter = 240 then break.Text = "Have a break now" &_ "\nPress the spacebar when you want to continue" else Goto Label1 end if ------------------------------------------------------------------ Stephane De Brito, PhD student Institute of Psychiatry, King's College London Forensic Mental Health Science Department Box P023 De Crespigny Park Denmark Hill London SE5 8AF United Kingdom Tel: + 44 (0) 20 7848 0711 Fax: + 44 (0) 20 7848 0754 website: www.iop.kcl.ac.uk ________________________________ From: eprime at mail.talkbank.org on behalf of psp48d at bangor.ac.uk Sent: Wed 21/03/2007 16:41 To: eprime at mail.talkbank.org Subject: In line problems Dear E-Prime Experts, I have designed an experiment that has 196 trials, and I wanted to introduce a text page after trial 98 offering a rest period to the participant. My problem is twofold: 1)First of all I tried to get e-prime to keep track of what trial we are on by referncing the "Block" attribute. I did this as follows: Dim Trial Trial=c.GetAttrib ("Block") However, when running it, e-prime did not recognise block as an attribute. So I tried to create my own: Dim Trial as integer Trial = Trial + 1 This also did not work. 2)Secondly, I placed the "rest" page in my trialproc timeline, and tried to get e-prime to access it via an 'inline' at the end of the timeline: If Trial = 98 then Rest.run 'referncing my textpage for the rest period Else fixation.run 'this last line is trying to get e-prime to revert to the beginning 'of the trialproc timeline if the trial is not 98. This doesn't work End if How do I get e-prime to keep track of the trial number, and how do I introduce a rest page if a certain trial number is satisfied? Yours in confusion! Jim Grange. University of Wales, Bangor. -- This mail sent through http://webmail.bangor.ac.uk -- Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dil?wch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio ? defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of the University of Wales, Bangor. The University of Wales, Bangor does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the University of Wales, Bangor Finance Office. www.bangor.ac.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From pseudoverlighter at zonnet.nl Wed Mar 21 17:16:33 2007 From: pseudoverlighter at zonnet.nl (mich) Date: Wed, 21 Mar 2007 18:16:33 +0100 Subject: In line problems In-Reply-To: <1174495301.46016045435b0@webmail.bangor.ac.uk> Message-ID: Hi Jim, 1. When you declare a variable (dim...), visual basic always sets it to 0. Therefore, add the dim part to the user script (in the menu, view, i think) and the counting in the inline. 2. I would suggest using goto statements and adding labels to where you want to go (if it's on the same timeline). For example, I usually have a trial counter (as above) and a statement "if trialcounter <> 98 then goto AfterTheBreak". Thus, you always skip the break unless it's trial 98. But beware of goto-spiderwebs! Cheers, Michiel Spap? PhD Student Cognitive Psychology Leiden University Netherlands -----Original Message----- From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On Behalf Of psp48d at bangor.ac.uk Sent: woensdag 21 maart 2007 17:42 To: eprime at mail.talkbank.org Subject: In line problems Dear E-Prime Experts, I have designed an experiment that has 196 trials, and I wanted to introduce a text page after trial 98 offering a rest period to the participant. My problem is twofold: 1)First of all I tried to get e-prime to keep track of what trial we are on by referncing the ?Block? attribute. I did this as follows: Dim Trial Trial=c.GetAttrib (?Block?) However, when running it, e-prime did not recognise block as an attribute. So I tried to create my own: Dim Trial as integer Trial = Trial + 1 This also did not work. 2)Secondly, I placed the ?rest? page in my trialproc timeline, and tried to get e-prime to access it via an 'inline' at the end of the timeline: If Trial = 98 then Rest.run 'referncing my textpage for the rest period Else fixation.run 'this last line is trying to get e-prime to revert to the beginning 'of the trialproc timeline if the trial is not 98. This doesn't work End if How do I get e-prime to keep track of the trial number, and how do I introduce a rest page if a certain trial number is satisfied? Yours in confusion! Jim Grange. University of Wales, Bangor. -- This mail sent through http://webmail.bangor.ac.uk -- Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dil?wch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio ? defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of the University of Wales, Bangor. The University of Wales, Bangor does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the University of Wales, Bangor Finance Office. www.bangor.ac.uk From psp48d at bangor.ac.uk Wed Mar 21 21:20:53 2007 From: psp48d at bangor.ac.uk (psp48d at bangor.ac.uk) Date: Wed, 21 Mar 2007 21:20:53 +0000 Subject: In line problems In-Reply-To: <7AC047D44A8CD243B7FE9305102D5FD1548C6F@MAIL.bc.iop.kcl.ac.uk> Message-ID: Many thanks to all the helpful replies, it is much appreciated. And im sure my participants will also be grateful to you all for a nice rest in the middle of this experiment!! Jim Grange. Quoting "De Brito, Stephane" : > Hi Jim, > > I have designed an experiment with 2 rest periods. I did the following: I > created a trial counter which I declared in the User script and wrote in a > global inline at the begining of my experiment (gnTrial_Counter =0) In my > trialproc timeline, I put an empty textdisplay object, which I called > 'break'. I assigned it an infinite duration and the spacebar as allowable > reponse in the object property. I put a Label after the 'break' textdisplay > so that the textdisplay is skipped except on trial 120 and trial 240. Below > is the script I used in my inline before the textdisplay object. Hope this > helps. Get back to me if it's not clear. > > best, > > stephane > > > gnTrial_Counter = gnTrial_Counter+1 > > > > if gnTrial_Counter = 120 then > > > > break.Text = "Have a break now" &_ > > "\nPress the spacebar when > you want to continue" > > elseif gnTrial_Counter = 240 then > > break.Text = "Have a break now" &_ > > "\nPress the spacebar when > you want to continue" > > else > > Goto Label1 > > end if > > > ------------------------------------------------------------------ > Stephane De Brito, PhD student > Institute of Psychiatry, King's College London > Forensic Mental Health Science Department > Box P023 > De Crespigny Park > Denmark Hill > London SE5 8AF > United Kingdom > > Tel: + 44 (0) 20 7848 0711 > Fax: + 44 (0) 20 7848 0754 > website: www.iop.kcl.ac.uk > > > ________________________________ > > From: eprime at mail.talkbank.org on behalf of psp48d at bangor.ac.uk > Sent: Wed 21/03/2007 16:41 > To: eprime at mail.talkbank.org > Subject: In line problems > > > > Dear E-Prime Experts, > > I have designed an experiment that has 196 trials, and I wanted to introduce > a > text page after trial 98 offering a rest period to the participant. My > problem > is twofold: > > 1)First of all I tried to get e-prime to keep track of what trial we are on > by > referncing the "Block" attribute. I did this as follows: > > Dim Trial > Trial=c.GetAttrib ("Block") > > However, when running it, e-prime did not recognise block as an attribute. So > I > tried to create my own: > > Dim Trial as integer > Trial = Trial + 1 > > This also did not work. > > 2)Secondly, I placed the "rest" page in my trialproc timeline, and tried to > get > e-prime to access it via an 'inline' at the end of the timeline: > > If Trial = 98 then > Rest.run > 'referncing my textpage for the rest period > Else fixation.run > 'this last line is trying to get e-prime to revert to the beginning > 'of the trialproc timeline if the trial is not 98. This doesn't work > End if > > How do I get e-prime to keep track of the trial number, and how do I > introduce a > rest page if a certain trial number is satisfied? > > Yours in confusion! > > Jim Grange. > University of Wales, Bangor. > > > > > -- > This mail sent through http://webmail.bangor.ac.uk > > > > -- > Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, > gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig > gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y > neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar > unwaith a dil?wch y neges. Os na fwriadwyd anfon y neges atoch chi, > rhaid i chi beidio ? defnyddio, cadw neu ddatgelu unrhyw wybodaeth a > gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i > hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn > Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu > bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu > 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn > nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract > rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa > Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk > > This email and any attachments may contain confidential material and > is solely for the use of the intended recipient(s). If you have > received this email in error, please notify the sender immediately > and delete this email. If you are not the intended recipient(s), you > must not use, retain or disclose any information contained in this > email. Any views or opinions are solely those of the sender and do > not necessarily represent those of the University of Wales, Bangor. > The University of Wales, Bangor does not guarantee that this email or > any attachments are free from viruses or 100% secure. Unless > expressly stated in the body of the text of the email, this email is > not intended to form a binding contract - a list of authorised > signatories is available from the University of Wales, Bangor Finance > Office. www.bangor.ac.uk > > > > > -- This mail sent through http://webmail.bangor.ac.uk -- Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dil?wch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio ? defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of the University of Wales, Bangor. The University of Wales, Bangor does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the University of Wales, Bangor Finance Office. www.bangor.ac.uk From pauls_postbus at hotmail.com Wed Mar 21 21:55:24 2007 From: pauls_postbus at hotmail.com (Paul Gr) Date: Wed, 21 Mar 2007 22:55:24 +0100 Subject: scorebar Message-ID: Hello Elizabeth, The following link contains to a simple E-Prime example to move one image relative to another. In this example both images are placed on a slide object and the smaller (hbar) image will move from the bottom to the top in 11 steps. I also made the hbar image transparent by defining the SourceColorKey (white.) To make things a bit easier a also set the stretch property of both images to true. (This is not required though.)http://www.psy.vu.nl/download/paul/levelbar.zip hope this helps. best, Paul Groot VU University Amsterdam > Date: Wed, 21 Mar 2007 11:22:44 -0400> From: smithel at psych.upenn.edu> To: eprime at mail.talkbank.org> Subject: scorebar> > I have a probabilistic learning task where I need a scorebar on the side > of the screen to go up when the subject gets a correct answer and down > when it is incorrect. I found a sample of a scorebar program online, > but its not really what I'm looking for. Basically I have two images. > A vertical line and a smaller horizontal line. I'm wondering if there > is a way to get the small horizontal line image to move up for correct > answers and down for incorrect answers and to stay in that position > until the next trial. So the movement is cumulative. > > Any thoughts/ideas would be greatly appreciated. I'm not great at > programming and I'm a bit stuck on this problem.> > Thanks!> > -- > Elizabeth Smith> Farah Lab> Center for Cognitive Neuroscience> University of Pennsylvania> 215.573.8534 (office)> 215.275.5474 (cell)> > _________________________________________________________________ Live.nl: je eigen persoonlijk startpagina met nieuws en feeds die JIJ belangrijk vindt! http://www.live.com/getstarted.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From pseudoverlighter at zonnet.nl Wed Mar 21 23:43:28 2007 From: pseudoverlighter at zonnet.nl (mich) Date: Thu, 22 Mar 2007 00:43:28 +0100 Subject: In line problems In-Reply-To: <1174512053.4601a1b5f4139@webmail.bangor.ac.uk> Message-ID: Slightly off-topic, but still some friendly advise: Don't know about your participants, but somehow, mine don't seem to want to take a break. I just finished an experiment that took one and a half hour, but they did not come out of the lab cubicle (which is NOT a friendly work environment!), even though: - They were told there was to be one break in the middle of the experiment and that the experiment was calculated to be exactly 84 minutes excluding the five minutes of relaxing (the other one minute was for explaining the experiment). - During the break, E-Prime (or me, depending on your idea of causation) told them the five minutes started, and heavily recommended stepping outside the lab and go for some coffee. I've done quite a bit of piloting and I can assure you, it puts quite a bit of strain on your concentration. - Also, they were told the break could not be skipped in any way (well, they could unplug the computer), and that the experiment would not automatically start after five minutes. So, basically, people could either sit, gazing at a CRT screen watching five textdisplays counting back the minutes from 5 to "0, press the spacebar to continue", or get some refreshment, walk around, chat with the lab-assistant, ask what they are doing, etc. But they did not. So, my point in this story is that, unless your participants are very different, they will try to continue doing the experiment as fast as they can (even if they can't influence the time spent) and few will take a break. If they are different, it won't hurt to make the break compulsory! Cheers, Mich (i suppose making the screen turn black - with a black textdisplay - should also prompt the participants to leave the lab to take a break) -----Original Message----- From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On Behalf Of psp48d at bangor.ac.uk Sent: woensdag 21 maart 2007 22:21 To: De Brito, Stephane Cc: eprime at mail.talkbank.org Subject: RE: In line problems Many thanks to all the helpful replies, it is much appreciated. And im sure my participants will also be grateful to you all for a nice rest in the middle of this experiment!! Jim Grange. Quoting "De Brito, Stephane" : > Hi Jim, > > I have designed an experiment with 2 rest periods. I did the following: I > created a trial counter which I declared in the User script and wrote in a > global inline at the begining of my experiment (gnTrial_Counter =0) In my > trialproc timeline, I put an empty textdisplay object, which I called > 'break'. I assigned it an infinite duration and the spacebar as allowable > reponse in the object property. I put a Label after the 'break' textdisplay > so that the textdisplay is skipped except on trial 120 and trial 240. Below > is the script I used in my inline before the textdisplay object. Hope this > helps. Get back to me if it's not clear. > > best, > > stephane > > > gnTrial_Counter = gnTrial_Counter+1 > > > > if gnTrial_Counter = 120 then > > > > break.Text = "Have a break now" &_ > > "\nPress the spacebar when > you want to continue" > > elseif gnTrial_Counter = 240 then > > break.Text = "Have a break now" &_ > > "\nPress the spacebar when > you want to continue" > > else > > Goto Label1 > > end if > > > ------------------------------------------------------------------ > Stephane De Brito, PhD student > Institute of Psychiatry, King's College London > Forensic Mental Health Science Department > Box P023 > De Crespigny Park > Denmark Hill > London SE5 8AF > United Kingdom > > Tel: + 44 (0) 20 7848 0711 > Fax: + 44 (0) 20 7848 0754 > website: www.iop.kcl.ac.uk > > > ________________________________ > > From: eprime at mail.talkbank.org on behalf of psp48d at bangor.ac.uk > Sent: Wed 21/03/2007 16:41 > To: eprime at mail.talkbank.org > Subject: In line problems > > > > Dear E-Prime Experts, > > I have designed an experiment that has 196 trials, and I wanted to introduce > a > text page after trial 98 offering a rest period to the participant. My > problem > is twofold: > > 1)First of all I tried to get e-prime to keep track of what trial we are on > by > referncing the "Block" attribute. I did this as follows: > > Dim Trial > Trial=c.GetAttrib ("Block") > > However, when running it, e-prime did not recognise block as an attribute. So > I > tried to create my own: > > Dim Trial as integer > Trial = Trial + 1 > > This also did not work. > > 2)Secondly, I placed the "rest" page in my trialproc timeline, and tried to > get > e-prime to access it via an 'inline' at the end of the timeline: > > If Trial = 98 then > Rest.run > 'referncing my textpage for the rest period > Else fixation.run > 'this last line is trying to get e-prime to revert to the beginning > 'of the trialproc timeline if the trial is not 98. This doesn't work > End if > > How do I get e-prime to keep track of the trial number, and how do I > introduce a > rest page if a certain trial number is satisfied? > > Yours in confusion! > > Jim Grange. > University of Wales, Bangor. > > > > > -- > This mail sent through http://webmail.bangor.ac.uk > > > > -- > Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, > gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig > gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y > neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar > unwaith a dil?wch y neges. Os na fwriadwyd anfon y neges atoch chi, > rhaid i chi beidio ? defnyddio, cadw neu ddatgelu unrhyw wybodaeth a > gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i > hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn > Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu > bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu > 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn > nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract > rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa > Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk > > This email and any attachments may contain confidential material and > is solely for the use of the intended recipient(s). If you have > received this email in error, please notify the sender immediately > and delete this email. If you are not the intended recipient(s), you > must not use, retain or disclose any information contained in this > email. Any views or opinions are solely those of the sender and do > not necessarily represent those of the University of Wales, Bangor. > The University of Wales, Bangor does not guarantee that this email or > any attachments are free from viruses or 100% secure. Unless > expressly stated in the body of the text of the email, this email is > not intended to form a binding contract - a list of authorised > signatories is available from the University of Wales, Bangor Finance > Office. www.bangor.ac.uk > > > > > -- This mail sent through http://webmail.bangor.ac.uk -- Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dil?wch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio ? defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of the University of Wales, Bangor. The University of Wales, Bangor does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the University of Wales, Bangor Finance Office. www.bangor.ac.uk From asa8 at leicester.ac.uk Thu Mar 22 08:21:43 2007 From: asa8 at leicester.ac.uk (Andrews, A.S.) Date: Thu, 22 Mar 2007 08:21:43 -0000 Subject: In line problems In-Reply-To: <1174512053.4601a1b5f4139@webmail.bangor.ac.uk> Message-ID: I use the same structure of InLine - TextDisplay - Label1 - RestOfTrial with the following code: if not (c.GetAttrib("BlockList.Sample") MOD 31 )=0 then goto Label1 ' change 31 to suit This means that the experiment will offer a rest break after trial 30, trial 61 etc. It is important to use a number that leaves a remainder from the MOD function, or you can find a rest being enforced with one trial to go! Clearly this is something that lots of us have had to create solutions for. Perhaps it is something that could be a feature of the ListObject in a future version of E-Prime. Best Regards, Tony Andrews Principal Computer Officer School of Psychology University of Leicester Lancaster Road Leicester LE1 9HN Tel: 0116 229 7170 Quoting "De Brito, Stephane" : > Hi Jim, > > I have designed an experiment with 2 rest periods. I did the > following: I created a trial counter which I declared in the User > script and wrote in a global inline at the begining of my experiment > (gnTrial_Counter =0) In my trialproc timeline, I put an empty > textdisplay object, which I called 'break'. I assigned it an infinite > duration and the spacebar as allowable reponse in the object property. > I put a Label after the 'break' textdisplay so that the textdisplay is > skipped except on trial 120 and trial 240. Below is the script I used > in my inline before the textdisplay object. Hope this helps. Get back to me if it's not clear. > > best, > > stephane > > > gnTrial_Counter = gnTrial_Counter+1 > > > > if gnTrial_Counter = 120 then > > > > break.Text = "Have a break now" &_ > > "\nPress the spacebar > when you want to continue" > > elseif gnTrial_Counter = 240 then > > break.Text = "Have a break now" &_ > > "\nPress the spacebar > when you want to continue" > > else > > Goto Label1 > > end if > > > ------------------------------------------------------------------ > Stephane De Brito, PhD student > Institute of Psychiatry, King's College London Forensic Mental Health > Science Department Box P023 De Crespigny Park Denmark Hill London SE5 > 8AF United Kingdom > > Tel: + 44 (0) 20 7848 0711 > Fax: + 44 (0) 20 7848 0754 > website: www.iop.kcl.ac.uk > > > ________________________________ > > From: eprime at mail.talkbank.org on behalf of psp48d at bangor.ac.uk > Sent: Wed 21/03/2007 16:41 > To: eprime at mail.talkbank.org > Subject: In line problems > > > > Dear E-Prime Experts, > > I have designed an experiment that has 196 trials, and I wanted to > introduce a text page after trial 98 offering a rest period to the > participant. My problem is twofold: > > 1)First of all I tried to get e-prime to keep track of what trial we > are on by referncing the "Block" attribute. I did this as follows: > > Dim Trial > Trial=c.GetAttrib ("Block") > > However, when running it, e-prime did not recognise block as an > attribute. So I tried to create my own: > > Dim Trial as integer > Trial = Trial + 1 > > This also did not work. > > 2)Secondly, I placed the "rest" page in my trialproc timeline, and > tried to get e-prime to access it via an 'inline' at the end of the > timeline: > > If Trial = 98 then > Rest.run > 'referncing my textpage for the rest period Else fixation.run > 'this last line is trying to get e-prime to revert to the beginning > 'of the trialproc timeline if the trial is not 98. This > doesn't work End if > > How do I get e-prime to keep track of the trial number, and how do I > introduce a rest page if a certain trial number is satisfied? > > Yours in confusion! > > Jim Grange. > University of Wales, Bangor. > > > > > -- > This mail sent through http://webmail.bangor.ac.uk > > > > -- > Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, > gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig > gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y > neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith > a dil?wch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i > chi beidio ? defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir > ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn > unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, > Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost > hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. > Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, > nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr > o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, > Bangor. www.bangor.ac.uk > > This email and any attachments may contain confidential material and > is solely for the use of the intended recipient(s). If you have > received this email in error, please notify the sender immediately and > delete this email. If you are not the intended recipient(s), you must > not use, retain or disclose any information contained in this email. > Any views or opinions are solely those of the sender and do not > necessarily represent those of the University of Wales, Bangor. > The University of Wales, Bangor does not guarantee that this email or > any attachments are free from viruses or 100% secure. Unless > expressly stated in the body of the text of the email, this email is > not intended to form a binding contract - a list of authorised > signatories is available from the University of Wales, Bangor Finance > Office. www.bangor.ac.uk > > > > > -- This mail sent through http://webmail.bangor.ac.uk -- Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dil?wch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio ? defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Cymru, Bangor. www.bangor.ac.uk This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of the University of Wales, Bangor. The University of Wales, Bangor does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the University of Wales, Bangor Finance Office. www.bangor.ac.uk From mcfarla9 at msu.edu Fri Mar 23 16:16:53 2007 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 23 Mar 2007 12:16:53 -0400 Subject: In line problems In-Reply-To: Message-ID: Ben Robinson has already outlined how to supply a subject break by just adding a RestProc to a MainList which calls a single subsidiary TrialList before & after the break. Here's another variant on how to do this with nested Lists: - In your main procedure timeline, add a TrialList before the break, then Rest object, then the same TrialList after the break. - The TrialList will have just a single row. Make the weight 98, add a nested list we'll call StimulusList, leave Procedure blank (to be filled in with Procedure from the nested list) or fill it in with TrialProc, as you like. Use sequential selection. - In StimulusList, add all your stimuli & attributes just like in your original trial list. If you filled in the Procedure attribute for the enclosing TrialList, then leave it blank here. Use random selection or whatever here. Keep Reset and Exit at one cycle or whatever (should not need to change these). Your main procedure will now run 98 trials from StimulusList, in random order if that's what you indicated. Then it will run your Rest object. Then the main procedure will resume running StimulusList, in random order, right where you left off. In the end it's a matter of taste whether you supply a break as above, using Ben's method or another variant, or with inline code. -- David McFarlane, Systems Designer Dept. Psychology, Michigan State University mcfarla9 at msu.edu At 2007-03-21 01:02 PM Wednesday, Ben Robinson wrote: >create a new list, MainList. >first proc in MainList can be called BlockProc. >next proc in MainList can be called RestProc. >then another BlockProc. >then EndProc. >so you have four rows in your new, MainList. > >now drag your list containing 196 trials onto the BlockProc timeline. >drag your rest screen onto the RestProc timeline. > >now go to your list with 196 trials. click properties. click the >reset/exit tab. tell your list to reset after 196 trials (all of >them). tell your list to exit after 98 trials. > >what this will do is run 98 trials from your list of trials, then run the >rest procedure, then run the remaining 98 trials, culminating with an >EndProc, where you could thank people for their participation or tell them >how well they did, etc. > >ben > > > >>> 3/21/2007 12:41 PM >>> >Dear E-Prime Experts, > >I have designed an experiment that has 196 trials, and I wanted to introduce a >text page after trial 98 offering a rest period to the participant. My problem >is twofold: > >1)First of all I tried to get e-prime to keep track of what trial we are on by >referncing the "Block" attribute. I did this as follows: > >Dim Trial >Trial=c.GetAttrib ("Block") > >However, when running it, e-prime did not recognise block as an attribute. >So I >tried to create my own: > >Dim Trial as integer >Trial = Trial + 1 > >This also did not work. > >2)Secondly, I placed the "rest" page in my trialproc timeline, and tried >to get >e-prime to access it via an 'inline' at the end of the timeline: > >If Trial = 98 then >Rest.run > 'referncing my textpage for the rest period >Else fixation.run > 'this last line is trying to get e-prime to revert to the beginning > 'of the trialproc timeline if the trial is not 98. This doesn't work >End if > >How do I get e-prime to keep track of the trial number, and how do I >introduce a >rest page if a certain trial number is satisfied? > >Yours in confusion! > >Jim Grange. >University of Wales, Bangor. From Stephane.DeBrito at iop.kcl.ac.uk Fri Mar 30 19:33:00 2007 From: Stephane.DeBrito at iop.kcl.ac.uk (De Brito, Stephane) Date: Fri, 30 Mar 2007 20:33:00 +0100 Subject: FW: change of reinforcement contingencies across participants Message-ID: Dear E-prime community, With regards to my last email (see below), I have been trying to use an array to solve my problem. I have the feeling that I am on the right track, but would need your help. In my SessionProc I have put an Inline (see Inline1 below) to declare my array and randomized it. In the TrialProc, I have put another Inline which changes the pictures displayed in the column attribute Picture1 and Picture2 - the names of the bitmap files in my columns Picture1 and Picture2 are not cow.bmp; car.bmp as I wrote in my first email (this was just to explain the task), but 1.bmp; 2.bmp etc... When I run the task, I am getting the following error message: Cannot load bitmap file "Picarray(8)" Invalid file The error message mention a different file each time I run the task, which seems to indicate that the randomization is working. Any suggestions on how to get this right would be much appreciated! Thanks. Stephan ------------------------------------------------------------------------ -------- Inline1 Dim Picarray(9) As String Picarray(0) = "1.bmp" Picarray(1) = "2.bmp" Picarray(2) = "3.bmp" Picarray(3) = "4.bmp" Picarray(4) = "5.bmp" Picarray(5) = "6.bmp" Picarray(6) = "7.bmp" Picarray(7) = "8.bmp" Picarray(8) = "9.bmp" Picarray(9) = "10.bmp" RandomizeArray Picarray ------------------------------------------------------------------------ --------- Inline2 if c.GetAttrib ("Picture1") = "1.bmp" then c.SetAttrib "Picture1", "Picarray(0)" end if if c.GetAttrib ("Picture1") = "2.bmp" then c.SetAttrib "Picture1", "Picarray(1)" end if if c.GetAttrib ("Picture1") = "3.bmp" then c.SetAttrib "Picture1", "Picarray(2)" end if if c.GetAttrib ("Picture1") = "4.bmp" then c.SetAttrib "Picture1", "Picarray(3)" end if if c.GetAttrib ("Picture1") = "5.bmp" then c.SetAttrib "Picture1", "Picarray(4)" end if if c.GetAttrib ("Picture1") = "6.bmp" then c.SetAttrib "Picture1", "Picarray(5)" end if if c.GetAttrib ("Picture1") = "7.bmp" then c.SetAttrib "Picture1", "Picarray(6)" end if if c.GetAttrib ("Picture1") = "8.bmp" then c.SetAttrib "Picture1", "Picarray(7)" end if if c.GetAttrib ("Picture1") = "9.bmp" then c.SetAttrib "Picture1", "Picarray(8)" end if if c.GetAttrib ("Picture1") = "10.bmp" then c.SetAttrib "Picture1", "Picarray(9)" end if if c.GetAttrib ("Picture2") = "1.bmp" then c.SetAttrib "Picture2", "Picarray(0)" end if if c.GetAttrib ("Picture2") = "2.bmp" then c.SetAttrib "Picture2", "Picarray(1)" end if if c.GetAttrib ("Picture2") = "3.bmp" then c.SetAttrib "Picture2", "Picarray(2)" end if if c.GetAttrib ("Picture2") = "4.bmp" then c.SetAttrib "Picture2", "Picarray(3)" end if if c.GetAttrib ("Picture2") = "5.bmp" then c.SetAttrib "Picture2", "Picarray(4)" end if if c.GetAttrib ("Picture2") = "6.bmp" then c.SetAttrib "Picture2", "Picarray(5)" end if if c.GetAttrib ("Picture2") = "7.bmp" then c.SetAttrib "Picture2", "Picarray(6)" end if if c.GetAttrib ("Picture2") = "8.bmp" then c.SetAttrib "Picture2", "Picarray(7)" end if if c.GetAttrib ("Picture2") = "9.bmp" then c.SetAttrib "Picture2", "Picarray(8)" end if if c.GetAttrib ("Picture2") = "10.bmp" then c.SetAttrib "Picture2", "Picarray(9)" end if ------------------------------------------ Stephane De Brito, PhD student Institute of Psychiatry King's College London Forensic Mental Health Science Department Box P023 De Crespigny Park Denmark Hill London SE5 8AF United Kingdom Tel: + 44 (0) 20 7848 0711 Fax: + 44 (0) 20 7848 0754 website: www.iop.kcl.ac.uk ________________________________ From: De Brito, Stephane Sent: 19 March 2007 17:16 To: 'eprime at mail.talkbank.org' Subject: change of reinforcement contingencies across participants Dear E-prime experts, I am working on a task in which the participant is presented with pairs of picture on the screen. I have 10 different pictures and each picture is associated with a reinforcement value which stays the same throughout the experiment (e.g. the cup always wins you 900 points and the cow always looses you 900 points). On each trial, the participant has to choose one of the two pictures presented (press 'q' for left hand side picture and 'p' for right hand side picture) and win has many points has he can. The reinforcement values are +900 +700 +500 +300 +100 -100 +300 +500 +700 +900. Sometimes the participant is presented with 2 pictures associated with punishment (pun-pun trials) and has to choose the one associated with the lowest punishment (i.e. scored as correct); on pun-rew trials the rew is scored as correct and on rew-rew trials the pictures with highest reinforcement value is scored as correct. The task is running fine, but I would like to change across participants the reinforcement contingency for each picture so that, for example, not every participant wins 900 point when they choose the cup. At the moment, I have the following attributes in my listobject: Picture1 Picture2 Slidestate CorrectAnswer Correct Incorrect cup.bmp cow.bmp 1 q You have won 900 points You have lost 900 points car.bmp spoon.bmp 3 q You have lost 300 points You have lost 500 points Etc... Basically, I would like to keep the pairing for my attributes 'Correct' and 'Incorrect' the same, but I want to change across participants the pairing in my 'Picture 1' and 'Picture 2' attributes. I hope I made myself clear. From the e-prime manual and discussion with colleagues, it seems that the best way to do this would be with an 'array', but I have not managed to work it out yet. Any idea on how to achieve this would be greatly appreciated. Many thanks. Best wishes, Stephane ------------------------------------------ Stephane De Brito, PhD student Institute of Psychiatry King's College London Forensic Mental Health Science Department Box P023 De Crespigny Park Denmark Hill London SE5 8AF United Kingdom Tel: + 44 (0) 20 7848 0711 Fax: + 44 (0) 20 7848 0754 website: www.iop.kcl.ac.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From lak286 at psu.edu Fri Mar 30 19:48:24 2007 From: lak286 at psu.edu (Lauren Killeen) Date: Fri, 30 Mar 2007 15:48:24 -0400 Subject: No subject Message-ID: I am out of town and may not have an opportunity to read or respond to electronic mail until Monday, April 2nd. From uni at robertdoerr.de Sat Mar 31 09:58:24 2007 From: uni at robertdoerr.de (=?UTF-8?B?Um9iZXJ0IETDtnJy?=) Date: Sat, 31 Mar 2007 11:58:24 +0200 Subject: change of reinforcement contingencies across participants In-Reply-To: <7AC047D44A8CD243B7FE9305102D5FD105B69BA7@MAIL.bc.iop.kcl.ac.uk> Message-ID: Hi Stephane, you can do this without using arrays or other Inline code: Create a new List (i call it Dispatcher). This List will have as many rows as you have subject groups (let's say 3) and no extra attributes. Create three new procedures (proc1, proc2, proc3) in the 'Procedure' column of this List. Dispatcher: Weight Nested Procedure 1 proc1 1 proc2 1 proc3 Each procedure only contains a single table (TrialTable1, Trialtable2, ...) like the one you already have in your experiment. You can copy the old one and edit the copys separately according to your pairings. To get the whole thing running you have to adjust 'Selection' and 'Reset/Exit' properties of the Dispatcher List: Selection->Order: 'Offset' Selection->Order by: 'Subject' (or 'Group' if you want more control) Exit List: after 1 samples Subject #1 will now get row 1 of the dispatcher, so proc1 will run with TrialTable1 Subject #2 will get row 2..... Subject #5 will get row 2..... Subject #n will get row n mod 3...... If this was too confusing, feel free to write back. Robert De Brito, Stephane schrieb: > > Dear E-prime experts, > > > > I am working on a task in which the participant is presented with > pairs of picture on the screen. I have 10 different pictures and each > picture is associated with a reinforcement value which stays the same > throughout the experiment (e.g. the cup always wins you 900 points > and the cow always looses you 900 points). On each trial, the > participant has to choose one of the two pictures presented (press ?q? > for left hand side picture and ?p? for right hand side picture) and > win has many points has he can. The reinforcement values are +900 +700 > +500 +300 +100 -100 +300 +500 +700 +900. Sometimes the participant is > presented with 2 pictures associated with punishment (pun-pun trials) > and has to choose the one associated with the lowest punishment (i.e. > scored as correct); on pun-rew trials the rew is scored as correct and > on rew-rew trials the pictures with highest reinforcement value is > scored as correct. > > > > The task is running fine, but I would like to change across > participants the reinforcement contingency for each picture so that, > for example, not every participant wins 900 point when they choose the > cup. At the moment, I have the following attributes in my listobject: > > > > Picture1 > > > > Picture2 > > > > Slidestate > > > > CorrectAnswer > > > > Correct > > > > Incorrect > > cup.bmp > > > > cow.bmp > > > > 1 > > > > q > > > > You have won 900 points > > > > You have lost 900 points > > car.bmp > > > > spoon.bmp > > > > 3 > > > > q > > > > You have lost 300 points > > > > You have lost 500 points > > Etc? > > > > Basically, I would like to keep the pairing for my attributes > ?Correct? and ?Incorrect? the same, but I want to change across > participants the pairing in my ?Picture 1? and ?Picture 2? attributes. > I hope I made myself clear. From the e-prime manual and discussion > with colleagues, it seems that the best way to do this would be with > an ?array?, but I have not managed to work it out yet. Any idea on > how to achieve this would be greatly appreciated. Many thanks. > > > > Best wishes, > > Stephane > > > > ------------------------------------------ > > Stephane De Brito, PhD student > > Institute of Psychiatry > > King's College London > > Forensic Mental Health Science Department > > Box P023 > > De Crespigny Park > > Denmark Hill > > London SE5 8AF > > United Kingdom > > Tel: + 44 (0) 20 7848 0711 > > Fax: + 44 (0) 20 7848 0754 > > website: www.iop.kcl.ac.uk > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From uni at robertdoerr.de Sat Mar 31 16:21:22 2007 From: uni at robertdoerr.de (=?UTF-8?B?Um9iZXJ0IETDtnJy?=) Date: Sat, 31 Mar 2007 18:21:22 +0200 Subject: change of reinforcement contingencies across participants In-Reply-To: <7AC047D44A8CD243B7FE9305102D5FD105DFE6FC@MAIL.bc.iop.kcl.ac.uk> Message-ID: Hi Stephane, here you can find a screenshot which explains how to integrate the 'Dispatcher' in your experiment structure: http://www.robertdoerr.de/files/eprime/dsp.gif Hope this helps Robert De Brito, Stephane schrieb: > > Hi Robert, > > > > Thank you for your email and your help. I kind of understand what you > suggested, but I am not sure that it would work with the task as it is > designed at the moment. Would you be so kind as to clarify where I > should create the new List ?Dispatcher?? I have attached a print > screen of the structure of the task as it is. Many thanks again for > your help. > > > > Best wishes, > > > > Stephane > > > > ------------------------------------------ > > Stephane De Brito, PhD student > > Institute of Psychiatry > > King's College London > > Forensic Mental Health Science Department > > Box P023 > > De Crespigny Park > > Denmark Hill > > London SE5 8AF > > United Kingdom > > Tel: + 44 (0) 20 7848 0711 > > Fax: + 44 (0) 20 7848 0754 > > website: www.iop.kcl.ac.uk > > > > ------------------------------------------------------------------------ > > *From:* eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] *On > Behalf Of *Robert D?rr > *Sent:* 31 March 2007 10:58 > *To:* eprime at mail.talkbank.org > *Subject:* Re: change of reinforcement contingencies across participants > > > > Hi Stephane, > > you can do this without using arrays or other Inline code: > > Create a new List (i call it Dispatcher). This List will have as many > rows as you have subject groups (let's say 3) and no extra attributes. > Create three new procedures (proc1, proc2, proc3) in the 'Procedure' > column of this List. > Dispatcher: > > Weight > > > > Nested > > > > Procedure > > 1 > > > > > > > > proc1 > > 1 > > > > > > > > proc2 > > 1 > > > > > > > > proc3 > > > Each procedure only contains a single table (TrialTable1, Trialtable2, > ...) like the one you already have in your experiment. You can copy > the old one and edit the copys separately according to your pairings. > > To get the whole thing running you have to adjust 'Selection' and > 'Reset/Exit' properties of the Dispatcher List: > Selection->Order: 'Offset' > Selection->Order by: 'Subject' (or 'Group' if you want more control) > Exit List: after 1 samples > > Subject #1 will now get row 1 of the dispatcher, so proc1 will run > with TrialTable1 > Subject #2 will get row 2..... > Subject #5 will get row 2..... > Subject #n will get row n mod 3...... > > If this was too confusing, feel free to write back. > > Robert > > > De Brito, Stephane schrieb: > > Dear E-prime experts, > > > > I am working on a task in which the participant is presented with > pairs of picture on the screen. I have 10 different pictures and each > picture is associated with a reinforcement value which stays the same > throughout the experiment (e.g. the cup always wins you 900 points > and the cow always looses you 900 points). On each trial, the > participant has to choose one of the two pictures presented (press ?q? > for left hand side picture and ?p? for right hand side picture) and > win has many points has he can. The reinforcement values are +900 +700 > +500 +300 +100 -100 +300 +500 +700 +900. Sometimes the participant is > presented with 2 pictures associated with punishment (pun-pun trials) > and has to choose the one associated with the lowest punishment (i.e. > scored as correct); on pun-rew trials the rew is scored as correct and > on rew-rew trials the pictures with highest reinforcement value is > scored as correct. > > > > The task is running fine, but I would like to change across > participants the reinforcement contingency for each picture so that, > for example, not every participant wins 900 point when they choose the > cup. At the moment, I have the following attributes in my listobject: > > > > Picture1 > > > > Picture2 > > > > Slidestate > > > > CorrectAnswer > > > > Correct > > > > Incorrect > > cup.bmp > > > > cow.bmp > > > > 1 > > > > q > > > > You have won 900 points > > > > You have lost 900 points > > car.bmp > > > > spoon.bmp > > > > 3 > > > > q > > > > You have lost 300 points > > > > You have lost 500 points > > Etc? > > > > Basically, I would like to keep the pairing for my attributes > ?Correct? and ?Incorrect? the same, but I want to change across > participants the pairing in my ?Picture 1? and ?Picture 2? attributes. > I hope I made myself clear. From the e-prime manual and discussion > with colleagues, it seems that the best way to do this would be with > an ?array?, but I have not managed to work it out yet. Any idea on > how to achieve this would be greatly appreciated. Many thanks. > > > > Best wishes, > > Stephane > > > > ------------------------------------------ > > Stephane De Brito, PhD student > > Institute of Psychiatry > > King's College London > > Forensic Mental Health Science Department > > Box P023 > > De Crespigny Park > > Denmark Hill > > London SE5 8AF > > United Kingdom > > Tel: + 44 (0) 20 7848 0711 > > Fax: + 44 (0) 20 7848 0754 > > website: www.iop.kcl.ac.uk > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: