From Susie.Williams at Vanderbilt.Edu Mon Jun 2 22:35:17 2003 From: Susie.Williams at Vanderbilt.Edu (Susan M. Williams) Date: Mon, 2 Jun 2003 15:35:17 -0700 Subject: application defined or object defined error Message-ID: Hello, I too am a new EPrime user and am having trouble with an error #10018 "application defined or object defined error". I believe what I'm experiencing is an error trap or some language in EPrime code allowing for the experiment not to crash if someone chooses an incorrect response. Does this sound correct and if so, how can I get rid of this code? Thanks for your help, Susan Susan M. Williams John F. Kennedy Center for Research on Human Development Peabody Box 74 Vanderbilt University Nashville, TN 37203-5701 (615) 322-1324 susie.williams at vanderbilt.edu From klee at projects.sdsu.edu Fri Jun 6 22:58:36 2003 From: klee at projects.sdsu.edu (Kara Lee) Date: Fri, 6 Jun 2003 15:58:36 -0700 Subject: No subject Message-ID: I am writing a program that will require the subject to respond to one of multiple responses (response areas) in a slidestate. I would like to code each possible response area (Stimulus.ACC) different numbers so that we can tell what response area was chosen. I think will need to use the "select case statement" to code multiple variables but haven't had success doing this yet. I'd appreciate any help with this situation. Thank you, Kara. -- Kara Lee Graduate Research Assistant Center for Behavioral Teratology San Diego State University 6363 Alvarado Ct., Suite 209 San Diego, CA 92120 (619) 594-3928 From Daniel.J.Bates at wheaton.edu Mon Jun 9 17:14:19 2003 From: Daniel.J.Bates at wheaton.edu (Daniel.J.Bates at wheaton.edu) Date: Mon, 9 Jun 2003 12:14:19 -0500 Subject: VAS Speed.......... Message-ID: Hi everyone... I am in the process of programming a Visual-Analog Scale using e-basic, but I am having trouble getting the computer to read the code fast enough. Even though I am using a Pentium 4 desktop computer and the code itself is quite short, it is necessary to wait for .6-1.0 seconds between slider movements. The VAS procedure consists of a label; a slideobject (which contains a piece of text obtained from VASList and two pictures superimposed on each other); a WaitObject (which is designed to wait an infinite amount of time for the subject to press button 1-5); and some inline code. The two pictures are named Slider and Button; Slider is the scale along which the button moves. When the subject presses "3", the program records the final position of the button and moves to the next task in the paradigm. The inline code is shown below. Is there a way of improving the speed so that it looks like a free moving button (or at least stops looking jerky)? E-basic Code for VAS... Dim FinalSelection As Integer Dim ScreenWidth As Integer Dim NewButtonPosn As Integer Dim ButtonPosn As Integer Dim RealSliderWidth As Integer Dim slrLeft As Integer Dim slrRight As Integer Dim KeyAscii As Integer ScreenWidth = 640 slrLeft = CSlideImage(Slide1.States.Item("Default").Objects(3)).X RealSliderWidth = CSlideImage(Slide1.States.Item("Default").Objects(3)).width * ScreenWidth / 100 slrRight = slrLeft + RealSliderWidth ButtonPosn = CSlideImage(Slide1.States.Item("Default").Objects(1)).X NewButtonPosn = ButtonPosn FinalSelection = 0 KeyAscii = Wait1.Resp Select Case KeyAscii Case 1 If ButtonPosn >= slrLeft + 10 Then NewButtonPosn = ButtonPosn - 10 Else NewButtonPosn = slrLeft End If Case 2 If ButtonPosn >= slrLeft + 1 Then NewButtonPosn = ButtonPosn - 1 End If Case 3 FinalSelection = 1 MsgBox Str((ButtonPosn - slrLeft) * 100 / (slrRight - slrLeft)) + " percent" Case 4 If ButtonPosn <= slrRight - 1 Then NewButtonPosn = ButtonPosn + 1 End If Case 5 If ButtonPosn <= slrRight - 10 Then NewButtonPosn = ButtonPosn + 10 Else NewButtonPosn = slrRight End If End Select CSlideImage(Slide1.States.Item("Default").Objects(1)).X = NewButtonPosn If FinalSelection = 0 Then Goto Label1 End If Thank you in advance for your help. Sincerely, Daniel Bates From baris at andrew.cmu.edu Mon Jun 9 17:41:29 2003 From: baris at andrew.cmu.edu (Sukru Baris Demiral) Date: Mon, 9 Jun 2003 13:41:29 -0400 Subject: your mail In-Reply-To: Message-ID: Hi Kara, I had designed a similar experiment by PST expers help. I can send you the code tomorrow.. baris \ / ~ ~ ~ -()- _ ~ ~ / \ ) ) ) -- ) _ 0/_ \0_ = :*_0 \/\_ | = _`\<,_ / / \ =.(*)/_(*)__............................................"" " Hi Guys! " On Fri, 6 Jun 2003, Kara Lee wrote: > I am writing a program that will require the subject to respond to > one of multiple responses (response areas) in a slidestate. I would > like to code each possible response area (Stimulus.ACC) different > numbers so that we can tell what response area was chosen. I think > will need to use the "select case statement" to code multiple > variables but haven't had success doing this yet. I'd appreciate any > help with this situation. > > Thank you, Kara. > -- > Kara Lee > Graduate Research Assistant > Center for Behavioral Teratology > San Diego State University > 6363 Alvarado Ct., Suite 209 > San Diego, CA 92120 > (619) 594-3928 > > > From Susan.Campbell at pstnet.com Tue Jun 10 19:02:07 2003 From: Susan.Campbell at pstnet.com (Susan Campbell) Date: Tue, 10 Jun 2003 15:02:07 -0400 Subject: Open Ended Input in E-Prime Message-ID: I don't know if anyone has pointed this out yet or not -- I noticed it while looking for something different in the E-Prime User Knowledge Base today. Are you using 1.1 Service Pack 1? It looks like that bug (or a related one) should have been fixed with SP 1. If it's a different issue, perhaps you should report it to support, since the E-Prime tech support people don't (as far as I know) read this list. Hope this helps, Susan excerpt: BUGFIX: {BACKSPACE} incorrectly logged when ProcessBackspace=Yes and/or ResponseMode=AlphaNumeric Symptoms Regardless of the ProcessBackspace=Yes and/or ResponseMode=AlphaNumeric setting, the {BACKSPACE} key is not logged as expected. Solution Update to E-Prime 1.1 SP1 or later. E-Prime 1.1 Service Pack 1 or later will properly log the {BACKSPACE} key. *** DISCLAIMER: ALL VIEWS EXPRESSED ARE MY OWN AND DO NOT NECESSARILY REFLECT THOSE OF PSYCHOLOGY SOFTWARE TOOLS *** > -----Original Message----- > From: Georg Odenthal [mailto:odenthal at soz.psychologie.uni-konstanz.de] > Sent: Friday, May 30, 2003 9:49 AM > To: eprime at mail.talkbank.org > Subject: Open Ended Input in E-Prime > > > 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 Wed Jun 11 17:02:54 2003 From: devo0023 at tc.umn.edu (Cynthia J DeVore) Date: Wed, 11 Jun 2003 12:02:54 -0500 Subject: Circulating responses to the listserv Message-ID: You may have noticed that lately our listserv shows many more questions than responses. One might think that those questions have gone unanswered. Instead, I suspect that people are responding directly to the sender, bypassing the listserv. While that seemed nice (because it reduced the number of emails I was receiving), it has contributed to less communication in our society. As a result, our archive of old emails has more and more unanswered questions. (I, myself, have replied directly to the originator of problems.) I'd appreciate it if those who pose the problem get responses "offline" that they post a summary of the responses so that our archive is current. I'll try to do the same. 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/200306.htm E-Prime @ U of MN http://online.psych.umn.edu/IS/Eprime/index.htm From Daniel.J.Bates at wheaton.edu Wed Jun 11 18:25:54 2003 From: Daniel.J.Bates at wheaton.edu (Daniel.J.Bates at wheaton.edu) Date: Wed, 11 Jun 2003 13:25:54 -0500 Subject: VAS Speed: Solved.....VAS Code: Almost Solved Message-ID: Thanks for your help everybody. My code is running much faster. I discovered that all slideobjects have a default duration time of 1000 ms. Once that was placed to 0 ms, my code ran much faster. My code has changed a little since my last posting. I have included it below. As you can see, some of the original code has been changed into a comment (particularly the lines defining slrLeft and slrRight). This is because these lines of code incorrectly identifyed the position of the bitmap and were, therefore, confusing the rest of my calculations. Instead of trying to debug those lines of code, I decided to calculate the position of the two bitmaps that I was using and to enter the numercial value in myself. A little messier, perhaps, but at least the bar stays within my scale. To calculate the position of those bitmaps, I included some more code in the lines following "case 3". My next task is to find a way of calculating the position of my bar within the scale and then to insert that value into my dataset. The manual reccomends using attributes (e.g. c.SetAttrib "Data", TypeVariableHere), but I am still trying to get that working. A copy of my code is shown below. Again...thanks for your help everybody. Daniel Dim FinalSelection As Integer Dim ScreenWidth As Integer Dim NewButtonPosn As Integer Dim ButtonPosn As Integer Dim RealSliderWidth As Integer Dim slrLeft As Integer Dim slrRight As Integer Dim KeyAscii As Integer ScreenWidth = 640 'slrLeft = CSlideImage(Slide1.States.Item("Default").Objects(3)).X slrLeft = 161 'RealSliderWidth = CSlideImage(Slide1.States.Item("Default").Objects(3)).width * ScreenWidth / 100 'slrRight = slrLeft + RealSliderWidth slrRight = 479 ButtonPosn = CSlideImage(Slide1.States.Item("Default").Objects(1)).X NewButtonPosn = ButtonPosn FinalSelection = 0 KeyAscii = Wait1.Resp 'CSlideImage(Slide1.States.Item("Default").Objects(1)).X = 600 Select Case KeyAscii Case 1 If ButtonPosn >= slrLeft + 20 Then NewButtonPosn = ButtonPosn - 20 Else NewButtonPosn = slrLeft End If Case 2 If ButtonPosn >= slrLeft + 2 Then NewButtonPosn = ButtonPosn - 2 End If Case 3 FinalSelection = 1 MsgBox "slrLeft = " + Str(slrleft) + " / " + Str((ButtonPosn - slrLeft) * 100 / (slrRight - slrLeft)) + " percent" + " / " + "slrRight = " + Str(slrRight) + " / " + "ButtonPosn = " + Str(ButtonPosn) c.SetAttrib "EasMBResponse", Str((ButtonPosn - slrLeft) * 100 / (slrRight - slrLeft)) + " percent" Case 4 If ButtonPosn <= slrRight - 2 Then NewButtonPosn = ButtonPosn + 2 End If Case 5 If ButtonPosn <= slrRight - 20 Then NewButtonPosn = ButtonPosn + 20 Else NewButtonPosn = slrRight End If End Select CSlideImage(Slide1.States.Item("Default").Objects(1)).X = NewButtonPosn If FinalSelection = 0 Then Goto Label1 End If From macw at cmu.edu Wed Jun 11 18:47:14 2003 From: macw at cmu.edu (Brian MacWhinney) Date: Wed, 11 Jun 2003 14:47:14 -0400 Subject: Circulating responses to the listserv In-Reply-To: <5.1.0.14.0.20030611115601.02812c10@devo0023.email.umn.edu> Message-ID: Dear Cynthia and EPrime readers, This is an excellent posting which, as list maintainer, I very much appreciate. I hope it has the desired results. Of course, some questions are hard to answer, but I agree very much that eventually all answers should get posted to the list. As you say, it is particularly the responsibility of the person who posted the problem to post the final answer or work around. If an important problem goes unresolved or unanswered, it seems correct to me that, after after 7-10 days, the original poster would just send a posting saying that it went unresolved. By the way, I was delighted to see that Minnesota is organized well enough to realize that they need to have someone with the official title of "E-Prime Consultant". Also, for those who wonder where old messages are stored, let me give this URL: http://listserv.linguistlist.org/archives/eprime.html --Brian MacWhinney (e-prime list maintainer), CMU On 6/11/03 1:02 PM, "Cynthia J DeVore" wrote: > You may have noticed that lately our listserv shows many more questions > than responses. One might think that those questions have gone unanswered. > Instead, I suspect that people are responding directly to the sender, > bypassing the listserv. While that seemed nice (because it reduced the > number of emails I was receiving), it has contributed to less communication > in our society. As a result, our archive of old emails has more and more > unanswered questions. (I, myself, have replied directly to the originator > of problems.) I'd appreciate it if those who pose the problem get responses > "offline" that they post a summary of the responses so that our archive is > current. I'll try to do the same. > > > > 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/200306.htm > E-Prime @ U of MN http://online.psych.umn.edu/IS/Eprime/index.htm > > > > From morrct at andrew.cmu.edu Thu Jun 12 01:42:27 2003 From: morrct at andrew.cmu.edu (Mark G Orr) Date: Wed, 11 Jun 2003 21:42:27 -0400 Subject: pixel positions Message-ID: Hello. Does anyone know off-hand whether the positions of single letters when specified in x-y pixel coordinates is referenceing the center of the letter or one of the corners Or some other part of the letter. Thanks. -Mark Orr From morrct at andrew.cmu.edu Thu Jun 12 01:54:34 2003 From: morrct at andrew.cmu.edu (Mark G Orr) Date: Wed, 11 Jun 2003 21:54:34 -0400 Subject: pixel positions In-Reply-To: Message-ID: Ok, i think i found my answer (I posted this question). I presented two "H"'s in sequence, both of the same font size. The monitor pixel dimensions were set to 640X480. The first "H" was centered, using a standard text display. The second H was presented via the following in-line object: Dim letter as Canvas Set Letter = Display.Canvas letter.Fontsize = 12 letter.Text 320, 240, "H" THE RESULT was that the top left corner of the second "H" was positioned at the center of the first "H". I conclude that when using pixel coordinates in this way, the top left corner of the letter is referenced. If this is wrong, or if anything else useful should be added, please let me and the list know. Thanks. On Wed, 11 Jun 2003, Mark G Orr wrote: > Hello. Does anyone know off-hand whether the positions of single letters > when specified in x-y pixel coordinates is referenceing the center of the > letter or one of the corners Or some other part of the letter. Thanks. > > -Mark Orr > > > From slacey at umich.edu Thu Jun 12 13:48:56 2003 From: slacey at umich.edu (Steven Lacey) Date: Thu, 12 Jun 2003 09:48:56 -0400 Subject: pixel positions In-Reply-To: Message-ID: Mark, The coordinates apply not specifically to the letter itself, but the textbox housing the letter. Steve -----Original Message----- From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On Behalf Of Mark G Orr Sent: Wednesday, June 11, 2003 9:55 PM To: eprime list Subject: Re: pixel positions Ok, i think i found my answer (I posted this question). I presented two "H"'s in sequence, both of the same font size. The monitor pixel dimensions were set to 640X480. The first "H" was centered, using a standard text display. The second H was presented via the following in-line object: Dim letter as Canvas Set Letter = Display.Canvas letter.Fontsize = 12 letter.Text 320, 240, "H" THE RESULT was that the top left corner of the second "H" was positioned at the center of the first "H". I conclude that when using pixel coordinates in this way, the top left corner of the letter is referenced. If this is wrong, or if anything else useful should be added, please let me and the list know. Thanks. On Wed, 11 Jun 2003, Mark G Orr wrote: > Hello. Does anyone know off-hand whether the positions of single letters > when specified in x-y pixel coordinates is referenceing the center of the > letter or one of the corners Or some other part of the letter. Thanks. > > -Mark Orr > > > From j.lum at latrobe.edu.au Mon Jun 16 08:46:57 2003 From: j.lum at latrobe.edu.au (Jarrad Lum) Date: Mon, 16 Jun 2003 18:46:57 +1000 Subject: No subject Message-ID: Hi, I have been writing some programs using a touch screen based on the Mouse.GetCursorPos ptMouse.x, ptMouse.y command and was wondering if it were possible to get e-prime store the values of the x and y coordinates. Any assistance would be greatly appreciated. Thanks Jarrad From staab at Waisman.Wisc.Edu Mon Jun 16 15:42:11 2003 From: staab at Waisman.Wisc.Edu (Ben Staab) Date: Mon, 16 Jun 2003 10:42:11 -0500 Subject: Dual Monitor support in WinXP Message-ID: Hi All, I am developing an eprime experiment that will be run on a Dual Monitor Windows XP machine. However, I haven't been able to find a solution to a rather annoying problem. Because of the physical setup of the testing environment, I need to be able to do the initial data collection (subject ID, name, etc) on one monitor, and show the experiment's screens on the other monitor. Right now, the keyboard has to be carried around a corner to do the data entry before the experiment begins. I have looked at doing all the data collection myself using an InputBox and hardcoding the x,y position. However, I haven't quite gotten that to work. The inputBox always shows up on the "wrong" monitor no matter what x value I give it. A related issue is it would be really great if I could do the subject ID and all at the end instead of the beginning of the experiment. Any Ideas on how to do that? If anyone has any suggestions for either of these problems, please let me know. Ben Staab staab at waisman.wisc.edu From dhair at wfubmc.edu Mon Jun 16 17:55:10 2003 From: dhair at wfubmc.edu (David Hairston) Date: Mon, 16 Jun 2003 13:55:10 -0400 Subject: Dual Monitor support in WinXP Message-ID: We have a similar setup in our lab - here is how it works for us... I don't know what kind of vid card you have, but we use an nVidia GeForce4 card w/ 2 outputs on the card. However, you should be able to use 2 single out cards also in XP. We have a "reverse KVM switch" box from Belkin. This is designed to let 1 PC be controlled from 2 different sets of input - 2 monitors, 2 keyboards, 2 mice. The 2 monitors are basically mirrors of one another. Anyhow, 1 vid line from the card is used w/ the testing machine, the other goes into the switch - then 2 outputs go to identical monitors, 1 of which is right next to the other monitor, and the other is inside the "testing room". Meanwhile, same w/ the kbd/mouse. So I can "see" what the subject sees, and have my own monitor too. This is great, b/c you can have the e-prime editor etc in one monitor, and the program/expt running on the other. This is how you do this. In the XP Display properties box, set 2nd monitor as an extension of the desktop - then set the monitor that is for your subject as the "primary". For most reasons, this makes no difference in XP - except that by default, this is the monitor (of the 2) that programs/menus will pop up on. Now when you run E-prime, your program will be seen on the subject's monitor, not yours. However, dialog boxes will default to popping up on whichever of the 2 monitors last had the focus - so I believe you just have to click the mouse inside the E-prime editor somewhere before hitting F7. So your subject can't see what you put in. This "default popup" location *may* be something set w/in the nVidia drivers, can't remember right now. The really cool thing is that you can use the debugger to track your subject's progress... Anyhow, hope this is helpful. Feel free to contact me if you need more details. W. David Hairston Neurobiology and Anatomy Wake Forest University (336) 716-4481 (lab) -----Original Message----- From: Ben Staab [mailto:staab at Waisman.Wisc.Edu] Sent: Monday, June 16, 2003 11:42 AM To: eprime at mail.talkbank.org Subject: Dual Monitor support in WinXP Hi All, I am developing an eprime experiment that will be run on a Dual Monitor Windows XP machine. However, I haven't been able to find a solution to a rather annoying problem. Because of the physical setup of the testing environment, I need to be able to do the initial data collection (subject ID, name, etc) on one monitor, and show the experiment's screens on the other monitor. Right now, the keyboard has to be carried around a corner to do the data entry before the experiment begins. I have looked at doing all the data collection myself using an InputBox and hardcoding the x,y position. However, I haven't quite gotten that to work. The inputBox always shows up on the "wrong" monitor no matter what x value I give it. A related issue is it would be really great if I could do the subject ID and all at the end instead of the beginning of the experiment. Any Ideas on how to do that? If anyone has any suggestions for either of these problems, please let me know. Ben Staab staab at waisman.wisc.edu From pquain at metz.une.edu.au Mon Jun 16 22:19:19 2003 From: pquain at metz.une.edu.au (Peter Quain) Date: Tue, 17 Jun 2003 08:19:19 +1000 Subject: Dual Monitor support in WinXP In-Reply-To: <5.2.1.1.1.20030612133210.00b29cc0@pop.waisman.wisc.edu> Message-ID: Ben, a) graphics card setting should be "clone" ... same display on both monitors b) buy a USB k'board (and mouse) ... PCs will respond to both a PS2 and a USB k'board this setup works well in our lab hope this helps At 01:42 AM 17/06/03, you wrote: >Hi All, > >I am developing an eprime experiment that will be run on a Dual Monitor >Windows XP machine. However, I haven't been able to find a solution to a >rather annoying problem. Because of the physical setup of the testing >environment, I need to be able to do the initial data collection (subject >ID, name, etc) on one monitor, and show the experiment's screens on the >other monitor. > >Right now, the keyboard has to be carried around a corner to do the data >entry before the experiment begins. I have looked at doing all the data >collection myself using an InputBox and hardcoding the x,y >position. However, I haven't quite gotten that to work. The inputBox >always shows up on the "wrong" monitor no matter what x value I give it. > >A related issue is it would be really great if I could do the subject ID >and all at the end instead of the beginning of the experiment. Any Ideas >on how to do that? > >If anyone has any suggestions for either of these problems, please let me >know. > >Ben Staab >staab at waisman.wisc.edu Peter Quain School of Psychology University of New England Armidale, Australia, 2351 Phone: 02 6773 5193 Fax: 02 6773 3820 From morrct at andrew.cmu.edu Thu Jun 19 16:42:01 2003 From: morrct at andrew.cmu.edu (Mark G Orr) Date: Thu, 19 Jun 2003 12:42:01 -0400 Subject: Hardware ? Message-ID: Hello, I'm considering purchaching a computer to run eprime that uses a 2.2 GHz celeron processor (OS: Windows 98). However, E-prime recommends a pentium processor, albiet with much slower processing speed (120-350 MHz). Does anyone have any concers about such a celeron processor. I typically present small bmp files or words to my subjects. Thanks, -Mark Orr From Susie.Williams at Vanderbilt.Edu Fri Jun 20 16:57:02 2003 From: Susie.Williams at Vanderbilt.Edu (Susan M. Williams) Date: Fri, 20 Jun 2003 09:57:02 -0700 Subject: mpeg files in EPrime Message-ID: Hello everyone, Is it possible to play mpeg movies in EPrime? If yes, how? Thanks, Susan Susan M. Williams John F. Kennedy Center for Research on Human Development Peabody Box 74 Vanderbilt University Nashville, TN 37203-5701 (615) 322-1324 susie.williams at vanderbilt.edu From Susie.Williams at Vanderbilt.Edu Fri Jun 20 20:18:42 2003 From: Susie.Williams at Vanderbilt.Edu (Susan M. Williams) Date: Fri, 20 Jun 2003 13:18:42 -0700 Subject: mpeg movies in EPrime Message-ID: Thanks for all of your thoughts! Here's the resolution: "E-Prime does not yet support audiovisual files as imported stimuli. However, you are able to suspend E-Run and do other tasks, such as presenting audiovisual files via another software, and return to E-Run as if uninterrupted. Note that this will allow you to present the movie and then return to E-Prime, recording key presses only before or after the movie is shown. Support for movies as stimuli will likely be added in future versions of the software. At this time, we cannot cite a date for that functionality." --Brian Fredrick Susan M. Williams John F. Kennedy Center for Research on Human Development Peabody Box 74 Vanderbilt University Nashville, TN 37203-5701 (615) 322-1324 susie.williams at vanderbilt.edu From Daniel.J.Bates at wheaton.edu Mon Jun 23 22:43:26 2003 From: Daniel.J.Bates at wheaton.edu (Daniel.J.Bates at wheaton.edu) Date: Mon, 23 Jun 2003 17:43:26 -0500 Subject: VAS...Continuous Input and Wait#.Resp Functions Message-ID: Hello again... This is an update regarding my previously posted VAS code. I (along with my co- workers) have been refining on this code over the last couple of days and have found a way to program a continuous key-press and to avoid Wait#.Resp functions. I have included a copy of the code below. As you can see, it is split up into two sections. The first section is a Global User Script and directs Microsoft Windows (using API) to accept continuous input from the keyboard. Instead of using keys 1-5, I have changed the VAS code to only accept F1, F2, and F3. The second section includes an inner-ScriptObject loop. K1, K2, and K3 represent the code that asks the computer if a particular key has been pressed. When that key is pressed, its value <> 0. It then runs the appropriate SlideObject and changes the image on the screen. (All this without straddling the SlideObject with GoTo labels and inline code.) Interestingly, it only does this when the duration of the SlideObject is > 0 ms. It is not necessary to tell the SlideObject to accept data from the keyboard. When F2 (named K2) is pressed, the program records the location of the vertical bar (as a percentage), changes the stimulus that appears on the screen, and moves the vertical bar back to the center of the scale. The 1000 ms Sleep command prevents the subject from skipping over stimuli (if it is not present, the continuous input function thinks that the subject has pressed F2 >1x and records the default location of the vertical bar for each skipped stimulus). Let me know if you have any questions. ------------------------------------------------------------------------ Global User Script: Researched and Developed at Michigan State University by David McFarlane. ------------------------------------------------------------------------ global const VK_F1 = &H70 global const VK_F2 = &H71 global const VK_F3 = &H72 Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer ---------------------------------------------------------------------- ----------------------------------------------------------------------- VAS-Loop: Developed at Michigan State University by Laurence Bates and Daniel Bates. ---------------------------------------------------------------------- Dim k1, k2, k3 As Long Dim ScreenWidth As Integer Dim NewButtonPosn As Integer Dim ButtonPosn As Integer Dim RealSliderWidth As Integer Dim slrLeft As Integer Dim slrRight As Integer Dim Tag As String ScreenWidth = 640 slrLeft = 144 slrRight = 492 NewButtonPosn = 319 Do k1 = GetAsyncKeyState(VK_F1) and &H8000 k2 = GetAsyncKeyState(VK_F2) and &H8000 k3 = GetAsyncKeyState(VK_F3) and &H8000 If k1 <> 0 then If ButtonPosn >= slrLeft + 4 Then NewButtonPosn = ButtonPosn - 4 Else NewButtonPosn = slrLeft End If CSlideImage(Slide1.States.Item("Default").Objects(3)).X = NewButtonPosn End if If k3 <> 0 then If ButtonPosn <= slrRight - 4 Then NewButtonPosn = ButtonPosn + 4 Else NewButtonPosn = slrRight End If CSlideImage(Slide1.States.Item("Default").Objects(3)).X = NewButtonPosn End if Slide1.Run ButtonPosn = NewButtonPosn Loop until k2 <> 0 If k2 <> 0 then Tag = Str((ButtonPosn - slrLeft) * 100 / (slrRight - slrLeft)) + " percent" c.SetAttrib "EasMBResponse" , Tag CSlideImage(Slide1.States.Item("Default").Objects(3)).X = 319 End if Sleep 1000 ---------------------------------------------------------------------- From Nolan at NKI.RFMH.ORG Thu Jun 26 13:48:49 2003 From: Nolan at NKI.RFMH.ORG (Nolan, Karen) Date: Thu, 26 Jun 2003 09:48:49 -0400 Subject: Factor Error Message-ID: I've modified the n-back task that was so kindly posted by Susan Campbell. It was running fine, but in my most recent revision I added some additional conditions and I have started getting the following error when I run my experiment: -999: Factor Error: History index out of bounds in FirstTwoNoMTrialList I'm not sure what the History index is or how to approach trying to fix this. I'd be grateful for any ideas anyone might have. Karen Nolan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nolan at NKI.RFMH.ORG Fri Jun 27 14:10:03 2003 From: Nolan at NKI.RFMH.ORG (Nolan, Karen) Date: Fri, 27 Jun 2003 10:10:03 -0400 Subject: factor error follow-up Message-ID: I had also sent submitted a query to e-prime support regarding the History Index out of bounds error I was getting. Sara Burgess responded suggesting that the error might be related to "List.GetCurrentAttrib" calls in my script and recommended that I use "c.GetAttrib" instead. This seems to have corrected the problem, so I thought I'd share the info with the rest of the list. Karen Nolan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Susie.Williams at Vanderbilt.Edu Mon Jun 30 22:13:31 2003 From: Susie.Williams at Vanderbilt.Edu (Susan M. Williams) Date: Mon, 30 Jun 2003 15:13:31 -0700 Subject: text & image Message-ID: Is it possible to have text & image onscreen simultaneously in EPrime? I'm hoping to show an underlined middle character of an image. Thanks, Susan Susan M. Williams John F. Kennedy Center for Research on Human Development Peabody Box 74 Vanderbilt University Nashville, TN 37203-5701 (615) 322-1324 susie.williams at vanderbilt.edu From Susie.Williams at Vanderbilt.Edu Mon Jun 30 22:27:43 2003 From: Susie.Williams at Vanderbilt.Edu (Susan M. Williams) Date: Mon, 30 Jun 2003 15:27:43 -0700 Subject: text & image Message-ID: The answer is to use the slide object and insert both a text box and a picture. Susan Susan M. Williams John F. Kennedy Center for Research on Human Development Peabody Box 74 Vanderbilt University Nashville, TN 37203-5701 (615) 322-1324 susie.williams at vanderbilt.edu From Susie.Williams at Vanderbilt.Edu Mon Jun 2 22:35:17 2003 From: Susie.Williams at Vanderbilt.Edu (Susan M. Williams) Date: Mon, 2 Jun 2003 15:35:17 -0700 Subject: application defined or object defined error Message-ID: Hello, I too am a new EPrime user and am having trouble with an error #10018 "application defined or object defined error". I believe what I'm experiencing is an error trap or some language in EPrime code allowing for the experiment not to crash if someone chooses an incorrect response. Does this sound correct and if so, how can I get rid of this code? Thanks for your help, Susan Susan M. Williams John F. Kennedy Center for Research on Human Development Peabody Box 74 Vanderbilt University Nashville, TN 37203-5701 (615) 322-1324 susie.williams at vanderbilt.edu From klee at projects.sdsu.edu Fri Jun 6 22:58:36 2003 From: klee at projects.sdsu.edu (Kara Lee) Date: Fri, 6 Jun 2003 15:58:36 -0700 Subject: No subject Message-ID: I am writing a program that will require the subject to respond to one of multiple responses (response areas) in a slidestate. I would like to code each possible response area (Stimulus.ACC) different numbers so that we can tell what response area was chosen. I think will need to use the "select case statement" to code multiple variables but haven't had success doing this yet. I'd appreciate any help with this situation. Thank you, Kara. -- Kara Lee Graduate Research Assistant Center for Behavioral Teratology San Diego State University 6363 Alvarado Ct., Suite 209 San Diego, CA 92120 (619) 594-3928 From Daniel.J.Bates at wheaton.edu Mon Jun 9 17:14:19 2003 From: Daniel.J.Bates at wheaton.edu (Daniel.J.Bates at wheaton.edu) Date: Mon, 9 Jun 2003 12:14:19 -0500 Subject: VAS Speed.......... Message-ID: Hi everyone... I am in the process of programming a Visual-Analog Scale using e-basic, but I am having trouble getting the computer to read the code fast enough. Even though I am using a Pentium 4 desktop computer and the code itself is quite short, it is necessary to wait for .6-1.0 seconds between slider movements. The VAS procedure consists of a label; a slideobject (which contains a piece of text obtained from VASList and two pictures superimposed on each other); a WaitObject (which is designed to wait an infinite amount of time for the subject to press button 1-5); and some inline code. The two pictures are named Slider and Button; Slider is the scale along which the button moves. When the subject presses "3", the program records the final position of the button and moves to the next task in the paradigm. The inline code is shown below. Is there a way of improving the speed so that it looks like a free moving button (or at least stops looking jerky)? E-basic Code for VAS... Dim FinalSelection As Integer Dim ScreenWidth As Integer Dim NewButtonPosn As Integer Dim ButtonPosn As Integer Dim RealSliderWidth As Integer Dim slrLeft As Integer Dim slrRight As Integer Dim KeyAscii As Integer ScreenWidth = 640 slrLeft = CSlideImage(Slide1.States.Item("Default").Objects(3)).X RealSliderWidth = CSlideImage(Slide1.States.Item("Default").Objects(3)).width * ScreenWidth / 100 slrRight = slrLeft + RealSliderWidth ButtonPosn = CSlideImage(Slide1.States.Item("Default").Objects(1)).X NewButtonPosn = ButtonPosn FinalSelection = 0 KeyAscii = Wait1.Resp Select Case KeyAscii Case 1 If ButtonPosn >= slrLeft + 10 Then NewButtonPosn = ButtonPosn - 10 Else NewButtonPosn = slrLeft End If Case 2 If ButtonPosn >= slrLeft + 1 Then NewButtonPosn = ButtonPosn - 1 End If Case 3 FinalSelection = 1 MsgBox Str((ButtonPosn - slrLeft) * 100 / (slrRight - slrLeft)) + " percent" Case 4 If ButtonPosn <= slrRight - 1 Then NewButtonPosn = ButtonPosn + 1 End If Case 5 If ButtonPosn <= slrRight - 10 Then NewButtonPosn = ButtonPosn + 10 Else NewButtonPosn = slrRight End If End Select CSlideImage(Slide1.States.Item("Default").Objects(1)).X = NewButtonPosn If FinalSelection = 0 Then Goto Label1 End If Thank you in advance for your help. Sincerely, Daniel Bates From baris at andrew.cmu.edu Mon Jun 9 17:41:29 2003 From: baris at andrew.cmu.edu (Sukru Baris Demiral) Date: Mon, 9 Jun 2003 13:41:29 -0400 Subject: your mail In-Reply-To: Message-ID: Hi Kara, I had designed a similar experiment by PST expers help. I can send you the code tomorrow.. baris \ / ~ ~ ~ -()- _ ~ ~ / \ ) ) ) -- ) _ 0/_ \0_ = :*_0 \/\_ | = _`\<,_ / / \ =.(*)/_(*)__............................................"" " Hi Guys! " On Fri, 6 Jun 2003, Kara Lee wrote: > I am writing a program that will require the subject to respond to > one of multiple responses (response areas) in a slidestate. I would > like to code each possible response area (Stimulus.ACC) different > numbers so that we can tell what response area was chosen. I think > will need to use the "select case statement" to code multiple > variables but haven't had success doing this yet. I'd appreciate any > help with this situation. > > Thank you, Kara. > -- > Kara Lee > Graduate Research Assistant > Center for Behavioral Teratology > San Diego State University > 6363 Alvarado Ct., Suite 209 > San Diego, CA 92120 > (619) 594-3928 > > > From Susan.Campbell at pstnet.com Tue Jun 10 19:02:07 2003 From: Susan.Campbell at pstnet.com (Susan Campbell) Date: Tue, 10 Jun 2003 15:02:07 -0400 Subject: Open Ended Input in E-Prime Message-ID: I don't know if anyone has pointed this out yet or not -- I noticed it while looking for something different in the E-Prime User Knowledge Base today. Are you using 1.1 Service Pack 1? It looks like that bug (or a related one) should have been fixed with SP 1. If it's a different issue, perhaps you should report it to support, since the E-Prime tech support people don't (as far as I know) read this list. Hope this helps, Susan excerpt: BUGFIX: {BACKSPACE} incorrectly logged when ProcessBackspace=Yes and/or ResponseMode=AlphaNumeric Symptoms Regardless of the ProcessBackspace=Yes and/or ResponseMode=AlphaNumeric setting, the {BACKSPACE} key is not logged as expected. Solution Update to E-Prime 1.1 SP1 or later. E-Prime 1.1 Service Pack 1 or later will properly log the {BACKSPACE} key. *** DISCLAIMER: ALL VIEWS EXPRESSED ARE MY OWN AND DO NOT NECESSARILY REFLECT THOSE OF PSYCHOLOGY SOFTWARE TOOLS *** > -----Original Message----- > From: Georg Odenthal [mailto:odenthal at soz.psychologie.uni-konstanz.de] > Sent: Friday, May 30, 2003 9:49 AM > To: eprime at mail.talkbank.org > Subject: Open Ended Input in E-Prime > > > 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 Wed Jun 11 17:02:54 2003 From: devo0023 at tc.umn.edu (Cynthia J DeVore) Date: Wed, 11 Jun 2003 12:02:54 -0500 Subject: Circulating responses to the listserv Message-ID: You may have noticed that lately our listserv shows many more questions than responses. One might think that those questions have gone unanswered. Instead, I suspect that people are responding directly to the sender, bypassing the listserv. While that seemed nice (because it reduced the number of emails I was receiving), it has contributed to less communication in our society. As a result, our archive of old emails has more and more unanswered questions. (I, myself, have replied directly to the originator of problems.) I'd appreciate it if those who pose the problem get responses "offline" that they post a summary of the responses so that our archive is current. I'll try to do the same. 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/200306.htm E-Prime @ U of MN http://online.psych.umn.edu/IS/Eprime/index.htm From Daniel.J.Bates at wheaton.edu Wed Jun 11 18:25:54 2003 From: Daniel.J.Bates at wheaton.edu (Daniel.J.Bates at wheaton.edu) Date: Wed, 11 Jun 2003 13:25:54 -0500 Subject: VAS Speed: Solved.....VAS Code: Almost Solved Message-ID: Thanks for your help everybody. My code is running much faster. I discovered that all slideobjects have a default duration time of 1000 ms. Once that was placed to 0 ms, my code ran much faster. My code has changed a little since my last posting. I have included it below. As you can see, some of the original code has been changed into a comment (particularly the lines defining slrLeft and slrRight). This is because these lines of code incorrectly identifyed the position of the bitmap and were, therefore, confusing the rest of my calculations. Instead of trying to debug those lines of code, I decided to calculate the position of the two bitmaps that I was using and to enter the numercial value in myself. A little messier, perhaps, but at least the bar stays within my scale. To calculate the position of those bitmaps, I included some more code in the lines following "case 3". My next task is to find a way of calculating the position of my bar within the scale and then to insert that value into my dataset. The manual reccomends using attributes (e.g. c.SetAttrib "Data", TypeVariableHere), but I am still trying to get that working. A copy of my code is shown below. Again...thanks for your help everybody. Daniel Dim FinalSelection As Integer Dim ScreenWidth As Integer Dim NewButtonPosn As Integer Dim ButtonPosn As Integer Dim RealSliderWidth As Integer Dim slrLeft As Integer Dim slrRight As Integer Dim KeyAscii As Integer ScreenWidth = 640 'slrLeft = CSlideImage(Slide1.States.Item("Default").Objects(3)).X slrLeft = 161 'RealSliderWidth = CSlideImage(Slide1.States.Item("Default").Objects(3)).width * ScreenWidth / 100 'slrRight = slrLeft + RealSliderWidth slrRight = 479 ButtonPosn = CSlideImage(Slide1.States.Item("Default").Objects(1)).X NewButtonPosn = ButtonPosn FinalSelection = 0 KeyAscii = Wait1.Resp 'CSlideImage(Slide1.States.Item("Default").Objects(1)).X = 600 Select Case KeyAscii Case 1 If ButtonPosn >= slrLeft + 20 Then NewButtonPosn = ButtonPosn - 20 Else NewButtonPosn = slrLeft End If Case 2 If ButtonPosn >= slrLeft + 2 Then NewButtonPosn = ButtonPosn - 2 End If Case 3 FinalSelection = 1 MsgBox "slrLeft = " + Str(slrleft) + " / " + Str((ButtonPosn - slrLeft) * 100 / (slrRight - slrLeft)) + " percent" + " / " + "slrRight = " + Str(slrRight) + " / " + "ButtonPosn = " + Str(ButtonPosn) c.SetAttrib "EasMBResponse", Str((ButtonPosn - slrLeft) * 100 / (slrRight - slrLeft)) + " percent" Case 4 If ButtonPosn <= slrRight - 2 Then NewButtonPosn = ButtonPosn + 2 End If Case 5 If ButtonPosn <= slrRight - 20 Then NewButtonPosn = ButtonPosn + 20 Else NewButtonPosn = slrRight End If End Select CSlideImage(Slide1.States.Item("Default").Objects(1)).X = NewButtonPosn If FinalSelection = 0 Then Goto Label1 End If From macw at cmu.edu Wed Jun 11 18:47:14 2003 From: macw at cmu.edu (Brian MacWhinney) Date: Wed, 11 Jun 2003 14:47:14 -0400 Subject: Circulating responses to the listserv In-Reply-To: <5.1.0.14.0.20030611115601.02812c10@devo0023.email.umn.edu> Message-ID: Dear Cynthia and EPrime readers, This is an excellent posting which, as list maintainer, I very much appreciate. I hope it has the desired results. Of course, some questions are hard to answer, but I agree very much that eventually all answers should get posted to the list. As you say, it is particularly the responsibility of the person who posted the problem to post the final answer or work around. If an important problem goes unresolved or unanswered, it seems correct to me that, after after 7-10 days, the original poster would just send a posting saying that it went unresolved. By the way, I was delighted to see that Minnesota is organized well enough to realize that they need to have someone with the official title of "E-Prime Consultant". Also, for those who wonder where old messages are stored, let me give this URL: http://listserv.linguistlist.org/archives/eprime.html --Brian MacWhinney (e-prime list maintainer), CMU On 6/11/03 1:02 PM, "Cynthia J DeVore" wrote: > You may have noticed that lately our listserv shows many more questions > than responses. One might think that those questions have gone unanswered. > Instead, I suspect that people are responding directly to the sender, > bypassing the listserv. While that seemed nice (because it reduced the > number of emails I was receiving), it has contributed to less communication > in our society. As a result, our archive of old emails has more and more > unanswered questions. (I, myself, have replied directly to the originator > of problems.) I'd appreciate it if those who pose the problem get responses > "offline" that they post a summary of the responses so that our archive is > current. I'll try to do the same. > > > > 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/200306.htm > E-Prime @ U of MN http://online.psych.umn.edu/IS/Eprime/index.htm > > > > From morrct at andrew.cmu.edu Thu Jun 12 01:42:27 2003 From: morrct at andrew.cmu.edu (Mark G Orr) Date: Wed, 11 Jun 2003 21:42:27 -0400 Subject: pixel positions Message-ID: Hello. Does anyone know off-hand whether the positions of single letters when specified in x-y pixel coordinates is referenceing the center of the letter or one of the corners Or some other part of the letter. Thanks. -Mark Orr From morrct at andrew.cmu.edu Thu Jun 12 01:54:34 2003 From: morrct at andrew.cmu.edu (Mark G Orr) Date: Wed, 11 Jun 2003 21:54:34 -0400 Subject: pixel positions In-Reply-To: Message-ID: Ok, i think i found my answer (I posted this question). I presented two "H"'s in sequence, both of the same font size. The monitor pixel dimensions were set to 640X480. The first "H" was centered, using a standard text display. The second H was presented via the following in-line object: Dim letter as Canvas Set Letter = Display.Canvas letter.Fontsize = 12 letter.Text 320, 240, "H" THE RESULT was that the top left corner of the second "H" was positioned at the center of the first "H". I conclude that when using pixel coordinates in this way, the top left corner of the letter is referenced. If this is wrong, or if anything else useful should be added, please let me and the list know. Thanks. On Wed, 11 Jun 2003, Mark G Orr wrote: > Hello. Does anyone know off-hand whether the positions of single letters > when specified in x-y pixel coordinates is referenceing the center of the > letter or one of the corners Or some other part of the letter. Thanks. > > -Mark Orr > > > From slacey at umich.edu Thu Jun 12 13:48:56 2003 From: slacey at umich.edu (Steven Lacey) Date: Thu, 12 Jun 2003 09:48:56 -0400 Subject: pixel positions In-Reply-To: Message-ID: Mark, The coordinates apply not specifically to the letter itself, but the textbox housing the letter. Steve -----Original Message----- From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On Behalf Of Mark G Orr Sent: Wednesday, June 11, 2003 9:55 PM To: eprime list Subject: Re: pixel positions Ok, i think i found my answer (I posted this question). I presented two "H"'s in sequence, both of the same font size. The monitor pixel dimensions were set to 640X480. The first "H" was centered, using a standard text display. The second H was presented via the following in-line object: Dim letter as Canvas Set Letter = Display.Canvas letter.Fontsize = 12 letter.Text 320, 240, "H" THE RESULT was that the top left corner of the second "H" was positioned at the center of the first "H". I conclude that when using pixel coordinates in this way, the top left corner of the letter is referenced. If this is wrong, or if anything else useful should be added, please let me and the list know. Thanks. On Wed, 11 Jun 2003, Mark G Orr wrote: > Hello. Does anyone know off-hand whether the positions of single letters > when specified in x-y pixel coordinates is referenceing the center of the > letter or one of the corners Or some other part of the letter. Thanks. > > -Mark Orr > > > From j.lum at latrobe.edu.au Mon Jun 16 08:46:57 2003 From: j.lum at latrobe.edu.au (Jarrad Lum) Date: Mon, 16 Jun 2003 18:46:57 +1000 Subject: No subject Message-ID: Hi, I have been writing some programs using a touch screen based on the Mouse.GetCursorPos ptMouse.x, ptMouse.y command and was wondering if it were possible to get e-prime store the values of the x and y coordinates. Any assistance would be greatly appreciated. Thanks Jarrad From staab at Waisman.Wisc.Edu Mon Jun 16 15:42:11 2003 From: staab at Waisman.Wisc.Edu (Ben Staab) Date: Mon, 16 Jun 2003 10:42:11 -0500 Subject: Dual Monitor support in WinXP Message-ID: Hi All, I am developing an eprime experiment that will be run on a Dual Monitor Windows XP machine. However, I haven't been able to find a solution to a rather annoying problem. Because of the physical setup of the testing environment, I need to be able to do the initial data collection (subject ID, name, etc) on one monitor, and show the experiment's screens on the other monitor. Right now, the keyboard has to be carried around a corner to do the data entry before the experiment begins. I have looked at doing all the data collection myself using an InputBox and hardcoding the x,y position. However, I haven't quite gotten that to work. The inputBox always shows up on the "wrong" monitor no matter what x value I give it. A related issue is it would be really great if I could do the subject ID and all at the end instead of the beginning of the experiment. Any Ideas on how to do that? If anyone has any suggestions for either of these problems, please let me know. Ben Staab staab at waisman.wisc.edu From dhair at wfubmc.edu Mon Jun 16 17:55:10 2003 From: dhair at wfubmc.edu (David Hairston) Date: Mon, 16 Jun 2003 13:55:10 -0400 Subject: Dual Monitor support in WinXP Message-ID: We have a similar setup in our lab - here is how it works for us... I don't know what kind of vid card you have, but we use an nVidia GeForce4 card w/ 2 outputs on the card. However, you should be able to use 2 single out cards also in XP. We have a "reverse KVM switch" box from Belkin. This is designed to let 1 PC be controlled from 2 different sets of input - 2 monitors, 2 keyboards, 2 mice. The 2 monitors are basically mirrors of one another. Anyhow, 1 vid line from the card is used w/ the testing machine, the other goes into the switch - then 2 outputs go to identical monitors, 1 of which is right next to the other monitor, and the other is inside the "testing room". Meanwhile, same w/ the kbd/mouse. So I can "see" what the subject sees, and have my own monitor too. This is great, b/c you can have the e-prime editor etc in one monitor, and the program/expt running on the other. This is how you do this. In the XP Display properties box, set 2nd monitor as an extension of the desktop - then set the monitor that is for your subject as the "primary". For most reasons, this makes no difference in XP - except that by default, this is the monitor (of the 2) that programs/menus will pop up on. Now when you run E-prime, your program will be seen on the subject's monitor, not yours. However, dialog boxes will default to popping up on whichever of the 2 monitors last had the focus - so I believe you just have to click the mouse inside the E-prime editor somewhere before hitting F7. So your subject can't see what you put in. This "default popup" location *may* be something set w/in the nVidia drivers, can't remember right now. The really cool thing is that you can use the debugger to track your subject's progress... Anyhow, hope this is helpful. Feel free to contact me if you need more details. W. David Hairston Neurobiology and Anatomy Wake Forest University (336) 716-4481 (lab) -----Original Message----- From: Ben Staab [mailto:staab at Waisman.Wisc.Edu] Sent: Monday, June 16, 2003 11:42 AM To: eprime at mail.talkbank.org Subject: Dual Monitor support in WinXP Hi All, I am developing an eprime experiment that will be run on a Dual Monitor Windows XP machine. However, I haven't been able to find a solution to a rather annoying problem. Because of the physical setup of the testing environment, I need to be able to do the initial data collection (subject ID, name, etc) on one monitor, and show the experiment's screens on the other monitor. Right now, the keyboard has to be carried around a corner to do the data entry before the experiment begins. I have looked at doing all the data collection myself using an InputBox and hardcoding the x,y position. However, I haven't quite gotten that to work. The inputBox always shows up on the "wrong" monitor no matter what x value I give it. A related issue is it would be really great if I could do the subject ID and all at the end instead of the beginning of the experiment. Any Ideas on how to do that? If anyone has any suggestions for either of these problems, please let me know. Ben Staab staab at waisman.wisc.edu From pquain at metz.une.edu.au Mon Jun 16 22:19:19 2003 From: pquain at metz.une.edu.au (Peter Quain) Date: Tue, 17 Jun 2003 08:19:19 +1000 Subject: Dual Monitor support in WinXP In-Reply-To: <5.2.1.1.1.20030612133210.00b29cc0@pop.waisman.wisc.edu> Message-ID: Ben, a) graphics card setting should be "clone" ... same display on both monitors b) buy a USB k'board (and mouse) ... PCs will respond to both a PS2 and a USB k'board this setup works well in our lab hope this helps At 01:42 AM 17/06/03, you wrote: >Hi All, > >I am developing an eprime experiment that will be run on a Dual Monitor >Windows XP machine. However, I haven't been able to find a solution to a >rather annoying problem. Because of the physical setup of the testing >environment, I need to be able to do the initial data collection (subject >ID, name, etc) on one monitor, and show the experiment's screens on the >other monitor. > >Right now, the keyboard has to be carried around a corner to do the data >entry before the experiment begins. I have looked at doing all the data >collection myself using an InputBox and hardcoding the x,y >position. However, I haven't quite gotten that to work. The inputBox >always shows up on the "wrong" monitor no matter what x value I give it. > >A related issue is it would be really great if I could do the subject ID >and all at the end instead of the beginning of the experiment. Any Ideas >on how to do that? > >If anyone has any suggestions for either of these problems, please let me >know. > >Ben Staab >staab at waisman.wisc.edu Peter Quain School of Psychology University of New England Armidale, Australia, 2351 Phone: 02 6773 5193 Fax: 02 6773 3820 From morrct at andrew.cmu.edu Thu Jun 19 16:42:01 2003 From: morrct at andrew.cmu.edu (Mark G Orr) Date: Thu, 19 Jun 2003 12:42:01 -0400 Subject: Hardware ? Message-ID: Hello, I'm considering purchaching a computer to run eprime that uses a 2.2 GHz celeron processor (OS: Windows 98). However, E-prime recommends a pentium processor, albiet with much slower processing speed (120-350 MHz). Does anyone have any concers about such a celeron processor. I typically present small bmp files or words to my subjects. Thanks, -Mark Orr From Susie.Williams at Vanderbilt.Edu Fri Jun 20 16:57:02 2003 From: Susie.Williams at Vanderbilt.Edu (Susan M. Williams) Date: Fri, 20 Jun 2003 09:57:02 -0700 Subject: mpeg files in EPrime Message-ID: Hello everyone, Is it possible to play mpeg movies in EPrime? If yes, how? Thanks, Susan Susan M. Williams John F. Kennedy Center for Research on Human Development Peabody Box 74 Vanderbilt University Nashville, TN 37203-5701 (615) 322-1324 susie.williams at vanderbilt.edu From Susie.Williams at Vanderbilt.Edu Fri Jun 20 20:18:42 2003 From: Susie.Williams at Vanderbilt.Edu (Susan M. Williams) Date: Fri, 20 Jun 2003 13:18:42 -0700 Subject: mpeg movies in EPrime Message-ID: Thanks for all of your thoughts! Here's the resolution: "E-Prime does not yet support audiovisual files as imported stimuli. However, you are able to suspend E-Run and do other tasks, such as presenting audiovisual files via another software, and return to E-Run as if uninterrupted. Note that this will allow you to present the movie and then return to E-Prime, recording key presses only before or after the movie is shown. Support for movies as stimuli will likely be added in future versions of the software. At this time, we cannot cite a date for that functionality." --Brian Fredrick Susan M. Williams John F. Kennedy Center for Research on Human Development Peabody Box 74 Vanderbilt University Nashville, TN 37203-5701 (615) 322-1324 susie.williams at vanderbilt.edu From Daniel.J.Bates at wheaton.edu Mon Jun 23 22:43:26 2003 From: Daniel.J.Bates at wheaton.edu (Daniel.J.Bates at wheaton.edu) Date: Mon, 23 Jun 2003 17:43:26 -0500 Subject: VAS...Continuous Input and Wait#.Resp Functions Message-ID: Hello again... This is an update regarding my previously posted VAS code. I (along with my co- workers) have been refining on this code over the last couple of days and have found a way to program a continuous key-press and to avoid Wait#.Resp functions. I have included a copy of the code below. As you can see, it is split up into two sections. The first section is a Global User Script and directs Microsoft Windows (using API) to accept continuous input from the keyboard. Instead of using keys 1-5, I have changed the VAS code to only accept F1, F2, and F3. The second section includes an inner-ScriptObject loop. K1, K2, and K3 represent the code that asks the computer if a particular key has been pressed. When that key is pressed, its value <> 0. It then runs the appropriate SlideObject and changes the image on the screen. (All this without straddling the SlideObject with GoTo labels and inline code.) Interestingly, it only does this when the duration of the SlideObject is > 0 ms. It is not necessary to tell the SlideObject to accept data from the keyboard. When F2 (named K2) is pressed, the program records the location of the vertical bar (as a percentage), changes the stimulus that appears on the screen, and moves the vertical bar back to the center of the scale. The 1000 ms Sleep command prevents the subject from skipping over stimuli (if it is not present, the continuous input function thinks that the subject has pressed F2 >1x and records the default location of the vertical bar for each skipped stimulus). Let me know if you have any questions. ------------------------------------------------------------------------ Global User Script: Researched and Developed at Michigan State University by David McFarlane. ------------------------------------------------------------------------ global const VK_F1 = &H70 global const VK_F2 = &H71 global const VK_F3 = &H72 Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer ---------------------------------------------------------------------- ----------------------------------------------------------------------- VAS-Loop: Developed at Michigan State University by Laurence Bates and Daniel Bates. ---------------------------------------------------------------------- Dim k1, k2, k3 As Long Dim ScreenWidth As Integer Dim NewButtonPosn As Integer Dim ButtonPosn As Integer Dim RealSliderWidth As Integer Dim slrLeft As Integer Dim slrRight As Integer Dim Tag As String ScreenWidth = 640 slrLeft = 144 slrRight = 492 NewButtonPosn = 319 Do k1 = GetAsyncKeyState(VK_F1) and &H8000 k2 = GetAsyncKeyState(VK_F2) and &H8000 k3 = GetAsyncKeyState(VK_F3) and &H8000 If k1 <> 0 then If ButtonPosn >= slrLeft + 4 Then NewButtonPosn = ButtonPosn - 4 Else NewButtonPosn = slrLeft End If CSlideImage(Slide1.States.Item("Default").Objects(3)).X = NewButtonPosn End if If k3 <> 0 then If ButtonPosn <= slrRight - 4 Then NewButtonPosn = ButtonPosn + 4 Else NewButtonPosn = slrRight End If CSlideImage(Slide1.States.Item("Default").Objects(3)).X = NewButtonPosn End if Slide1.Run ButtonPosn = NewButtonPosn Loop until k2 <> 0 If k2 <> 0 then Tag = Str((ButtonPosn - slrLeft) * 100 / (slrRight - slrLeft)) + " percent" c.SetAttrib "EasMBResponse" , Tag CSlideImage(Slide1.States.Item("Default").Objects(3)).X = 319 End if Sleep 1000 ---------------------------------------------------------------------- From Nolan at NKI.RFMH.ORG Thu Jun 26 13:48:49 2003 From: Nolan at NKI.RFMH.ORG (Nolan, Karen) Date: Thu, 26 Jun 2003 09:48:49 -0400 Subject: Factor Error Message-ID: I've modified the n-back task that was so kindly posted by Susan Campbell. It was running fine, but in my most recent revision I added some additional conditions and I have started getting the following error when I run my experiment: -999: Factor Error: History index out of bounds in FirstTwoNoMTrialList I'm not sure what the History index is or how to approach trying to fix this. I'd be grateful for any ideas anyone might have. Karen Nolan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nolan at NKI.RFMH.ORG Fri Jun 27 14:10:03 2003 From: Nolan at NKI.RFMH.ORG (Nolan, Karen) Date: Fri, 27 Jun 2003 10:10:03 -0400 Subject: factor error follow-up Message-ID: I had also sent submitted a query to e-prime support regarding the History Index out of bounds error I was getting. Sara Burgess responded suggesting that the error might be related to "List.GetCurrentAttrib" calls in my script and recommended that I use "c.GetAttrib" instead. This seems to have corrected the problem, so I thought I'd share the info with the rest of the list. Karen Nolan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Susie.Williams at Vanderbilt.Edu Mon Jun 30 22:13:31 2003 From: Susie.Williams at Vanderbilt.Edu (Susan M. Williams) Date: Mon, 30 Jun 2003 15:13:31 -0700 Subject: text & image Message-ID: Is it possible to have text & image onscreen simultaneously in EPrime? I'm hoping to show an underlined middle character of an image. Thanks, Susan Susan M. Williams John F. Kennedy Center for Research on Human Development Peabody Box 74 Vanderbilt University Nashville, TN 37203-5701 (615) 322-1324 susie.williams at vanderbilt.edu From Susie.Williams at Vanderbilt.Edu Mon Jun 30 22:27:43 2003 From: Susie.Williams at Vanderbilt.Edu (Susan M. Williams) Date: Mon, 30 Jun 2003 15:27:43 -0700 Subject: text & image Message-ID: The answer is to use the slide object and insert both a text box and a picture. Susan Susan M. Williams John F. Kennedy Center for Research on Human Development Peabody Box 74 Vanderbilt University Nashville, TN 37203-5701 (615) 322-1324 susie.williams at vanderbilt.edu