From erin5 at stanford.edu Tue May 6 21:51:08 2003 From: erin5 at stanford.edu (Erin S. Rogers) Date: Tue, 6 May 2003 14:51:08 -0700 Subject: two tasks at the same time Message-ID: Hello, Has anyone ever programmed two streams of tasks to run at the same time in Eprime? We are going to be running a version of the mismatch negativity task, where a sequence of checkerboard images will be flashing at the same time a sequence of tones will be playing. We cannot do this with Slide images because the checkerboards and tones have different durations. If anyone can offer any assistance, it would be much appreciated. Thank you, Erin Laboratory of Clinical Neuroscience Department of Psychiatry and Behavioral Sciences Stanford University School of Medicine Stanford, CA 94305-5550 Office: (650) 493-5000 ext. 67349 Fax: (650) 493-4901 From anthony.zuccolotto at pstnet.com Wed May 7 18:36:38 2003 From: anthony.zuccolotto at pstnet.com (Tony Zuccolotto) Date: Wed, 7 May 2003 14:36:38 -0400 Subject: two tasks at the same time Message-ID: Erin, Can the tone sequences be prepared in a single wave file or is it the case that the order, frequency, and duration of the tones cannot be predetermined before the experiment runs? Thanks, Tony > -----Original Message----- > From: Erin S. Rogers [mailto:erin5 at stanford.edu] > Sent: Tuesday, May 06, 2003 4:51 PM > To: eprime at mail.talkbank.org > Subject: two tasks at the same time > > Hello, > > Has anyone ever programmed two streams of tasks to run at the same time in > Eprime? We are going to be running a version of the mismatch negativity > task, where a sequence of checkerboard images will be flashing at the same > time a sequence of tones will be playing. We cannot do this with Slide > images because the checkerboards and tones have different durations. If > anyone can offer any assistance, it would be much appreciated. > > Thank you, > Erin > > Laboratory of Clinical Neuroscience > Department of Psychiatry and Behavioral Sciences > Stanford University School of Medicine > Stanford, CA 94305-5550 > Office: (650) 493-5000 ext. 67349 > Fax: (650) 493-4901 > From stuhols at siue.edu Mon May 5 18:29:39 2003 From: stuhols at siue.edu (Stephen W Tuholski) Date: Mon, 5 May 2003 13:29:39 -0500 Subject: Read-only files In-Reply-To: <5.2.0.9.0.20030327192007.03c633e0@goliat.ugr.es> Message-ID: Hi everyone, I have what I hope is a fairly unique problem. Some time ago, my PC crashed. Our institutional computing folks were able to save my e-prime data, although in the process of copying them to a CD, they were turned into read-only files. Unfortunately, I cannot get e-prime to recognize said files. Anyone have any insight on how to change my files from read-only to something that i can merge/analyze? Thanks in advance for any insight. Steve From mg2reyno at watarts.uwaterloo.ca Thu May 8 13:47:13 2003 From: mg2reyno at watarts.uwaterloo.ca (Michael Reynolds) Date: Thu, 8 May 2003 09:47:13 -0400 Subject: Read-only files In-Reply-To: <5.1.0.14.0.20030505132739.02a336c0@mail.siue.edu> Message-ID: Stephen, It has been a while since I have used DOS, but you can use the "attrib" command to change the file properties for entire directories of files. Go to the directory on your hard-drive where the files are stored (this cannot be done on the CD) and type "attrib -r *.*" at the DOS prompt. This will remove the read only property from all of the files in this directory. Good Luck, Mike ---------------------------------------------------------- Michael G. Reynolds Department of Psychology Graduate Student University of Waterloo Cognitive Science Division 200 University Avenue West (519) 888-4567 x 6866 Waterloo, ON, N2L 3G1 Canada On Mon, 5 May 2003, Stephen W Tuholski wrote: > > > Hi everyone, > > I have what I hope is a fairly unique problem. Some time ago, my PC > crashed. Our institutional computing folks were able to save my e-prime > data, although in the process of copying them to a CD, they were turned > into read-only files. Unfortunately, I cannot get e-prime to recognize > said files. Anyone have any insight on how to change my files from > read-only to something that i can merge/analyze? > > Thanks in advance for any insight. > > Steve > > From odenthal at soz.psychologie.uni-konstanz.de Thu May 8 07:37:34 2003 From: odenthal at soz.psychologie.uni-konstanz.de (Georg Odenthal) Date: Thu, 8 May 2003 09:37:34 +0200 Subject: Read-only files Message-ID: Hi, >Anyone have any insight on how to change my files from > read-only to something that i can merge/analyze? That sounds more like a classic Windows problem than any E-Prime bug. If you copy the contents of a CD to a hard drive Windows will always make the copied files read only. There are at least two ways to remove the read only file attribute from a file or a directory: in Windows 95, 98, NT, ME you have to remove the read only file attribute for each directory separately in the window explorer (or in the myComputer window) by selecting all files in a directory (with ctrl + left mouse button (single selection), shift + left mouse button (multiple selection) or with a mark box (press and hold left mouse button to open a mark box)) then press the right mouse button anywhere in the list of selected files, go to "properties" in the context menu that opens after pressing the right mouse button and deselect the "read only" check box. Press on the "Ok" or "Apply" button to perform the selected action. You have to repeat this for each file, filelist or directory. In Windows 2000/ XP you can use the same approach. The difference is that if you want to change the read only attribute for a whole directory you're being asked whether you want to apply the changes just for the current directory or for all sub-directories and files. Thus you don't have to repeat this procedure for all sub-directories. The second approach is to use the MS-DOS Prompt. Open the DOS-Prompt (go to Start -> Programs -> Accessiores -> MS-DOS Prompt). Go to the directory you want to change the attributes e.g. if it is the directory Documents and Settings\Steve\my Studies on drive D you have to type: D: (RETURN) CD Documents and Settings (RETURN) CD Steve (RETURN) CD my Studies (RETURN) to change the read only attribute to read-write in all files, all directories and all sub-directories type: attrib -r /s (RETURN) It will take a short time and then the read-only attribute is removed for all files in this directory and all sub-directories. This approach works on all Windows versions (as far as I know). I hope this information will help to fix your problems. Best regards, Georg ========================================================================= Georg Odenthal (Dipl.-Psych.) University of Konstanz +49 (0)7531 88-2872 Department of Psychology odenthal at soz.psychologie.uni-konstanz.de Social Psychology and Motivation http://www.socpsych.uni-konstanz.de 78457 Konstanz, Germany ========================================================================= From chua4527 at itsa.ucsf.edu Fri May 9 21:25:11 2003 From: chua4527 at itsa.ucsf.edu (Cynthia Huang-Pollock) Date: Fri, 9 May 2003 14:25:11 -0700 Subject: Needed: contract eprime programming Message-ID: Is there anyone who is an expert in eprime who would be willing to engage in contract programming? If so, please email Cynthia at chua4527 at itsa.ucsf.edu with information on rate of hire. thanks, Cynthia From darylpsychology at yahoo.com Sun May 11 00:47:28 2003 From: darylpsychology at yahoo.com (daryl fougnie) Date: Sat, 10 May 2003 17:47:28 -0700 Subject: using a script to write acc and rt info to a user defined var Message-ID: In the current experiments I am running, I am using lots of different objects to gather data but I would like to combine the output of certain trials into various variables. For example, in a divided attention program there are some objects that gather audio response time data, or manual response time data, and others that are mixed. To analyze the needed means I have been creating user variables in Edata aid and recoding the data, but I am sure there is a faster way to do it. One way would be to write a script that would manually enter the rt and acc data into various user created variables according to my needs. I am wondering whether this is possible, and if so, how does one do it. Thanks,Daryl --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Willem.J.Riedel at gsk.com Mon May 19 17:17:30 2003 From: Willem.J.Riedel at gsk.com (Willem.J.Riedel at gsk.com) Date: Mon, 19 May 2003 18:17:30 +0100 Subject: recording speech using the microphone Message-ID: Is it possible in an e-prime experiment to record speech for 1-2 minutes per event and store it in a digital file? (preferrably compressed) If yes, how is it defined? Willem.Riedel at gsk.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From morrct at andrew.cmu.edu Tue May 20 18:56:33 2003 From: morrct at andrew.cmu.edu (Mark G Orr) Date: Tue, 20 May 2003 14:56:33 -0400 Subject: luminance manipulation? Message-ID: Hello, I checked the archives for an answer to my problem, but that did not work. I want to change the luminance of one letter within a 4 letter word relative to the other three letters in the word. Furthermore, i want the degree to which the letter is different from the other words modifiable with respect to each individual subjects performance. Any help will be greatly apprectiated. -Mark Orr From anthony.zuccolotto at pstnet.com Tue May 20 19:06:37 2003 From: anthony.zuccolotto at pstnet.com (Tony Zuccolotto) Date: Tue, 20 May 2003 15:06:37 -0400 Subject: luminance manipulation? Message-ID: Mark, There is no direct luminance manipulation in E-Prime, e.g. all you have is an RGB specification an as I understand it there is no reliable/direct/computational way to infer luminance levels just from that specification, i.e. how a particular RGB specification gets rendered as a stimulus perceivable to the subject depends on many factors which directly effect luminance (e.g. ambient/internal lighting, time of day (e.g. ambient sunlight), contrast and brightness settings on the monitor, refresh rate, etc.) In order to do this you need to have a very controlled presentation environment and the hardware tools necessary to measure/confirm your measurements reliably within that environment. Once you have controlled for the environment and calibrate your experiment to it you should be able to confidently repeat the presentation to any number of subjects (...but I'd still re-check the levels every day or so :) ). If you find some other way to do this it would be great information to share with the group. Thanks, Tony *** DISCLAIMER: ALL VIEWS EXPRESSED ARE MY OWN AND DO NOT NECESSARILY REFLECT THOSE OF PSYCHOLOGY SOFTWARE TOOLS *** Anthony P. Zuccolotto Vice President Psychology Software Tools, Inc. 2050 Ardmore Boulevard Suite 200 Pittsburgh, PA 15221-4610 Phone 412-271-5040 FAX 412-271-7077 Email anthony.zuccolotto at pstnet.com Internet http://www.pstnet.com > -----Original Message----- > From: Mark G Orr [mailto:morrct at andrew.cmu.edu] > Sent: Tuesday, May 20, 2003 1:57 PM > To: eprime at mail.talkbank.org > Subject: luminance manipulation? > > Hello, I checked the archives for an answer to my problem, but that did > not work. I want to change the luminance of one letter within a 4 letter > word relative to the other three letters in the word. Furthermore, i want > the degree to which the letter is different from the other words > modifiable with respect to each individual subjects performance. Any help > will be greatly apprectiated. > > -Mark Orr From erin5 at stanford.edu Tue May 20 21:04:52 2003 From: erin5 at stanford.edu (Erin S. Rogers) Date: Tue, 20 May 2003 14:04:52 -0700 Subject: different number of stimuli for each trial Message-ID: Hello, I am setting up an experiment where a subject sees a checkerboard image followed by either 1,2,3,or 4 tones then a different checkerboard image followed by 1,2,3,or 4 tones. This repeats 256 times. How can I program Eprime to display different numbers of tones in each trial? thank you Erin Rogers Laboratory of Clinical Neuroscience Department of Psychiatry and Behavioral Sciences Stanford University School of Medicine Stanford, CA 94305-5550 Office: (650) 493-5000 ext. 67349 Fax: (650) 493-4901 From BTagliaferri at gc.cuny.edu Sat May 24 20:00:03 2003 From: BTagliaferri at gc.cuny.edu (Bruno Tagliaferri) Date: Sat, 24 May 2003 16:00:03 -0400 Subject: Stimuli limit?? Message-ID: Hello, We're building an experiment with a list object that contains 8281 stimuli (91x91 matrix) . When I try to compile, I get this error message: "A Fatal Error occured while generating the DataSection code fore the E-Object named "List1" Error Message: Data in Level 0 is too long for Embedded LoadMethod" Is there a limit to the number of stimuli a List object can contain or do I need to use a different load method? Thanks Bruno From wangmo at bgnet.bgsu.edu Wed May 28 22:28:29 2003 From: wangmo at bgnet.bgsu.edu (wangmo at bgnet.bgsu.edu) Date: Wed, 28 May 2003 17:28:29 -0500 Subject: programing problem Message-ID: Hi, hope someone can help me solve the problem. In my study, I have two stimuli. One is a visual stimulus, the other is a auditory stimulus. For each trial, either visual or auditory stimulus will be presented first and last for a while (for example, 12 seconds). After 4 seconds the first stimulus emerges, the other stimulus will be presented and also last for a while (for example, 4 seconds or 12 seconds). So there would be a duration that at the same time both stimuli exist. Then, one of them will disappear, and the participants are supposed to respond to the remain stimulus. With e-prime, I have difficult to make this paradigm to work. When I insert the second stimulus, the first stimulus will be terminated. How can I make it work? Thank you! -Mo From judander at indiana.edu Wed May 28 21:53:31 2003 From: judander at indiana.edu (Anderson, Julie D.) Date: Wed, 28 May 2003 16:53:31 -0500 Subject: Inter-trial interval Message-ID: Hello! I am a new E-Prime user and I'm having trouble setting the inter-trial interval. It seems that no matter what property I manipulate in the "Duration/Input" window for the stimulus (e.g., Duration, Timing Mode, PreRelease, etc.), the inter-stimulus interval does not change. I want to add more time in between the trials; however, I can't seem to figure out how to do this. This is probably a relatively simple question for many of you, so hopefully someone can help me out. Thanks! Julie From judander at indiana.edu Wed May 28 23:13:29 2003 From: judander at indiana.edu (Anderson, Julie D.) Date: Wed, 28 May 2003 18:13:29 -0500 Subject: inter-stimulus interval Message-ID: Thanks, everyone, for your responses. Just a couple things... First, a few of you suggested that I use the Wait Object (I did consider doing this at one time, but decided not to and I don't remember why!). However, Jordan suggested that I not use it, so my question is, why? Second, I'm rather surprised that E-Prime does not have a better (easier) way to adjust the inter-stimulus interval, because this is a relatively common experimental manipulation for RT studies. Any thoughts on this? Thanks!! Julie ____________________________________ Julie D. Anderson, Ph.D., CCC-SLP Assistant Professor Department of Speech and Hearing Sciences Indiana University 200 South Jordan Avenue Bloomington, IN 47405-7002 Office: (812) 856-1240 Fax: (812) 855-5531 -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.johnston at bangor.ac.uk Thu May 29 09:19:11 2003 From: s.johnston at bangor.ac.uk (Stephen Johnston) Date: Thu, 29 May 2003 09:19:11 +0000 Subject: Inter-trial interval Message-ID: There are two easy ways to do it, one is to put a blank text object of a set duration in between your trials, or you can put in an inline script with sleep 'time' where 'time' is the the amount of delay you want. Hope this helps Steve Anderson, Julie D. wrote: >Hello! I am a new E-Prime user and I'm having trouble setting the >inter-trial interval. It seems that no matter what property I >manipulate in the "Duration/Input" window for the stimulus (e.g., >Duration, Timing Mode, PreRelease, etc.), the inter-stimulus interval >does not change. I want to add more time in between the trials; >however, I can't seem to figure out how to do this. > >This is probably a relatively simple question for many of you, so >hopefully someone can help me out. Thanks! > >Julie > > > > > -- Dr Stephen Johnston University of Wales, Bangor. Brigantia Building Penrallt Road Bangor Gwynedd, UK. Tel: +44 (0)1248 388173 From devo0023 at tc.umn.edu Thu May 29 19:48:30 2003 From: devo0023 at tc.umn.edu (Cynthia J DeVore) Date: Thu, 29 May 2003 14:48:30 -0500 Subject: GT 8-bit gray Message-ID: Does anyone display more than 8 bits of gray using E-Prime? We have a VSG board that supports more than 8 bits of gray level. Cynthia J. DeVore Graduate Student University of Minnesota - Industrial/Organizational Psychology devo0023 at tc.umn.edu 612-624-3601 Office hours for E-Prime Consultant: http://online.psych.umn.edu/IS/Elliott160/Calendar/200305.htm E-Prime @ U of MN http://online.psych.umn.edu/IS/Eprime/index.htm From odenthal at soz.psychologie.uni-konstanz.de Fri May 30 14:48:44 2003 From: odenthal at soz.psychologie.uni-konstanz.de (Georg Odenthal) Date: Fri, 30 May 2003 16:48:44 +0200 Subject: Open Ended Input in E-Prime Message-ID: Hello, I'm a long time MEL2 user who is currently making the transision to E-Prime. I'm working on my first study and I want create a computer questionnaire with open ended questions. To create an open ended question I load a slide with the instructions and black frame for the open ended input box. Then I add a TextDisplay which collects a keyboard response, that is in input masks I added the keybord as input device. Then I clicked on advanced in the response options and set a max count of 20, Flush Input Buffer to 'yes' and the Termination Response to {ENTER}. On the collection tab I set the reponse mode to 'alphanumeric' and process backspace to 'yes'. I also added a display on the screen in the echo tab, so that the subjects can see what they are typing. Now everything runs smoothly as long as you don't need to correct your input. When you type on the backspace the text on the screen disappears correctly. Unfortunately the maximum number of allowed characters is decreased instead of increase when I press the backspace key. So for example if I enter ten characters and then erase these ten characters again with backspace the screen will disappear because the 20 characters maximum has been reached. This looks very much like a bug in E-Studio. Obviously control characters are registered as regular alphanumeric characters and are added to the text string. They should either be ignored or just perform the desired control, e.g. deleting a character from the screen and from the text variable. Is there any way to get E-Prime to perform the backspace operation correctly? I can probably come up with some E-Basic code to do open ended input with correct backspace processing, but it would be a lot easier if there was an E-Object that can also do this correctly. Does any of you have had similar problems or probably a good solution for that problem? Best regards, Georg ========================================================================= Georg Odenthal (Dipl.-Psych.) University of Konstanz +49 (0)7531 88-2872 Department of Psychology odenthal at soz.psychologie.uni-konstanz.de Social Psychology and Motivation http://www.socpsych.uni-konstanz.de 78457 Konstanz, Germany ========================================================================= From devo0023 at tc.umn.edu Fri May 30 15:43:41 2003 From: devo0023 at tc.umn.edu (Cynthia J DeVore) Date: Fri, 30 May 2003 10:43:41 -0500 Subject: Open Ended Input in E-Prime In-Reply-To: <235367193.20030530164844@soz.psychologie.uni-konstanz.de> Message-ID: Georg, I have discovered similar "features" and created a workaround. I took this wholesale from a module I'm working on that supports multiple text entry fields on a slide (I don't use the built in Echo) and so you may need to do some fiddling with it. (In my implementation, in order to "echo" I allow only one character for keyboard response and write it to the .text associated with a text object.) The following code goes on the User Tab of the Script. Then in an Inline, I have something like: xxx = CleanedTextString(keyboardmask.RESP) I'm on a hard deadline and regret that I cannot provide a better explanation of the process. Good luck. Cynthia Const ebLeftBrace = "{" Const ebRightBrace = "}" Const ebEnter = "{ENTER}" Const ebBackSpace = "{BACKSPACE}" Function ReplaceString(strSource As String, strFind As String, strReplace As String) As String Dim strFinal As String Dim nPosNew As Integer Dim nPos As Integer nPos = 1 Do nPosNew = InStr(nPos, strSource, strFind) If nPosNew > 0 Then 'Append up to where we found strFinal = strFinal & Mid(strSource, nPos, nPosNew - nPos) 'Append the replaced string strFinal = strFinal & strReplace 'Move past the item to find nPos = nPosNew + Len(strFind) Else 'Append the remainder of the string strFinal = strFinal & Right(strSource, Len(strSource) - (nPos - 1)) 'No more need to search nPos = 0 End If Loop Until nPos < 1 ReplaceString = strFinal End Function Function CleanedTextString (strToChange As String) As String Dim strOld As String Dim strNew as String Dim strFind as String Dim strReplace as String Dim nPos as integer Dim nPosLeft as Integer Dim nPosRight as Integer Dim OldValue (1 to 2) as String Dim NewValue (1 to 2) as String OldValue (1) = "{SPACE}" OldValue (2) = "{BACKSLASH}" NewValue (1) = " " NewValue (2) = chr(92) strOld = strToChange ' Replace the special fields first For i = 1 to 2 strFind = OldValue(i) strReplace = NewValue(i) strNew = ReplaceString(strOld, strFind, strReplace) strOld = strNew Next i ' Replace all other fields nPos = 1 Do Until inStr(1,strOld,ebLeftBrace) = 0 nPosLeft = inStr(npos,strOld,ebLeftBrace) nPosRight = inStr(nPosLeft,strOld,ebRightBrace) If nPosRight - nPosLeft = 2 Then strNew = mid(strOld,(nPosLeft+1),1)&right(strOld,(len(strOld)-nPosRight)) If nPosLeft > 1 Then strNew = left(strOld,(nPosLeft-1)) & strNew End If Else strNew = right(strOld,(Len(strOld)-nPosRight)) If nPosLeft > 1 Then strNew = left(strOld,(nPosLeft-1)) & strNew End If End If strOld = strNew Loop CleanedTextString = strOld End Function At 04:48 PM 5/30/03 +0200, you wrote: >Hello, > >I'm a long time MEL2 user who is currently making the transision to >E-Prime. > >I'm working on my first study and I want create a computer >questionnaire with open ended questions. To create an open ended >question I load a slide with the instructions and black frame for the >open ended input box. >Then I add a TextDisplay which collects a keyboard response, that is >in input masks I added the keybord as input device. Then I clicked on >advanced in the response options and set a max count of 20, Flush >Input Buffer to 'yes' and the Termination Response to {ENTER}. On the >collection tab I set the reponse mode to 'alphanumeric' and process >backspace to 'yes'. I also added a display on the screen in the echo >tab, so that the subjects can see what they are typing. > >Now everything runs smoothly as long as you don't need to correct your >input. When you type on the backspace the text on the screen >disappears correctly. Unfortunately the maximum number of allowed >characters is decreased instead of increase when I press the backspace >key. >So for example if I enter ten characters and then erase these ten >characters again with backspace the screen will disappear because the >20 characters maximum has been reached. > >This looks very much like a bug in E-Studio. Obviously control >characters are registered as regular alphanumeric characters and are >added to the text string. They should either be ignored or just >perform the desired control, e.g. deleting a character from the screen >and from the text variable. > >Is there any way to get E-Prime to perform the backspace operation >correctly? > >I can probably come up with some E-Basic code to do open ended input >with correct backspace processing, but it would be a lot easier if >there was an E-Object that can also do this correctly. > >Does any of you have had similar problems or probably a good solution >for that problem? > >Best regards, > Georg > > >========================================================================== > >Georg Odenthal (Dipl.-Psych.) University of Konstanz >+49 (0)7531 88-2872 Department of Psychology >odenthal at soz.psychologie.uni-konstanz.de Social Psychology and Motivation >http://www.socpsych.uni-konstanz.de 78457 Konstanz, Germany > >========================================================================== Cynthia J. DeVore Graduate Student University of Minnesota - Industrial/Organizational Psychology devo0023 at tc.umn.edu 612-624-3601 Office hours for E-Prime Consultant: http://online.psych.umn.edu/IS/Elliott160/Calendar/200305.htm E-Prime @ U of MN http://online.psych.umn.edu/IS/Eprime/index.htm From morrct at andrew.cmu.edu Fri May 30 20:56:31 2003 From: morrct at andrew.cmu.edu (Mark G Orr) Date: Fri, 30 May 2003 16:56:31 -0400 Subject: Context Attributes in If..Then Message-ID: Hello, I have been struggling with the following problem all day: I have a text object, called "Collection", which logs a keyboard response. For each trial, I want to change a global variable's value based on the subjects respone. I attempted the following test code to see if I could use the Collection.RESP in an If..Then statement (the line numbers are not in the real code): 1 Debug.Print Collection.RESP 2 3 If c.GetAttrib("Collection.RESP") = "j" Then 4 Debug.Print "J" 5 Else 6 Debug.Print "else" 7 End If So, the debugger correctly prints Collection.RESP in line 1. However, when Colletion.RESP is = to j, the If..Then statement still jumps to line 5, thus debug printing "else". My hunch is that using c.GetAttrib("Collection.RESP") = "j" on line 3 is not the correct way to enter this info into the If..Then statement. ANy ideas. THanks. Mark Orr From morrct at andrew.cmu.edu Fri May 30 21:12:13 2003 From: morrct at andrew.cmu.edu (Mark G Orr) Date: Fri, 30 May 2003 17:12:13 -0400 Subject: Context Attributes in If..Then In-Reply-To: <6D8910A1FAF7E347B5C617CDE86FF4CD5B2465@mercury.pstmail> Message-ID: Thanks, that works. On Fri, 30 May 2003, Susan Campbell wrote: > Have you tried using this? > If Collection.RESP = "j" then > ... > > Sometimes the context attribute and the variable are different (for > various reasons I don't understand) and I noticed that you use > Collection.RESP in the first line instead of > c.GetAttrib("Collection.RESP"), which seems to work. I have used a > similar procedure (checking for a particular response with 'if blah.RESP > = "J" then') and it worked fine. > > Hope this helps, > Susan > > *** DISCLAIMER: ALL VIEWS EXPRESSED ARE MY OWN AND DO NOT NECESSARILY > REFLECT THOSE OF PSYCHOLOGY SOFTWARE TOOLS *** > > > -----Original Message----- > > From: Mark G Orr [mailto:morrct at andrew.cmu.edu] > > Sent: Friday, May 30, 2003 3:57 PM > > To: eprime at mail.talkbank.org > > Subject: Context Attributes in If..Then > > > > > > Hello, I have been struggling with the following problem all day: > > > > I have a text object, called "Collection", which logs a > > keyboard response. > > For each trial, I want to change a global variable's value > > based on the > > subjects respone. I attempted the following test code to see > > if I could > > use the Collection.RESP in an If..Then statement (the line numbers are > > not in the real code): > > > > > > > > 1 Debug.Print Collection.RESP > > 2 > > 3 If c.GetAttrib("Collection.RESP") = "j" Then > > 4 Debug.Print "J" > > 5 Else > > 6 Debug.Print "else" > > 7 End If > > > > > > > > > > > > So, the debugger correctly prints Collection.RESP in line 1. However, > > when Colletion.RESP is = to j, the If..Then statement still > > jumps to line > > 5, thus debug printing "else". > > > > My hunch is that using c.GetAttrib("Collection.RESP") = "j" > > on line 3 is > > not the correct way to enter this info into the If..Then statement. > > > > ANy ideas. > > > > THanks. > > > > > > Mark Orr > > > > > > From erin5 at stanford.edu Tue May 6 21:51:08 2003 From: erin5 at stanford.edu (Erin S. Rogers) Date: Tue, 6 May 2003 14:51:08 -0700 Subject: two tasks at the same time Message-ID: Hello, Has anyone ever programmed two streams of tasks to run at the same time in Eprime? We are going to be running a version of the mismatch negativity task, where a sequence of checkerboard images will be flashing at the same time a sequence of tones will be playing. We cannot do this with Slide images because the checkerboards and tones have different durations. If anyone can offer any assistance, it would be much appreciated. Thank you, Erin Laboratory of Clinical Neuroscience Department of Psychiatry and Behavioral Sciences Stanford University School of Medicine Stanford, CA 94305-5550 Office: (650) 493-5000 ext. 67349 Fax: (650) 493-4901 From anthony.zuccolotto at pstnet.com Wed May 7 18:36:38 2003 From: anthony.zuccolotto at pstnet.com (Tony Zuccolotto) Date: Wed, 7 May 2003 14:36:38 -0400 Subject: two tasks at the same time Message-ID: Erin, Can the tone sequences be prepared in a single wave file or is it the case that the order, frequency, and duration of the tones cannot be predetermined before the experiment runs? Thanks, Tony > -----Original Message----- > From: Erin S. Rogers [mailto:erin5 at stanford.edu] > Sent: Tuesday, May 06, 2003 4:51 PM > To: eprime at mail.talkbank.org > Subject: two tasks at the same time > > Hello, > > Has anyone ever programmed two streams of tasks to run at the same time in > Eprime? We are going to be running a version of the mismatch negativity > task, where a sequence of checkerboard images will be flashing at the same > time a sequence of tones will be playing. We cannot do this with Slide > images because the checkerboards and tones have different durations. If > anyone can offer any assistance, it would be much appreciated. > > Thank you, > Erin > > Laboratory of Clinical Neuroscience > Department of Psychiatry and Behavioral Sciences > Stanford University School of Medicine > Stanford, CA 94305-5550 > Office: (650) 493-5000 ext. 67349 > Fax: (650) 493-4901 > From stuhols at siue.edu Mon May 5 18:29:39 2003 From: stuhols at siue.edu (Stephen W Tuholski) Date: Mon, 5 May 2003 13:29:39 -0500 Subject: Read-only files In-Reply-To: <5.2.0.9.0.20030327192007.03c633e0@goliat.ugr.es> Message-ID: Hi everyone, I have what I hope is a fairly unique problem. Some time ago, my PC crashed. Our institutional computing folks were able to save my e-prime data, although in the process of copying them to a CD, they were turned into read-only files. Unfortunately, I cannot get e-prime to recognize said files. Anyone have any insight on how to change my files from read-only to something that i can merge/analyze? Thanks in advance for any insight. Steve From mg2reyno at watarts.uwaterloo.ca Thu May 8 13:47:13 2003 From: mg2reyno at watarts.uwaterloo.ca (Michael Reynolds) Date: Thu, 8 May 2003 09:47:13 -0400 Subject: Read-only files In-Reply-To: <5.1.0.14.0.20030505132739.02a336c0@mail.siue.edu> Message-ID: Stephen, It has been a while since I have used DOS, but you can use the "attrib" command to change the file properties for entire directories of files. Go to the directory on your hard-drive where the files are stored (this cannot be done on the CD) and type "attrib -r *.*" at the DOS prompt. This will remove the read only property from all of the files in this directory. Good Luck, Mike ---------------------------------------------------------- Michael G. Reynolds Department of Psychology Graduate Student University of Waterloo Cognitive Science Division 200 University Avenue West (519) 888-4567 x 6866 Waterloo, ON, N2L 3G1 Canada On Mon, 5 May 2003, Stephen W Tuholski wrote: > > > Hi everyone, > > I have what I hope is a fairly unique problem. Some time ago, my PC > crashed. Our institutional computing folks were able to save my e-prime > data, although in the process of copying them to a CD, they were turned > into read-only files. Unfortunately, I cannot get e-prime to recognize > said files. Anyone have any insight on how to change my files from > read-only to something that i can merge/analyze? > > Thanks in advance for any insight. > > Steve > > From odenthal at soz.psychologie.uni-konstanz.de Thu May 8 07:37:34 2003 From: odenthal at soz.psychologie.uni-konstanz.de (Georg Odenthal) Date: Thu, 8 May 2003 09:37:34 +0200 Subject: Read-only files Message-ID: Hi, >Anyone have any insight on how to change my files from > read-only to something that i can merge/analyze? That sounds more like a classic Windows problem than any E-Prime bug. If you copy the contents of a CD to a hard drive Windows will always make the copied files read only. There are at least two ways to remove the read only file attribute from a file or a directory: in Windows 95, 98, NT, ME you have to remove the read only file attribute for each directory separately in the window explorer (or in the myComputer window) by selecting all files in a directory (with ctrl + left mouse button (single selection), shift + left mouse button (multiple selection) or with a mark box (press and hold left mouse button to open a mark box)) then press the right mouse button anywhere in the list of selected files, go to "properties" in the context menu that opens after pressing the right mouse button and deselect the "read only" check box. Press on the "Ok" or "Apply" button to perform the selected action. You have to repeat this for each file, filelist or directory. In Windows 2000/ XP you can use the same approach. The difference is that if you want to change the read only attribute for a whole directory you're being asked whether you want to apply the changes just for the current directory or for all sub-directories and files. Thus you don't have to repeat this procedure for all sub-directories. The second approach is to use the MS-DOS Prompt. Open the DOS-Prompt (go to Start -> Programs -> Accessiores -> MS-DOS Prompt). Go to the directory you want to change the attributes e.g. if it is the directory Documents and Settings\Steve\my Studies on drive D you have to type: D: (RETURN) CD Documents and Settings (RETURN) CD Steve (RETURN) CD my Studies (RETURN) to change the read only attribute to read-write in all files, all directories and all sub-directories type: attrib -r /s (RETURN) It will take a short time and then the read-only attribute is removed for all files in this directory and all sub-directories. This approach works on all Windows versions (as far as I know). I hope this information will help to fix your problems. Best regards, Georg ========================================================================= Georg Odenthal (Dipl.-Psych.) University of Konstanz +49 (0)7531 88-2872 Department of Psychology odenthal at soz.psychologie.uni-konstanz.de Social Psychology and Motivation http://www.socpsych.uni-konstanz.de 78457 Konstanz, Germany ========================================================================= From chua4527 at itsa.ucsf.edu Fri May 9 21:25:11 2003 From: chua4527 at itsa.ucsf.edu (Cynthia Huang-Pollock) Date: Fri, 9 May 2003 14:25:11 -0700 Subject: Needed: contract eprime programming Message-ID: Is there anyone who is an expert in eprime who would be willing to engage in contract programming? If so, please email Cynthia at chua4527 at itsa.ucsf.edu with information on rate of hire. thanks, Cynthia From darylpsychology at yahoo.com Sun May 11 00:47:28 2003 From: darylpsychology at yahoo.com (daryl fougnie) Date: Sat, 10 May 2003 17:47:28 -0700 Subject: using a script to write acc and rt info to a user defined var Message-ID: In the current experiments I am running, I am using lots of different objects to gather data but I would like to combine the output of certain trials into various variables. For example, in a divided attention program there are some objects that gather audio response time data, or manual response time data, and others that are mixed. To analyze the needed means I have been creating user variables in Edata aid and recoding the data, but I am sure there is a faster way to do it. One way would be to write a script that would manually enter the rt and acc data into various user created variables according to my needs. I am wondering whether this is possible, and if so, how does one do it. Thanks,Daryl --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Willem.J.Riedel at gsk.com Mon May 19 17:17:30 2003 From: Willem.J.Riedel at gsk.com (Willem.J.Riedel at gsk.com) Date: Mon, 19 May 2003 18:17:30 +0100 Subject: recording speech using the microphone Message-ID: Is it possible in an e-prime experiment to record speech for 1-2 minutes per event and store it in a digital file? (preferrably compressed) If yes, how is it defined? Willem.Riedel at gsk.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From morrct at andrew.cmu.edu Tue May 20 18:56:33 2003 From: morrct at andrew.cmu.edu (Mark G Orr) Date: Tue, 20 May 2003 14:56:33 -0400 Subject: luminance manipulation? Message-ID: Hello, I checked the archives for an answer to my problem, but that did not work. I want to change the luminance of one letter within a 4 letter word relative to the other three letters in the word. Furthermore, i want the degree to which the letter is different from the other words modifiable with respect to each individual subjects performance. Any help will be greatly apprectiated. -Mark Orr From anthony.zuccolotto at pstnet.com Tue May 20 19:06:37 2003 From: anthony.zuccolotto at pstnet.com (Tony Zuccolotto) Date: Tue, 20 May 2003 15:06:37 -0400 Subject: luminance manipulation? Message-ID: Mark, There is no direct luminance manipulation in E-Prime, e.g. all you have is an RGB specification an as I understand it there is no reliable/direct/computational way to infer luminance levels just from that specification, i.e. how a particular RGB specification gets rendered as a stimulus perceivable to the subject depends on many factors which directly effect luminance (e.g. ambient/internal lighting, time of day (e.g. ambient sunlight), contrast and brightness settings on the monitor, refresh rate, etc.) In order to do this you need to have a very controlled presentation environment and the hardware tools necessary to measure/confirm your measurements reliably within that environment. Once you have controlled for the environment and calibrate your experiment to it you should be able to confidently repeat the presentation to any number of subjects (...but I'd still re-check the levels every day or so :) ). If you find some other way to do this it would be great information to share with the group. Thanks, Tony *** DISCLAIMER: ALL VIEWS EXPRESSED ARE MY OWN AND DO NOT NECESSARILY REFLECT THOSE OF PSYCHOLOGY SOFTWARE TOOLS *** Anthony P. Zuccolotto Vice President Psychology Software Tools, Inc. 2050 Ardmore Boulevard Suite 200 Pittsburgh, PA 15221-4610 Phone 412-271-5040 FAX 412-271-7077 Email anthony.zuccolotto at pstnet.com Internet http://www.pstnet.com > -----Original Message----- > From: Mark G Orr [mailto:morrct at andrew.cmu.edu] > Sent: Tuesday, May 20, 2003 1:57 PM > To: eprime at mail.talkbank.org > Subject: luminance manipulation? > > Hello, I checked the archives for an answer to my problem, but that did > not work. I want to change the luminance of one letter within a 4 letter > word relative to the other three letters in the word. Furthermore, i want > the degree to which the letter is different from the other words > modifiable with respect to each individual subjects performance. Any help > will be greatly apprectiated. > > -Mark Orr From erin5 at stanford.edu Tue May 20 21:04:52 2003 From: erin5 at stanford.edu (Erin S. Rogers) Date: Tue, 20 May 2003 14:04:52 -0700 Subject: different number of stimuli for each trial Message-ID: Hello, I am setting up an experiment where a subject sees a checkerboard image followed by either 1,2,3,or 4 tones then a different checkerboard image followed by 1,2,3,or 4 tones. This repeats 256 times. How can I program Eprime to display different numbers of tones in each trial? thank you Erin Rogers Laboratory of Clinical Neuroscience Department of Psychiatry and Behavioral Sciences Stanford University School of Medicine Stanford, CA 94305-5550 Office: (650) 493-5000 ext. 67349 Fax: (650) 493-4901 From BTagliaferri at gc.cuny.edu Sat May 24 20:00:03 2003 From: BTagliaferri at gc.cuny.edu (Bruno Tagliaferri) Date: Sat, 24 May 2003 16:00:03 -0400 Subject: Stimuli limit?? Message-ID: Hello, We're building an experiment with a list object that contains 8281 stimuli (91x91 matrix) . When I try to compile, I get this error message: "A Fatal Error occured while generating the DataSection code fore the E-Object named "List1" Error Message: Data in Level 0 is too long for Embedded LoadMethod" Is there a limit to the number of stimuli a List object can contain or do I need to use a different load method? Thanks Bruno From wangmo at bgnet.bgsu.edu Wed May 28 22:28:29 2003 From: wangmo at bgnet.bgsu.edu (wangmo at bgnet.bgsu.edu) Date: Wed, 28 May 2003 17:28:29 -0500 Subject: programing problem Message-ID: Hi, hope someone can help me solve the problem. In my study, I have two stimuli. One is a visual stimulus, the other is a auditory stimulus. For each trial, either visual or auditory stimulus will be presented first and last for a while (for example, 12 seconds). After 4 seconds the first stimulus emerges, the other stimulus will be presented and also last for a while (for example, 4 seconds or 12 seconds). So there would be a duration that at the same time both stimuli exist. Then, one of them will disappear, and the participants are supposed to respond to the remain stimulus. With e-prime, I have difficult to make this paradigm to work. When I insert the second stimulus, the first stimulus will be terminated. How can I make it work? Thank you! -Mo From judander at indiana.edu Wed May 28 21:53:31 2003 From: judander at indiana.edu (Anderson, Julie D.) Date: Wed, 28 May 2003 16:53:31 -0500 Subject: Inter-trial interval Message-ID: Hello! I am a new E-Prime user and I'm having trouble setting the inter-trial interval. It seems that no matter what property I manipulate in the "Duration/Input" window for the stimulus (e.g., Duration, Timing Mode, PreRelease, etc.), the inter-stimulus interval does not change. I want to add more time in between the trials; however, I can't seem to figure out how to do this. This is probably a relatively simple question for many of you, so hopefully someone can help me out. Thanks! Julie From judander at indiana.edu Wed May 28 23:13:29 2003 From: judander at indiana.edu (Anderson, Julie D.) Date: Wed, 28 May 2003 18:13:29 -0500 Subject: inter-stimulus interval Message-ID: Thanks, everyone, for your responses. Just a couple things... First, a few of you suggested that I use the Wait Object (I did consider doing this at one time, but decided not to and I don't remember why!). However, Jordan suggested that I not use it, so my question is, why? Second, I'm rather surprised that E-Prime does not have a better (easier) way to adjust the inter-stimulus interval, because this is a relatively common experimental manipulation for RT studies. Any thoughts on this? Thanks!! Julie ____________________________________ Julie D. Anderson, Ph.D., CCC-SLP Assistant Professor Department of Speech and Hearing Sciences Indiana University 200 South Jordan Avenue Bloomington, IN 47405-7002 Office: (812) 856-1240 Fax: (812) 855-5531 -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.johnston at bangor.ac.uk Thu May 29 09:19:11 2003 From: s.johnston at bangor.ac.uk (Stephen Johnston) Date: Thu, 29 May 2003 09:19:11 +0000 Subject: Inter-trial interval Message-ID: There are two easy ways to do it, one is to put a blank text object of a set duration in between your trials, or you can put in an inline script with sleep 'time' where 'time' is the the amount of delay you want. Hope this helps Steve Anderson, Julie D. wrote: >Hello! I am a new E-Prime user and I'm having trouble setting the >inter-trial interval. It seems that no matter what property I >manipulate in the "Duration/Input" window for the stimulus (e.g., >Duration, Timing Mode, PreRelease, etc.), the inter-stimulus interval >does not change. I want to add more time in between the trials; >however, I can't seem to figure out how to do this. > >This is probably a relatively simple question for many of you, so >hopefully someone can help me out. Thanks! > >Julie > > > > > -- Dr Stephen Johnston University of Wales, Bangor. Brigantia Building Penrallt Road Bangor Gwynedd, UK. Tel: +44 (0)1248 388173 From devo0023 at tc.umn.edu Thu May 29 19:48:30 2003 From: devo0023 at tc.umn.edu (Cynthia J DeVore) Date: Thu, 29 May 2003 14:48:30 -0500 Subject: GT 8-bit gray Message-ID: Does anyone display more than 8 bits of gray using E-Prime? We have a VSG board that supports more than 8 bits of gray level. Cynthia J. DeVore Graduate Student University of Minnesota - Industrial/Organizational Psychology devo0023 at tc.umn.edu 612-624-3601 Office hours for E-Prime Consultant: http://online.psych.umn.edu/IS/Elliott160/Calendar/200305.htm E-Prime @ U of MN http://online.psych.umn.edu/IS/Eprime/index.htm From odenthal at soz.psychologie.uni-konstanz.de Fri May 30 14:48:44 2003 From: odenthal at soz.psychologie.uni-konstanz.de (Georg Odenthal) Date: Fri, 30 May 2003 16:48:44 +0200 Subject: Open Ended Input in E-Prime Message-ID: Hello, I'm a long time MEL2 user who is currently making the transision to E-Prime. I'm working on my first study and I want create a computer questionnaire with open ended questions. To create an open ended question I load a slide with the instructions and black frame for the open ended input box. Then I add a TextDisplay which collects a keyboard response, that is in input masks I added the keybord as input device. Then I clicked on advanced in the response options and set a max count of 20, Flush Input Buffer to 'yes' and the Termination Response to {ENTER}. On the collection tab I set the reponse mode to 'alphanumeric' and process backspace to 'yes'. I also added a display on the screen in the echo tab, so that the subjects can see what they are typing. Now everything runs smoothly as long as you don't need to correct your input. When you type on the backspace the text on the screen disappears correctly. Unfortunately the maximum number of allowed characters is decreased instead of increase when I press the backspace key. So for example if I enter ten characters and then erase these ten characters again with backspace the screen will disappear because the 20 characters maximum has been reached. This looks very much like a bug in E-Studio. Obviously control characters are registered as regular alphanumeric characters and are added to the text string. They should either be ignored or just perform the desired control, e.g. deleting a character from the screen and from the text variable. Is there any way to get E-Prime to perform the backspace operation correctly? I can probably come up with some E-Basic code to do open ended input with correct backspace processing, but it would be a lot easier if there was an E-Object that can also do this correctly. Does any of you have had similar problems or probably a good solution for that problem? Best regards, Georg ========================================================================= Georg Odenthal (Dipl.-Psych.) University of Konstanz +49 (0)7531 88-2872 Department of Psychology odenthal at soz.psychologie.uni-konstanz.de Social Psychology and Motivation http://www.socpsych.uni-konstanz.de 78457 Konstanz, Germany ========================================================================= From devo0023 at tc.umn.edu Fri May 30 15:43:41 2003 From: devo0023 at tc.umn.edu (Cynthia J DeVore) Date: Fri, 30 May 2003 10:43:41 -0500 Subject: Open Ended Input in E-Prime In-Reply-To: <235367193.20030530164844@soz.psychologie.uni-konstanz.de> Message-ID: Georg, I have discovered similar "features" and created a workaround. I took this wholesale from a module I'm working on that supports multiple text entry fields on a slide (I don't use the built in Echo) and so you may need to do some fiddling with it. (In my implementation, in order to "echo" I allow only one character for keyboard response and write it to the .text associated with a text object.) The following code goes on the User Tab of the Script. Then in an Inline, I have something like: xxx = CleanedTextString(keyboardmask.RESP) I'm on a hard deadline and regret that I cannot provide a better explanation of the process. Good luck. Cynthia Const ebLeftBrace = "{" Const ebRightBrace = "}" Const ebEnter = "{ENTER}" Const ebBackSpace = "{BACKSPACE}" Function ReplaceString(strSource As String, strFind As String, strReplace As String) As String Dim strFinal As String Dim nPosNew As Integer Dim nPos As Integer nPos = 1 Do nPosNew = InStr(nPos, strSource, strFind) If nPosNew > 0 Then 'Append up to where we found strFinal = strFinal & Mid(strSource, nPos, nPosNew - nPos) 'Append the replaced string strFinal = strFinal & strReplace 'Move past the item to find nPos = nPosNew + Len(strFind) Else 'Append the remainder of the string strFinal = strFinal & Right(strSource, Len(strSource) - (nPos - 1)) 'No more need to search nPos = 0 End If Loop Until nPos < 1 ReplaceString = strFinal End Function Function CleanedTextString (strToChange As String) As String Dim strOld As String Dim strNew as String Dim strFind as String Dim strReplace as String Dim nPos as integer Dim nPosLeft as Integer Dim nPosRight as Integer Dim OldValue (1 to 2) as String Dim NewValue (1 to 2) as String OldValue (1) = "{SPACE}" OldValue (2) = "{BACKSLASH}" NewValue (1) = " " NewValue (2) = chr(92) strOld = strToChange ' Replace the special fields first For i = 1 to 2 strFind = OldValue(i) strReplace = NewValue(i) strNew = ReplaceString(strOld, strFind, strReplace) strOld = strNew Next i ' Replace all other fields nPos = 1 Do Until inStr(1,strOld,ebLeftBrace) = 0 nPosLeft = inStr(npos,strOld,ebLeftBrace) nPosRight = inStr(nPosLeft,strOld,ebRightBrace) If nPosRight - nPosLeft = 2 Then strNew = mid(strOld,(nPosLeft+1),1)&right(strOld,(len(strOld)-nPosRight)) If nPosLeft > 1 Then strNew = left(strOld,(nPosLeft-1)) & strNew End If Else strNew = right(strOld,(Len(strOld)-nPosRight)) If nPosLeft > 1 Then strNew = left(strOld,(nPosLeft-1)) & strNew End If End If strOld = strNew Loop CleanedTextString = strOld End Function At 04:48 PM 5/30/03 +0200, you wrote: >Hello, > >I'm a long time MEL2 user who is currently making the transision to >E-Prime. > >I'm working on my first study and I want create a computer >questionnaire with open ended questions. To create an open ended >question I load a slide with the instructions and black frame for the >open ended input box. >Then I add a TextDisplay which collects a keyboard response, that is >in input masks I added the keybord as input device. Then I clicked on >advanced in the response options and set a max count of 20, Flush >Input Buffer to 'yes' and the Termination Response to {ENTER}. On the >collection tab I set the reponse mode to 'alphanumeric' and process >backspace to 'yes'. I also added a display on the screen in the echo >tab, so that the subjects can see what they are typing. > >Now everything runs smoothly as long as you don't need to correct your >input. When you type on the backspace the text on the screen >disappears correctly. Unfortunately the maximum number of allowed >characters is decreased instead of increase when I press the backspace >key. >So for example if I enter ten characters and then erase these ten >characters again with backspace the screen will disappear because the >20 characters maximum has been reached. > >This looks very much like a bug in E-Studio. Obviously control >characters are registered as regular alphanumeric characters and are >added to the text string. They should either be ignored or just >perform the desired control, e.g. deleting a character from the screen >and from the text variable. > >Is there any way to get E-Prime to perform the backspace operation >correctly? > >I can probably come up with some E-Basic code to do open ended input >with correct backspace processing, but it would be a lot easier if >there was an E-Object that can also do this correctly. > >Does any of you have had similar problems or probably a good solution >for that problem? > >Best regards, > Georg > > >========================================================================== > >Georg Odenthal (Dipl.-Psych.) University of Konstanz >+49 (0)7531 88-2872 Department of Psychology >odenthal at soz.psychologie.uni-konstanz.de Social Psychology and Motivation >http://www.socpsych.uni-konstanz.de 78457 Konstanz, Germany > >========================================================================== Cynthia J. DeVore Graduate Student University of Minnesota - Industrial/Organizational Psychology devo0023 at tc.umn.edu 612-624-3601 Office hours for E-Prime Consultant: http://online.psych.umn.edu/IS/Elliott160/Calendar/200305.htm E-Prime @ U of MN http://online.psych.umn.edu/IS/Eprime/index.htm From morrct at andrew.cmu.edu Fri May 30 20:56:31 2003 From: morrct at andrew.cmu.edu (Mark G Orr) Date: Fri, 30 May 2003 16:56:31 -0400 Subject: Context Attributes in If..Then Message-ID: Hello, I have been struggling with the following problem all day: I have a text object, called "Collection", which logs a keyboard response. For each trial, I want to change a global variable's value based on the subjects respone. I attempted the following test code to see if I could use the Collection.RESP in an If..Then statement (the line numbers are not in the real code): 1 Debug.Print Collection.RESP 2 3 If c.GetAttrib("Collection.RESP") = "j" Then 4 Debug.Print "J" 5 Else 6 Debug.Print "else" 7 End If So, the debugger correctly prints Collection.RESP in line 1. However, when Colletion.RESP is = to j, the If..Then statement still jumps to line 5, thus debug printing "else". My hunch is that using c.GetAttrib("Collection.RESP") = "j" on line 3 is not the correct way to enter this info into the If..Then statement. ANy ideas. THanks. Mark Orr From morrct at andrew.cmu.edu Fri May 30 21:12:13 2003 From: morrct at andrew.cmu.edu (Mark G Orr) Date: Fri, 30 May 2003 17:12:13 -0400 Subject: Context Attributes in If..Then In-Reply-To: <6D8910A1FAF7E347B5C617CDE86FF4CD5B2465@mercury.pstmail> Message-ID: Thanks, that works. On Fri, 30 May 2003, Susan Campbell wrote: > Have you tried using this? > If Collection.RESP = "j" then > ... > > Sometimes the context attribute and the variable are different (for > various reasons I don't understand) and I noticed that you use > Collection.RESP in the first line instead of > c.GetAttrib("Collection.RESP"), which seems to work. I have used a > similar procedure (checking for a particular response with 'if blah.RESP > = "J" then') and it worked fine. > > Hope this helps, > Susan > > *** DISCLAIMER: ALL VIEWS EXPRESSED ARE MY OWN AND DO NOT NECESSARILY > REFLECT THOSE OF PSYCHOLOGY SOFTWARE TOOLS *** > > > -----Original Message----- > > From: Mark G Orr [mailto:morrct at andrew.cmu.edu] > > Sent: Friday, May 30, 2003 3:57 PM > > To: eprime at mail.talkbank.org > > Subject: Context Attributes in If..Then > > > > > > Hello, I have been struggling with the following problem all day: > > > > I have a text object, called "Collection", which logs a > > keyboard response. > > For each trial, I want to change a global variable's value > > based on the > > subjects respone. I attempted the following test code to see > > if I could > > use the Collection.RESP in an If..Then statement (the line numbers are > > not in the real code): > > > > > > > > 1 Debug.Print Collection.RESP > > 2 > > 3 If c.GetAttrib("Collection.RESP") = "j" Then > > 4 Debug.Print "J" > > 5 Else > > 6 Debug.Print "else" > > 7 End If > > > > > > > > > > > > So, the debugger correctly prints Collection.RESP in line 1. However, > > when Colletion.RESP is = to j, the If..Then statement still > > jumps to line > > 5, thus debug printing "else". > > > > My hunch is that using c.GetAttrib("Collection.RESP") = "j" > > on line 3 is > > not the correct way to enter this info into the If..Then statement. > > > > ANy ideas. > > > > THanks. > > > > > > Mark Orr > > > > > >