From inesmares88 at gmail.com Fri Apr 1 13:43:08 2011 From: inesmares88 at gmail.com (Ines Mares) Date: Fri, 1 Apr 2011 06:43:08 -0700 Subject: Windows 7 and SRBox malfunctions Message-ID: Hello all, I'm using E-prime 2.0.8.90 and Windows 7 64-bit, with a usb-to-serial converter from Aten (drivers updated to windows7) . In the middle of experiments the SRBox suddenly stops functioning, and at the end of the experiment E-run doesn't close. If a new experiment is started, E-prime will not recognize anymore the SRBox. The same experiment will work without problems in another computer with windows xp and serial port. I've already tried uninstalling and reinstalling e-prime and the drivers for the converter (this is the second converter I've tried since the first one was not recommended by PST). Anyone had this problem or has any ideas? Thanks in advance, Inês Mares -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From abraesch at rumms.uni-mannheim.de Fri Apr 1 15:29:19 2011 From: abraesch at rumms.uni-mannheim.de (Anneanne) Date: Fri, 1 Apr 2011 08:29:19 -0700 Subject: flashing dot and response dependent visual input simultaneously Message-ID: Hey there, I am really new to e-prime and have no programming experience whatsoever... Maybe someone can help me with my issues here? So far, I tinkered the following InLine script referenced to the slide before. Dim gdot As SlideImage Set gdot = CSlideImage(arrows.States(arrows.ActiveState).Objects("dot")) gdot.Filename = "H:\\MyExperiments\\dot_green.jpg" gdot.Load Dim x As Integer For x = 1 to 10 arrows.Draw Sleep 1000 gdot.Clear Sleep 1000 Do If(Mouse.Buttons AND ebMouseButton1 ) Then arrows.ActiveState = "down" arrows.Draw 'WritePort &H378, 4 'YES via parallel communication, command 00000110 Sleep 200 'WritePort &H378, 0 arrows.ActiveState = "neutral" arrows.Draw Sleep 20 Goto Label1 ElseIf(Mouse.Buttons AND ebMouseButton3) Then arrows.ActiveState = "middle" arrows.Draw Sleep 200 arrows.ActiveState = "neutral" arrows.Draw Sleep 20 Goto Label1 ElseIf(Mouse.Buttons AND ebMouseButton2) Then arrows.ActiveState = "up" arrows.Draw 'WritePort &H378, 8 'YES via parallel communication, command 00000110 Sleep 200 'WritePort &H378, 0 arrows.ActiveState = "neutral" arrows.Draw Sleep 20 Goto Label1 End if Exit Do Sleep 10 DoEvents Loop Next What I want it to do is: 1. The slide (and the InLine script) shall be "on" for 20 s. 2. During that time, a visual input (green_dot) shall be flashing (e.g. one second on, one second off) 3. Also during that time, the participants have a task in which they press the three mouse buttons (this shall go out to the parallel port, controlling another device). Whenever they press a button, they should get a visual feedback (e.g. when they pressed button 1, the upper white arrow on the slide turns grey for 200 ms and returns to white afterward) What is happening right now with this script is that as soon as I press any button, the flashing dot appears, but only rarely a visual feedback for a button press is shown. Also, the more I press the buttons, the more the time prolonges (there are not only 5 flashing dots, but rather ten or 15). It only end after 5 flashes when I do not press any button. I really hope that somebody understands what I mean and can help me!! Thanks Anne -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From nat339 at gmail.com Sun Apr 3 03:00:35 2011 From: nat339 at gmail.com (Nicole T) Date: Sat, 2 Apr 2011 20:00:35 -0700 Subject: Size change in e-prime Message-ID: Hi! I am using E-Prime version 2.0 and have come across a problem with the stimuli size when the experiment is run on a different computer. I have the resolution set to be the same as the computer in which the experiment was created. I am using a 10 cm line that shows up as 10 cm on one computer, but is only 9 cm in length on a separate computer. I created the program on a Windows 7 computer and am running it in Windows XP. A similar problem has occurred in another experiment designed in our lab using 14 cm lines that show up as 12.5 cm. Any possible suggestions would be greatly appreciated! Thank-you! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Sun Apr 3 09:43:17 2011 From: liwenna at gmail.com (liwenna) Date: Sun, 3 Apr 2011 02:43:17 -0700 Subject: Size change in e-prime In-Reply-To: Message-ID: Hi Nicole, The problem should be somewhere with the resolution indeed. Are the two display's different in dimensions by any chance? You wrote that you adapted the program's resolution to the resolution used on the display that you wrote the program on. Do keep in mind that e-prime will 'take over' the display when it's run and that it will force the resolution it is set to onto the display that it uses. Now... if the other display has a different dimension, say for instance that it is less wide than the original display, then any horizontal line will be shortened because e-prime will cram the same number of pixels on both the horizontal and the vertical axis onto the display's 'surface'. If the new display is more wide on the other hand than any vertical lines will be shortened for the same reason. So... try adapting the program to the new display's settings and if that doesn't help do report back :) best, liw On 3 apr, 05:00, Nicole T wrote: > Hi! > > I am using E-Prime version 2.0 and have come across a problem with the > stimuli size when the experiment is run on a different computer. I > have the resolution set to be the same as the computer in which the > experiment was created. I am using a 10 cm line that shows up as 10 cm > on one computer, but is only 9 cm in length on a separate computer. I > created the program on a Windows 7 computer and am running it in > Windows XP. A similar problem has occurred in another experiment > designed in our lab using 14 cm lines that show up as 12.5 cm. Any > possible suggestions would be greatly appreciated! > > Thank-you! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From eleni.pinnow at gmail.com Sun Apr 3 14:31:16 2011 From: eleni.pinnow at gmail.com (Eleni) Date: Sun, 3 Apr 2011 09:31:16 -0500 Subject: Auditory lexical decision task in e-prime Message-ID: Hi everyone! I am new to this group (and to E-prime). I'm trying to create an auditory lexical decision task using E-prime (participants are presented with and make lexicality judgments on only auditory stimuli). I am struggling with the best mode to present stimuli--should to be with just a SoundOut Object or should I use a slide (reaction time is really crucial here)? If anyone has an experiment that uses only sound would it be possible for me to look at it? This will be my first e-prime experiment (and first experiment in my new faculty role) and I really want to get it right. Thank you so much (and I apologize for the really basic nature of my question). Eleni Pinnow eleni.pinnow at gmail.com -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From eleni.pinnow at gmail.com Sun Apr 3 17:58:59 2011 From: eleni.pinnow at gmail.com (Eleni) Date: Sun, 3 Apr 2011 10:58:59 -0700 Subject: Auditory lexical decision task in e-prime In-Reply-To: Message-ID: Hi all, After working with the program, I have it playing using the slides. The issue that I am currently having is that instead of allowing me to make a judgment to each individual stimulus, it instead plays all of the sound stimuli in a row without the chance for a response. I am not sure how I can allow a response to be made to each auditory stimulus. Again, I'm very sorry for the basicness of this question. I also have a request in with the PST support team. Thank you so much, Eleni -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pfc.groot at gmail.com Sun Apr 3 21:34:26 2011 From: pfc.groot at gmail.com (Paul Groot) Date: Sun, 3 Apr 2011 23:34:26 +0200 Subject: Repeat Trial In-Reply-To: <4d94ce24.4e40e70a.02dd.1140SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Here is a minimalistic example that uses an additional list to implement repeating trials: (see attachment) It was created with eprime 1.2, but it should also work when imported in eprime 2.0 Paul. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- A non-text attachment was scrubbed... Name: RepeatUntilOK.es Type: application/octet-stream Size: 13591 bytes Desc: not available URL: From liwenna at gmail.com Mon Apr 4 06:33:54 2011 From: liwenna at gmail.com (liwenna) Date: Sun, 3 Apr 2011 23:33:54 -0700 Subject: Size change in e-prime In-Reply-To: Message-ID: Nicole e-mailed me privately and I responded to her in e-mail but for anyone who might later reference this thread I paste my e-mail below: ****************** Hi Nicole, good morning :) How to fix it... As said e-prime takes over the display properties and forces the properties it is set to onto it. The properties that e-prime is set to can be changed as follows: on the top of the experiment tree on the left side of the screen there is a purple (e-prime 2) or green (e- prime 1) e-prime logo. Select this logo and go to properties. Select the tab 'devices' and then select display and 'edit' (top of my head... I think it reads 'edit'). You can then adjust the dimensions on the screen, by default it is set to 640*480. To do this on a different computer, first check the dimensions that windows uses on your testcomputer (these are probably good to use), note them down (and if needed also the physical dimensions e.g. the size of the display in cm/inches) and then adjust on the 'design computer'. This pretty much is something that you ought to do first on any new program that you create in e-prime. Using e-primes (very old fashioned, ment for very old small display's) settings, with nowadays displays almost always means that e-prime will show everything 'blown up', causing a grainy look to your experiment and what's worse, leaving you in less control of sizes, especially with pictures this is problematic because you want to have the pictures you use (and that you have given a specific dimension on purpose) to actually be shown that way. I kinda took this sentence from your message "I have the resolution set to be the same as the computer in which the experiment was created." to mean that you already knew how to do this. If you didn't then you probably ment to say that you fiddled around long enough to make it so that a line in e-prime shows up with a certain size (10 cm). If that is the case then you'll unfortunately find that adjusting the setting will make all your lines to have shrunken by a fair bit. On the plus side... when you are aware of your testing computers display size and pixel dimensions it is not that hard to actually calculate the sizes you need. Say a display has a width of 25 cm (just a number I make up now) and your resolution is 1280*1040 then there are 1280 pixels on those 25 cm, that means that 1 cm contains 51,2 pixels and a line of 10 cm should therefore measure 152 pixels. Or alternatively, e-prime also offers sizes to be set in % of the horizontal or vertical axis, a line of 10 cm on a 25 cm wide screen should have a length of 40% of the total x, horizontal axis. So... you can adjust your program on the creating computer (I'd probably create a copy of the program you have now, adjust that,) save it, take the e-run file and take that to you testcomputer) Good luck! Best, liwenna On 3 apr, 11:43, liwenna wrote: > Hi Nicole, > > The problem should be somewhere with the resolution indeed. Are the > two display's different in dimensions by any chance? > > You wrote that you adapted the program's resolution to the resolution > used on the display that you wrote the program on.  Do keep in mind > that e-prime will 'take over' the display when it's run and that it > will force the resolution it is set to onto the display that it uses. > Now... if the other display has a different dimension, say for > instance that it is less wide than the original display, then any > horizontal line will be shortened because e-prime will cram the same > number of pixels on both the horizontal and the vertical axis onto the > display's 'surface'. If the new display is more wide on the other hand > than any vertical lines will be shortened for the same reason. > > So... try adapting the program to the new display's settings and if > that doesn't help do report back :) > > best, > > liw > > On 3 apr, 05:00, Nicole T wrote: > > > Hi! > > > I am using E-Prime version 2.0 and have come across a problem with the > > stimuli size when the experiment is run on a different computer. I > > have the resolution set to be the same as the computer in which the > > experiment was created. I am using a 10 cm line that shows up as 10 cm > > on one computer, but is only 9 cm in length on a separate computer. I > > created the program on a Windows 7 computer and am running it in > > Windows XP. A similar problem has occurred in another experiment > > designed in our lab using 14 cm lines that show up as 12.5 cm. Any > > possible suggestions would be greatly appreciated! > > > Thank-you! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Mon Apr 4 09:20:36 2011 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Mon, 4 Apr 2011 10:20:36 +0100 Subject: Auditory lexical decision task in e-prime In-Reply-To: Message-ID: Hi Eleni, I believe it is not necessarily the complexity of your question that is the problem here, it's just really hard to imagine what you're doing, or doing wrong. You want to present multiple auditory stimuli - yes, slides are okay for that, easier if you want to show visual stimuli at the same time, but there's not much wrong with the soundout thingy. What are you doing, just added many different stimuli in a row on the "timeline"? In such a case, I really would like to point out that the "quick start guide" is a really good place to start quickly, but if you don't mind a lot of not always entirely related blabbering, you might have a go at http://www.cognitology.eu/pubs/AnE-Primer2009.pdf instead. Some people told me they like it. Best, Michiel Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology www.cognitology.eu -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Eleni Sent: 03 April 2011 18:59 To: E-Prime Subject: Re: Auditory lexical decision task in e-prime Hi all, After working with the program, I have it playing using the slides. The issue that I am currently having is that instead of allowing me to make a judgment to each individual stimulus, it instead plays all of the sound stimuli in a row without the chance for a response. I am not sure how I can allow a response to be made to each auditory stimulus. Again, I'm very sorry for the basicness of this question. I also have a request in with the PST support team. Thank you so much, Eleni -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Apr 4 18:02:53 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 4 Apr 2011 14:02:53 -0400 Subject: Auditory lexical decision task in e-prime In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E4CC5@EXCHANGE3.ad.no ttingham.ac.uk> Message-ID: Eleni, In addition to Michiel's E-Primer, you (and *all* E-Prime users) must, *must* start at the very least by working through Tutorial 1 in the Getting Started Guide that came with E-Prime. This would show you how to get a separate response for the sitmulus from each trial. It shows how to do this with a TextDisplay object and a List, but you could easily adapt the priciples to SoundOut or Slide objects. As to SoundOut vs. Slide, that may come down to personal preference and style, unless other task considerations dictate one or the other. As a minimalist, I use a SoundOut unless I need the extra facilities of a Slide; OTOH, Slides do allow much more flexibility both for future changes in the task and during program development (e.g., displaying the name of the sound file as the sound is played, so that you can confirm that things are working as you think they do), and many times I later regret starting with a SoundOut as I manually convert things to Slides. So take your pick. Makes no difference to stimulus sequences or getting responses, and with care makes no difference to timing. Good luck, -- David McFarlane, Professional Faultfinder At 4/4/2011 05:20 AM Monday, you wrote: >Hi Eleni, >I believe it is not necessarily the complexity >of your question that is the problem here, it's >just really hard to imagine what you're doing, >or doing wrong. You want to present multiple >auditory stimuli - yes, slides are okay for >that, easier if you want to show visual stimuli >at the same time, but there's not much wrong >with the soundout thingy. What are you doing, >just added many different stimuli in a row on >the "timeline"? In such a case, I really would >like to point out that the "quick start guide" >is a really good place to start quickly, but if >you don't mind a lot of not always entirely >related blabbering, you might have a go at >http://www.cognitology.eu/pubs/AnE-Primer2009.pdf > instead. Some people told me they like it. > >Best, >Michiel > >Michiel Spapé >Research Fellow >Perception & Action group >University of Nottingham >School of Psychology >www.cognitology.eu > > >-----Original Message----- >From: e-prime at googlegroups.com >[mailto:e-prime at googlegroups.com] On Behalf Of Eleni >Sent: 03 April 2011 18:59 >To: E-Prime >Subject: Re: Auditory lexical decision task in e-prime > >Hi all, > >After working with the program, I have it playing using the slides. >The issue that I am currently having is that instead of allowing me to >make a judgment to each individual stimulus, it instead plays all of >the sound stimuli in a row without the chance for a response. I am not >sure how I can allow a response to be made to each auditory stimulus. > >Again, I'm very sorry for the basicness of this question. > >I also have a request in with the PST support team. > >Thank you so much, >Eleni -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From fluencystudy at gmail.com Mon Apr 4 20:03:11 2011 From: fluencystudy at gmail.com (signy) Date: Mon, 4 Apr 2011 13:03:11 -0700 Subject: programming a test for assessing order memory In-Reply-To: Message-ID: Thank you for your reply, Antonello. I am having trouble implementing this. Do you put this for the test phase? Is there a way I could look at your script? Best, Signy On Mar 25, 5:50 am, Antonello Puglia wrote: > Hi Signy, > I had the same problem, but with 9 pictures. I tried this and it works! > Check it out >  This can be done using a nested List object. For example, you would have > your TrialList set up with 9 attributes (e.g., Image1, Image2, etc or > words). In the Nested column of the TrialList, you would enter StimList. > This will create a new nested List object. Inside the StimList, add 8 rows > to make 9 total, and add a single attribute named "Stim". Under the Stim > attribute, list all of the possible image files that will be presented on > the Slide. Click the Property Pages icon and set the sampling to random. > > In the TrialList, you will use colon syntax to sample 9 items randomly from > the StimList. Under the Image1 attribute, enter [Stim:0] under Image2, enter > [Stim:1] and so on up to [Stim:8]. At run-time, E-Prime will select the > sequence of images randomly. > > On your Slide object, each SlideImage sub-object should have its filename > property set to [Image1] [Image2] and so on. E-Prime will randomly select > the image presented in each SlideImage, creating a different sequence for > each subject. > > Please be sure to take a look at the E-Prime User's Guide for more > information on nested List objects and colon syntax. > > I hope that this has been helpful. > Best regards                Antonello > 2011/3/24 signy > > > Hi all, > > I am having some trouble programming a new experiment. > > in this experiment, participants are shown 8 words, one at a time. > > in a test phase, they are then given 2,4 or 6 words and asked to state > > the order that these words were presented. > > > I can program the study phase fine, but I am unsure how to present > > multiple stim on one screen for the order test phase. > > The way I have it set up now is there are blocked test phases: > > arrange 2 words test phase > > arrange 4 words test phase > > arrange 6 words test phase > > > What I am unsure about is presenting 2,4or 6 words, randomly selected > > from the study list of 8 words on the screen at once (the response > > will be verbal, so input is not necessary). > > > Thanks for any help! > > > best, > > Signy > > > -- > > You received this message because you are subscribed to the Google Groups > > "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to > > e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/e-prime?hl=en. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From antonello.puglia at gmail.com Tue Apr 5 08:22:20 2011 From: antonello.puglia at gmail.com (Antonello Puglia) Date: Tue, 5 Apr 2011 10:22:20 +0200 Subject: programming a test for assessing order memory In-Reply-To: <2ada2aab-dbe7-45d9-9060-da9cd74b8fa8@s9g2000yqm.googlegroups.com> Message-ID: Dear Signy, I send you my recognition test. It's an italian version. At the end my participants have to write down the exact sequence of the objects they heard before. I used images + words. Good luck! 2011/4/4 signy > Thank you for your reply, Antonello. > > I am having trouble implementing this. Do you put this for the test > phase? Is there a way I could look at your script? > > Best, > Signy > > > > On Mar 25, 5:50 am, Antonello Puglia > wrote: > > Hi Signy, > > I had the same problem, but with 9 pictures. I tried this and it works! > > Check it out > > This can be done using a nested List object. For example, you would have > > your TrialList set up with 9 attributes (e.g., Image1, Image2, etc or > > words). In the Nested column of the TrialList, you would enter StimList. > > This will create a new nested List object. Inside the StimList, add 8 > rows > > to make 9 total, and add a single attribute named "Stim". Under the Stim > > attribute, list all of the possible image files that will be presented on > > the Slide. Click the Property Pages icon and set the sampling to random. > > > > In the TrialList, you will use colon syntax to sample 9 items randomly > from > > the StimList. Under the Image1 attribute, enter [Stim:0] under Image2, > enter > > [Stim:1] and so on up to [Stim:8]. At run-time, E-Prime will select the > > sequence of images randomly. > > > > On your Slide object, each SlideImage sub-object should have its filename > > property set to [Image1] [Image2] and so on. E-Prime will randomly select > > the image presented in each SlideImage, creating a different sequence for > > each subject. > > > > Please be sure to take a look at the E-Prime User's Guide for more > > information on nested List objects and colon syntax. > > > > I hope that this has been helpful. > > Best regards Antonello > > 2011/3/24 signy > > > > > Hi all, > > > I am having some trouble programming a new experiment. > > > in this experiment, participants are shown 8 words, one at a time. > > > in a test phase, they are then given 2,4 or 6 words and asked to state > > > the order that these words were presented. > > > > > I can program the study phase fine, but I am unsure how to present > > > multiple stim on one screen for the order test phase. > > > The way I have it set up now is there are blocked test phases: > > > arrange 2 words test phase > > > arrange 4 words test phase > > > arrange 6 words test phase > > > > > What I am unsure about is presenting 2,4or 6 words, randomly selected > > > from the study list of 8 words on the screen at once (the response > > > will be verbal, so input is not necessary). > > > > > Thanks for any help! > > > > > best, > > > Signy > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "E-Prime" group. > > > To post to this group, send email to e-prime at googlegroups.com. > > > To unsubscribe from this group, send email to > > > e-prime+unsubscribe at googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/e-prime?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: images.rar Type: application/rar Size: 189571 bytes Desc: not available URL: From pan_work at yahoo.Fr Wed Apr 6 19:23:36 2011 From: pan_work at yahoo.Fr (pan_work at yahoo.Fr) Date: Wed, 6 Apr 2011 12:23:36 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! Message-ID: Hi Dear, I send this mess because I need help. Im not a big user and just want to do something very very simple but I spend hours now and cannot find any good solution... To resume, I just want to show few pictures randomly in a sub object (no problem for this...) Then, I just want to ask people to choose one picture with the mouse and click on it. I just want to record the name of the pictures who have been clicked. That's all !!! Unfortunately, it seems to be something hard to do. I asked to the support EPRIME and people send me a experiment files, the name is "response aeras for mouse" but it seems to be so different from what we search... If someone knows a way... Cheers ¨Pierre -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pan_work at yahoo.Fr Wed Apr 6 19:50:36 2011 From: pan_work at yahoo.Fr (pan_work at yahoo.Fr) Date: Wed, 6 Apr 2011 12:50:36 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: Message-ID: When I look at DOHITTEST, I know there is a way to "simply record" in the data files the name of a jpeg present clicked from the sub object... -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Wed Apr 6 20:44:18 2011 From: liwenna at gmail.com (liwenna) Date: Wed, 6 Apr 2011 13:44:18 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: <8fd4754f-0098-4fc1-979c-08d8ad2837e9@a26g2000vbo.googlegroups.com> Message-ID: z0mg... don't panic!! Hi "Pierre, I you found the dohittest example you're nearly there! Implement it in an inline after the slide that you want to record the response to, do adjust the code to actually read the slide that you want it to read from (see caps in stringhitcode pasted below). Also: in your triallist create an attribute called 'Correctresp' in which you enter the filename of the .jpg that is the correct answer for each level. *********** 'Designate "theState" as the Default Slide State, which is the 'current, ActiveState on the Slide object "Stimulus" Dim theState as SlideState Set theState = ENTERNAMEOFSLIDEHERE.States("Default") Dim strHit As String Dim theMouseResponseData As MouseResponseData 'Was there a response? If ENTERNAMEOFSLIDEHERE.InputMasks.Responses.Count > 0 Then 'Get the mouse response Set theMouseResponseData = CMouseResponseData( ENTERNAMEOFSLIDEHERE.InputMasks.Responses(1)) 'Determine string name of SlideImage or SlideText object at 'mouse click coordinates. Assign that value to strHit strHit = theState.HitTest(theMouseResponseData.CursorX, theMouseResponseData.CursorY) 'Compare string name where mouse click occurred to CorrectAnswer 'attribute on each trial, and score response 'NOTE: This comparison is case sensitive If strHit = c.GetAttrib("Correctresp") Then Stimulus.ACC = 1 Else Stimulus.ACC = 0 End If End If c.SetAttrib "response", strHit ********* Do report back whether or not that solves your problem :) Best, liw On Apr 6, 9:50 pm, "pan_w... at yahoo.Fr" wrote: > When I look at DOHITTEST, I know there is a way to "simply record" in > the data files the name of a jpeg present clicked from the sub > object... -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Wed Apr 6 20:49:13 2011 From: liwenna at gmail.com (liwenna) Date: Wed, 6 Apr 2011 13:49:13 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: Message-ID: and I am making the same mistake as I did last time I posted this code >.< ***** If strHit = c.GetAttrib("Correctresp") Then Stimulus.ACC = 1 Else Stimulus.ACC = 0 End If ***** should read: ***** If strHit = c.GetAttrib("Correctresp") Then ENTERNAMEOFSLIDEHERE.ACC = 1 Else ENTERNAMEOFSLIDEHERE.ACC = 0 End If ***** On Apr 6, 10:44 pm, liwenna wrote: > z0mg... don't panic!! > > Hi "Pierre, > > I you found the dohittest example you're nearly there! Implement it in > an inline after the slide that you want to record the response to, do > adjust the code to actually read the slide that you want it to read > from (see caps in stringhitcode pasted below). Also: in your triallist > create an attribute called 'Correctresp' in which you enter the > filename of the .jpg that is the correct answer for each level. > > *********** > 'Designate "theState" as the Default Slide State, which is the > 'current, ActiveState on the Slide object "Stimulus" > Dim theState as SlideState > Set theState = ENTERNAMEOFSLIDEHERE.States("Default") > > Dim strHit As String > Dim theMouseResponseData As MouseResponseData > > 'Was there a response? > If  ENTERNAMEOFSLIDEHERE.InputMasks.Responses.Count > 0 Then > > 'Get the mouse response > Set theMouseResponseData = > CMouseResponseData( ENTERNAMEOFSLIDEHERE.InputMasks.Responses(1)) > > 'Determine string name of SlideImage or SlideText object at > 'mouse click coordinates. Assign that value to strHit > strHit = theState.HitTest(theMouseResponseData.CursorX, > theMouseResponseData.CursorY) > > 'Compare string name where mouse click occurred to CorrectAnswer > 'attribute on each trial, and score response > 'NOTE: This comparison is case sensitive > If strHit = c.GetAttrib("Correctresp") Then > Stimulus.ACC = 1 > Else > Stimulus.ACC = 0 > End If > > End If > c.SetAttrib "response", strHit > > ********* > > Do report back whether or not that solves your problem :) > > Best, > > liw > > On Apr 6, 9:50 pm, "pan_w... at yahoo.Fr" wrote: > > > When I look at DOHITTEST, I know there is a way to "simply record" in > > the data files the name of a jpeg present clicked from the sub > > object... -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pan_work at yahoo.Fr Thu Apr 7 18:08:44 2011 From: pan_work at yahoo.Fr (pan_work at yahoo.Fr) Date: Thu, 7 Apr 2011 11:08:44 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: <6fcb7e4e-8cd4-4e4a-9f63-4d66bc17d4f0@p3g2000vbv.googlegroups.com> Message-ID: Thanks a lot... but Im not shure to understand... Because there is no "correct response"... Imagine I have 5 pictures in the slide ? I will try to edit something with your informations thanks a lot... I already tried to adapt the hittest without any success... On 6 avr, 22:49, liwenna wrote: > and I am making the same mistake as I did last time I posted this code > > >.< > > ***** > If strHit = c.GetAttrib("Correctresp") Then > Stimulus.ACC = 1 > Else > Stimulus.ACC = 0 > End If > ***** > > should read: > > ***** > If strHit = c.GetAttrib("Correctresp") Then > ENTERNAMEOFSLIDEHERE.ACC = 1 > Else > ENTERNAMEOFSLIDEHERE.ACC = 0 > End If > ***** > > On Apr 6, 10:44 pm, liwenna wrote: > > > > > z0mg... don't panic!! > > > Hi "Pierre, > > > I you found the dohittest example you're nearly there! Implement it in > > an inline after the slide that you want to record the response to, do > > adjust the code to actually read the slide that you want it to read > > from (see caps in stringhitcode pasted below). Also: in your triallist > > create an attribute called 'Correctresp' in which you enter the > > filename of the .jpg that is the correct answer for each level. > > > *********** > > 'Designate "theState" as the Default Slide State, which is the > > 'current, ActiveState on the Slide object "Stimulus" > > Dim theState as SlideState > > Set theState = ENTERNAMEOFSLIDEHERE.States("Default") > > > Dim strHit As String > > Dim theMouseResponseData As MouseResponseData > > > 'Was there a response? > > If  ENTERNAMEOFSLIDEHERE.InputMasks.Responses.Count > 0 Then > > > 'Get the mouse response > > Set theMouseResponseData = > > CMouseResponseData( ENTERNAMEOFSLIDEHERE.InputMasks.Responses(1)) > > > 'Determine string name of SlideImage or SlideText object at > > 'mouse click coordinates. Assign that value to strHit > > strHit = theState.HitTest(theMouseResponseData.CursorX, > > theMouseResponseData.CursorY) > > > 'Compare string name where mouse click occurred to CorrectAnswer > > 'attribute on each trial, and score response > > 'NOTE: This comparison is case sensitive > > If strHit = c.GetAttrib("Correctresp") Then > > Stimulus.ACC = 1 > > Else > > Stimulus.ACC = 0 > > End If > > > End If > > c.SetAttrib "response", strHit > > > ********* > > > Do report back whether or not that solves your problem :) > > > Best, > > > liw > > > On Apr 6, 9:50 pm, "pan_w... at yahoo.Fr" wrote: > > > > When I look at DOHITTEST, I know there is a way to "simply record" in > > > the data files the name of a jpeg present clicked from the sub > > > object...- Masquer le texte des messages précédents - > > - Afficher le texte des messages précédents - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pan_work at yahoo.Fr Thu Apr 7 18:31:20 2011 From: pan_work at yahoo.Fr (pan_work at yahoo.Fr) Date: Thu, 7 Apr 2011 11:31:20 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: <6fcb7e4e-8cd4-4e4a-9f63-4d66bc17d4f0@p3g2000vbv.googlegroups.com> Message-ID: To explain... I have, for example, two images : a.jpg and b.jpg I want randomize the Left or right position of the pictures. So I create in the trial 2 attributes [stim1] and [stim2] and put it on 2 samples on the cycle. Now, it's OK, in my subobject I have two images directly load by this attributes... Then, people click by choice on the LEFT or the RIGHT image... there is no only one correct answer... if I create a third attribute, like correctanswer and specify that for example a.jpg is the correctanswer, I just have a "1" written on the datafiles... It's not enough for what I want to do... the problem come from the logical of a correctanswer... I don't know if I am enough clear ! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Fri Apr 8 16:51:31 2011 From: liwenna at gmail.com (liwenna) Date: Fri, 8 Apr 2011 09:51:31 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: <6692d707-37d7-41be-9ca9-522b8455c938@e9g2000vbk.googlegroups.com> Message-ID: Hiya Pierre, Then don't create the correctanswer attribute ;) Simply ditch these lines: *** 'Compare string name where mouse click occurred to CorrectAnswer 'attribute on each trial, and score response 'NOTE: This comparison is case sensitive If strHit = c.GetAttrib("Correctresp") Then Stimulus.ACC = 1 Else Stimulus.ACC = 0 End If ***** Do keep the line that reads: c.SetAttrib "response", strHit it should make an attribute called response appear in your log files telling you on which image the response was made. The "1" that you see in the attribute slidename.resp represents the left button of the mouse, if you would have clicked on the image with the right button then it would have read "2". Nothing useful there... ignore slidename.resp. best, AW On Apr 7, 8:31 pm, "pan_w... at yahoo.Fr" wrote: > To explain... > I have, for example, two images : a.jpg and b.jpg > I want randomize the Left or right position of the pictures. > So I create in the trial 2 attributes [stim1] and [stim2] and put it > on 2 samples on the cycle. > Now, it's OK, in my subobject I have two images directly load by this > attributes... > Then, people click by choice on the LEFT or the RIGHT image... there > is no only one correct answer... if I create a third attribute, like > correctanswer and specify that for example a.jpg is the correctanswer, > I just have a "1" written on the datafiles... It's not enough for what > I want to do... the problem come from the logical of a > correctanswer... I don't know if I am enough clear ! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From nusphd at gmail.com Mon Apr 11 05:22:23 2011 From: nusphd at gmail.com (Lidia Suarez) Date: Mon, 11 Apr 2011 13:22:23 +0800 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: <50a5fec0-186a-4f5e-a4d3-dd5a553b8fc2@e9g2000vbk.googlegroups.com> Message-ID: Thanks AW, As Pierre, I also had a similar problem. Thanks for the script, it has been very helpful. Regards, Lidia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pan_work at yahoo.Fr Tue Apr 12 08:53:34 2011 From: pan_work at yahoo.Fr (pan_work at yahoo.Fr) Date: Tue, 12 Apr 2011 01:53:34 -0700 Subject: Problem with the keyboard language Azerty or Aqerty Message-ID: Hi Dear Eprimers, ... I complete this morning my new experiment and eveything is working fine... Almost... Because I just have a little problem here, and I cannot find any informations to solve it. The subjects of the experiment will be French and in our country we use aquerty keyboard with accent like "é"or "à" or "è"... and by default EPRIME is set for azerty keyboard. Im looking to select the "good langugages key" (french) but cannot find the solution... If anyone knows how deal with that... Pierre -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Tue Apr 12 10:47:43 2011 From: liwenna at gmail.com (liwenna) Date: Tue, 12 Apr 2011 03:47:43 -0700 Subject: Problem with the keyboard language Azerty or Aqerty In-Reply-To: Message-ID: Hello Pierre, Do you need the aquerty keyboard for input by your subjects trough an echo? In that case I think that, unfortunately enough, there will be no solution for this problem. Not long ago there was a guy named Yoed on here that was trying the solve that same problem except that he needed hebrew input. Try a search on the word 'hebrew' in the search this group bar to see the small avalanche of posts that relate to that question. He had been in contact with PST on this one too and this is the answer he got from them: **** Are you using E-Prime v1.x or E-Prime 2.0? While E-Prime 2.0 is supported by the English/Western European versions of Windows XP and Vista, this really only applies to text that is displayed by the objects. That is, while the "Text" property of a TextDisplay will accept foreign characters, the other properties (including .Input and its related echo properties) will not. All non-English characters or accents will go unrecognized by E-Prime in the responses and in the text that is echoed to the screen. E-Prime 2.0 has resolved this to some degree by allowing non-English fonts to appear as responses in the data file (i.e., UNICODE fonts are permitted). However, the echo client will still only display English and the responses themselves will still be based on the QWERTY keyboard. You could get around this by manually echoing the subject's responses to the screen. For example, you could take the subject's input and then convert it to Hebrew in script, and then display this on screen (e.g., if the semicolon key is pressed, convert this to a specific character and display it on screen, etc). However, this can be fairly script intensive and would require that the Hebrew characters appear correctly in TextDisplay objects and/or Slide objects and appear correctly in InLine objects. If you are interested, I would recommend taking a look at SAMPLE:Process Responses Templatefor an example of how to change what is displayed on screen based on the subject's responses. Please let me know if you have any further questions. ***** I do remember that some people here suggested some alternative things to try but as far as I know Yoed never succeeded in having his participants enter hebrew answers in e-prime. Sorry to bring this bad news... Best, AW On Apr 12, 10:53 am, "pan_w... at yahoo.Fr" wrote: > Hi Dear Eprimers, ... > I complete this morning my new experiment and eveything is working > fine... Almost... Because I just have a little problem here, and I > cannot find any informations to solve it. The subjects of the > experiment will be French and in our country we use aquerty keyboard > with accent like "é"or "à" or "è"... and by default EPRIME is set for > azerty keyboard. Im looking to select the "good langugages > key" (french) but cannot find the solution... > > If anyone knows how deal with that... > > Pierre -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Tue Apr 12 10:49:43 2011 From: liwenna at gmail.com (liwenna) Date: Tue, 12 Apr 2011 03:49:43 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: Message-ID: You're welcome Lidia. Glad to have been of help. Happy testing! On Apr 11, 7:22 am, Lidia Suarez wrote: > Thanks AW, > > As Pierre, I also had a similar problem. Thanks for the script, it has been > very helpful. > > Regards, > Lidia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pan_work at yahoo.Fr Tue Apr 12 12:37:18 2011 From: pan_work at yahoo.Fr (pan_work at yahoo.Fr) Date: Tue, 12 Apr 2011 05:37:18 -0700 Subject: Problem with the keyboard language Azerty or Aqerty In-Reply-To: Message-ID: Thanks Liwenna, ... It seems very bad... In fact, my experiment is pretty simple, the task is about word to be completed by the subject. In the screen, a text like "unha_ _y" is showed and othen, on the same screen I ask to participants to write the word it could be, for each trial. The "wordstimulus" comes from a list, and I get attributes like the correct answer... here the correct answer is "unhappy"... Everything is OK with this task, I have the RT, the correct answer and the textanswer quoted by participants... the only problem is that when people quoted, is not the good language Keyboard !!! On 12 avr, 12:47, liwenna wrote: > Hello Pierre, > > Do you need the aquerty keyboard for input by your subjects trough an > echo? In that case I think that, unfortunately enough, there will be > no solution for this problem. > Not long ago there was a guy named Yoed on here that was trying the > solve that same problem except that he needed hebrew input. Try a > search on the word 'hebrew'  in the search this group bar to see the > small avalanche of posts that relate to that question. > > He had been in contact with PST on this one too and this is the answer > he got from them: > **** > Are you using E-Prime v1.x or E-Prime 2.0? While E-Prime 2.0 is > supported by > the English/Western European versions of Windows XP and Vista, this > really > only applies to text that is displayed by the objects. That is, while > the > "Text" property of a TextDisplay will accept foreign characters, the > other > properties (including .Input and its related echo properties) will > not. All > non-English characters or accents will go unrecognized by E-Prime in > the > responses and in the text that is echoed to the screen. > > E-Prime 2.0 has resolved this to some degree by allowing non-English > fonts > to appear as responses in the data file (i.e., UNICODE fonts are > permitted). > However, the echo client will still only display English and the > responses > themselves will still be based on the QWERTY keyboard. You could get > around > this by manually echoing the subject's responses to the screen. For > example, > you could take the subject's input and then convert it to Hebrew in > script, > and then display this on screen (e.g., if the semicolon key is > pressed, > convert this to a specific character and display it on screen, etc). > However, this can be fairly script intensive and would require that > the > Hebrew characters appear correctly in TextDisplay objects and/or Slide > objects and appear correctly in InLine objects. If you are interested, > I > would recommend taking a look at SAMPLE:Process Responses > Template Mode=View&SampleID=47>for > an example of how to change what is displayed on screen based on the > subject's responses. > > Please let me know if you have any further questions. > ***** > > I do remember that some people here suggested some alternative things > to try but as far as I know Yoed never succeeded in having his > participants enter hebrew answers in e-prime. > > Sorry to bring this bad news... > > Best, > > AW > > On Apr 12, 10:53 am, "pan_w... at yahoo.Fr" wrote: > > > > > Hi Dear Eprimers, ... > > I complete this morning my new experiment and eveything is working > > fine... Almost... Because I just have a little problem here, and I > > cannot find any informations to solve it. The subjects of the > > experiment will be French and in our country we use aquerty keyboard > > with accent like "é"or "à" or "è"... and by default EPRIME is set for > > azerty keyboard. Im looking to select the "good langugages > > key" (french) but cannot find the solution... > > > If anyone knows how deal with that... > > > Pierre- Masquer le texte des messages précédents - > > - Afficher le texte des messages précédents - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pan_work at yahoo.Fr Tue Apr 12 12:42:10 2011 From: pan_work at yahoo.Fr (pan_work at yahoo.Fr) Date: Tue, 12 Apr 2011 05:42:10 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: <63c1a1dc-3890-426e-9b73-2d2c07621dca@l6g2000vbn.googlegroups.com> Message-ID: I need to try that... Unfortunately I had not so much time so I found a solution with the VisualScale. I put number 1 and number 2 besides the pictures and ask to participants to don't click on the pictures but on the visualscale... Then If I got 5 images, I put a 5-likert visual click... Pretty artisanal but it worked for last week. But I want to do better. I need to try your solution Liwenna... On 12 avr, 12:49, liwenna wrote: > You're welcome Lidia. Glad to have been of help. > > Happy testing! > > On Apr 11, 7:22 am, Lidia Suarez wrote: > > > > > Thanks AW, > > > As Pierre, I also had a similar problem. Thanks for the script, it has been > > very helpful. > > > Regards, > > Lidia- Masquer le texte des messages précédents - > > - Afficher le texte des messages précédents - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From rendongcai at gmail.com Tue Apr 12 13:15:21 2011 From: rendongcai at gmail.com (Cai Rendong) Date: Tue, 12 Apr 2011 21:15:21 +0800 Subject: Has anyone used the automated reading/symmetry span task before? In-Reply-To: Message-ID: After the "get the experimenter" screen, you just press the SPACE bar and then you will get all the data of the subject. On Fri, Feb 4, 2011 at 2:17 AM, Xingyu wrote: > Hi, I am using the eprime version of automated reading/symmetry span > task developed by Attention & WM lab at GaTech. I have problem > terminating the task though. Every time it runs successfully to the > end screen told subjects to "get the experimenter", while I can do > nothing there but to hit ctrl+alt+shift to compulsorily terminate the > task, this resulted in not getting the summary data.... > I am just wondering if anyone has used that task before or if anyone > knows what the problem might be and the possible solutions. btw, I > only have the script for the task but not the .es file. > Thank you! > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- Rendong Cai Ph.D. candidate in Psycholinguistics, National Key Research Center for Linguistics and Applied Linguistics Office: R224,Teaching Building 1 , Guangdong University of Foreign Studies, Guangzhou, P.R. China, 510420. Email: rendongcai at gmail.com, rendongcai at 163.com Mobile: (0860)15820297444 -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Apr 12 16:27:29 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 12 Apr 2011 12:27:29 -0400 Subject: Problem with the keyboard language Azerty or Aqerty In-Reply-To: <082f0e13-622d-49ae-8ec3-35c948ec0ffd@o26g2000vby.googlegro ups.com> Message-ID: A bit of unsolicited technical explanation -- I think the keyboard layout limitation results from E-Prime using Microsoft DirectX and its virtual key codes. This does allow for enhanced keyboard performance, which we generally want for precise RT-type experiments (e.g., timing, also, can distinguish between left & right shift keys, etc.), but as we see here it may create other limitations with regard to handling alternate keyboard layouts. Would be nice to have this confirmed (or corrected) and further explained by PST staff... -- David McFarlane, Professional Faultfinder >Thanks Liwenna, >... It seems very bad... In fact, my experiment is pretty simple, the >task is about word to be completed by the subject. In the screen, a >text like "unha_ _y" is showed and othen, on the same screen I ask to >participants to write the word it could be, for each trial. The >"wordstimulus" comes from a list, and I get attributes like the >correct answer... here the correct answer is "unhappy"... >Everything is OK with this task, I have the RT, the correct answer and >the textanswer quoted by participants... the only problem is that when >people quoted, is not the good language Keyboard !!! > > >On 12 avr, 12:47, liwenna wrote: > > Hello Pierre, > > > > Do you need the aquerty keyboard for input by your subjects trough an > > echo? In that case I think that, unfortunately enough, there will be > > no solution for this problem. > > Not long ago there was a guy named Yoed on here that was trying the > > solve that same problem except that he needed hebrew input. Try a > > search on the word 'hebrew' in the search this group bar to see the > > small avalanche of posts that relate to that question. > > > > He had been in contact with PST on this one too and this is the answer > > he got from them: > > **** > > Are you using E-Prime v1.x or E-Prime 2.0? While E-Prime 2.0 is > > supported by > > the English/Western European versions of Windows XP and Vista, this > > really > > only applies to text that is displayed by the objects. That is, while > > the > > "Text" property of a TextDisplay will accept foreign characters, the > > other > > properties (including .Input and its related echo properties) will > > not. All > > non-English characters or accents will go unrecognized by E-Prime in > > the > > responses and in the text that is echoed to the screen. > > > > E-Prime 2.0 has resolved this to some degree by allowing non-English > > fonts > > to appear as responses in the data file (i.e., UNICODE fonts are > > permitted). > > However, the echo client will still only display English and the > > responses > > themselves will still be based on the QWERTY keyboard. You could get > > around > > this by manually echoing the subject's responses to the screen. For > > example, > > you could take the subject's input and then convert it to Hebrew in > > script, > > and then display this on screen (e.g., if the semicolon key is > > pressed, > > convert this to a specific character and display it on screen, etc). > > However, this can be fairly script intensive and would require that > > the > > Hebrew characters appear correctly in TextDisplay objects and/or Slide > > objects and appear correctly in InLine objects. If you are interested, > > I > > would recommend taking a look at SAMPLE:Process Responses > > > Template > Mode=View&SampleID=47>for > > an example of how to change what is displayed on screen based on the > > subject's responses. > > > > Please let me know if you have any further questions. > > ***** > > > > I do remember that some people here suggested some alternative things > > to try but as far as I know Yoed never succeeded in having his > > participants enter hebrew answers in e-prime. > > > > Sorry to bring this bad news... > > > > Best, > > > > AW > > > > On Apr 12, 10:53 am, "pan_w... at yahoo.Fr" wrote: > > > > > > > > > Hi Dear Eprimers, ... > > > I complete this morning my new experiment and eveything is working > > > fine... Almost... Because I just have a little problem here, and I > > > cannot find any informations to solve it. The subjects of the > > > experiment will be French and in our country we use aquerty keyboard > > > with accent like "é"or "à" or "è"... and by default EPRIME is set for > > > azerty keyboard. Im looking to select the "good langugages > > > key" (french) but cannot find the solution... > > > > > If anyone knows how deal with that... > > > > > Pierre- Masquer le texte des messages précédents - > > > > - Afficher le texte des messages précédents - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Tue Apr 12 17:09:35 2011 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 12 Apr 2011 18:09:35 +0100 Subject: Problem with the keyboard language Azerty or Aqerty In-Reply-To: <4da47d7e.c6c2e70a.479a.746eSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Hiya, As far as I know from Azerty keyboards, they generally have about as many keys as Qwerty ones, no? This should mean that, for the most part, a one to one mapping is possible (possibly unlike Hebrew keyboards)... If the echo is an issue, then you might as well work out some form of looping to do the echo object, replacing every keystroke: 1. Declare the final response as nothing at all: c.SetAttrib "FinalResponse", "" 2. Insert a Label, PreStimulusLabel for instance. 3. Here comes the stimulus, myStimulus. Underneath the word you show, the attribute [FinalResponse]. Which will be blank in the beginning. Only a single response is used. 4. Do this, but then use case for prettier: If myStimulus.RESP = "q" then c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "a" goto PreStimulusLabel end if If myStimulus.RESP = "w" then c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "z" goto PreStimulusLabel end if .... And in the case of {ENTER}, we just continue. Will take a bit of time to get that nice, but shouldn't be too difficult? Of course, bothering with the accents might be a bit too much. Seeing my name generally isn't spelled with one either, you'll have my sympathy :) Best, Mich Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology www.cognitology.eu -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of David McFarlane Sent: 12 April 2011 17:27 To: e-prime at googlegroups.com Subject: Re: Problem with the keyboard language Azerty or Aqerty A bit of unsolicited technical explanation -- I think the keyboard layout limitation results from E-Prime using Microsoft DirectX and its virtual key codes. This does allow for enhanced keyboard performance, which we generally want for precise RT-type experiments (e.g., timing, also, can distinguish between left & right shift keys, etc.), but as we see here it may create other limitations with regard to handling alternate keyboard layouts. Would be nice to have this confirmed (or corrected) and further explained by PST staff... -- David McFarlane, Professional Faultfinder >Thanks Liwenna, >... It seems very bad... In fact, my experiment is pretty simple, the >task is about word to be completed by the subject. In the screen, a >text like "unha_ _y" is showed and othen, on the same screen I ask to >participants to write the word it could be, for each trial. The >"wordstimulus" comes from a list, and I get attributes like the >correct answer... here the correct answer is "unhappy"... >Everything is OK with this task, I have the RT, the correct answer and >the textanswer quoted by participants... the only problem is that when >people quoted, is not the good language Keyboard !!! > > >On 12 avr, 12:47, liwenna wrote: > > Hello Pierre, > > > > Do you need the aquerty keyboard for input by your subjects trough an > > echo? In that case I think that, unfortunately enough, there will be > > no solution for this problem. > > Not long ago there was a guy named Yoed on here that was trying the > > solve that same problem except that he needed hebrew input. Try a > > search on the word 'hebrew' in the search this group bar to see the > > small avalanche of posts that relate to that question. > > > > He had been in contact with PST on this one too and this is the answer > > he got from them: > > **** > > Are you using E-Prime v1.x or E-Prime 2.0? While E-Prime 2.0 is > > supported by > > the English/Western European versions of Windows XP and Vista, this > > really > > only applies to text that is displayed by the objects. That is, while > > the > > "Text" property of a TextDisplay will accept foreign characters, the > > other > > properties (including .Input and its related echo properties) will > > not. All > > non-English characters or accents will go unrecognized by E-Prime in > > the > > responses and in the text that is echoed to the screen. > > > > E-Prime 2.0 has resolved this to some degree by allowing non-English > > fonts > > to appear as responses in the data file (i.e., UNICODE fonts are > > permitted). > > However, the echo client will still only display English and the > > responses > > themselves will still be based on the QWERTY keyboard. You could get > > around > > this by manually echoing the subject's responses to the screen. For > > example, > > you could take the subject's input and then convert it to Hebrew in > > script, > > and then display this on screen (e.g., if the semicolon key is > > pressed, > > convert this to a specific character and display it on screen, etc). > > However, this can be fairly script intensive and would require that > > the > > Hebrew characters appear correctly in TextDisplay objects and/or Slide > > objects and appear correctly in InLine objects. If you are interested, > > I > > would recommend taking a look at SAMPLE:Process Responses > > > Template > Mode=View&SampleID=47>for > > an example of how to change what is displayed on screen based on the > > subject's responses. > > > > Please let me know if you have any further questions. > > ***** > > > > I do remember that some people here suggested some alternative things > > to try but as far as I know Yoed never succeeded in having his > > participants enter hebrew answers in e-prime. > > > > Sorry to bring this bad news... > > > > Best, > > > > AW > > > > On Apr 12, 10:53 am, "pan_w... at yahoo.Fr" wrote: > > > > > > > > > Hi Dear Eprimers, ... > > > I complete this morning my new experiment and eveything is working > > > fine... Almost... Because I just have a little problem here, and I > > > cannot find any informations to solve it. The subjects of the > > > experiment will be French and in our country we use aquerty keyboard > > > with accent like "é"or "à" or "è"... and by default EPRIME is set for > > > azerty keyboard. Im looking to select the "good langugages > > > key" (french) but cannot find the solution... > > > > > If anyone knows how deal with that... > > > > > Pierre- Masquer le texte des messages précédents - > > > > - Afficher le texte des messages précédents - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From psycholika at gmail.com Wed Apr 13 15:31:36 2011 From: psycholika at gmail.com (Siatra Vasiliki) Date: Wed, 13 Apr 2011 08:31:36 -0700 Subject: Problem with the keyboard language Azerty or Aqerty In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E5100@EXCHANGE3.ad.nottingham.ac.uk> Message-ID: Hello, is this the same problem as with cyrillic font, or greek etc? Because, when I want to use cyrillic or greek fonts I just change the language for non-Unicode programs in my computer to the language that I want to use, and actually I use the E-Prime v1.x for these experiments without problem. All the best, Vasilik.ee On Apr 12, 8:09 pm, Michiel Spape wrote: > Hiya, > As far as I know from Azerty keyboards, they generally have about as many keys as Qwerty ones, no? This should mean that, for the most part, a one to one mapping is possible (possibly unlike Hebrew keyboards)... If the echo is an issue, then you might as well work out some form of looping to do the echo object, replacing every keystroke: > 1. Declare the final response as nothing at all: > c.SetAttrib "FinalResponse", "" > 2. Insert a Label, PreStimulusLabel for instance. > 3. Here comes the stimulus, myStimulus. Underneath the word you show, the attribute [FinalResponse]. Which will be blank in the beginning. Only a single response is used. > 4. Do this, but then use case for prettier:     > If myStimulus.RESP = "q" then >         c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "a" >         goto PreStimulusLabel > end if > If myStimulus.RESP = "w" then >         c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "z" >         goto PreStimulusLabel > end if > .... > > And in the case of {ENTER}, we just continue. Will take a bit of time to get that nice, but shouldn't be too difficult? Of course, bothering with the accents might be a bit too much. Seeing my name generally isn't spelled with one either, you'll have my sympathy :) > Best, > Mich > > Michiel Spapé > Research Fellow > Perception & Action group > University of Nottingham > School of Psychologywww.cognitology.eu > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of David McFarlane > Sent: 12 April 2011 17:27 > To: e-prime at googlegroups.com > Subject: Re: Problem with the keyboard language Azerty or Aqerty > > A bit of unsolicited technical explanation -- I > think the keyboard layout limitation results from > E-Prime using Microsoft DirectX and its virtual > key codes.  This does allow for enhanced keyboard > performance, which we generally want for precise > RT-type experiments (e.g., timing, also, can > distinguish between left & right shift keys, > etc.), but as we see here it may create other > limitations with regard to handling alternate keyboard layouts. > > Would be nice to have this confirmed (or > corrected) and further explained by PST staff... > > -- David McFarlane, Professional Faultfinder > > >Thanks Liwenna, > >... It seems very bad... In fact, my experiment is pretty simple, the > >task is about word to be completed by the subject. In the screen, a > >text like "unha_ _y" is showed and othen, on the same screen I ask to > >participants to write the word it could be, for each trial. The > >"wordstimulus" comes from a list, and I get attributes like the > >correct answer... here the correct answer is "unhappy"... > >Everything is OK with this task, I have the RT, the correct answer and > >the textanswer quoted by participants... the only problem is that when > >people quoted, is not the good language Keyboard  !!! > > >On 12 avr, 12:47, liwenna wrote: > > > Hello Pierre, > > > > Do you need the aquerty keyboard for input by your subjects trough an > > > echo? In that case I think that, unfortunately enough, there will be > > > no solution for this problem. > > > Not long ago there was a guy named Yoed on here that was trying the > > > solve that same problem except that he needed hebrew input. Try a > > > search on the word 'hebrew'  in the search this group bar to see the > > > small avalanche of posts that relate to that question. > > > > He had been in contact with PST on this one too and this is the answer > > > he got from them: > > > **** > > > Are you using E-Prime v1.x or E-Prime 2.0? While E-Prime 2.0 is > > > supported by > > > the English/Western European versions of Windows XP and Vista, this > > > really > > > only applies to text that is displayed by the objects. That is, while > > > the > > > "Text" property of a TextDisplay will accept foreign characters, the > > > other > > > properties (including .Input and its related echo properties) will > > > not. All > > > non-English characters or accents will go unrecognized by E-Prime in > > > the > > > responses and in the text that is echoed to the screen. > > > > E-Prime 2.0 has resolved this to some degree by allowing non-English > > > fonts > > > to appear as responses in the data file (i.e., UNICODE fonts are > > > permitted). > > > However, the echo client will still only display English and the > > > responses > > > themselves will still be based on the QWERTY keyboard. You could get > > > around > > > this by manually echoing the subject's responses to the screen. For > > > example, > > > you could take the subject's input and then convert it to Hebrew in > > > script, > > > and then display this on screen (e.g., if the semicolon key is > > > pressed, > > > convert this to a specific character and display it on screen, etc). > > > However, this can be fairly script intensive and would require that > > > the > > > Hebrew characters appear correctly in TextDisplay objects and/or Slide > > > objects and appear correctly in InLine objects. If you are interested, > > > I > > > would recommend taking a look at SAMPLE:Process Responses > > > Template > > Mode=View&SampleID=47>for > > > an example of how to change what is displayed on screen based on the > > > subject's responses. > > > > Please let me know if you have any further questions. > > > ***** > > > > I do remember that some people here suggested some alternative things > > > to try but as far as I know Yoed never succeeded in having his > > > participants enter hebrew answers in e-prime. > > > > Sorry to bring this bad news... > > > > Best, > > > > AW > > > > On Apr 12, 10:53 am, "pan_w... at yahoo.Fr" wrote: > > > > > Hi Dear Eprimers, ... > > > > I complete this morning my new experiment and eveything is working > > > > fine... Almost... Because I just have a little problem here, and I > > > > cannot find any informations to solve it. The subjects of the > > > > experiment will be French and in our country we use aquerty keyboard > > > > with accent like "é"or "à" or "è"... and by default EPRIME is set for > > > > azerty keyboard. Im looking to select the "good langugages > > > > key" (french) but cannot find the solution... > > > > > If anyone knows how deal with that... > > > > > Pierre- Masquer le texte des messages précédents - > > > > - Afficher le texte des messages précédents - > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Jedema at pitt.edu Wed Apr 13 19:27:23 2011 From: Jedema at pitt.edu (Hank Jedema) Date: Wed, 13 Apr 2011 12:27:23 -0700 Subject: synchronize event markers with refresh rate In-Reply-To: Message-ID: Thanks Paul. I did incorporate your recommendation into my program. However, there are still some issues unresolved. So I use the OnsetSignalDelay command for the event markers associated with the appearance of stimuli on the screen and I still use the writeport command to send event markers associated with the timing of touch screen responses. Can the OnsetSignalDelay command address multiple "pins" (OnsetSignalData) in its output ? The signal that E-prime sends to the other PC is actually an "8-bit strobe" which requires a "strobe signal" to be sent immediately after the 8-bit strobe. Currently it seems that the strobed event marker is not received until the end of the actual stimulus because the strobe signal is not received until an inline immediately after the stimulus. Is there a way to set OnsetSignalData to address two pins (one included in the strobe (parallel port output pins 2-9 (= D0-D7 = &H378 1-255) and one on parallel port pin 1 (=C0, &H378+2) ? This may sound complicated but we have used this approach successfully as a way to communicate between systems where the timing was not as critical. Hank On Mar 30, 12:40 pm, Paul Groot wrote: > Hi Hank, > > When using event markers for visual stimuli, you never should use the > writeport function. This is because (in most cases) you would like to > present the visual stimulus during the short refresh fase of the > display. This is the default case when onset sync is set to vertical > blank. (As David already explained!) If the stimulus is not synced > this way, you will end up with an incomplete first frame (flickering). > So, in most cases this causes unpredictable onset delays. Therfore, > any writeport call will be executed to early, because eprime will hold > the image presentation until the next refresh occurs (=OnsetDelay). > So, just use the Onset/Offset properties described in the previous > emails. The OnsetSignal will automatically generate a trigger as soon > as the image is presented. (I.e. EPrime will automatically sync the > implicit writeport command properly) > > Also: Preparation of  the image (loading, uncompressing, scaling, ...) > could be performed during a so called pre-release period. This period > can be defined in the object just before the stimulus. This is advised > for accurate onset times because image preparation time is NOT fixed > in general. However, be carefull if you put any inline script between > this object and the stimulus. (It will be executed at the start of the > pre-release period!) > > best > paul > > 2011/3/30 Hank Jedema : > > > > > > > > > Thanks to Davis, Baris, and Paul for your quick responses. > > I used a writeport command in my code to send my event markers to my > > recording system. I will have to look up what the exact loading time > > of an image on my Elo Carroll touch screen is, because I did not > > adjust for that (fixed) delay yet. > > I based my question on the timing of the event markers on the > > following: I collect multiple event markers for both the stimulus > > appearance as well as the response timing using a electrophysiology > > rig with sub-millisecond (<0.15 msec) timing accuracy. When I compare > > the time difference between 2 event markers from touch screen > > responses it seems that Eprime and my Plexon rig correspond nicely > > (<1msec difference). When I compare the time difference between an > > event marker from a stimulus appearance and a touch screen response, > > there is a much greater difference (10-18msec). On a trial by trial > > basis the difference between the two event markers seems to match the > > stimulus.onset delay listed in the Eprime output. Based on this, I > > believe that the event marker sent out by my E-prime code precedes the > > appearance of the stimulus on the screen. I will try the suggestion to > > use an inline as soon as the stimulus is on the screen next week. I > > will also check on the thread that David provided and post my results. > > > Best, > > Hank > > > On Mar 30, 2:39 am, Paul Groot wrote: > >> Hi Hank, > > >> The event markers should be in sync when you prepare the markers using > >> the following functions: > > >> Stim.OffsetSignalEnabled = True > >> Stim.OnsetSignalEnabled = True > >> Stim.OffsetSignalPort = &H378 > >> Stim.OnsetSignalPort = &H378 > >> Stim.OffsetSignalData = &H00 > >> Stim.OnsetSignalData = &HFF  ' < this is your onset code in hexadedimal notation > > >> Where Stim is your display object. > > >> Most flatscreens have an onset delay of a few milliseconds, so this > >> would be a fixed delay caused by the properties of the display. > > >> Best, > >> Paul > > >> 2011/3/29 Hank Jedema : > > >> > Hi All, > > >> > I am trying to run a stop signal response task while recording > >> > electrophysiological activity on another setup. In order to get > >> > synchronization of behavior with the timing of my recordings, I have E- > >> > prime sent out event markers via the parallel port to an input of my > >> > recording device. It seems that this works well responses, but it > >> > seems that E-prime sends out the event markers for the display of > >> > stimuli before the stimulus actually appears on the screen: the > >> > eventmarker/timestamp is sent when the code issues the request for the > >> > stimulus to appear, rather than when the stimulus actually appears on > >> > the screen (i.e at the vertical blank/screen refresh after the > >> > stimulus.onset delay). Is there a way to get the event marker signal > >> > to synchronize with the actual appearance of the stimulus or is this > >> > something that can only be corrected offline by correcting the > >> > timestamps for stimulus appearance with their onset delay ? > > >> > Thanks very much for your help. > > >> > Hank > > >> > -- > >> > You received this message because you are subscribed to the Google Groups "E-Prime" group. > >> > To post to this group, send email to e-prime at googlegroups.com. > >> > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > >> > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From jie.liu.psych at gmail.com Wed Apr 13 22:20:09 2011 From: jie.liu.psych at gmail.com (Karl) Date: Wed, 13 Apr 2011 15:20:09 -0700 Subject: negative onsetdelay& log with prerelease Message-ID: Hello, all We just got a new laptop (win7) and installed the eprime (professional2.0). Our fmri paradigm is relatively simple--every trial has two components: 1) a fixation period with duration varying from 2000 to 4000ms 2) a pic presentation for 2000ms during which a response of button pressing is collected. 1) We tried to prerelease the pic, but whatever the prerelease number is, there are still lots of non-zeros in the pic-onsetdelay log file. They are generally less than 20ms, but more concerning is that there is even negative onset delay, like -5 or -11. What could the problem be? 2) if we set the pre-release too long, it seems to disrupt logging the response we collect during pic presentation. For our case, should we use prelease of pic or not? If not, how can we still ensure pic onset is accurate? Chapter 3 is quite unclear about this. 3) It is suggested here to use cumulative timing code for fMRI. Just curious about shorting the stimulus presentation duration is less concerning in fMRI? Thanks in advance Karl -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Thu Apr 14 12:36:30 2011 From: liwenna at gmail.com (liwenna) Date: Thu, 14 Apr 2011 05:36:30 -0700 Subject: Problem with the keyboard language Azerty or Aqerty In-Reply-To: Message-ID: Hello Vasilik, but is it then also possible for your participants to enter text in cyrilic? I think the specific problem here lies with the 'echo object' (that shows participants what they're typing on the display) and not so much with simply 'presenting text'. If it does: then that would be awesome! On Apr 13, 5:31 pm, Siatra Vasiliki wrote: > Hello, > > is this the same problem as with cyrillic font, or greek etc? > Because, when I want to use cyrillic or greek fonts I just change the > language for non-Unicode programs in my computer to the language that > I want to use, and actually I use the E-Prime v1.x for these > experiments without problem. > > All the best, > Vasilik.ee > > On Apr 12, 8:09 pm, Michiel Spape > wrote: > > > Hiya, > > As far as I know from Azerty keyboards, they generally have about as many keys as Qwerty ones, no? This should mean that, for the most part, a one to one mapping is possible (possibly unlike Hebrew keyboards)... If the echo is an issue, then you might as well work out some form of looping to do the echo object, replacing every keystroke: > > 1. Declare the final response as nothing at all: > > c.SetAttrib "FinalResponse", "" > > 2. Insert a Label, PreStimulusLabel for instance. > > 3. Here comes the stimulus, myStimulus. Underneath the word you show, the attribute [FinalResponse]. Which will be blank in the beginning. Only a single response is used. > > 4. Do this, but then use case for prettier:     > > If myStimulus.RESP = "q" then > >         c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "a" > >         goto PreStimulusLabel > > end if > > If myStimulus.RESP = "w" then > >         c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "z" > >         goto PreStimulusLabel > > end if > > .... > > > And in the case of {ENTER}, we just continue. Will take a bit of time to get that nice, but shouldn't be too difficult? Of course, bothering with the accents might be a bit too much. Seeing my name generally isn't spelled with one either, you'll have my sympathy :) > > Best, > > Mich > > > Michiel Spapé > > Research Fellow > > Perception & Action group > > University of Nottingham > > School of Psychologywww.cognitology.eu > > > -----Original Message----- > > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of David McFarlane > > Sent: 12 April 2011 17:27 > > To: e-prime at googlegroups.com > > Subject: Re: Problem with the keyboard language Azerty or Aqerty > > > A bit of unsolicited technical explanation -- I > > think the keyboard layout limitation results from > > E-Prime using Microsoft DirectX and its virtual > > key codes.  This does allow for enhanced keyboard > > performance, which we generally want for precise > > RT-type experiments (e.g., timing, also, can > > distinguish between left & right shift keys, > > etc.), but as we see here it may create other > > limitations with regard to handling alternate keyboard layouts. > > > Would be nice to have this confirmed (or > > corrected) and further explained by PST staff... > > > -- David McFarlane, Professional Faultfinder > > > >Thanks Liwenna, > > >... It seems very bad... In fact, my experiment is pretty simple, the > > >task is about word to be completed by the subject. In the screen, a > > >text like "unha_ _y" is showed and othen, on the same screen I ask to > > >participants to write the word it could be, for each trial. The > > >"wordstimulus" comes from a list, and I get attributes like the > > >correct answer... here the correct answer is "unhappy"... > > >Everything is OK with this task, I have the RT, the correct answer and > > >the textanswer quoted by participants... the only problem is that when > > >people quoted, is not the good language Keyboard  !!! > > > >On 12 avr, 12:47, liwenna wrote: > > > > Hello Pierre, > > > > > Do you need the aquerty keyboard for input by your subjects trough an > > > > echo? In that case I think that, unfortunately enough, there will be > > > > no solution for this problem. > > > > Not long ago there was a guy named Yoed on here that was trying the > > > > solve that same problem except that he needed hebrew input. Try a > > > > search on the word 'hebrew'  in the search this group bar to see the > > > > small avalanche of posts that relate to that question. > > > > > He had been in contact with PST on this one too and this is the answer > > > > he got from them: > > > > **** > > > > Are you using E-Prime v1.x or E-Prime 2.0? While E-Prime 2.0 is > > > > supported by > > > > the English/Western European versions of Windows XP and Vista, this > > > > really > > > > only applies to text that is displayed by the objects. That is, while > > > > the > > > > "Text" property of a TextDisplay will accept foreign characters, the > > > > other > > > > properties (including .Input and its related echo properties) will > > > > not. All > > > > non-English characters or accents will go unrecognized by E-Prime in > > > > the > > > > responses and in the text that is echoed to the screen. > > > > > E-Prime 2.0 has resolved this to some degree by allowing non-English > > > > fonts > > > > to appear as responses in the data file (i.e., UNICODE fonts are > > > > permitted). > > > > However, the echo client will still only display English and the > > > > responses > > > > themselves will still be based on the QWERTY keyboard. You could get > > > > around > > > > this by manually echoing the subject's responses to the screen. For > > > > example, > > > > you could take the subject's input and then convert it to Hebrew in > > > > script, > > > > and then display this on screen (e.g., if the semicolon key is > > > > pressed, > > > > convert this to a specific character and display it on screen, etc). > > > > However, this can be fairly script intensive and would require that > > > > the > > > > Hebrew characters appear correctly in TextDisplay objects and/or Slide > > > > objects and appear correctly in InLine objects. If you are interested, > > > > I > > > > would recommend taking a look at SAMPLE:Process Responses > > > > Template > > > Mode=View&SampleID=47>for > > > > an example of how to change what is displayed on screen based on the > > > > subject's responses. > > > > > Please let me know if you have any further questions. > > > > ***** > > > > > I do remember that some people here suggested some alternative things > > > > to try but as far as I know Yoed never succeeded in having his > > > > participants enter hebrew answers in e-prime. > > > > > Sorry to bring this bad news... > > > > > Best, > > > > > AW > > > > > On Apr 12, 10:53 am, "pan_w... at yahoo.Fr" wrote: > > > > > > Hi Dear Eprimers, ... > > > > > I complete this morning my new experiment and eveything is working > > > > > fine... Almost... Because I just have a little problem here, and I > > > > > cannot find any informations to solve it. The subjects of the > > > > > experiment will be French and in our country we use aquerty keyboard > > > > > with accent like "é"or "à" or "è"... and by default EPRIME is set for > > > > > azerty keyboard. Im looking to select the "good langugages > > > > > key" (french) but cannot find the solution... > > > > > > If anyone knows how deal with that... > > > > > > Pierre- Masquer le texte des messages précédents - > > > > > - Afficher le texte des messages précédents - > > > -- > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > > This message has been checked for viruses but the contents of an attachment > > may still contain software viruses which could damage your computer system: > > you are advised to perform your own checks. Email communications with the > > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From vera.donk at googlemail.com Thu Apr 14 14:27:06 2011 From: vera.donk at googlemail.com (Vera) Date: Thu, 14 Apr 2011 07:27:06 -0700 Subject: Sound on button press Message-ID: Hi group! I already got some useful help here about a year ago and everything worked fine (after a while you kind of get the "hang" of eprime...;-) ), but now I seem to run into a problem (which actually seems a very easy-to-do-thing to me, but I haven't figured out a way to do this yet). I show participants an image on a slide for 2000 ms They have to answer by pushing a button whether a target is present (if there is no target, they shouldn't do anything -> typical go-nogo task). The image will however stay visible 2000 ms independent of their answer (every trial = 2000 ms of image). Now, as this is all taking place in a driving environment, where quite a lot is going on, I would like to give out a sound once a button is pushed (but the image still needs to stay there!). I of course have the option of using a feedback-display, but then I only get the sound, once the slide disappears. I really would like to have the sound on button press, just to confirm the participant "ok, noticed your response" (or not: there will not be sound in absence of a response). Any ideas on how to do this? Thanks in advance! Greetings, Vera -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From matthewdwood82 at gmail.com Thu Apr 14 14:27:42 2011 From: matthewdwood82 at gmail.com (Matthew) Date: Thu, 14 Apr 2011 07:27:42 -0700 Subject: Problem with the keyboard language Azerty or Aqerty In-Reply-To: Message-ID: I was hunting around for a solution to a similar keyboard mapping problem, and found this script that may be helpful. I think the language in their example experiment is French, so you may not have to modify that much. http://webloria.loria.fr/~quintonj/index.php/Research/EKIS Haven't looked at it (or much of this thread, actually) in great detail, but it looks like it declares two strings with the AZERTY English & corresponding AZERTY French characters, and then converts each character by finding the index of its position in one string and getting the corresponding character in the other. Good luck, -Matt On Apr 14, 8:36 am, liwenna wrote: > Hello Vasilik, > > but is it then also possible for your participants to enter text in > cyrilic? I think the specific problem here lies with the 'echo > object' (that shows participants what they're typing on the display) > and not so much with simply 'presenting text'. > > If it does: then that would be awesome! > > On Apr 13, 5:31 pm, Siatra Vasiliki wrote: > > > > > > > > > Hello, > > > is this the same problem as with cyrillic font, or greek etc? > > Because, when I want to use cyrillic or greek fonts I just change the > > language for non-Unicode programs in my computer to the language that > > I want to use, and actually I use the E-Prime v1.x for these > > experiments without problem. > > > All the best, > > Vasilik.ee > > > On Apr 12, 8:09 pm, Michiel Spape > > wrote: > > > > Hiya, > > > As far as I know from Azerty keyboards, they generally have about as many keys as Qwerty ones, no? This should mean that, for the most part, a one to one mapping is possible (possibly unlike Hebrew keyboards)... If the echo is an issue, then you might as well work out some form of looping to do the echo object, replacing every keystroke: > > > 1. Declare the final response as nothing at all: > > > c.SetAttrib "FinalResponse", "" > > > 2. Insert a Label, PreStimulusLabel for instance. > > > 3. Here comes the stimulus, myStimulus. Underneath the word you show, the attribute [FinalResponse]. Which will be blank in the beginning. Only a single response is used. > > > 4. Do this, but then use case for prettier:     > > > If myStimulus.RESP = "q" then > > >         c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "a" > > >         goto PreStimulusLabel > > > end if > > > If myStimulus.RESP = "w" then > > >         c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "z" > > >         goto PreStimulusLabel > > > end if > > > .... > > > > And in the case of {ENTER}, we just continue. Will take a bit of time to get that nice, but shouldn't be too difficult? Of course, bothering with the accents might be a bit too much. Seeing my name generally isn't spelled with one either, you'll have my sympathy :) > > > Best, > > > Mich > > > > Michiel Spapé > > > Research Fellow > > > Perception & Action group > > > University of Nottingham > > > School of Psychologywww.cognitology.eu > > > > -----Original Message----- > > > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of David McFarlane > > > Sent: 12 April 2011 17:27 > > > To: e-prime at googlegroups.com > > > Subject: Re: Problem with the keyboard language Azerty or Aqerty > > > > A bit of unsolicited technical explanation -- I > > > think the keyboard layout limitation results from > > > E-Prime using Microsoft DirectX and its virtual > > > key codes.  This does allow for enhanced keyboard > > > performance, which we generally want for precise > > > RT-type experiments (e.g., timing, also, can > > > distinguish between left & right shift keys, > > > etc.), but as we see here it may create other > > > limitations with regard to handling alternate keyboard layouts. > > > > Would be nice to have this confirmed (or > > > corrected) and further explained by PST staff... > > > > -- David McFarlane, Professional Faultfinder > > > > >Thanks Liwenna, > > > >... It seems very bad... In fact, my experiment is pretty simple, the > > > >task is about word to be completed by the subject. In the screen, a > > > >text like "unha_ _y" is showed and othen, on the same screen I ask to > > > >participants to write the word it could be, for each trial. The > > > >"wordstimulus" comes from a list, and I get attributes like the > > > >correct answer... here the correct answer is "unhappy"... > > > >Everything is OK with this task, I have the RT, the correct answer and > > > >the textanswer quoted by participants... the only problem is that when > > > >people quoted, is not the good language Keyboard  !!! > > > > >On 12 avr, 12:47, liwenna wrote: > > > > > Hello Pierre, > > > > > > Do you need the aquerty keyboard for input by your subjects trough an > > > > > echo? In that case I think that, unfortunately enough, there will be > > > > > no solution for this problem. > > > > > Not long ago there was a guy named Yoed on here that was trying the > > > > > solve that same problem except that he needed hebrew input. Try a > > > > > search on the word 'hebrew'  in the search this group bar to see the > > > > > small avalanche of posts that relate to that question. > > > > > > He had been in contact with PST on this one too and this is the answer > > > > > he got from them: > > > > > **** > > > > > Are you using E-Prime v1.x or E-Prime 2.0? While E-Prime 2.0 is > > > > > supported by > > > > > the English/Western European versions of Windows XP and Vista, this > > > > > really > > > > > only applies to text that is displayed by the objects. That is, while > > > > > the > > > > > "Text" property of a TextDisplay will accept foreign characters, the > > > > > other > > > > > properties (including .Input and its related echo properties) will > > > > > not. All > > > > > non-English characters or accents will go unrecognized by E-Prime in > > > > > the > > > > > responses and in the text that is echoed to the screen. > > > > > > E-Prime 2.0 has resolved this to some degree by allowing non-English > > > > > fonts > > > > > to appear as responses in the data file (i.e., UNICODE fonts are > > > > > permitted). > > > > > However, the echo client will still only display English and the > > > > > responses > > > > > themselves will still be based on the QWERTY keyboard. You could get > > > > > around > > > > > this by manually echoing the subject's responses to the screen. For > > > > > example, > > > > > you could take the subject's input and then convert it to Hebrew in > > > > > script, > > > > > and then display this on screen (e.g., if the semicolon key is > > > > > pressed, > > > > > convert this to a specific character and display it on screen, etc). > > > > > However, this can be fairly script intensive and would require that > > > > > the > > > > > Hebrew characters appear correctly in TextDisplay objects and/or Slide > > > > > objects and appear correctly in InLine objects. If you are interested, > > > > > I > > > > > would recommend taking a look at SAMPLE:Process Responses > > > > > Template > > > > Mode=View&SampleID=47>for > > > > > an example of how to change what is displayed on screen based on the > > > > > subject's responses. > > > > > > Please let me know if you have any further questions. > > > > > ***** > > > > > > I do remember that some people here suggested some alternative things > > > > > to try but as far as I know Yoed never succeeded in having his > > > > > participants enter hebrew answers in e-prime. > > > > > > Sorry to bring this bad news... > > > > > > Best, > > > > > > AW > > > > > > On Apr 12, 10:53 am, "pan_w... at yahoo.Fr" wrote: > > > > > > > Hi Dear Eprimers, ... > > > > > > I complete this morning my new experiment and eveything is working > > > > > > fine... Almost... Because I just have a little problem here, and I > > > > > > cannot find any informations to solve it. The subjects of the > > > > > > experiment will be French and in our country we use aquerty keyboard > > > > > > with accent like "é"or "à" or "è"... and by default EPRIME is set for > > > > > > azerty keyboard. Im looking to select the "good langugages > > > > > > key" (french) but cannot find the solution... > > > > > > > If anyone knows how deal with that... > > > > > > > Pierre- Masquer le texte des messages précédents - > > > > > > - Afficher le texte des messages précédents - > > > > -- > > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > > To post to this group, send email to e-prime at googlegroups.com. > > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > > > This message has been checked for viruses but the contents of an attachment > > > may still contain software viruses which could damage your computer system: > > > you are advised to perform your own checks. Email communications with the > > > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From matthewdwood82 at gmail.com Thu Apr 14 14:39:42 2011 From: matthewdwood82 at gmail.com (Matthew) Date: Thu, 14 Apr 2011 07:39:42 -0700 Subject: string input with spaces Message-ID: Hi all, I have trouble with a problem solving experiment a student in a class I'm TAing put together. Rebus puzzles (e.g. http://preview.tinyurl.com/3s73mwj) are being used as the task. The answers to these puzzles are short idioms or sayings (e.g. "a cut above the rest"). The script has a slide which presents the puzzle stimulus (picture file) and echoes input from the keyboard. Problem is, when the answer held in our [CorrectAnswer] attribute is a string that contains spaces, we either get an error message "Correct is not part of allowable," or the script fails to recognize that a correct answer has been provided. I've mucked around with various settings of allowable input in the Duration/Input and Echo submenus of the SlideObject, and am having trouble remembering which mapped to which. I think the problem is somewhere in how the input is being parsed and compared to the value held in the list attribute [CorrectAnswer]. Our current workaround is to omit spaces from all responses, but it seems like the fix should be fairly simple (whatever it is). Am happy to send a copy of the experiment on request. Thanks for your help, -Matt -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Thu Apr 14 15:53:02 2011 From: liwenna at gmail.com (liwenna) Date: Thu, 14 Apr 2011 08:53:02 -0700 Subject: string input with spaces In-Reply-To: Message-ID: Hi Matt, Not sure this helps (you're no spaces work around sounds fine to me, too?) but here are my 2 cents: In your current set-up: how does the slide advance/terminate after the subject has provided his/her answer? I am kinda guessing that you're using a double input mask, one for the keyboard and it's echo and one for the mouse that has a termination response. Is this the case? For some reason.. don't ask me why, I see that in such a case at the slide termination the mouse response (1 for left and 2 for right button) is logged into the attribute slidename.resp... when calculating the accuracy (slidename.acc) e-prime compares slidename.resp with slidename.cresp... obviously, if slidename.resp contains value "1", this does not match with your string answer. So... ermm... remove the mouse input mask and make for instance the right arrow the termination response (enter {rightarrow} into the box termination response). Now your pp can type their answer and then press right arrow to continue to the next slide and their typed answer remains logged into slidename.resp and can be compared to slidename.cresp. Do note that the echo logs all keys pressed including function keys: {SPACE} and also the {RIGHTARROW} that pp press to terminate the slide. So in your correctanswer the answer: "This answer contains a space", should read: This{SPACE}answer{SPACE}contains{SPACE} a{SPACE}space{RIGHTARROW} . If I do that I can get e-prime to log my response (this answer contains a space) as correct... but I'd reckon this method is pretty harsh, also when it comes to pp making typoes and such... best, liw On Apr 14, 4:39 pm, Matthew wrote: > Hi all, > > I have trouble with a problem solving experiment a student in a class > I'm TAing put together.  Rebus puzzles (e.g.http://preview.tinyurl.com/3s73mwj) > are being used as the task.  The answers to these puzzles are short > idioms or sayings (e.g. "a cut above the rest"). > > The script has a slide which presents the puzzle stimulus (picture > file) and echoes input from the keyboard.  Problem is, when the answer > held in  our [CorrectAnswer] attribute is a string that contains > spaces, we either get an error message "Correct is not part of > allowable," or the script fails to recognize that a correct answer has > been provided.  I've mucked around with various settings of allowable > input in the Duration/Input and Echo submenus of the SlideObject, and > am having trouble remembering which mapped to which. > > I think the problem is somewhere in how the input is being parsed and > compared to the value held in the list attribute [CorrectAnswer].  Our > current workaround is to omit spaces from all responses, but it seems > like the fix should be fairly simple (whatever it is).  Am happy to > send a copy of the experiment on request. > > Thanks for your help, > -Matt -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Thu Apr 14 16:00:09 2011 From: liwenna at gmail.com (liwenna) Date: Thu, 14 Apr 2011 09:00:09 -0700 Subject: Sound on button press In-Reply-To: <91957209-11f6-450e-a9a1-42ac9f65bccc@z31g2000vbs.googlegroups.com> Message-ID: Hi Vera! first thing that comes to mind (I think something like this was discussed here before... ages ago). Create a second, similar, slide right after the current one you have now but add your sound object to this slide so that the sound is heard when this slide appears. Inbetween the two slides place an inline that sets the second slide's duration to the remainder of the 2000 ms (slide2.duration = 2000 - slide1.duration) and perhaps add a goto label line to entirely skip the second slide in case of no response... i.e. "if slide1.resp = "" then goto jumplabel", place the label called jumplabel after the second slide . A quick and dirty suggestion, I hope it helps you, though. best, liw On Apr 14, 4:27 pm, Vera wrote: > Hi group! > > I already got some useful help here about a year ago and everything > worked fine (after a while you kind of get the "hang" of > eprime...;-) ), but now I seem to run into a problem (which actually > seems a very easy-to-do-thing to me, but I haven't figured out a way > to do this yet). > > I show participants an image on a slide for 2000 ms > > They have to answer by pushing a button whether a target is present > (if there is no target, they shouldn't do anything -> typical go-nogo > task). The image will however stay visible 2000 ms independent of > their answer (every trial = 2000 ms of image). > > Now, as this is all taking place in a driving environment, where quite > a lot is going on, I would like to give out a sound once a button is > pushed (but the image still needs to stay there!). > > I of course have the option of using a feedback-display, but then I > only get the sound, once the slide disappears. > > I really would like to have the sound on button press, just to confirm > the participant "ok, noticed your response" (or not: there will not be > sound in absence of a response). > > Any ideas on how to do this? > > Thanks in advance! > > Greetings, > Vera -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Apr 14 20:09:36 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 14 Apr 2011 16:09:36 -0400 Subject: Wisconsin card sorting test Message-ID: I have gotten several direct messages about this project, so perhaps I should post a public update. First, thank you to everyone who has expressed an interest in this. Sadly, by the time I got the help that I requested and found the needed materials, my window of opportunity passed and I had to move on to other matters while leaving this project undone. I hope to return to it at a later time, but I cannot say when that would be. Aside from taking time out to write the code (greatly simplified since the current canonical version uses a fixed card sequence, unlike the original research versions), one particular roadblock I face would be making the stimulus materials. Several folks have kindly found and pointed out the WCST materials available through http://pebl.sourceforge.net/battery.html ; I wish to make clear, however, that those materials significantly depart from the standard cards and are entirely unsuited to my project. (I would call their program "WCST-like", not a true WCST. I aim for something higher in my program.) For those who want a fully automated WCST and can spend some money, please note that you may purchase a commercial (and non-E-Prime) version through Psychological Assessment Resources, Inc. (http://www4.parinc.com/ ). Once again, thanks to everyone for your interest, and I will keep this thread updated whenever I should make progress. -- David McFarlane, Professional Faultfinder On Sep 3 2010, 12:28 pm, David McFarlane wrote: > After casting about far & wide, I found a complete set of WCST > materials right here at my own institution. So I am all set there > now, my thanks to everyone who replied. > > Now I need to finish this project and submit it to STEP. I will > probably do this in stages. As stated earlier, programming the basic > control logic for merely administering the test is the easy part, and > I have that worked out already with a mere text-only > keyboard-response model. Adding the graphics and improving the > response methods will take a little more tedious work. I might > submit a first draft once I get that far. > > Then the hard work comes when I add computation of all the customary > raw WCST scores. With that accomplished I would consider the project > finished -- I have no hope of going the extra yard to have it convert > raw summary scores into demographically corrected normed scores, for > that users will need to consult the Wisconsion Card Sorting Test > Manual, Revised and Expanded, by Robert K. Heaton et al. (1993), > Psychological Assessment Resources, Inc., Lutz, Florida, USA, or use > WCST scoring software. > > -- David McFarlane, Professional Faultfinder > > At 8/31/2010 05:31 PM Tuesday, David McFarlane wrote: > > >Oh, forgot to say, if interested then please contact me directly by > >e-mail (off the list). > > >Thanks, > >David McFarlane, Professional Faultfinder > > >>For those of you who might not read beyond the first line: I will > >>write a professional quality WCST in EP for no charge, if I can > >>only get a bit of help. Read on if interested... > > >>Well, despite the reservations I expressed earlier, on my own time > >>I went ahead and threw together a working skeleton in EP for the > >>WCST, just to flex my E-Prime muscles. The basic control logic is > >>really quite simple, and with a couple of tricks (e.g., nested > >>attribute references) the E-Prime design is rather sleek. > > >>I would like to complete this project to my usual professional > >>standards and then submit it for inclusion in the public STEP > >>library so that everyone can use it. In short, I aim to make this > >>no less than a completely faithful computerized replica of the > >>standardized test, in EP. But to do that I will need many more > >>specific details on the mechanics of the standardized test. E.g., > >>I have been told that the standardized test presents the "response" > >>cards in the same pre-ordained sequence for each run, and I need to > >>know that sequence. Also, if I can get hold of the scoring rules > >>then I might even have a whack at that, although I think it enough > >>just to have the program administer the test & record raw > >>data. (It would also be nice if I could get someone else to do the > >>card graphics, as I am lousy at graphics -- I would need only 16 > >>image files, not all 64, since I know how to make EP change the > >>colors.) I should be able to learn all I need from the official > >>WCST Manual, with perhaps a look at a printed card deck. But a > >>manual costs $115, and a card deck $170, more than I care to spend > >>for something that is, for me at least, only a hobby project. > > >>So here's the deal: If any of you can help me get access to > >>materials that fully specify the mechanics of the test (ideally the > >>printed Manual and/or cards) then I will complete this project in > >>short order and you will all have a professional quality WCST in EP. > > >>-- David McFarlane, Professional Faultfinder > > >>At 8/23/2010 05:24 PM Monday, David McFarlane wrote: > >>>Well, I toyed with the idea of making a simple WCST in E-Prime > >>>just to amuse myself. But when I looked into it further, I got puzzled. > > >>>The WCST started off with simple printed materials administered > >>>manually by a human examiner. Clearly the WCST does not require > >>>millisecond precision. So if we simply want to automate it, why > >>>use such an expensive, specialized, and heavyweight platform as > >>>E-Prime? Wouldn't it make more sense to use some more common > >>>platform such as JavaScript, or Flash, or Python, or even straight > >>>Visual Basic? Note that the WCST was automated using simple Turbo > >>>Basic (for DOS?) as far back as 1996. Isn't this another case of, > >>>"When all you have is a hammer, every problem looks like a > >>>nail" Or, insofar as I have not kept up with the literature on > >>>the WCST, am I just missing something that is obvious to the rest of you? > > >>>Also, apparently scoring the test is quite complex (perseverative > >>>errors, nonperseverative errors, etc.), so building that into the > >>>program (as opposed to leaving that to later data analysis) would > >>>take some care. > > >>>Finally, did anyone else know that the term "WisconsinCard > >>>Sorting Test" was trademarked by Wells Printing and Digital > >>>Services of Madison,Wisconsin, USA (see > >>>http://en.wikipedia.org/wiki/Wisconsin_card_sort)? So we cannot > >>>give the name "WisconsinCard Sorting Test" to any printed > >>>materials that we produce, but since the trademark does not cover > >>>computerized versions we may continue to use the name "Wisconsin > >>>Card Sorting Test" for our computerized versions. > > >>>With all that said, note that someone did make an automated WCST > >>>demo for Inquisit's Millisecond > >>>(http://www.millisecond.com/download/samples/v3/CardSort), though > >>>I do not know what data it stores or how it handles the test scoring. > > >>>-- David McFarlane, Professional Faultfinder > > >>>At 8/20/2010 12:10 PM Friday, David McFarlane wrote: > >>>>As far as I can tell no one has made an E-Prime WCST available on > >>>>the Web. It would be quite interesting to make one. As I > >>>>recall, in essence the task involves operantly rewarding the > >>>>subject for correctly following an undisclosed rule, changing the > >>>>rule whenever the subject achieves an overall success criterion, > >>>>and seeing how well the subject can adapt to the changing > >>>>rules. This would require some interesting code in E-Prime, in > >>>>particular scoring the success rate and then changing the > >>>>"correct" rule on the fly, but it could be done. Wish I had the > >>>>liberty to do it myself. > > >>>>-- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Apr 14 20:34:36 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 14 Apr 2011 16:34:36 -0400 Subject: synchronize event markers with refresh rate In-Reply-To: <423ffc29-d0b8-48a6-bf37-3e289c05c7f2@l30g2000vbn.googlegro ups.com> Message-ID: Hank, (Hmm, I see OnsetDelay, OnsetSignalData, OnsetSignalEnabled, and OnsetSignalPort, but no OnsetSignalDelay, so not sure what you are referring to there. But no matter...) Yes, both OnsetSignal... and WritePort can handle all 8 bits of any digital I/O port. For more background information on how to generally handle multiple digitital I/O bits, please read "Parallel Port Complete" by Jan Axelson (http://www.amazon.com/Parallel-Port-Complete-Programming-Interfacing/dp/0965081915/ref=sr_1_1?ie=UTF8&s=books&qid=1302813230&sr=1-1 ), or just Google around. -- David McFarlane, Professional Faultfinder At 4/13/2011 03:27 PM Wednesday, you wrote: >Thanks Paul. I did incorporate your recommendation into my program. >However, there are still some issues unresolved. So I use the >OnsetSignalDelay command for the event markers associated with the >appearance of stimuli on the screen and I still use the writeport >command to send event markers associated with the timing of touch >screen responses. Can the OnsetSignalDelay command address multiple >"pins" (OnsetSignalData) in its output ? >The signal that E-prime sends to the other PC is actually an "8-bit >strobe" which requires a "strobe signal" to be sent immediately after >the 8-bit strobe. Currently it seems that the strobed event marker is >not received until the end of the actual stimulus because the strobe >signal is not received until an inline immediately after the stimulus. >Is there a way to set OnsetSignalData to address two pins (one >included in the strobe (parallel port output pins 2-9 (= D0-D7 = &H378 >1-255) and one on parallel port pin 1 (=C0, &H378+2) ? This may sound >complicated but we have used this approach successfully as a way to >communicate between systems where the timing was not as critical. >Hank > >On Mar 30, 12:40 pm, Paul Groot wrote: > > Hi Hank, > > > > When using event markers for visual stimuli, you never should use the > > writeport function. This is because (in most cases) you would like to > > present the visual stimulus during the short refresh fase of the > > display. This is the default case when onset sync is set to vertical > > blank. (As David already explained!) If the stimulus is not synced > > this way, you will end up with an incomplete first frame (flickering). > > So, in most cases this causes unpredictable onset delays. Therfore, > > any writeport call will be executed to early, because eprime will hold > > the image presentation until the next refresh occurs (=OnsetDelay). > > So, just use the Onset/Offset properties described in the previous > > emails. The OnsetSignal will automatically generate a trigger as soon > > as the image is presented. (I.e. EPrime will automatically sync the > > implicit writeport command properly) > > > > Also: Preparation of the image (loading, uncompressing, scaling, ...) > > could be performed during a so called pre-release period. This period > > can be defined in the object just before the stimulus. This is advised > > for accurate onset times because image preparation time is NOT fixed > > in general. However, be carefull if you put any inline script between > > this object and the stimulus. (It will be executed at the start of the > > pre-release period!) > > > > best > > paul > > > > 2011/3/30 Hank Jedema : > > > > > > > > > > > > > > > > > Thanks to Davis, Baris, and Paul for your quick responses. > > > I used a writeport command in my code to send my event markers to my > > > recording system. I will have to look up what the exact loading time > > > of an image on my Elo Carroll touch screen is, because I did not > > > adjust for that (fixed) delay yet. > > > I based my question on the timing of the event markers on the > > > following: I collect multiple event markers for both the stimulus > > > appearance as well as the response timing using a electrophysiology > > > rig with sub-millisecond (<0.15 msec) timing accuracy. When I compare > > > the time difference between 2 event markers from touch screen > > > responses it seems that Eprime and my Plexon rig correspond nicely > > > (<1msec difference). When I compare the time difference between an > > > event marker from a stimulus appearance and a touch screen response, > > > there is a much greater difference (10-18msec). On a trial by trial > > > basis the difference between the two event markers seems to match the > > > stimulus.onset delay listed in the Eprime output. Based on this, I > > > believe that the event marker sent out by my E-prime code precedes the > > > appearance of the stimulus on the screen. I will try the suggestion to > > > use an inline as soon as the stimulus is on the screen next week. I > > > will also check on the thread that David provided and post my results. > > > > > Best, > > > Hank > > > > > On Mar 30, 2:39 am, Paul Groot wrote: > > >> Hi Hank, > > > > >> The event markers should be in sync when you prepare the markers using > > >> the following functions: > > > > >> Stim.OffsetSignalEnabled = True > > >> Stim.OnsetSignalEnabled = True > > >> Stim.OffsetSignalPort = &H378 > > >> Stim.OnsetSignalPort = &H378 > > >> Stim.OffsetSignalData = &H00 > > >> Stim.OnsetSignalData = &HFF ' < this is your onset code in > hexadedimal notation > > > > >> Where Stim is your display object. > > > > >> Most flatscreens have an onset delay of a few milliseconds, so this > > >> would be a fixed delay caused by the properties of the display. > > > > >> Best, > > >> Paul > > > > >> 2011/3/29 Hank Jedema : > > > > >> > Hi All, > > > > >> > I am trying to run a stop signal response task while recording > > >> > electrophysiological activity on another setup. In order to get > > >> > synchronization of behavior with the timing of my > recordings, I have E- > > >> > prime sent out event markers via the parallel port to an input of my > > >> > recording device. It seems that this works well responses, but it > > >> > seems that E-prime sends out the event markers for the display of > > >> > stimuli before the stimulus actually appears on the screen: the > > >> > eventmarker/timestamp is sent when the code issues the request for the > > >> > stimulus to appear, rather than when the stimulus actually appears on > > >> > the screen (i.e at the vertical blank/screen refresh after the > > >> > stimulus.onset delay). Is there a way to get the event marker signal > > >> > to synchronize with the actual appearance of the stimulus or is this > > >> > something that can only be corrected offline by correcting the > > >> > timestamps for stimulus appearance with their onset delay ? > > > > >> > Thanks very much for your help. > > > > >> > Hank -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Apr 14 20:49:58 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 14 Apr 2011 16:49:58 -0400 Subject: Sound on button press In-Reply-To: Message-ID: Vera, Agree with liw generally about handling the timing, but I would just use a SoundOut object instead of a Slide or anything visual, that way your visual stim will simply remain while your sound plays with no further fuss. My own favorite trick for getting timing like this to work is to make use of the more esoteric SetNextTargetOnsetTime (see the online E-Basic Help). On your stimulus Slide (let's call it StimSlide), set End Action to (terminate) and leave its Duration at 2000. Follow that with an inline, and then a SoundOut object (let's call it FeedbackSound) and set its Duration to 2000. In the inline between StimSlide and FeedbackSound, just put SetNextTargetOnsetTime StimSlide.OnsetTime Now, whenever your program gets to FeedbackSound, it will think that FeedbackSound was supposed to start at the same time as StimSlide and then end 2000 ms later, i.e., 2000 ms after StimSlide started. Isn't that slick? And it required no computation. Admittedly, using tricks like this does rely on some deeper understanding of the inner hidden workings of E-Prime, and I don't have time to explain all that just now. Also, your subject may get a short beep even for no response, so you may have to work out a little more code to get everything to work the way you want (see liw's further discussion earlier). -- David McFarlane, Professional Faultfinder At 4/14/2011 12:00 PM Thursday, you wrote: >Hi Vera! > >first thing that comes to mind (I think something like this was >discussed here before... ages ago). Create a second, similar, slide >right after the current one you have now but add your sound object to >this slide so that the sound is heard when this slide appears. >Inbetween the two slides place an inline that sets the second slide's >duration to the remainder of the 2000 ms (slide2.duration = 2000 - >slide1.duration) and perhaps add a goto label line to entirely skip >the second slide in case of no response... i.e. "if slide1.resp = "" >then goto jumplabel", place the label called jumplabel after the >second slide . > >A quick and dirty suggestion, I hope it helps you, though. > >best, > >liw > >On Apr 14, 4:27 pm, Vera wrote: > > Hi group! > > > > I already got some useful help here about a year ago and everything > > worked fine (after a while you kind of get the "hang" of > > eprime...;-) ), but now I seem to run into a problem (which actually > > seems a very easy-to-do-thing to me, but I haven't figured out a way > > to do this yet). > > > > I show participants an image on a slide for 2000 ms > > > > They have to answer by pushing a button whether a target is present > > (if there is no target, they shouldn't do anything -> typical go-nogo > > task). The image will however stay visible 2000 ms independent of > > their answer (every trial = 2000 ms of image). > > > > Now, as this is all taking place in a driving environment, where quite > > a lot is going on, I would like to give out a sound once a button is > > pushed (but the image still needs to stay there!). > > > > I of course have the option of using a feedback-display, but then I > > only get the sound, once the slide disappears. > > > > I really would like to have the sound on button press, just to confirm > > the participant "ok, noticed your response" (or not: there will not be > > sound in absence of a response). > > > > Any ideas on how to do this? > > > > Thanks in advance! > > > > Greetings, > > Vera -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Apr 14 21:01:20 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 14 Apr 2011 17:01:20 -0400 Subject: string input with spaces In-Reply-To: Message-ID: Matt, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... In your .edat files, take a look at your .RESP value strings, and compare those to the strings in your Correct attribute. Does the subject's RESP have a "{SPACE}" wherever they entered a space character? Then your Correct attribute has to do the same. Please see the "{key} nomenclature" topic in the online E-Basic Help. Alternatively, you could add inline code to replace the {key} nomenclature with proper text, as in the example provided by PST's own Matt Lenhart at http://www.pstnet.com/forum/Topic2194-5-1.aspx (must register & login to download). -- David McFarlane, Professional Faultfinder At 4/14/2011 10:39 AM Thursday, you wrote: >Hi all, > >I have trouble with a problem solving experiment a student in a class >I'm TAing put together. Rebus puzzles (e.g. >http://preview.tinyurl.com/3s73mwj) >are being used as the task. The answers to these puzzles are short >idioms or sayings (e.g. "a cut above the rest"). > >The script has a slide which presents the puzzle stimulus (picture >file) and echoes input from the keyboard. Problem is, when the answer >held in our [CorrectAnswer] attribute is a string that contains >spaces, we either get an error message "Correct is not part of >allowable," or the script fails to recognize that a correct answer has >been provided. I've mucked around with various settings of allowable >input in the Duration/Input and Echo submenus of the SlideObject, and >am having trouble remembering which mapped to which. > >I think the problem is somewhere in how the input is being parsed and >compared to the value held in the list attribute [CorrectAnswer]. Our >current workaround is to omit spaces from all responses, but it seems >like the fix should be fairly simple (whatever it is). Am happy to >send a copy of the experiment on request. > >Thanks for your help, >-Matt -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Fri Apr 15 09:21:25 2011 From: liwenna at gmail.com (liwenna) Date: Fri, 15 Apr 2011 02:21:25 -0700 Subject: negative onsetdelay& log with prerelease In-Reply-To: <9149eb44-16da-4fc0-900d-55584858daf0@e9g2000vbk.googlegroups.com> Message-ID: Hello Karl, I certainly am no genius at this but here are some thoughts 1) the negative onsets are generally not more worrying than the positive ones, do aim at getting them as short as possible. I never built an fMRI task, not sure how precisely timed you should aim with them. I'd guess that less than 20 ms would be quite acceptable? But here's some explanation: The onset time depends on your display's refresh rate. In your logfile's you should find a pretty exact (not sure how accurate though!) measurement of the refreshrate, made by e- prime, somehow...? :s (perhaps someone else may shed some light on that?) It may read 75.352 for instance... but let's say that that simply is a 75 hertz refreshrate. What is a 75 hz refreshrate...? For displays that are not too intelligent (i.e. old type crt screens) each pixel of the display will be "replaced" 75 times per second... the display will continually refresh pixels starting at the topleft pixel, moving in rows to the right then the next line until the bottomright pixel is replaced and then starts again at the top left pxiel. Most LCD displays have some built in intelligence that will decide for itself when to replace pixels, although there are more modern LCD displays that apparently do have a more predictable pixel refresh pattern. In any case: This kinda means that a pixel can only be replaced once every 13,3333 ms.... (75 refreshes per 1000 ms -> 1000/75 = 13.33333). So.. if your fixation period is set to last 3000 ms (for instance), e-prime will try to make it last 225,00 refreshrates... which should actually be ok most of the time... but you wrote that your fixation periods are varying... say that you also have trials in which it is 2500 ms? Then e-prime would try to make it last 187,50 refreshrates... which is impossible and therefore in half these trials the timing will be off by roughly half a refreshrate in one direction (+6 or +7) and the other half of the time by roughly half a refreshrate in the other direction (-6 or -7). 2) yes it does that... wiht prerelease you tell e-prime to start working on the next slide while the current one is still up, this interferese with it's ability to log responses to this slide. But I actually don't think you should use prerelease on the pic.... because there is no accurate timing needed for the NEXT slide, is there? Moreover: the next slide is on the next run of the trialprocedure, right? (next fixation period)... not sure about this but I don't think prereleasing works 'over to the next run of the procedure', although it may be possible if you use a certain scrip. 3) Sorry, I don't understand your question here :/ What it boils down too: to get really precise timing you often need a whole constellation of tricks and one of them is to adjust your desired display durations to the refresh rate of your screen and then also actually use a screen that is predictable in it's refresh rates. But I kinda reckon that in your mri room you will have LCD's or that you'll want to use that laptop? Moreover you'll likely have a whole projector set-up for showing the display to the participant in the scanner. All of these will add to imprecise timing, I have no idea how bad that is for an fMRI type experiment... I'd reckon that, given that fMRI has a temporal resolution of a few seconds itself (right?), you have no need to be worried about 20ms delay... but do consult with someone more knowledgeable on fMRI and e- prime ^.^ best, liw On Apr 14, 12:20 am, Karl wrote: > Hello, all > > We just got a new laptop (win7) and installed the eprime > (professional2.0). Our fmri paradigm is relatively simple--every trial > has two components: 1) a fixation period with duration varying from > 2000 to 4000ms 2) a pic presentation for 2000ms during which a > response of button pressing is collected. > > 1) We tried to prerelease the pic, but whatever the prerelease number > is, there are still lots of non-zeros in the pic-onsetdelay log file. > They are generally less than 20ms, but more concerning is that there > is even negative onset delay, like -5 or -11. What could the problem > be? > > 2) if we set the pre-release too long, it seems to disrupt logging the > response we collect during pic presentation. For our case, should we > use prelease of pic or not? If not, how can we still ensure pic onset > is accurate? Chapter 3 is quite unclear about this. > > 3) It is suggested here to use cumulative timing code for fMRI. Just > curious about shorting the stimulus presentation duration is less > concerning in fMRI? > > Thanks in advance > > Karl -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From vera.donk at googlemail.com Fri Apr 15 15:58:33 2011 From: vera.donk at googlemail.com (Vera) Date: Fri, 15 Apr 2011 08:58:33 -0700 Subject: Sound on button press In-Reply-To: <4da75e0e.473c2b0a.31cf.1a9bSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Hi Liwenna, hi David, I tried both of your solutions (and actually encountered problems with both of them), but they gave me some useful ideas to actually solve my problem and I would like to post the solution I found for future users. :-) To your SetNextTargetOnsetTime David, as I had to set the End Action to (terminate), the slideimage would actually disappear (which is not what I wanted, I just wanted to have a sound to confirm button press WITHOUT the slideimage disappearing). As for your solution Liwenna, using 2 identical slides of which the second one with a sound, I actually found a small problem in the inline that you proposed. It turns out that "slide.duration" is actually referring to the duration you set for the slide (e.g. 2000 ms). If you then do slide2.duration = 2000 - slide1.duration basically you get 2000 - 2000 = 0. :-) The correct way (for me at least) to do it is: slide2.duration = slide1.duration - slide1.RT (e.g. 2000 - 1345 = 655 = duration slide2) (and make sure to put the duration of slide2 on 0 (zero) ms). Then it works perfectly! :-) I also would like to thank you, David for your hint towards SetNextTargetOnsetTime StimSlide.OnsetTime. Although I couldn't use it this time, it might be useful in the future. In other words: thanks to both of you! :-) Have an nice weekend! Greetings, Vera On Apr 14, 10:49 pm, David McFarlane wrote: > Vera, > > Agree with liw generally about handling the timing, but I would just > use a SoundOut object instead of a Slide or anything visual, that way > your visual stim will simply remain while your sound plays with no > further fuss. > > My own favorite trick for getting timing like this to work is to make > use of the more esoteric SetNextTargetOnsetTime (see the online > E-Basic Help).  On your stimulus Slide (let's call it StimSlide), set > End Action to (terminate) and leave its Duration at 2000.  Follow > that with an inline, and then a SoundOut object (let's call it > FeedbackSound) and set its Duration to 2000.  In the inline between > StimSlide and FeedbackSound, just put > > SetNextTargetOnsetTime StimSlide.OnsetTime > > Now, whenever your program gets to FeedbackSound, it will think that > FeedbackSound was supposed to start at the same time as StimSlide and > then end 2000 ms later, i.e., 2000 ms after StimSlide started.  Isn't > that slick?  And it required no computation. > > Admittedly, using tricks like this does rely on some deeper > understanding of the inner hidden workings of E-Prime, and I don't > have time to explain all that just now.  Also, your subject may get a > short beep even for no response, so you may have to work out a little > more code to get everything to work the way you want (see liw's > further discussion earlier). > > -- David McFarlane, Professional Faultfinder > > At 4/14/2011 12:00 PM Thursday, you wrote: > > >Hi Vera! > > >first thing that comes to mind (I think something like this was > >discussed here before... ages ago). Create a second, similar, slide > >right after the current one you have now but add your sound object to > >this slide so that the sound is heard when this slide appears. > >Inbetween the two slides place an inline that sets the second slide's > >duration to the remainder of the 2000 ms (slide2.duration = 2000 - > >slide1.duration) and perhaps add a goto label line to entirely skip > >the second slide in case of no response... i.e. "if slide1.resp = "" > >then goto jumplabel", place the label called jumplabel after the > >second slide . > > >A quick and dirty suggestion, I hope it helps you, though. > > >best, > > >liw > > >On Apr 14, 4:27 pm, Vera wrote: > > > Hi group! > > > > I already got some useful help here about a year ago and everything > > > worked fine (after a while you kind of get the "hang" of > > > eprime...;-) ), but now I seem to run into a problem (which actually > > > seems a very easy-to-do-thing to me, but I haven't figured out a way > > > to do this yet). > > > > I show participants an image on a slide for 2000 ms > > > > They have to answer by pushing a button whether a target is present > > > (if there is no target, they shouldn't do anything -> typical go-nogo > > > task). The image will however stay visible 2000 ms independent of > > > their answer (every trial = 2000 ms of image). > > > > Now, as this is all taking place in a driving environment, where quite > > > a lot is going on, I would like to give out a sound once a button is > > > pushed (but the image still needs to stay there!). > > > > I of course have the option of using a feedback-display, but then I > > > only get the sound, once the slide disappears. > > > > I really would like to have the sound on button press, just to confirm > > > the participant "ok, noticed your response" (or not: there will not be > > > sound in absence of a response). > > > > Any ideas on how to do this? > > > > Thanks in advance! > > > > Greetings, > > > Vera -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Fri Apr 15 16:32:10 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 15 Apr 2011 12:32:10 -0400 Subject: Sound on button press In-Reply-To: Message-ID: Vera, Thanks for posting back with your solution... At 4/15/2011 11:58 AM Friday, you wrote: >To your SetNextTargetOnsetTime David, as I had to set the End Action >to (terminate), the slideimage would actually disappear Um, no, not if you have Clear After set to No, which is the default. I had just assumed that you had Clear After set to the default value of No. With Clear After set to No, a visual stimulus remains visible until some other visual stimulus comes to replace it, which is almost always a better way to do things (i.e., why have a stimulus do the extra work of clearing itself when the next stimulus would cover it anyway?). You must have set Clear After to Yes at some point, try setting it to No and see whether or not I know what I am talking about :). Regards, -- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pfc.groot at gmail.com Fri Apr 15 19:02:17 2011 From: pfc.groot at gmail.com (Paul Groot) Date: Fri, 15 Apr 2011 12:02:17 -0700 Subject: synchronize event markers with refresh rate In-Reply-To: <423ffc29-d0b8-48a6-bf37-3e289c05c7f2@l30g2000vbn.googlegroups.com> Message-ID: Hi Hank, The OnsetSignal-properties can only address one IO-port at the time (all 8 bits at the same time because there is no masking mechanism). Using any kind of handshaking just complicates the one-way digital interface. However, if you still would like to use a separate strobe signal, you could use the WritePort function in an inline just before the stimulus object to set/prepare the 8 data-pins. Then configure the OnsetSignal properties to generate the time-critical strobe signal, so it 'triggers' at stimulus onset. However, the OnsetSignal properties cannot write individual bits of the control register (C0), so this might complicate things a bit if other bits of the control register should be preserved. Also note that this wouldn't work if the duration of the strobe is critical and is different from the stimulus duration. The markers that have to be generated for responses are indeed different. In most cases these markers can be generated with the writeport function after termination of the stimulus object. Because of this, these response markers will not be exactly in sync with the actual response (i.e. it takes time in eprime to handle the response, terminate the object and start the inline script). There are two possible workarounds if the timing of response markers is very critical: 1) use special hardware to detect responses and route it digitally to both the eprime system and the second system. 2) apply an off-line correction by using the stimulus-onset marker and the (accurate) RT recorded by eprime to insert response markers at the right places in the acquired data. However, my guess would be that the touch responses are not detected very accurately anyway, so simply using writeport would be sufficient in this case. (You could simply estimate the delay by comparing the RT values recorded by eprime with the time differences of the stim/response markers.) best, Paul -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Fri Apr 15 19:26:07 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 15 Apr 2011 15:26:07 -0400 Subject: synchronize event markers with refresh rate In-Reply-To: Message-ID: At 4/15/2011 03:02 PM Friday, Paul Groot wrote: >Hi Hank, > >The OnsetSignal-properties can only address one IO-port at the time >(all 8 bits at the same time because there is no masking mechanism). Hmm, couldn't one apply a mask using And or Or in inline code before the stimulus object? E.g., if you wanted to apply only bits 0-2 of some other input port, how about something like '/------------------------------------------------------ ' Using Consts in order to avoid "magic numbers" in code: Const InPort as Integer = &h1234 ' whatever Const OutPort as Integer = &h0378 Const OutMask as Integer = &h07 ' bits 0-2 StimText.OnsetSignalEnabled = True StimText.OnsetSignalPort = OutPort StimText.OnsetSignalData = ReadPort(InPort) And OutMask '\------------------------------------------------------ Or, if one merely wanted to apply bits 0-2 without affecting any other bits, how about '/------------------------------------------------------ ' Using Consts in order to avoid "magic numbers" in code: Const OutPort as Integer = &h0378 Const OutMask as Integer = &h07 ' bits 0-2 Const OutData as Integer = &h05 ' for example StimText.OnsetSignalEnabled = True StimText.OnsetSignalPort = OutPort StimText.OnsetSignalData = (ReadPort(OutPort) And OutMask) _ Or OutData '\------------------------------------------------------ -- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From lml1934 at gmail.com Sat Apr 16 19:11:54 2011 From: lml1934 at gmail.com (Lisa Levinson) Date: Sat, 16 Apr 2011 12:11:54 -0700 Subject: Using EBasic Message-ID: I am trying to replicate an event-related potential experiment that investigated the development of the magnocellular and parvocellular visual pathways. I am not looking to further study the development of these pathways, rather their correlation with other behavioral measures. The stims were originally programmed using the Presentation software language. I have attempted to create modified versions of the stims using Quark and Final Cut. I have generated the graphics and imported them into E-Studio but the major issue I am having concerns the parvocellular stim. If I can't control for luminance then I will potentially be eliciting a response from the magnocellular pathway as well. Using EBasic I was wondering if it would be possible to create "objects" such as a blue and green high frequency grating in which the colors are isoluminant with the background and low spacial frequency grayscale grating with a low luminance contrast. I have limited programming experience but can work with others who know Visual Basic for Applications. I am concerned though the psychophysical nature of these stims will not work with EPrime. Would greatly appreciate some input. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From vera.donk at googlemail.com Sun Apr 17 10:27:19 2011 From: vera.donk at googlemail.com (Vera) Date: Sun, 17 Apr 2011 03:27:19 -0700 Subject: Sound on button press In-Reply-To: <4da87318.c6c2e70a.21b9.29dcSMTPIN_ADDED@gmr-mx.google.com> Message-ID: David, Thanks for replying, I will have a look at that tomorrow at work. I was already wondering why you would write that, knowing that it would terminate my action. Ok, I have to check the "clear after set" option. Thanks for pointing that out! :-) Greetings, Vera On Apr 15, 6:32 pm, David McFarlane wrote: > Vera, > > Thanks for posting back with your solution... > > At 4/15/2011 11:58 AM Friday, you wrote: > > >To your SetNextTargetOnsetTime David, as I had to set the End Action > >to (terminate), the slideimage would actually disappear > > Um, no, not if you have Clear After set to No, which is the > default.  I had just assumed that you had Clear After set to the > default value of No.  With Clear After set to No, a visual stimulus > remains visible until some other visual stimulus comes to replace it, > which is almost always a better way to do things (i.e., why have a > stimulus do the extra work of clearing itself when the next stimulus > would cover it anyway?).  You must have set Clear After to Yes at > some point, try setting it to No and see whether or not I know what I > am talking about :). > > Regards, > -- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Apr 18 19:23:14 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 18 Apr 2011 15:23:14 -0400 Subject: Using EBasic In-Reply-To: <38d74848-6b67-4558-b9b2-49360ae323d4@a19g2000prj.googlegro ups.com> Message-ID: Lisa, As I recall, Presentation has some very nice high-level facilities for generating complex and dynamic visual stimuli on the fly. By contrast, E-Prime has no such facilities. EP can do some limited things with text, for anything else it usually just presents image, sound, or movie files. But you can go beyond this with low-level E-Basic code, for that you would make extensive use of the methods of the Canvas object -- see the Canvas topic in the online E-Basic Help. To do this well you would probably want to make a bunch of custom subroutines or functions to recreate some of what Presentation did for you -- for more on making subroutines and functions, you might take a look at Chapter 4 of the User's Guide that came with E-Prime, and more particularly work through the classic "VBA for Dummies". Of course, you could just do this all back in Presentation, which you know already does this; or even better, do this all in MATLAB using the Psychophysics Toolbox, which has fantastic visual presentation support. On an off-topic digression, I just learned about a new free open-source cross-platform Python-based system called OpenSesame (http://www.cogsci.nl/software/opensesame ). Has anybody tried this, and can comment on how it stacks up against E-Prime or other products? -- David McFarlane, Professional Faultfinder At 4/16/2011 03:11 PM Saturday, Lisa Levinson wrote: >I am trying to replicate an event-related potential experiment that >investigated the development of the magnocellular and parvocellular >visual pathways. I am not looking to further study the development of >these pathways, rather their correlation with other behavioral >measures. The stims were originally programmed using the Presentation >software language. I have attempted to create modified versions of the >stims using Quark and Final Cut. I have generated the graphics and >imported them into E-Studio but the major issue I am having concerns >the parvocellular stim. If I can't control for luminance then I will >potentially be eliciting a response from the magnocellular pathway as >well. > >Using EBasic I was wondering if it would be possible to create >"objects" such as a blue and green high frequency grating in which the >colors are isoluminant with the background and low spacial frequency >grayscale grating with a low luminance contrast. I have limited >programming experience but can work with others who know Visual Basic >for Applications. I am concerned though the psychophysical nature of >these stims will not work with EPrime. > >Would greatly appreciate some input. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Tue Apr 19 06:01:17 2011 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 19 Apr 2011 07:01:17 +0100 Subject: Using EBasic In-Reply-To: <4dac8fb1.da71e70a.14a2.4834SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Hi Vera, Lisa, list, Just to add to this: it might be worthwhile to just make a screenshot (print-screen, open mspaint, hit paste) and take whatever stimuli you want out of matlab/presentation/etc and use those just as images in e-prime. I imagine that working with E-Prime makes it easier to implement your study in an ERP paradigm. If you want to pursue that path, I don't think your real issue is with programming, because you *should* be able to create the stimuli, isoluminant and whatnot, in photoshop or such. Once you have those (and I'm expecting you don't need millions of different stimuli in an ERP design), it should be a breeze to use these then in E-Prime. The more techy way to go about this is indeed using matlab, though as far as i know, you can't tell matlab or such to just make "grayscale, low contrast, isoluminant". Once you know the formulae behind such descriptions, I believe it shouldn't be too hard to just use photoshop or anything else (I think psychophysics people might want to kill me for making this statement, however). Of course, if you do wish to pursue the 'make visuals on the fly' sort of path, you might find it helpful to have a look at PsychoPy (developed around here), which I'm sure should be fairly easy to work with as well. It has functions predefined (I think) for gabor-type stimuli and all the basic ingredients of the field of visual cognition (and others). Since it works on PCs as well, I guess you could even run it, make the stimuli, hit print-screen and get the experiment to run in E-Prime anyway. Best, Mich ________________________________________ From: e-prime at googlegroups.com [e-prime at googlegroups.com] On Behalf Of David McFarlane [mcfarla9 at msu.edu] Sent: 18 April 2011 20:23 To: E-Prime Subject: Re: Using EBasic Lisa, As I recall, Presentation has some very nice high-level facilities for generating complex and dynamic visual stimuli on the fly. By contrast, E-Prime has no such facilities. EP can do some limited things with text, for anything else it usually just presents image, sound, or movie files. But you can go beyond this with low-level E-Basic code, for that you would make extensive use of the methods of the Canvas object -- see the Canvas topic in the online E-Basic Help. To do this well you would probably want to make a bunch of custom subroutines or functions to recreate some of what Presentation did for you -- for more on making subroutines and functions, you might take a look at Chapter 4 of the User's Guide that came with E-Prime, and more particularly work through the classic "VBA for Dummies". Of course, you could just do this all back in Presentation, which you know already does this; or even better, do this all in MATLAB using the Psychophysics Toolbox, which has fantastic visual presentation support. On an off-topic digression, I just learned about a new free open-source cross-platform Python-based system called OpenSesame (http://www.cogsci.nl/software/opensesame ). Has anybody tried this, and can comment on how it stacks up against E-Prime or other products? -- David McFarlane, Professional Faultfinder At 4/16/2011 03:11 PM Saturday, Lisa Levinson wrote: >I am trying to replicate an event-related potential experiment that >investigated the development of the magnocellular and parvocellular >visual pathways. I am not looking to further study the development of >these pathways, rather their correlation with other behavioral >measures. The stims were originally programmed using the Presentation >software language. I have attempted to create modified versions of the >stims using Quark and Final Cut. I have generated the graphics and >imported them into E-Studio but the major issue I am having concerns >the parvocellular stim. If I can't control for luminance then I will >potentially be eliciting a response from the magnocellular pathway as >well. > >Using EBasic I was wondering if it would be possible to create >"objects" such as a blue and green high frequency grating in which the >colors are isoluminant with the background and low spacial frequency >grayscale grating with a low luminance contrast. I have limited >programming experience but can work with others who know Visual Basic >for Applications. I am concerned though the psychophysical nature of >these stims will not work with EPrime. > >Would greatly appreciate some input. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Tue Apr 19 08:01:51 2011 From: liwenna at gmail.com (liwenna) Date: Tue, 19 Apr 2011 01:01:51 -0700 Subject: Using EBasic In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E5A18@EXCHANGE3.ad.nottingham.ac.uk> Message-ID: Hi Vera, Now that "the proper pro's" gave their opinion, I'd like to throw in my 2 cents... your post reminded me of a thread on the pst user forums not too long ago: http://support.pstnet.com/forum/Topic5031-23-1.aspx#bm5039 . This person wanted to change the background to isoluminant colors... the solution I gave him is perhaps a bit of a detour, I later realized that it's probably quite possible to generate rgb values and assign them directly on to the slide object background instead of using a canvas rectangle with the same dimensions as the display... in any case: in his last post the guy sounded quite happy, which makes me think that he might well have succeeded also in the isoluminance part of his quest... you could try to e-mail him and ask him for advice. best, liw On Apr 19, 8:01 am, Michiel Spape wrote: > Hi Vera, Lisa, list, > Just to add to this: it might be worthwhile to just make a screenshot (print-screen, open mspaint, hit paste) and take whatever stimuli you want out of matlab/presentation/etc and use those just as images in e-prime. I imagine that working with E-Prime makes it easier to implement your study in an ERP paradigm. If you want to pursue that path, I don't think your real issue is with programming, because you *should* be able to create the stimuli, isoluminant and whatnot, in photoshop or such. Once you have those (and I'm expecting you don't need millions of different stimuli in an ERP design), it should be a breeze to use these then in E-Prime. The more techy way to go about this is indeed using matlab, though as far as i know, you can't tell matlab or such to just make "grayscale, low contrast, isoluminant". Once you know the formulae behind such descriptions, I believe it shouldn't be too hard to just use photoshop or anything else (I think psychophysics people might want to kill me for making this statement, however). > > Of course,  if you do wish to pursue the 'make visuals on the fly' sort of path, you might find it helpful to have a look at PsychoPy (developed around here), which I'm sure should be fairly easy to work with as well. It has functions predefined (I think) for gabor-type stimuli and all the basic ingredients of the field of visual cognition (and others). Since it works on PCs as well, I guess you could even run it, make the stimuli, hit print-screen and get the experiment to run in E-Prime anyway. > > Best, > Mich > > ________________________________________ > From: e-prime at googlegroups.com [e-prime at googlegroups.com] On Behalf Of David McFarlane [mcfar... at msu.edu] > Sent: 18 April 2011 20:23 > To: E-Prime > Subject: Re: Using EBasic > > Lisa, > > As I recall, Presentation has some very nice high-level facilities > for generating complex and dynamic visual stimuli on the fly.  By > contrast, E-Prime has no such facilities.  EP can do some limited > things with text, for anything else it usually just presents image, > sound, or movie files.  But you can go beyond this with low-level > E-Basic code, for that you  would make extensive use of the methods > of the Canvas object -- see the Canvas topic in the online E-Basic > Help.  To do this well you would probably want to make a bunch of > custom subroutines or functions to recreate some of what Presentation > did for you -- for more on making subroutines and functions, you > might take a look at Chapter 4 of the User's Guide that came with > E-Prime, and more particularly work through the classic "VBA for Dummies". > > Of course, you could just do this all back in Presentation, which you > know already does this; or even better, do this all in MATLAB using > the Psychophysics Toolbox, which has fantastic visual presentation support. > > On an off-topic digression, I just learned about a new free > open-source cross-platform Python-based system called OpenSesame > (http://www.cogsci.nl/software/opensesame).  Has anybody tried this, > and can comment on how it stacks up against E-Prime or other products? > > -- David McFarlane, Professional Faultfinder > > At 4/16/2011 03:11 PM Saturday, Lisa Levinson wrote: > > > > >I am trying to replicate an event-related potential experiment that > >investigated the development of the magnocellular and parvocellular > >visual pathways. I am not looking to further study the development of > >these pathways, rather their correlation with other behavioral > >measures. The stims were originally programmed using the Presentation > >software language. I have attempted to create modified versions of the > >stims using Quark and Final Cut. I have generated the graphics and > >imported them into E-Studio but the major issue I am having concerns > >the parvocellular stim. If I can't control for luminance then I will > >potentially be eliciting a response from the magnocellular pathway as > >well. > > >Using EBasic I was wondering if it would be possible to create > >"objects" such as a blue and green high frequency grating in which the > >colors are isoluminant with the background and low spacial frequency > >grayscale grating with a low luminance contrast. I have limited > >programming experience but can work with others who know Visual Basic > >for Applications. I am concerned though the psychophysical nature of > >these stims will not work with EPrime. > > >Would greatly appreciate some input. > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en.Thismessage and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From andrea-laura at gmx.ch Tue Apr 19 10:32:21 2011 From: andrea-laura at gmx.ch (miamalika) Date: Tue, 19 Apr 2011 03:32:21 -0700 Subject: How to fade from slide1 to slide2 (inline?) Message-ID: Hey there! I have a problem. I want to create a Stroop imagery task which functions as following: first, a color NAME is presented and the subjects have to imagine that color in a following box (white text frame in a slide). Then, a second slide is presented (same text frame in a slide) but with a back color varying. Now I want a gradual change between the white empty text box and the colored text box so that the colors appear to "fade in". How can I do this? I'm pretty new to e-prime so it should be an easy solution.. I also thought about fading a picture in pixel by pixel or to have the brightness of 1 slide gradually changing from white to the color. What appears best to you? How could I do this? Thank you and best regards Mia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Tue Apr 19 10:53:17 2011 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 19 Apr 2011 11:53:17 +0100 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <8746a8a7-17a9-4198-a3fb-9fe890ac0efb@k3g2000prl.googlegroups.com> Message-ID: Hiya, Sounds like a nice paradigm! ... however, fading, much like movement, is not all that easy in E-Prime, though it can be done. For a nice example, see the E-Primer thingy (on my website, about me, underneath everything else - it takes some time to download) in which you learn, somewhere, to make a box move. Knowing that, you can do the same, but then with the colour. So, one, you realise that colours in E-Prime are represented as 3 bytes (i.e. 3 values between 0 and 255) in RGB (redgreenblue) space. Thus, from Red (255, 0, 0) to Blue (0,0,255), should be possible by going linearly from 255->0 on the first (red) dimension, and 0->255 on the third (blue) dimension - passing, for instance, somewhere along the way 128,0,128 (purple). Knowing that, you could do all this neatly using a little list in between your stimuli to do the whole fading. The list can then have an exit-time of exactly the amount of time you wish to spend fading. Inside the list is the simple procedure with a slide taking, say, 15 ms, and then you change the colour attributes just before every time the slide is shown. For instance, if the slide would have a text display showing [name], in forecolour being [colour], you could simply change the attribute as long as you know: - How much time has passed since beginning of the fading? - How long should the slide take? - What's the begin colour? - What's the end colour? Then, you could simply linearly interpolate between colours and set the [colour] accordingly. Well, there are quite a few ways to go about this, but none, as far as I can see, for a first-time E-Prime user exactly simple. As for pixel-by-pixel fading, you could do that... but it will take some canvas programming. More difficult than the above. Best, Mich Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology www.cognitology.eu -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of miamalika Sent: 19 April 2011 11:32 To: E-Prime Subject: How to fade from slide1 to slide2 (inline?) Hey there! I have a problem. I want to create a Stroop imagery task which functions as following: first, a color NAME is presented and the subjects have to imagine that color in a following box (white text frame in a slide). Then, a second slide is presented (same text frame in a slide) but with a back color varying. Now I want a gradual change between the white empty text box and the colored text box so that the colors appear to "fade in". How can I do this? I'm pretty new to e-prime so it should be an easy solution.. I also thought about fading a picture in pixel by pixel or to have the brightness of 1 slide gradually changing from white to the color. What appears best to you? How could I do this? Thank you and best regards Mia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Tue Apr 19 13:06:21 2011 From: liwenna at gmail.com (liwenna) Date: Tue, 19 Apr 2011 06:06:21 -0700 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E5373@EXCHANGE3.ad.nottingham.ac.uk> Message-ID: Michiel, I was planning on suggesting exactly that :) Although I'd like to propose doing it without a list and with a single proc that switches back and forth to show the same slide over again with the necessary variables modified... it's about as easy and gives less mess in the edat files... I did this for a moving object, inspired by your example, only a week ago... :) I can't test this idea right now for I don't have e-prime where I am, but you could try these steps: First off.. try this in a new and experiment/e-studiofile, you can add all the other elements of your task once you got the fading working. Your experiment file (blank! not basic...) shows you a sessionproc. On the sessionproc add a list, call it triallist for instance, and associate a procedure by typing the desired name of the procedure (trialproc?) into the column 'procedure'. You could make several levels, but for now a single level will also suffice. At the beginning of the trialprocedure place an inline with the following code (copy/paste everything between ****'s. The lines that start wat a ' should colour green in e-prime, they are comments, not code... if e-prime breaks up the sentences differently and part of the comments do show up in black, blue or orange font, then add ' s at the beginning of each line that is not code, so that they turn green): **************** 'create all the variables you'll need: dim r as integer dim g as integer dim b as integer dim vr as string dim vb as string dim vg as string dim stepcounter as integer 'assign value 255 to the red green and blue channels, rgb 255,255,255 is white r=255 b=255 g=255 'map the integer values of r, g, and b onto the string variables vr, vb and vg (there is probably a far better way to do this, but I don't know how) vr$= r vb$= b vg$= g 'use the string rgb variables to modify the backgroundcolor of the textobject 'this is the line that I am most unsecure about and as said can't test it right now.... It assumes a slide text subobject (so.. the textbox on your slide) to be called text1, which 'afaik is the default setting for the first textbox you place on the slide, text2 for the next etc. if you didn't change these names this might work... also might not... I'll test it 'myself tomorrow. I could not find the proper code anywhere and I kinda wonder how the program would know what text1 on which slide to manipulate... text1.BackColor = CColor (""& vr$ &","& vg$ &","& vb$ &"") ***************** Now after this inline place your slide and put a textbox on it (which will likely be named text1 by default). In this example I'll try to change the color from white to red in 51 steps... each phase (52, including the starting phase) will then be shown for the duration of the slide... say that you want the transition to take about 1,5 second... then each phase shoudl be shown for 1500/52 = 28,8 ms... this is impossible so for now set the duration of the slide to 29ms, which probably won't work exactly as well timed as one would want, but let's focus on the fading first.... Directly after the slide place another inline with the following code: ****************** 'first the values of green and blue will be decreased by 5 points, we started at 255,255,255 and this way after 51 repeats we will end at 255,0,0, which is pure red r = r g = g - 5 b = b - b 'map the integer values of rgb onto the string variables of rgb vr$= r vb$= b vg$= g 'assign the new value to text1.backcolor Text1.BackColor = CColor (""& vr$ &","& vg$ &","& vb$ &"") 'stepcounter keeps track of the number of times the above code is executed, after the 52 step the fading is done and the values of g and b will actually be negative (-5) so 'it's time to stop the sequence and move on... for that place a label after this inline (on the same procedure!), that you call endlabel, at step 52 the program will continue at 'that label. stepcounter = stepcounter + 1 if stepcounter = 52 then goto endlabel 'if however the fading is completed yet, the program should return back and show the same slide again, but now with the new values of RGB that were modified in the 'above lines. For that place a label inbetween the first inline and the slide. This label should be called againlabel. if stepcounter < 52 then goto againlabel ************ I think... that if you run the little program that you just created, you should see some fading happening.... :) although things kinda depend on the line "Text1.BackColor = ..." that I am fairly unsure about :/ best, liw On Apr 19, 12:53 pm, Michiel Spape wrote: > Hiya, > Sounds like a nice paradigm! > ... however, fading, much like movement, is not all that easy in E-Prime, though it can be done. For a nice example, see the E-Primer thingy (on my website, about me, underneath everything else - it takes some time to download) in which you learn, somewhere, to make a box move. Knowing that, you can do the same, but then with the colour. > So, one, you realise that colours in E-Prime are represented as 3 bytes (i.e. 3 values between 0 and 255) in RGB (redgreenblue) space. Thus, from Red (255, 0, 0) to Blue (0,0,255), should be possible by going linearly from 255->0 on the first (red) dimension, and 0->255 on the third (blue) dimension - passing, for instance, somewhere along the way 128,0,128 (purple). > Knowing that, you could do all this neatly using a little list in between your stimuli to do the whole fading. The list can then have an exit-time of exactly the amount of time you wish to spend fading. Inside the list is the simple procedure with a slide taking, say, 15 ms, and then you change the colour attributes just before every time the slide is shown. For instance, if the slide would have a text display showing [name], in forecolour being [colour], you could simply change the attribute as long as you know: > - How much time has passed since beginning of the fading? > - How long should the slide take? > - What's the begin colour? > - What's the end colour? > Then, you could simply linearly interpolate between colours and set the [colour] accordingly. > > Well, there are quite a few ways to go about this, but none, as far as I can see, for a first-time E-Prime user exactly simple. As for pixel-by-pixel fading, you could do that... but it will take some canvas programming. More difficult than the above. > Best, > Mich > > Michiel Spapé > Research Fellow > Perception & Action group > University of Nottingham > School of Psychologywww.cognitology.eu > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of miamalika > Sent: 19 April 2011 11:32 > To: E-Prime > Subject: How to fade from slide1 to slide2 (inline?) > > Hey there! > > I have a problem. I want to create a Stroop imagery task which > functions as following: first, a color NAME is presented and the > subjects have to imagine that color in a following box (white text > frame in a slide). Then, a second slide is presented (same text frame > in a slide) but with a back color varying. > > Now I want a gradual change between the white empty text box and the > colored text box so that the colors appear to "fade in". > > How can I do this? I'm pretty new to e-prime so it should be an easy > solution.. > > I also thought about fading a picture in pixel by pixel or to have the > brightness of 1 slide gradually changing from white to the color. > > What appears best to you? How could I do this? > > Thank you and best regards > Mia > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Tue Apr 19 13:08:42 2011 From: liwenna at gmail.com (liwenna) Date: Tue, 19 Apr 2011 06:08:42 -0700 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <0d8936a7-3c9e-434d-b3ad-52ec39226bd8@o26g2000vby.googlegroups.com> Message-ID: hahaha, well there you go >.< the lines already broke up differently when I posted the message as compared to when I wrote it... so do make sure to 'green out' all my comments in the code by using 's , before you try to run it... it will definitely not run if my squaks are still considered code by the program :/ On Apr 19, 3:06 pm, liwenna wrote: > Michiel, I was planning on suggesting exactly that :) > > Although I'd like to propose doing it without a list and with a single > proc that switches back and forth to show the same slide over again > with the necessary variables modified... it's about as easy and gives > less mess in the edat files...  I did this for a moving object, > inspired by your example, only a week ago... :) > > I can't test this idea right now for I don't have e-prime where I am, > but you could try these steps: > > First off.. try this in a new and experiment/e-studiofile, you can add > all the other elements of your task once you got the fading working. > > Your experiment file (blank! not basic...) shows you a sessionproc. On > the sessionproc add a list, call it triallist for instance, and > associate a procedure by typing the desired name of the procedure > (trialproc?) into the column 'procedure'. You could make several > levels, but for now a single level will also suffice. > > At the beginning of the trialprocedure place an inline with the > following code  (copy/paste everything between ****'s. The lines that > start wat a '  should colour green in e-prime, they are comments, not > code... if e-prime breaks up the sentences differently and part of the > comments do show up in black, blue or orange font, then add ' s  at > the beginning of each line that is not code, so that they turn green): > > **************** > 'create all the variables you'll need: > dim r as integer > dim g as integer > dim b as integer > dim vr as string > dim vb as string > dim vg as string > dim stepcounter as integer > > 'assign value 255 to the red green and blue channels, rgb 255,255,255 > is white > r=255 > b=255 > g=255 > > 'map the integer values of r, g, and b onto the string variables vr, > vb and vg (there is probably a far better way to do this, but I don't > know how) > vr$= r > vb$= b > vg$= g > > 'use the string rgb variables to modify the backgroundcolor of the > textobject > 'this is the line that I am most unsecure about and as said can't test > it right now.... It assumes a slide text subobject (so.. the textbox > on your slide) to be called text1, which 'afaik is the default setting > for the first textbox you place on the slide, text2 for the next etc. > if you didn't change these names this might work... also might not... > I'll test it 'myself tomorrow. I could not find the proper code > anywhere and I kinda wonder how the program would know what text1 on > which slide to manipulate... > text1.BackColor = CColor (""& vr$ &","& vg$ &","& vb$ &"") > > ***************** > > Now after this inline place your slide and put a textbox on it (which > will likely be named text1 by default). > In this example I'll try to change the color from white to red in 51 > steps... each phase (52, including the starting phase) will then be > shown for the duration of the slide... say that you want the > transition to take about 1,5 second... then each phase shoudl be shown > for 1500/52 = 28,8 ms... this is impossible so for now set the > duration of the slide to 29ms, which probably won't work exactly as > well timed as one would want, but let's focus on the fading first.... > > Directly after the slide place another inline with the following code: > > ****************** > 'first the values of green and blue will be decreased by 5 points, we > started at 255,255,255 and this way after 51 repeats we will end at > 255,0,0, which is pure red > r = r > g = g - 5 > b = b - b > > 'map the integer values of rgb onto the string variables of rgb > vr$= r > vb$= b > vg$= g > > 'assign the new value to text1.backcolor > Text1.BackColor = CColor (""& vr$ &","& vg$ &","& vb$ &"") > > 'stepcounter keeps track of the number of times the above code is > executed, after the 52 step the fading is done and the values of g and > b will actually be negative (-5) so > 'it's time to stop the sequence and move on... for that place a label > after this inline (on the same procedure!), that you call endlabel, at > step 52 the program will continue at 'that label. > stepcounter = stepcounter + 1 > if stepcounter = 52 then goto endlabel > > 'if however the fading is completed yet, the program should return > back and show the same slide again, but now with the new values of RGB > that were modified in the 'above lines. For that place a label > inbetween the first inline and the slide. This label should be called > againlabel. > if stepcounter < 52 then goto againlabel > ************ > > I think... that if you run the little program that you just created, > you should see some fading happening.... :)  although things kinda > depend on the line "Text1.BackColor = ..." that I am fairly unsure > about :/ > > best, > > liw > > On Apr 19, 12:53 pm, Michiel Spape > wrote: > > > Hiya, > > Sounds like a nice paradigm! > > ... however, fading, much like movement, is not all that easy in E-Prime, though it can be done. For a nice example, see the E-Primer thingy (on my website, about me, underneath everything else - it takes some time to download) in which you learn, somewhere, to make a box move. Knowing that, you can do the same, but then with the colour. > > So, one, you realise that colours in E-Prime are represented as 3 bytes (i.e. 3 values between 0 and 255) in RGB (redgreenblue) space. Thus, from Red (255, 0, 0) to Blue (0,0,255), should be possible by going linearly from 255->0 on the first (red) dimension, and 0->255 on the third (blue) dimension - passing, for instance, somewhere along the way 128,0,128 (purple). > > Knowing that, you could do all this neatly using a little list in between your stimuli to do the whole fading. The list can then have an exit-time of exactly the amount of time you wish to spend fading. Inside the list is the simple procedure with a slide taking, say, 15 ms, and then you change the colour attributes just before every time the slide is shown. For instance, if the slide would have a text display showing [name], in forecolour being [colour], you could simply change the attribute as long as you know: > > - How much time has passed since beginning of the fading? > > - How long should the slide take? > > - What's the begin colour? > > - What's the end colour? > > Then, you could simply linearly interpolate between colours and set the [colour] accordingly. > > > Well, there are quite a few ways to go about this, but none, as far as I can see, for a first-time E-Prime user exactly simple. As for pixel-by-pixel fading, you could do that... but it will take some canvas programming. More difficult than the above. > > Best, > > Mich > > > Michiel Spapé > > Research Fellow > > Perception & Action group > > University of Nottingham > > School of Psychologywww.cognitology.eu > > > -----Original Message----- > > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of miamalika > > Sent: 19 April 2011 11:32 > > To: E-Prime > > Subject: How to fade from slide1 to slide2 (inline?) > > > Hey there! > > > I have a problem. I want to create a Stroop imagery task which > > functions as following: first, a color NAME is presented and the > > subjects have to imagine that color in a following box (white text > > frame in a slide). Then, a second slide is presented (same text frame > > in a slide) but with a back color varying. > > > Now I want a gradual change between the white empty text box and the > > colored text box so that the colors appear to "fade in". > > > How can I do this? I'm pretty new to e-prime so it should be an easy > > solution.. > > > I also thought about fading a picture in pixel by pixel or to have the > > brightness of 1 slide gradually changing from white to the color. > > > What appears best to you? How could I do this? > > > Thank you and best regards > > Mia > > > -- > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > > This message has been checked for viruses but the contents of an attachment > > may still contain software viruses which could damage your computer system: > > you are advised to perform your own checks. Email communications with the > > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Tue Apr 19 15:42:49 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 19 Apr 2011 11:42:49 -0400 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <0a20b817-8b33-4c3e-8a66-04ab01fe9f29@32g2000vbe.googlegrou ps.com> Message-ID: Mia Do I correctly read that you want to present the second stimulus by decreasing its transparency / increasing its opacity over the first stimulus? I don't know much about managing transparency/opacity of visual stimuli, but I wonder if Canvas.RopMode = ebROPModeMerge (see the online E-Basic Help) could help you here? You might also ask PST's trained staff at http://support.pstnet.com/e%2Dprime/support/login.asp -- they strive to respond to all requests in 24-48 hours, and this is pretty much their substitute for proper documentation, so make full use of it. In any event, please post back here with your results. -- David McFarlane, Professional Faultfinder >hahaha, well there you go >.< the lines already broke up differently >when I posted the message as compared to when I wrote it... so do make >sure to 'green out' all my comments in the code by using 's , before >you try to run it... it will definitely not run if my squaks are >still considered code by the program :/ > >On Apr 19, 3:06 pm, liwenna wrote: > > Michiel, I was planning on suggesting exactly that :) > > > > Although I'd like to propose doing it without a list and with a single > > proc that switches back and forth to show the same slide over again > > with the necessary variables modified... it's about as easy and gives > > less mess in the edat files... I did this for a moving object, > > inspired by your example, only a week ago... :) > > > > I can't test this idea right now for I don't have e-prime where I am, > > but you could try these steps: > > > > First off.. try this in a new and experiment/e-studiofile, you can add > > all the other elements of your task once you got the fading working. > > > > Your experiment file (blank! not basic...) shows you a sessionproc. On > > the sessionproc add a list, call it triallist for instance, and > > associate a procedure by typing the desired name of the procedure > > (trialproc?) into the column 'procedure'. You could make several > > levels, but for now a single level will also suffice. > > > > At the beginning of the trialprocedure place an inline with the > > following code (copy/paste everything between ****'s. The lines that > > start wat a ' should colour green in e-prime, they are comments, not > > code... if e-prime breaks up the sentences differently and part of the > > comments do show up in black, blue or orange font, then add ' s at > > the beginning of each line that is not code, so that they turn green): > > > > **************** > > 'create all the variables you'll need: > > dim r as integer > > dim g as integer > > dim b as integer > > dim vr as string > > dim vb as string > > dim vg as string > > dim stepcounter as integer > > > > 'assign value 255 to the red green and blue channels, rgb 255,255,255 > > is white > > r=255 > > b=255 > > g=255 > > > > 'map the integer values of r, g, and b onto the string variables vr, > > vb and vg (there is probably a far better way to do this, but I don't > > know how) > > vr$= r > > vb$= b > > vg$= g > > > > 'use the string rgb variables to modify the backgroundcolor of the > > textobject > > 'this is the line that I am most unsecure about and as said can't test > > it right now.... It assumes a slide text subobject (so.. the textbox > > on your slide) to be called text1, which 'afaik is the default setting > > for the first textbox you place on the slide, text2 for the next etc. > > if you didn't change these names this might work... also might not... > > I'll test it 'myself tomorrow. I could not find the proper code > > anywhere and I kinda wonder how the program would know what text1 on > > which slide to manipulate... > > text1.BackColor = CColor (""& vr$ &","& vg$ &","& vb$ &"") > > > > ***************** > > > > Now after this inline place your slide and put a textbox on it (which > > will likely be named text1 by default). > > In this example I'll try to change the color from white to red in 51 > > steps... each phase (52, including the starting phase) will then be > > shown for the duration of the slide... say that you want the > > transition to take about 1,5 second... then each phase shoudl be shown > > for 1500/52 = 28,8 ms... this is impossible so for now set the > > duration of the slide to 29ms, which probably won't work exactly as > > well timed as one would want, but let's focus on the fading first.... > > > > Directly after the slide place another inline with the following code: > > > > ****************** > > 'first the values of green and blue will be decreased by 5 points, we > > started at 255,255,255 and this way after 51 repeats we will end at > > 255,0,0, which is pure red > > r = r > > g = g - 5 > > b = b - b > > > > 'map the integer values of rgb onto the string variables of rgb > > vr$= r > > vb$= b > > vg$= g > > > > 'assign the new value to text1.backcolor > > Text1.BackColor = CColor (""& vr$ &","& vg$ &","& vb$ &"") > > > > 'stepcounter keeps track of the number of times the above code is > > executed, after the 52 step the fading is done and the values of g and > > b will actually be negative (-5) so > > 'it's time to stop the sequence and move on... for that place a label > > after this inline (on the same procedure!), that you call endlabel, at > > step 52 the program will continue at 'that label. > > stepcounter = stepcounter + 1 > > if stepcounter = 52 then goto endlabel > > > > 'if however the fading is completed yet, the program should return > > back and show the same slide again, but now with the new values of RGB > > that were modified in the 'above lines. For that place a label > > inbetween the first inline and the slide. This label should be called > > againlabel. > > if stepcounter < 52 then goto againlabel > > ************ > > > > I think... that if you run the little program that you just created, > > you should see some fading happening.... :) although things kinda > > depend on the line "Text1.BackColor = ..." that I am fairly unsure > > about :/ > > > > best, > > > > liw > > > > On Apr 19, 12:53 pm, Michiel Spape > > wrote: > > > > > Hiya, > > > Sounds like a nice paradigm! > > > ... however, fading, much like movement, is > not all that easy in E-Prime, though it can be > done. For a nice example, see the E-Primer > thingy (on my website, about me, underneath > everything else - it takes some time to > download) in which you learn, somewhere, to > make a box move. Knowing that, you can do the same, but then with the colour. > > > So, one, you realise that colours in > E-Prime are represented as 3 bytes (i.e. 3 > values between 0 and 255) in RGB (redgreenblue) > space. Thus, from Red (255, 0, 0) to Blue > (0,0,255), should be possible by going linearly > from 255->0 on the first (red) dimension, and > 0->255 on the third (blue) dimension - passing, > for instance, somewhere along the way 128,0,128 (purple). > > > Knowing that, you could do all this neatly > using a little list in between your stimuli to > do the whole fading. The list can then have an > exit-time of exactly the amount of time you > wish to spend fading. Inside the list is the > simple procedure with a slide taking, say, 15 > ms, and then you change the colour attributes > just before every time the slide is shown. For > instance, if the slide would have a text > display showing [name], in forecolour being > [colour], you could simply change the attribute as long as you know: > > > - How much time has passed since beginning of the fading? > > > - How long should the slide take? > > > - What's the begin colour? > > > - What's the end colour? > > > Then, you could simply linearly interpolate > between colours and set the [colour] accordingly. > > > > > Well, there are quite a few ways to go > about this, but none, as far as I can see, for > a first-time E-Prime user exactly simple. As > for pixel-by-pixel fading, you could do that... > but it will take some canvas programming. More difficult than the above. > > > Best, > > > Mich > > > > > Michiel Spapé > > > Research Fellow > > > Perception & Action group > > > University of Nottingham > > > School of Psychologywww.cognitology.eu > > > > > -----Original Message----- > > > From: e-prime at googlegroups.com > [mailto:e-prime at googlegroups.com] On Behalf Of miamalika > > > Sent: 19 April 2011 11:32 > > > To: E-Prime > > > Subject: How to fade from slide1 to slide2 (inline?) > > > > > Hey there! > > > > > I have a problem. I want to create a Stroop imagery task which > > > functions as following: first, a color NAME is presented and the > > > subjects have to imagine that color in a following box (white text > > > frame in a slide). Then, a second slide is presented (same text frame > > > in a slide) but with a back color varying. > > > > > Now I want a gradual change between the white empty text box and the > > > colored text box so that the colors appear to "fade in". > > > > > How can I do this? I'm pretty new to e-prime so it should be an easy > > > solution.. > > > > > I also thought about fading a picture in pixel by pixel or to have the > > > brightness of 1 slide gradually changing from white to the color. > > > > > What appears best to you? How could I do this? > > > > > Thank you and best regards > > > Mia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pfc.groot at gmail.com Tue Apr 19 22:52:28 2011 From: pfc.groot at gmail.com (Paul Groot) Date: Wed, 20 Apr 2011 00:52:28 +0200 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <8746a8a7-17a9-4198-a3fb-9fe890ac0efb@k3g2000prl.googlegroups.com> Message-ID: Hi Mia, The attached example is a kind of minimal implementation (using EPrime 1.2) of a simple drawing loop which changes the background color on the fly. Much like suggested in previous postings. I initialy tried to dynamically read the background color at the beginning of the script, but couldn''t get the translation from long RGB values to separate R G and B values in the range 0..255. So, just as a workaround, both the initial and target colors are explicitly coded. hope it is of any help Paul -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- A non-text attachment was scrubbed... Name: FadingColors.es Type: application/octet-stream Size: 8827 bytes Desc: not available URL: From jotapan at hotmail.com Wed Apr 20 00:33:55 2011 From: jotapan at hotmail.com (jotapan) Date: Tue, 19 Apr 2011 17:33:55 -0700 Subject: jump or if then? Message-ID: Hi to all, I have what I believe o be a simple task to program, but I just not being able to do it since I'm a beginner in e-prime. I have two tasks: 1) task 1: responses A and B 2) and task 2: responses 1, 2, and 3 I want task 2 to be presented to the participant only if he responds A in task 1; if he responds B he should just gets the next trial of task 1. I tried looking into the "jump" of the stimulus property, but from what I understood it works independently of what response is given to that stimulus. Another idea I had was just to create a script with an if then rule, which I don't know how to do :( the idea would be something like (with proper coding) If response to task 1 = A, then task B, else Task A end if Any help would be very appreciated! thanks Jotapan -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Wed Apr 20 08:23:36 2011 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Wed, 20 Apr 2011 09:23:36 +0100 Subject: jump or if then? In-Reply-To: <35a1c336-e8a5-47eb-93ce-b472f9cba50d@r23g2000vbp.googlegroups.com> Message-ID: Hiya, If it's as simple as you think it is, you should be able to do it after having read the "getting started guide". In this case, you would be right - and if the getting started guide may not do it for you, I'd suggest working through our little bit of freely available course material (www.cognitology.eu, about me, underneath everything else), because, ultimately, you cannot use E-Prime 'instantly' (at least, very few students seem to, even though there are some talented 'coders-to-be'). So, despite me answering this question, try to give it a go anyway. 1. Stimulus1 is a textdisplay saying "Do you want to do task 2? A = yes, B = no", allowable response ab. That's just about what you want, no? 2. After that is an inline saying IF Stimulus1.RESP = "b" THEN goto Dontwanttodotask2 3. Stimulus2 is a textdisplay saying "Select response 1, 2 or 3" (or whatever you'd like). 4. Then insert a label, call it Dontwanttodotask2 That's basically it. Note that I use no else, since Stimulus2 will follow anyway, unless b is selected. After 4 is the end of the trial, so it should continue with your task1. Best, Mich Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology www.cognitology.eu -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan Sent: 20 April 2011 01:34 To: E-Prime Subject: jump or if then? Hi to all, I have what I believe o be a simple task to program, but I just not being able to do it since I'm a beginner in e-prime. I have two tasks: 1) task 1: responses A and B 2) and task 2: responses 1, 2, and 3 I want task 2 to be presented to the participant only if he responds A in task 1; if he responds B he should just gets the next trial of task 1. I tried looking into the "jump" of the stimulus property, but from what I understood it works independently of what response is given to that stimulus. Another idea I had was just to create a script with an if then rule, which I don't know how to do :( the idea would be something like (with proper coding) If response to task 1 = A, then task B, else Task A end if Any help would be very appreciated! thanks Jotapan -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From jotapan at hotmail.com Wed Apr 20 10:33:17 2011 From: jotapan at hotmail.com (jotapan) Date: Wed, 20 Apr 2011 03:33:17 -0700 Subject: jump or if then? In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E53C6@EXCHANGE3.ad.nottingham.ac.uk> Message-ID: Hi Michiel, Thank you so much for your reply and for the link to your e-prime guide. It will be very helpful! I have been able to jump task 2 when participants responds B in task 1 using your suggestion, but I now have a problem in the response and RT data logging. I was expecting the program not to save any information for the task2 trials when they are not presented to the participant (i.e., when it just jumps to task 1 again not presenting task2). However, the program is simply repeating whatever response is given the first time task 2 is presented on the following trials when task 2 is not presented; these data only change the next time task 2 is presented again and another response is given to the task. Jotapan On Apr 20, 9:23 am, Michiel Spape wrote: > Hiya, > If it's as simple as you think it is, you should be able to do it after having read the "getting started guide". In this case, you would be right - and if the getting started guide may not do it for you, I'd suggest working through our little bit of freely available course material (www.cognitology.eu, about me, underneath everything else), because, ultimately, you cannot use E-Prime 'instantly' (at least, very few students seem to, even though there are some talented 'coders-to-be'). So, despite me answering this question, try to give it a go anyway. > > 1. Stimulus1 is a textdisplay saying "Do you want to do task 2? A = yes, B = no", allowable response ab. That's just about what you want, no? > 2. After that is an inline saying > IF Stimulus1.RESP = "b" THEN goto Dontwanttodotask2 > 3. Stimulus2 is a textdisplay saying "Select response 1, 2 or 3" (or whatever you'd like). > 4. Then insert a label, call it Dontwanttodotask2 > > That's basically it. Note that I use no else, since Stimulus2 will follow anyway, unless b is selected. After 4 is the end of the trial, so it should continue with your task1. > Best, > Mich > > Michiel Spapé > Research Fellow > Perception & Action group > University of Nottingham > School of Psychologywww.cognitology.eu > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan > Sent: 20 April 2011 01:34 > To: E-Prime > Subject: jump or if then? > > Hi to all, > I have what I believe o be a simple task to program, but I just not > being able to do it since I'm a beginner in e-prime. > > I have two tasks: > 1) task 1: responses A and B > 2) and task 2: responses 1, 2, and 3 > > I want task 2 to be presented to the participant only if he responds A > in task 1; if he responds B he should just gets the next trial of task > 1. > I tried looking into the "jump" of the stimulus property, but from > what I understood it works independently of what response is given to > that stimulus. > Another idea I had was just to create a script with an if then rule, > which I don't know how to do :( the idea would be something like (with > proper coding) > > If response to task 1 = A, > then task B, > else Task A > end if > > Any help would be very appreciated! thanks > Jotapan > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Wed Apr 20 10:36:15 2011 From: liwenna at gmail.com (liwenna) Date: Wed, 20 Apr 2011 03:36:15 -0700 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: Message-ID: Oh Paul, that is really cool! I also tried my own suggestion.. it didn't work indeed >.< the one line that I doubted about is indeed not correct... it does work if you replace it with: CSlideText(Slide1.States(Slide1.ActiveState).Objects("Text1")).backcolor= CColor (""& vr$ &","& vg$ &","& vb$ &"") For anyone trying to use it: that line should replace the line "text1.backcolor = " which appears twice in the code I wrote above. There also is a typo in that code... somewhere there is a line that reads: b = b -b ... which shoudl be b= b-5... otherwise the color fades to very yellow first and then to red :p adding these lines at the start of the second inline (and then removing the r = r, g = g-5 and b=b-b lines) makes the color fade to either red green or blue based on the color specified in an attribute called color: ************** select case c.getattrib ("color") case "red" r = r g = g -5 b = b -5 case "blue" r = r -5 g = g -5 b = b case "green" r = r -5 b = b -5 g = g end select ******** I am quite in love with this feature... :p Hope to find some use for it some day ^.^ Paul, how did you attach a file??! best, liw On Apr 20, 12:52 am, Paul Groot wrote: > Hi Mia, > > The attached example is a kind of minimal implementation (using EPrime > 1.2) of a simple drawing loop which changes the background color on > the fly. Much like suggested in previous postings. I initialy tried to > dynamically read the background color at the beginning of the script, > but couldn''t get the translation from long RGB values to separate R G > and B values in the range 0..255. So, just as a workaround, both the > initial and target colors are explicitly coded. > > hope it is of any help > Paul > >  FadingColors.es > 11KViewDownload -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Wed Apr 20 10:55:10 2011 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Wed, 20 Apr 2011 11:55:10 +0100 Subject: jump or if then? In-Reply-To: Message-ID: Hi Jotapan, It shouldn't, as far as I can see. Do you have the most typical E-Prime structure here, or are you, in fact, jumping to and fro, indeed adding even another goto to my suggestion? That is to say, for E-Prime, it makes sense to stop thinking about "go to task 1, then goto task 2, followed by task 1" but instead see it as: In the beginning, there is a trial. In one trial, we present either one or two stimuli (or tasks, if you will). This means that there is no "going back to task 1" but rather, at the end of the trial, the procedure is repeated. In which case, Stimulus1.RESP as well as Stimulus2.RESP should be cleared. If this shot in the dark totally misses, however, you can just ignore me and use some work-around. I like to store my dependent variables as "Y_" followed by the type - so they all are stored at the end of your .edat file. This also gives you a little bit of flexibility in storing your data as you would like to analyse it. I'd say pick the correct lines and store your favourite responses at your favourite moment by doing something like c.SetAttrib "Y_RESP2", Stimulus2.RESP or, which shouldn't be necessary, at the very end: IF Stimulus1.RESP = "a" then c.SetAttrib "Y_RESP2", Stimulus2.RESP else c.SetAttrib "Y_RESP2", "" Best, Mich Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology www.cognitology.eu -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan Sent: 20 April 2011 11:33 To: E-Prime Subject: Re: jump or if then? Hi Michiel, Thank you so much for your reply and for the link to your e-prime guide. It will be very helpful! I have been able to jump task 2 when participants responds B in task 1 using your suggestion, but I now have a problem in the response and RT data logging. I was expecting the program not to save any information for the task2 trials when they are not presented to the participant (i.e., when it just jumps to task 1 again not presenting task2). However, the program is simply repeating whatever response is given the first time task 2 is presented on the following trials when task 2 is not presented; these data only change the next time task 2 is presented again and another response is given to the task. Jotapan On Apr 20, 9:23 am, Michiel Spape wrote: > Hiya, > If it's as simple as you think it is, you should be able to do it after having read the "getting started guide". In this case, you would be right - and if the getting started guide may not do it for you, I'd suggest working through our little bit of freely available course material (www.cognitology.eu, about me, underneath everything else), because, ultimately, you cannot use E-Prime 'instantly' (at least, very few students seem to, even though there are some talented 'coders-to-be'). So, despite me answering this question, try to give it a go anyway. > > 1. Stimulus1 is a textdisplay saying "Do you want to do task 2? A = yes, B = no", allowable response ab. That's just about what you want, no? > 2. After that is an inline saying > IF Stimulus1.RESP = "b" THEN goto Dontwanttodotask2 > 3. Stimulus2 is a textdisplay saying "Select response 1, 2 or 3" (or whatever you'd like). > 4. Then insert a label, call it Dontwanttodotask2 > > That's basically it. Note that I use no else, since Stimulus2 will follow anyway, unless b is selected. After 4 is the end of the trial, so it should continue with your task1. > Best, > Mich > > Michiel Spapé > Research Fellow > Perception & Action group > University of Nottingham > School of Psychologywww.cognitology.eu > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan > Sent: 20 April 2011 01:34 > To: E-Prime > Subject: jump or if then? > > Hi to all, > I have what I believe o be a simple task to program, but I just not > being able to do it since I'm a beginner in e-prime. > > I have two tasks: > 1) task 1: responses A and B > 2) and task 2: responses 1, 2, and 3 > > I want task 2 to be presented to the participant only if he responds A > in task 1; if he responds B he should just gets the next trial of task > 1. > I tried looking into the "jump" of the stimulus property, but from > what I understood it works independently of what response is given to > that stimulus. > Another idea I had was just to create a script with an if then rule, > which I don't know how to do :( the idea would be something like (with > proper coding) > > If response to task 1 = A, > then task B, > else Task A > end if > > Any help would be very appreciated! thanks > Jotapan > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From jotapan at hotmail.com Wed Apr 20 11:19:55 2011 From: jotapan at hotmail.com (jotapan) Date: Wed, 20 Apr 2011 04:19:55 -0700 Subject: jump or if then? In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E53FD@EXCHANGE3.ad.nottingham.ac.uk> Message-ID: Hi Michiel, Thanks for your new suggestion. I think I'm using the right structure, but I might be missing something :( Here's what I'm doing in this procedure: > Slide 1 : allowed responses A & B > InLIne 1: If slide1.RESP="b" THEN goto donttask2 > Slide 2: allowed responses 1 & 2 & 3 > Label: donttask2 I'll be trying your suggestion, Best, Jotapan On Apr 20, 11:55 am, Michiel Spape wrote: > Hi Jotapan, > It shouldn't, as far as I can see. Do you have the most typical E-Prime structure here, or are you, in fact, jumping to and fro, indeed adding even another goto to my suggestion? That is to say, for E-Prime, it makes sense to stop thinking about "go to task 1, then goto task 2, followed by task 1" but instead see it as: > In the beginning, there is a trial. > In one trial, we present either one or two stimuli (or tasks, if you will). > This means that there is no "going back to task 1" but rather, at the end of the trial, the procedure is repeated. In which case, Stimulus1.RESP as well as Stimulus2.RESP should be cleared. > > If this shot in the dark totally misses, however, you can just ignore me and use some work-around. I like to store my dependent variables as "Y_" followed by the type - so they all are stored at the end of your .edat file. This also gives you a little bit of flexibility in storing your data as you would like to analyse it. I'd say pick the correct lines and store your favourite responses at your favourite moment by doing something like > c.SetAttrib "Y_RESP2", Stimulus2.RESP > or, which shouldn't be necessary, at the very end: > IF Stimulus1.RESP = "a" then c.SetAttrib "Y_RESP2", Stimulus2.RESP else c.SetAttrib "Y_RESP2", "" > > Best, > Mich > > Michiel Spapé > Research Fellow > Perception & Action group > University of Nottingham > School of Psychologywww.cognitology.eu > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan > Sent: 20 April 2011 11:33 > To: E-Prime > Subject: Re: jump or if then? > > Hi Michiel, > > Thank you so much for your reply and for the link to your e-prime > guide. It will be very helpful! > > I have been able to jump task 2 when participants responds B in task 1 > using your suggestion, but I now have a problem in the response and RT > data logging. I was expecting the program not to save any information > for the task2 trials when they are not presented to the participant > (i.e., when it just jumps to task 1 again not presenting task2). > However, the program is simply repeating whatever response is given > the first time task 2 is presented on the following trials when task 2 > is not presented; these data only change the next time task 2 is > presented again and another response is given to the task. > > Jotapan > > On Apr 20, 9:23 am, Michiel Spape > wrote: > > Hiya, > > If it's as simple as you think it is, you should be able to do it after having read the "getting started guide". In this case, you would be right - and if the getting started guide may not do it for you, I'd suggest working through our little bit of freely available course material (www.cognitology.eu, about me, underneath everything else), because, ultimately, you cannot use E-Prime 'instantly' (at least, very few students seem to, even though there are some talented 'coders-to-be'). So, despite me answering this question, try to give it a go anyway. > > > 1. Stimulus1 is a textdisplay saying "Do you want to do task 2? A = yes, B = no", allowable response ab. That's just about what you want, no? > > 2. After that is an inline saying > > IF Stimulus1.RESP = "b" THEN goto Dontwanttodotask2 > > 3. Stimulus2 is a textdisplay saying "Select response 1, 2 or 3" (or whatever you'd like). > > 4. Then insert a label, call it Dontwanttodotask2 > > > That's basically it. Note that I use no else, since Stimulus2 will follow anyway, unless b is selected. After 4 is the end of the trial, so it should continue with your task1. > > Best, > > Mich > > > Michiel Spapé > > Research Fellow > > Perception & Action group > > University of Nottingham > > School of Psychologywww.cognitology.eu > > > -----Original Message----- > > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan > > Sent: 20 April 2011 01:34 > > To: E-Prime > > Subject: jump or if then? > > > Hi to all, > > I have what I believe o be a simple task to program, but I just not > > being able to do it since I'm a beginner in e-prime. > > > I have two tasks: > > 1) task 1: responses A and B > > 2) and task 2: responses 1, 2, and 3 > > > I want task 2 to be presented to the participant only if he responds A > > in task 1; if he responds B he should just gets the next trial of task > > 1. > > I tried looking into the "jump" of the stimulus property, but from > > what I understood it works independently of what response is given to > > that stimulus. > > Another idea I had was just to create a script with an if then rule, > > which I don't know how to do :( the idea would be something like (with > > proper coding) > > > If response to task 1 = A, > > then task B, > > else Task A > > end if > > > Any help would be very appreciated! thanks > > Jotapan > > > -- > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > > This message has been checked for viruses but the contents of an attachment > > may still contain software viruses which could damage your computer system: > > you are advised to perform your own checks. Email communications with the > > University of Nottingham may be monitored as permitted by UK legislation. > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From ashtyster at gmail.com Wed Apr 20 11:24:36 2011 From: ashtyster at gmail.com (Ashtyster) Date: Wed, 20 Apr 2011 04:24:36 -0700 Subject: adjusting time of stimulus presentation by key presses Message-ID: Hello, I would like to develop a task in which the default viewing time of each stimulus could be adjusted by the participants according to their ‘work-effort’, i.e. the frequency of key-pressing of either the ‘up’ or the ‘down’ keys. I would like to have a visual analogue scale presented together with each stimulus which would provide participants with a real time indication of the viewing time duration, with a bar moving downwards over time (the speed of movement could either be slowed or increased by the key presses). First of all, is it possible to create such a task with E-Prime. If yes, could anyone please advise on which objects/functions to tamper with? All kinds of input will be very much appreciated! Cheers, A. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From jotapan at hotmail.com Wed Apr 20 11:24:55 2011 From: jotapan at hotmail.com (jotapan) Date: Wed, 20 Apr 2011 04:24:55 -0700 Subject: jump or if then? In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E53FD@EXCHANGE3.ad.nottingham.ac.uk> Message-ID: Hi Michiel, Thank you so much for this new input. I think I have the right structure in my procedure. Here is what I have in my procedure: > Slide 1 : allowed responses a & b > InLIne: If slide1.RESP="b" THEN goto donttask2 > Slide 2: allowed responses 1, 2, & 3 > Label: donttask2 Indeed at the end of this sequence it moves on to the next trial on the list. Am I missing something? I'll try you suggestion as well, Best, Jotapan On Apr 20, 11:55 am, Michiel Spape wrote: > Hi Jotapan, > It shouldn't, as far as I can see. Do you have the most typical E-Prime structure here, or are you, in fact, jumping to and fro, indeed adding even another goto to my suggestion? That is to say, for E-Prime, it makes sense to stop thinking about "go to task 1, then goto task 2, followed by task 1" but instead see it as: > In the beginning, there is a trial. > In one trial, we present either one or two stimuli (or tasks, if you will). > This means that there is no "going back to task 1" but rather, at the end of the trial, the procedure is repeated. In which case, Stimulus1.RESP as well as Stimulus2.RESP should be cleared. > > If this shot in the dark totally misses, however, you can just ignore me and use some work-around. I like to store my dependent variables as "Y_" followed by the type - so they all are stored at the end of your .edat file. This also gives you a little bit of flexibility in storing your data as you would like to analyse it. I'd say pick the correct lines and store your favourite responses at your favourite moment by doing something like > c.SetAttrib "Y_RESP2", Stimulus2.RESP > or, which shouldn't be necessary, at the very end: > IF Stimulus1.RESP = "a" then c.SetAttrib "Y_RESP2", Stimulus2.RESP else c.SetAttrib "Y_RESP2", "" > > Best, > Mich > > Michiel Spapé > Research Fellow > Perception & Action group > University of Nottingham > School of Psychologywww.cognitology.eu > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan > Sent: 20 April 2011 11:33 > To: E-Prime > Subject: Re: jump or if then? > > Hi Michiel, > > Thank you so much for your reply and for the link to your e-prime > guide. It will be very helpful! > > I have been able to jump task 2 when participants responds B in task 1 > using your suggestion, but I now have a problem in the response and RT > data logging. I was expecting the program not to save any information > for the task2 trials when they are not presented to the participant > (i.e., when it just jumps to task 1 again not presenting task2). > However, the program is simply repeating whatever response is given > the first time task 2 is presented on the following trials when task 2 > is not presented; these data only change the next time task 2 is > presented again and another response is given to the task. > > Jotapan > > On Apr 20, 9:23 am, Michiel Spape > wrote: > > Hiya, > > If it's as simple as you think it is, you should be able to do it after having read the "getting started guide". In this case, you would be right - and if the getting started guide may not do it for you, I'd suggest working through our little bit of freely available course material (www.cognitology.eu, about me, underneath everything else), because, ultimately, you cannot use E-Prime 'instantly' (at least, very few students seem to, even though there are some talented 'coders-to-be'). So, despite me answering this question, try to give it a go anyway. > > > 1. Stimulus1 is a textdisplay saying "Do you want to do task 2? A = yes, B = no", allowable response ab. That's just about what you want, no? > > 2. After that is an inline saying > > IF Stimulus1.RESP = "b" THEN goto Dontwanttodotask2 > > 3. Stimulus2 is a textdisplay saying "Select response 1, 2 or 3" (or whatever you'd like). > > 4. Then insert a label, call it Dontwanttodotask2 > > > That's basically it. Note that I use no else, since Stimulus2 will follow anyway, unless b is selected. After 4 is the end of the trial, so it should continue with your task1. > > Best, > > Mich > > > Michiel Spapé > > Research Fellow > > Perception & Action group > > University of Nottingham > > School of Psychologywww.cognitology.eu > > > -----Original Message----- > > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan > > Sent: 20 April 2011 01:34 > > To: E-Prime > > Subject: jump or if then? > > > Hi to all, > > I have what I believe o be a simple task to program, but I just not > > being able to do it since I'm a beginner in e-prime. > > > I have two tasks: > > 1) task 1: responses A and B > > 2) and task 2: responses 1, 2, and 3 > > > I want task 2 to be presented to the participant only if he responds A > > in task 1; if he responds B he should just gets the next trial of task > > 1. > > I tried looking into the "jump" of the stimulus property, but from > > what I understood it works independently of what response is given to > > that stimulus. > > Another idea I had was just to create a script with an if then rule, > > which I don't know how to do :( the idea would be something like (with > > proper coding) > > > If response to task 1 = A, > > then task B, > > else Task A > > end if > > > Any help would be very appreciated! thanks > > Jotapan > > > -- > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > > This message has been checked for viruses but the contents of an attachment > > may still contain software viruses which could damage your computer system: > > you are advised to perform your own checks. Email communications with the > > University of Nottingham may be monitored as permitted by UK legislation. > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From matthewdwood82 at gmail.com Wed Apr 20 12:43:01 2011 From: matthewdwood82 at gmail.com (Matthew) Date: Wed, 20 Apr 2011 05:43:01 -0700 Subject: string input with spaces In-Reply-To: <4da760ae.da71e70a.075d.2236SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Hi Liw, Dave, Great advice! We had tried using the space character based on what was in the datafile, but didn't think to expand the column in the spreadsheet to reveal the other character of interest, {ENTER}. I'm a little surprised that the termination response is logged actually, but only when Allowable is {ANY} and Advanced... Response Mode is ALL. I have a similar script that has both these set to AlphaNumeric, and {ENTER} terminates the response but is never logged. Wouldn't be hard to clean these out of the datafile either via the EPrime script or a VB macro afterwards, but since only an "educated" few will be looking at this data, I don't feel like its necessary. I'll cross-post this to my SOS on PST's forums. Best, -Matt On Apr 14, 5:01 pm, David McFarlane wrote: > Matt, > > Stock reminder:  1) I do not work for PST.  2) PST's trained staff > takes any and all questions athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they > strive to respond to all requests in 24-48 hours -- this is pretty > much their substitute for proper documentation, so make full use of > it.  3) If you do get an answer from PST Web Support, please extend > the courtesy of posting their reply back here for the sake of others. > > That said, here is my take... > > In your .edat files, take a look at your .RESP value strings, and > compare those to the strings in your Correct attribute.  Does the > subject's RESP have a "{SPACE}" wherever they entered a space > character?  Then your Correct attribute has to do the same.  Please > see the "{key} nomenclature" topic in the online E-Basic > Help.  Alternatively, you could add inline code to replace the {key} > nomenclature with proper text, as in the example provided by PST's > own Matt Lenhart athttp://www.pstnet.com/forum/Topic2194-5-1.aspx (must register & > login to download). > > -- David McFarlane, Professional Faultfinder > > At 4/14/2011 10:39 AM Thursday, you wrote: > > > > > > > > >Hi all, > > >I have trouble with a problem solving experiment a student in a class > >I'm TAing put together.  Rebus puzzles (e.g. > >http://preview.tinyurl.com/3s73mwj) > >are being used as the task.  The answers to these puzzles are short > >idioms or sayings (e.g. "a cut above the rest"). > > >The script has a slide which presents the puzzle stimulus (picture > >file) and echoes input from the keyboard.  Problem is, when the answer > >held in  our [CorrectAnswer] attribute is a string that contains > >spaces, we either get an error message "Correct is not part of > >allowable," or the script fails to recognize that a correct answer has > >been provided.  I've mucked around with various settings of allowable > >input in the Duration/Input and Echo submenus of the SlideObject, and > >am having trouble remembering which mapped to which. > > >I think the problem is somewhere in how the input is being parsed and > >compared to the value held in the list attribute [CorrectAnswer].  Our > >current workaround is to omit spaces from all responses, but it seems > >like the fix should be fairly simple (whatever it is).  Am happy to > >send a copy of the experiment on request. > > >Thanks for your help, > >-Matt -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From r.dardennes at gmail.com Wed Apr 20 21:46:56 2011 From: r.dardennes at gmail.com (Roland Dardennes) Date: Wed, 20 Apr 2011 14:46:56 -0700 Subject: CodecConfig crashes immediately + refreshment error with two 120 Hz LCD monitors driven by an ATI card Message-ID: Good evening, I am trying to load a wmv movie in an experiment. For this purpose, I launched CodecConfig but it crashes immediately. After reading EP2 KB I made an update from revision 2.0.8.74 to 2.0.8.90. But CodecConfig still crashes on my SP3 XP Sony Vaio RX406. I had no problem using the old version on my W7 HP EliteBook laptop, but it crashes everytime on my Sony. Any advice will be welcomed. Meanwhile, I will use VLC to show the movie (it is just a relaxing sequence to get a baseline for GSR sampling). Another problem is the use of two displays. When I used an old CRT Viewsonic parallel to a LCD Viewsonic, I could have a monitor for the participant while monitoring on the LCD. I changed it for a 120 Hz LCD monitor (the other one is also a 120 Hz monitor) but had to use the Graphic Card software - ATI Catalyst - to make them work properly. Then, I launched an experiment and I got a refreshment error because E- Prime could not get a refresh rate higher than 40 (and both monitors are setup for 120 Hz refreshment rate). If someone did have a problem of this kind, I would appreciate knowing how the problem was solved. Thank you for this very useful E-Prime Group that provides excellent help facing the poor documentation of E-Prime, Basic-Help included. RD -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pfc.groot at gmail.com Wed Apr 20 21:49:45 2011 From: pfc.groot at gmail.com (Paul Groot) Date: Wed, 20 Apr 2011 23:49:45 +0200 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <7be41e6a-895c-48d6-8434-020352246a8f@u15g2000vby.googlegroups.com> Message-ID: well, I just replied within my email reader (google webmail in this case) and attached the file. Not sure if you can also attach anything when you reply from the google group webpages. Paul 2011/4/20 liwenna : ... > > Paul, how did you attach a file??! > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Thu Apr 21 09:07:14 2011 From: liwenna at gmail.com (Anne-Wil Kruijt) Date: Thu, 21 Apr 2011 11:07:14 +0200 Subject: How to fade from slide1 to slide2 (inline?) Message-ID: Like this?? *if not working but someone IS reading it somehow, after all: this is a test to see if I can post a message to a certain thread on the e-prime group directly from my web browser so that it can have attachments* -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fadingcolors.es2 Type: application/octet-stream Size: 37098 bytes Desc: not available URL: From liwenna at gmail.com Thu Apr 21 09:09:13 2011 From: liwenna at gmail.com (liwenna) Date: Thu, 21 Apr 2011 02:09:13 -0700 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: Message-ID: yay! so, for anyone else: from your (g?)mail browser send the e-mail to e- prime at googlegroups.com and enter re: nameoftopic ( Re: How to fade from slide1 to slide2 (inline?) in this case) as the subject. On Apr 21, 11:07 am, Anne-Wil Kruijt wrote: > Like this?? > > *if not working but someone IS reading it somehow, after all: this is a test > to see if I can post a message to a certain thread on the e-prime group > directly from my web browser so that it can have attachments* > >  fadingcolors.es2 > 48KViewDownload -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Thu Apr 21 09:10:40 2011 From: liwenna at gmail.com (liwenna) Date: Thu, 21 Apr 2011 02:10:40 -0700 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: Message-ID: ow and I probably shouldn't have given it the exact same filename as Paul's version... >.< On Apr 21, 11:09 am, liwenna wrote: > yay! > > so, for anyone else: from your (g?)mail browser send the e-mail to e- > prime at googlegroups.com and enter re: nameoftopic ( Re: How to fade > from slide1 to slide2 (inline?) in this case) as the subject. > > On Apr 21, 11:07 am, Anne-Wil Kruijt wrote: > > > Like this?? > > > *if not working but someone IS reading it somehow, after all: this is a test > > to see if I can post a message to a certain thread on the e-prime group > > directly from my web browser so that it can have attachments* > > >  fadingcolors.es2 > > 48KViewDownload -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Apr 21 16:14:32 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 21 Apr 2011 12:14:32 -0400 Subject: adjusting time of stimulus presentation by key presses In-Reply-To: Message-ID: Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... First, it is very possible to make such a task in E-Prime, though it will not be simple. In short, you could use an attribute reference for the Duration property of each stimulus, and then adjust that attribute value in inline code using c.SetAttrib (see Chapter 4 of the User's Guide that came with E-Prime, and the "Context" topic in the online E-Basic Help). You will also need some global variables to keep track of things, once again see Chapter 4. To use "up" & "down" key responses you will have to use the {key} nomenclature, see that topic in the online E-Basic Help. You might also want to learn about using releases as responses in case you want to do things by having subjects press & hold a key, etc. To create your graphics, you might use another attrbute reference to set the Height or Width property of objects on a Slide (my own favorite trick), or delve right into the Canvas object and draw whatever you like. I leave the rest as an exercise for you. -- David McFarlane, Professional Faultfinder >I would like to develop a task in which the default viewing time of >each stimulus could be adjusted by the participants according to their >'work-effort', i.e. the frequency of key-pressing of either the 'up' >or the 'down' keys. I would like to have a visual analogue scale >presented together with each stimulus which would provide participants >with a real time indication of the viewing time duration, with a bar >moving downwards over time (the speed of movement could either be >slowed or increased by the key presses). > >First of all, is it possible to create such a task with E-Prime. If >yes, could anyone please advise on which objects/functions to tamper >with? > >All kinds of input will be very much appreciated! > >Cheers, >A. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Apr 21 17:51:38 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 21 Apr 2011 13:51:38 -0400 Subject: jump or if then? In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E53C6@EXCHANGE3.ad.no ttingham.ac.uk> Message-ID: I would have you go with Mich's approach here. But as an academic exercise, here is how to accomplish the same thing using Jump and no inline. Trial proc structured same as before, but no inline: - Slide 1 : allowed responses A & B - Slide 2: allowed responses 1 & 2 & 3 - Label: donttask2 On Slide 1, set Jump Label to donttask2. Then add *two* keyboard input masks. For one of them, set Allowable to A, and End Action to Jump; for the other, set Allowable to B and End Action to (terminate). That should do it. Using multiple input masks and Jump is an art suitable to only a few, most will find If-Then in an inline more manageable. -- David McFarlane, Professional At 4/20/2011 04:23 AM Wednesday, Michiel Spape wrote: >Hiya, >If it's as simple as you think it is, you should >be able to do it after having read the "getting >started guide". In this case, you would be right >- and if the getting started guide may not do it >for you, I'd suggest working through our little >bit of freely available course material >(www.cognitology.eu, about me, underneath >everything else), because, ultimately, you >cannot use E-Prime 'instantly' (at least, very >few students seem to, even though there are some >talented 'coders-to-be'). So, despite me >answering this question, try to give it a go anyway. > >1. Stimulus1 is a textdisplay saying "Do you >want to do task 2? A = yes, B = no", allowable >response ab. That's just about what you want, no? >2. After that is an inline saying >IF Stimulus1.RESP = "b" THEN goto Dontwanttodotask2 >3. Stimulus2 is a textdisplay saying "Select >response 1, 2 or 3" (or whatever you'd like). >4. Then insert a label, call it Dontwanttodotask2 > >That's basically it. Note that I use no else, >since Stimulus2 will follow anyway, unless b is >selected. After 4 is the end of the trial, so it >should continue with your task1. >Best, >Mich > >Michiel Spapé >Research Fellow >Perception & Action group >University of Nottingham >School of Psychology >www.cognitology.eu > > >-----Original Message----- >From: e-prime at googlegroups.com >[mailto:e-prime at googlegroups.com] On Behalf Of jotapan >Sent: 20 April 2011 01:34 >To: E-Prime >Subject: jump or if then? > >Hi to all, >I have what I believe o be a simple task to program, but I just not >being able to do it since I'm a beginner in e-prime. > >I have two tasks: >1) task 1: responses A and B >2) and task 2: responses 1, 2, and 3 > >I want task 2 to be presented to the participant only if he responds A >in task 1; if he responds B he should just gets the next trial of task >1. >I tried looking into the "jump" of the stimulus property, but from >what I understood it works independently of what response is given to >that stimulus. >Another idea I had was just to create a script with an if then rule, >which I don't know how to do :( the idea would be something like (with >proper coding) > >If response to task 1 = A, >then task B, >else Task A >end if > >Any help would be very appreciated! thanks >Jotapan -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From andrea-laura at gmx.ch Tue Apr 26 15:33:05 2011 From: andrea-laura at gmx.ch (miamalika) Date: Tue, 26 Apr 2011 08:33:05 -0700 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <0ff1e566-e781-447c-bbe0-3f1b4dafc1f8@w9g2000prg.googlegroups.com> Message-ID: Hi guys! WOW, THANK YOU SO MUCH FOR YOUR SUPPORT! After all the Eastern celebrations I am struggling with meetings, dates... but I will start to realize your suggestions asap! I will report my results as soon as I get there.. Thanks again and best wishes - mia On 21 Apr., 11:10, liwenna wrote: > ow and I probably shouldn't have given it the exact same filename as > Paul's version... >.< > > On Apr 21, 11:09 am, liwenna wrote: > > > > > yay! > > > so, for anyone else: from your (g?)mail browser send the e-mail to e- > > prime at googlegroups.com and enter re: nameoftopic ( Re: How to fade > > from slide1 to slide2 (inline?) in this case) as the subject. > > > On Apr 21, 11:07 am, Anne-Wil Kruijt wrote: > > > > Like this?? > > > > *if not working but someone IS reading it somehow, after all: this is a test > > > to see if I can post a message to a certain thread on the e-prime group > > > directly from my web browser so that it can have attachments* > > > >  fadingcolors.es2 > > > 48KViewDownload -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Wed Apr 27 09:33:52 2011 From: liwenna at gmail.com (liwenna) Date: Wed, 27 Apr 2011 02:33:52 -0700 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <43bbb2bc-8f42-4411-b410-24a725b97c3b@w36g2000vbi.googlegroups.com> Message-ID: Hi Mia, A little warning ahead: given that your task is a Stroop task you'll also want to collect response times... probably using a microphone? Should the rt's include the time that is spent on the fading? If so, then you'll probably have to use one trick or another in order to arrive at the correct RT. What trick to use exactly kinda depends on which fading set-up you'll use (although all three are pretty similar) and what your termination response is (button, mic). Don't hesitate to come back once you arrived at that point and maybe the other readers can already make their suggestions? I would likely opt for using some set-up in which the rt is computed from the rttime variables but I vaguely remember that in the past I have read David suggesting an entirely different object to run simultaneously on which the response is collected... but I can't find that post back... David? best, liw On Apr 26, 5:33 pm, miamalika wrote: > Hi guys! > > WOW, THANK YOU SO MUCH FOR YOUR SUPPORT! > > After all the Eastern celebrations I am struggling with meetings, > dates... but I will start to realize your suggestions asap! > > I will report my results as soon as I get there.. > > Thanks again and best wishes > - mia > > On 21 Apr., 11:10, liwenna wrote: > > > ow and I probably shouldn't have given it the exact same filename as > > Paul's version... >.< > > > On Apr 21, 11:09 am, liwenna wrote: > > > > yay! > > > > so, for anyone else: from your (g?)mail browser send the e-mail to e- > > > prime at googlegroups.com and enter re: nameoftopic ( Re: How to fade > > > from slide1 to slide2 (inline?) in this case) as the subject. > > > > On Apr 21, 11:07 am, Anne-Wil Kruijt wrote: > > > > > Like this?? > > > > > *if not working but someone IS reading it somehow, after all: this is a test > > > > to see if I can post a message to a certain thread on the e-prime group > > > > directly from my web browser so that it can have attachments* > > > > >  fadingcolors.es2 > > > > 48KViewDownload -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From l.crooymans at gmail.com Thu Apr 28 15:18:31 2011 From: l.crooymans at gmail.com (Luke) Date: Thu, 28 Apr 2011 08:18:31 -0700 Subject: Tower of hanoi task Message-ID: A part of my research will require participants to do a tower of hanoi task. I found the task here: http://step.psy.cmu.edu/scripts-plus/ (#19). I think the problem is caused by e-prime conversion. After converting the file to a e-prime 2.0 compatible version, running it gives me a run time error after the first screens. This was not the case with e- prime 1.0 (my thesis mentor has used the task for a previous experiment). The error i get is "Factor error: load function only permitted with LoadMethod of ebLoadMethodfile (12101). Line 881, error # -999. After browsing these forums a bit i figured Paul Groot (the author) used the embedded load function to keep the script small, but ActionList.Load should work with that (i havent found any indication why it shouldn't). I plan on starting my experiments next week, so time is of the essence. Hopefully someone here is able to help me out with this problem and I can get things rolling. thanks in advance Luke -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Apr 28 19:16:05 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 28 Apr 2011 15:16:05 -0400 Subject: Tower of hanoi task In-Reply-To: <6aff8030-5b35-4b23-a6ce-cc6461a29178@d28g2000yqc.googlegro ups.com> Message-ID: Luke, Thanks to the abundant detail in your post (including precise directions to find the troubled program), I took an interest in this puzzle. If you look around the code where the program fails, you will see that it is in an inline called InitTrial. If you look at InitTrial, you will see that it contains the lines ActionList.LoadMethod = ebLoadMethodEmbedded ActionList.Load (it fails at ActionList.Load). Now, if you look in the Full script window to the InitObjects() subroutine, you will where ActionList gets set up in that subroutine, starting with lines like Set ActionList = New List and coming to ActionList.LoadProperties At least, that is the code generated by EP2 (EP2.0.8.22 to be exact; I know, I need to upgrade). By contrast, where EP2 generates ActionList.LoadProperties, EP1 generates several other lines, including ActionList.LoadMethod = ebLoadMethodEmbedded ActionList.Load i.e., the very two lines that you see up in the InitTrial inline. Note two things here: (1) EP2 does not use the .LoadMethod and .Load methods, having replaced those with .LoadProperties (which AFAIK PST has not yet bothered to document for us); (2) Since the InitObjects subroutine already does all the setup for ActionList, those two lines in the InitTrial inline were always redundant anyway. So the solution comes down merely to getting rid of those two lines in the InitTrial inline. To be sure, I did this in both EP1 and EP2 and then the program works fine. I will send this to the STEP folks so they may update their example (and thanks again to Paul Groot for writing and contributing this nice TOH program in the first place). -- David McFarlane, Professional Faultfinder >A part of my research will require participants to do a tower of hanoi >task. I found the task here: http://step.psy.cmu.edu/scripts-plus/ >(#19). > >I think the problem is caused by e-prime conversion. After converting >the file to a e-prime 2.0 compatible version, running it gives me a >run time error after the first screens. This was not the case with e- >prime 1.0 (my thesis mentor has used the task for a previous >experiment). > >The error i get is "Factor error: load function only permitted with >LoadMethod of ebLoadMethodfile (12101). >Line 881, error # -999. >After browsing these forums a bit i figured Paul Groot (the author) >used the embedded load function to keep the script small, but >ActionList.Load should work with that (i havent found any indication >why it shouldn't). > >I plan on starting my experiments next week, so time is of the >essence. Hopefully someone here is able to help me out with this >problem and I can get things rolling. > >thanks in advance >Luke -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From erin.siebert at gmail.com Thu Apr 28 21:35:24 2011 From: erin.siebert at gmail.com (Erin) Date: Thu, 28 Apr 2011 14:35:24 -0700 Subject: selecting an image with the mouse cursor by contact alone (without clicking) Message-ID: I want find out how to make an image selection happen by simply having the mouse cursor contact an image, without any clicking. My experiment is actually a match-to-sample task for chimpanzees using a joystick without buttons. I have successfully set up the joystick to control the mouse cursor in E-Prime, so the chimp can control the mouse cursor using the joystick. I want the chimp to be able to select an image by simply contacting the image with the mouse cursor. The experiment will have three images displayed- a sample image at the top of the screen (no response if contacted), then below, 2 images: one image that matches the sample (correct if contacted), and a non- matching foil image (incorrect if contacted). So, I need to figure out how to have an image selection happen by contact with the mouse cursor alone, and how to designate the image response as correct or incorrect. I have searched the E-Prime help, and checked the forums with no luck. I downloaded the sample experiment "Response Areas For Mouse Input Sample," but I am not sure how to adapt it to select an image without a click. I am new to E- Prime, and would appreciate any information. thank you. Erin -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From baltimore.ben at gmail.com Fri Apr 29 13:08:18 2011 From: baltimore.ben at gmail.com (ben robinson) Date: Fri, 29 Apr 2011 09:08:18 -0400 Subject: selecting an image with the mouse cursor by contact alone (without clicking) In-Reply-To: <3e16f5dd-c9d3-4094-b41b-334724c94d02@e21g2000yqe.googlegroups.com> Message-ID: you could use a Do...Loop Until in an Inline to continuously check for mouse cursor position until some condition is met, for instance the cursor's x and y position both meet some requirement (ie, If x > 5 and x < 10 and y > 5 and y < 10 Then trial.ACC = 1, trial.RT = clock.read). does that make sense? ben On Thu, Apr 28, 2011 at 5:35 PM, Erin wrote: > I want find out how to make an image selection happen by simply having > the mouse cursor contact an image, without any clicking. My experiment > is actually a match-to-sample task for chimpanzees using a joystick > without buttons. I have successfully set up the joystick to control > the mouse cursor in E-Prime, so the chimp can control the mouse cursor > using the joystick. I want the chimp to be able to select an image by > simply contacting the image with the mouse cursor. > > The experiment will have three images displayed- a sample image at the > top of the screen (no response if contacted), then below, 2 images: > one image that matches the sample (correct if contacted), and a non- > matching foil image (incorrect if contacted). > > So, I need to figure out how to have an image selection happen by > contact with the mouse cursor alone, and how to designate the image > response as correct or incorrect. I have searched the E-Prime help, > and checked the forums with no luck. I downloaded the sample > experiment "Response Areas For Mouse Input Sample," but I am not sure > how to adapt it to select an image without a click. I am new to E- > Prime, and would appreciate any information. thank you. > > Erin > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From l.crooymans at gmail.com Fri Apr 29 14:25:54 2011 From: l.crooymans at gmail.com (Luke) Date: Fri, 29 Apr 2011 07:25:54 -0700 Subject: Tower of hanoi task In-Reply-To: <4db9bcf9.da71e70a.552d.216aSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Thanks david, the task is working now. On Apr 28, 9:16 pm, David McFarlane wrote: > Luke, > > Thanks to the abundant detail in your post (including precise > directions to find the troubled program), I took an interest in this puzzle. > > If you look around the code where the program fails, you will see > that it is in an inline called InitTrial.  If you look at InitTrial, > you will see that it contains the lines > >      ActionList.LoadMethod = ebLoadMethodEmbedded >      ActionList.Load > > (it fails at ActionList.Load). > > Now, if you look in the Full script window to the InitObjects() > subroutine, you will where ActionList gets set up in that subroutine, > starting with lines like > >      Set ActionList = New List > > and coming to > >      ActionList.LoadProperties > > At least, that is the code generated by EP2 (EP2.0.8.22 to be exact; > I know, I need to upgrade).  By contrast, where EP2 generates > ActionList.LoadProperties, EP1 generates several other lines, including > >      ActionList.LoadMethod = ebLoadMethodEmbedded >      ActionList.Load > > i.e., the very two lines that you see up in the InitTrial inline. > > Note two things here:  (1) EP2 does not use the .LoadMethod and .Load > methods, having replaced those with .LoadProperties (which AFAIK PST > has not yet bothered to document for us);  (2) Since the InitObjects > subroutine already does all the setup for ActionList, those two lines > in the InitTrial inline were always redundant anyway. > > So the solution comes down merely to getting rid of those two lines > in the InitTrial inline.  To be sure, I did this in both EP1 and EP2 > and then the program works fine.  I will send this to the STEP folks > so they may update their example (and thanks again to Paul Groot for > writing and contributing this nice TOH program in the first place). > > -- David McFarlane, Professional Faultfinder > > > > > > > > >A part of my research will require participants to do a tower of hanoi > >task. I found the task here:http://step.psy.cmu.edu/scripts-plus/ > >(#19). > > >I think the problem is caused by e-prime conversion. After converting > >the file to a e-prime 2.0 compatible version, running it gives me a > >run time error after the first screens. This was not the case with e- > >prime 1.0 (my thesis mentor has used the task for a previous > >experiment). > > >The error i get is "Factor error: load function only permitted with > >LoadMethod of ebLoadMethodfile (12101). > >Line 881, error # -999. > >After browsing these forums a bit i figured Paul Groot (the author) > >used the embedded load function to keep the script small, but > >ActionList.Load should work with that (i havent found any indication > >why it shouldn't). > > >I plan on starting my experiments next week, so time is of the > >essence. Hopefully someone here is able to help me out with this > >problem and I can get things rolling. > > >thanks in advance > >Luke -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Fri Apr 29 14:34:52 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 29 Apr 2011 10:34:52 -0400 Subject: selecting an image with the mouse cursor by contact alone (without clicking) In-Reply-To: Message-ID: Erin, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... Basically, what Ben already said. Inside your loop, you can get mouse cursor position using Mouse.GetCursorPos (see the MouseDevice.GetCursorPos topic in the online E-Basic Help). For the test, you could use SlideState.HitTest, or PointInRect (see those topics in the online E-Basic Help), depending on your tastes and requirements. E.g., for just one rectangular target zone, Const tgtName as String = "Image1" Dim x as Long, y as Long Dim slState as SlideState ' for convenience Set slState = StimSlide.States("Default") Do ' loop until mouse enters the named region Mouse.GetCursorPos x, y Loop Until ( (slState.HitTest( x, y ) = tgtName) ) Do be aware that some uses of HitTest and PointInRect include top & left edges as part of the rectangle, but exclude bottom & right edges as part of the rectangle, in case that is important to you. Since you want the loop to end when the mouse contacts any of *three* distinct areas, you will need to construct a somewhat more elaborate conditional clause than in this example, but you get the idea. And if you want to allow for non-rectangular target zones then you will have to incorporate some kind of mask into your tests, which I leave as an exercise. -- David McFarlane, Professional Faultfinder At 4/29/2011 09:08 AM Friday, ben robinson wrote: >you could use a Do...Loop Until in an Inline to continuously check >for mouse cursor position until some condition is met, for instance >the cursor's x and y position both meet some requirement (ie, If x > >5 and x < 10 and y > 5 and y < 10 Then trial.ACC = 1, trial.RT = >clock.read). does that make sense? > >ben > >On Thu, Apr 28, 2011 at 5:35 PM, Erin ><erin.siebert at gmail.com> wrote: >I want find out how to make an image selection happen by simply having >the mouse cursor contact an image, without any clicking. My experiment >is actually a match-to-sample task for chimpanzees using a joystick >without buttons. I have successfully set up the joystick to control >the mouse cursor in E-Prime, so the chimp can control the mouse cursor >using the joystick. I want the chimp to be able to select an image by >simply contacting the image with the mouse cursor. > >The experiment will have three images displayed- a sample image at the >top of the screen (no response if contacted), then below, 2 images: >one image that matches the sample (correct if contacted), and a non- >matching foil image (incorrect if contacted). > >So, I need to figure out how to have an image selection happen by >contact with the mouse cursor alone, and how to designate the image >response as correct or incorrect. I have searched the E-Prime help, >and checked the forums with no luck. I downloaded the sample >experiment "Response Areas For Mouse Input Sample," but I am not sure >how to adapt it to select an image without a click. I am new to E- >Prime, and would appreciate any information. thank you. > >Erin -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From inesmares88 at gmail.com Fri Apr 1 13:43:08 2011 From: inesmares88 at gmail.com (Ines Mares) Date: Fri, 1 Apr 2011 06:43:08 -0700 Subject: Windows 7 and SRBox malfunctions Message-ID: Hello all, I'm using E-prime 2.0.8.90 and Windows 7 64-bit, with a usb-to-serial converter from Aten (drivers updated to windows7) . In the middle of experiments the SRBox suddenly stops functioning, and at the end of the experiment E-run doesn't close. If a new experiment is started, E-prime will not recognize anymore the SRBox. The same experiment will work without problems in another computer with windows xp and serial port. I've already tried uninstalling and reinstalling e-prime and the drivers for the converter (this is the second converter I've tried since the first one was not recommended by PST). Anyone had this problem or has any ideas? Thanks in advance, In?s Mares -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From abraesch at rumms.uni-mannheim.de Fri Apr 1 15:29:19 2011 From: abraesch at rumms.uni-mannheim.de (Anneanne) Date: Fri, 1 Apr 2011 08:29:19 -0700 Subject: flashing dot and response dependent visual input simultaneously Message-ID: Hey there, I am really new to e-prime and have no programming experience whatsoever... Maybe someone can help me with my issues here? So far, I tinkered the following InLine script referenced to the slide before. Dim gdot As SlideImage Set gdot = CSlideImage(arrows.States(arrows.ActiveState).Objects("dot")) gdot.Filename = "H:\\MyExperiments\\dot_green.jpg" gdot.Load Dim x As Integer For x = 1 to 10 arrows.Draw Sleep 1000 gdot.Clear Sleep 1000 Do If(Mouse.Buttons AND ebMouseButton1 ) Then arrows.ActiveState = "down" arrows.Draw 'WritePort &H378, 4 'YES via parallel communication, command 00000110 Sleep 200 'WritePort &H378, 0 arrows.ActiveState = "neutral" arrows.Draw Sleep 20 Goto Label1 ElseIf(Mouse.Buttons AND ebMouseButton3) Then arrows.ActiveState = "middle" arrows.Draw Sleep 200 arrows.ActiveState = "neutral" arrows.Draw Sleep 20 Goto Label1 ElseIf(Mouse.Buttons AND ebMouseButton2) Then arrows.ActiveState = "up" arrows.Draw 'WritePort &H378, 8 'YES via parallel communication, command 00000110 Sleep 200 'WritePort &H378, 0 arrows.ActiveState = "neutral" arrows.Draw Sleep 20 Goto Label1 End if Exit Do Sleep 10 DoEvents Loop Next What I want it to do is: 1. The slide (and the InLine script) shall be "on" for 20 s. 2. During that time, a visual input (green_dot) shall be flashing (e.g. one second on, one second off) 3. Also during that time, the participants have a task in which they press the three mouse buttons (this shall go out to the parallel port, controlling another device). Whenever they press a button, they should get a visual feedback (e.g. when they pressed button 1, the upper white arrow on the slide turns grey for 200 ms and returns to white afterward) What is happening right now with this script is that as soon as I press any button, the flashing dot appears, but only rarely a visual feedback for a button press is shown. Also, the more I press the buttons, the more the time prolonges (there are not only 5 flashing dots, but rather ten or 15). It only end after 5 flashes when I do not press any button. I really hope that somebody understands what I mean and can help me!! Thanks Anne -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From nat339 at gmail.com Sun Apr 3 03:00:35 2011 From: nat339 at gmail.com (Nicole T) Date: Sat, 2 Apr 2011 20:00:35 -0700 Subject: Size change in e-prime Message-ID: Hi! I am using E-Prime version 2.0 and have come across a problem with the stimuli size when the experiment is run on a different computer. I have the resolution set to be the same as the computer in which the experiment was created. I am using a 10 cm line that shows up as 10 cm on one computer, but is only 9 cm in length on a separate computer. I created the program on a Windows 7 computer and am running it in Windows XP. A similar problem has occurred in another experiment designed in our lab using 14 cm lines that show up as 12.5 cm. Any possible suggestions would be greatly appreciated! Thank-you! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Sun Apr 3 09:43:17 2011 From: liwenna at gmail.com (liwenna) Date: Sun, 3 Apr 2011 02:43:17 -0700 Subject: Size change in e-prime In-Reply-To: Message-ID: Hi Nicole, The problem should be somewhere with the resolution indeed. Are the two display's different in dimensions by any chance? You wrote that you adapted the program's resolution to the resolution used on the display that you wrote the program on. Do keep in mind that e-prime will 'take over' the display when it's run and that it will force the resolution it is set to onto the display that it uses. Now... if the other display has a different dimension, say for instance that it is less wide than the original display, then any horizontal line will be shortened because e-prime will cram the same number of pixels on both the horizontal and the vertical axis onto the display's 'surface'. If the new display is more wide on the other hand than any vertical lines will be shortened for the same reason. So... try adapting the program to the new display's settings and if that doesn't help do report back :) best, liw On 3 apr, 05:00, Nicole T wrote: > Hi! > > I am using E-Prime version 2.0 and have come across a problem with the > stimuli size when the experiment is run on a different computer. I > have the resolution set to be the same as the computer in which the > experiment was created. I am using a 10 cm line that shows up as 10 cm > on one computer, but is only 9 cm in length on a separate computer. I > created the program on a Windows 7 computer and am running it in > Windows XP. A similar problem has occurred in another experiment > designed in our lab using 14 cm lines that show up as 12.5 cm. Any > possible suggestions would be greatly appreciated! > > Thank-you! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From eleni.pinnow at gmail.com Sun Apr 3 14:31:16 2011 From: eleni.pinnow at gmail.com (Eleni) Date: Sun, 3 Apr 2011 09:31:16 -0500 Subject: Auditory lexical decision task in e-prime Message-ID: Hi everyone! I am new to this group (and to E-prime). I'm trying to create an auditory lexical decision task using E-prime (participants are presented with and make lexicality judgments on only auditory stimuli). I am struggling with the best mode to present stimuli--should to be with just a SoundOut Object or should I use a slide (reaction time is really crucial here)? If anyone has an experiment that uses only sound would it be possible for me to look at it? This will be my first e-prime experiment (and first experiment in my new faculty role) and I really want to get it right. Thank you so much (and I apologize for the really basic nature of my question). Eleni Pinnow eleni.pinnow at gmail.com -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From eleni.pinnow at gmail.com Sun Apr 3 17:58:59 2011 From: eleni.pinnow at gmail.com (Eleni) Date: Sun, 3 Apr 2011 10:58:59 -0700 Subject: Auditory lexical decision task in e-prime In-Reply-To: Message-ID: Hi all, After working with the program, I have it playing using the slides. The issue that I am currently having is that instead of allowing me to make a judgment to each individual stimulus, it instead plays all of the sound stimuli in a row without the chance for a response. I am not sure how I can allow a response to be made to each auditory stimulus. Again, I'm very sorry for the basicness of this question. I also have a request in with the PST support team. Thank you so much, Eleni -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pfc.groot at gmail.com Sun Apr 3 21:34:26 2011 From: pfc.groot at gmail.com (Paul Groot) Date: Sun, 3 Apr 2011 23:34:26 +0200 Subject: Repeat Trial In-Reply-To: <4d94ce24.4e40e70a.02dd.1140SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Here is a minimalistic example that uses an additional list to implement repeating trials: (see attachment) It was created with eprime 1.2, but it should also work when imported in eprime 2.0 Paul. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- A non-text attachment was scrubbed... Name: RepeatUntilOK.es Type: application/octet-stream Size: 13591 bytes Desc: not available URL: From liwenna at gmail.com Mon Apr 4 06:33:54 2011 From: liwenna at gmail.com (liwenna) Date: Sun, 3 Apr 2011 23:33:54 -0700 Subject: Size change in e-prime In-Reply-To: Message-ID: Nicole e-mailed me privately and I responded to her in e-mail but for anyone who might later reference this thread I paste my e-mail below: ****************** Hi Nicole, good morning :) How to fix it... As said e-prime takes over the display properties and forces the properties it is set to onto it. The properties that e-prime is set to can be changed as follows: on the top of the experiment tree on the left side of the screen there is a purple (e-prime 2) or green (e- prime 1) e-prime logo. Select this logo and go to properties. Select the tab 'devices' and then select display and 'edit' (top of my head... I think it reads 'edit'). You can then adjust the dimensions on the screen, by default it is set to 640*480. To do this on a different computer, first check the dimensions that windows uses on your testcomputer (these are probably good to use), note them down (and if needed also the physical dimensions e.g. the size of the display in cm/inches) and then adjust on the 'design computer'. This pretty much is something that you ought to do first on any new program that you create in e-prime. Using e-primes (very old fashioned, ment for very old small display's) settings, with nowadays displays almost always means that e-prime will show everything 'blown up', causing a grainy look to your experiment and what's worse, leaving you in less control of sizes, especially with pictures this is problematic because you want to have the pictures you use (and that you have given a specific dimension on purpose) to actually be shown that way. I kinda took this sentence from your message "I have the resolution set to be the same as the computer in which the experiment was created." to mean that you already knew how to do this. If you didn't then you probably ment to say that you fiddled around long enough to make it so that a line in e-prime shows up with a certain size (10 cm). If that is the case then you'll unfortunately find that adjusting the setting will make all your lines to have shrunken by a fair bit. On the plus side... when you are aware of your testing computers display size and pixel dimensions it is not that hard to actually calculate the sizes you need. Say a display has a width of 25 cm (just a number I make up now) and your resolution is 1280*1040 then there are 1280 pixels on those 25 cm, that means that 1 cm contains 51,2 pixels and a line of 10 cm should therefore measure 152 pixels. Or alternatively, e-prime also offers sizes to be set in % of the horizontal or vertical axis, a line of 10 cm on a 25 cm wide screen should have a length of 40% of the total x, horizontal axis. So... you can adjust your program on the creating computer (I'd probably create a copy of the program you have now, adjust that,) save it, take the e-run file and take that to you testcomputer) Good luck! Best, liwenna On 3 apr, 11:43, liwenna wrote: > Hi Nicole, > > The problem should be somewhere with the resolution indeed. Are the > two display's different in dimensions by any chance? > > You wrote that you adapted the program's resolution to the resolution > used on the display that you wrote the program on. ?Do keep in mind > that e-prime will 'take over' the display when it's run and that it > will force the resolution it is set to onto the display that it uses. > Now... if the other display has a different dimension, say for > instance that it is less wide than the original display, then any > horizontal line will be shortened because e-prime will cram the same > number of pixels on both the horizontal and the vertical axis onto the > display's 'surface'. If the new display is more wide on the other hand > than any vertical lines will be shortened for the same reason. > > So... try adapting the program to the new display's settings and if > that doesn't help do report back :) > > best, > > liw > > On 3 apr, 05:00, Nicole T wrote: > > > Hi! > > > I am using E-Prime version 2.0 and have come across a problem with the > > stimuli size when the experiment is run on a different computer. I > > have the resolution set to be the same as the computer in which the > > experiment was created. I am using a 10 cm line that shows up as 10 cm > > on one computer, but is only 9 cm in length on a separate computer. I > > created the program on a Windows 7 computer and am running it in > > Windows XP. A similar problem has occurred in another experiment > > designed in our lab using 14 cm lines that show up as 12.5 cm. Any > > possible suggestions would be greatly appreciated! > > > Thank-you! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Mon Apr 4 09:20:36 2011 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Mon, 4 Apr 2011 10:20:36 +0100 Subject: Auditory lexical decision task in e-prime In-Reply-To: Message-ID: Hi Eleni, I believe it is not necessarily the complexity of your question that is the problem here, it's just really hard to imagine what you're doing, or doing wrong. You want to present multiple auditory stimuli - yes, slides are okay for that, easier if you want to show visual stimuli at the same time, but there's not much wrong with the soundout thingy. What are you doing, just added many different stimuli in a row on the "timeline"? In such a case, I really would like to point out that the "quick start guide" is a really good place to start quickly, but if you don't mind a lot of not always entirely related blabbering, you might have a go at http://www.cognitology.eu/pubs/AnE-Primer2009.pdf instead. Some people told me they like it. Best, Michiel Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology www.cognitology.eu -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Eleni Sent: 03 April 2011 18:59 To: E-Prime Subject: Re: Auditory lexical decision task in e-prime Hi all, After working with the program, I have it playing using the slides. The issue that I am currently having is that instead of allowing me to make a judgment to each individual stimulus, it instead plays all of the sound stimuli in a row without the chance for a response. I am not sure how I can allow a response to be made to each auditory stimulus. Again, I'm very sorry for the basicness of this question. I also have a request in with the PST support team. Thank you so much, Eleni -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Apr 4 18:02:53 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 4 Apr 2011 14:02:53 -0400 Subject: Auditory lexical decision task in e-prime In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E4CC5@EXCHANGE3.ad.no ttingham.ac.uk> Message-ID: Eleni, In addition to Michiel's E-Primer, you (and *all* E-Prime users) must, *must* start at the very least by working through Tutorial 1 in the Getting Started Guide that came with E-Prime. This would show you how to get a separate response for the sitmulus from each trial. It shows how to do this with a TextDisplay object and a List, but you could easily adapt the priciples to SoundOut or Slide objects. As to SoundOut vs. Slide, that may come down to personal preference and style, unless other task considerations dictate one or the other. As a minimalist, I use a SoundOut unless I need the extra facilities of a Slide; OTOH, Slides do allow much more flexibility both for future changes in the task and during program development (e.g., displaying the name of the sound file as the sound is played, so that you can confirm that things are working as you think they do), and many times I later regret starting with a SoundOut as I manually convert things to Slides. So take your pick. Makes no difference to stimulus sequences or getting responses, and with care makes no difference to timing. Good luck, -- David McFarlane, Professional Faultfinder At 4/4/2011 05:20 AM Monday, you wrote: >Hi Eleni, >I believe it is not necessarily the complexity >of your question that is the problem here, it's >just really hard to imagine what you're doing, >or doing wrong. You want to present multiple >auditory stimuli - yes, slides are okay for >that, easier if you want to show visual stimuli >at the same time, but there's not much wrong >with the soundout thingy. What are you doing, >just added many different stimuli in a row on >the "timeline"? In such a case, I really would >like to point out that the "quick start guide" >is a really good place to start quickly, but if >you don't mind a lot of not always entirely >related blabbering, you might have a go at >http://www.cognitology.eu/pubs/AnE-Primer2009.pdf > instead. Some people told me they like it. > >Best, >Michiel > >Michiel Spap? >Research Fellow >Perception & Action group >University of Nottingham >School of Psychology >www.cognitology.eu > > >-----Original Message----- >From: e-prime at googlegroups.com >[mailto:e-prime at googlegroups.com] On Behalf Of Eleni >Sent: 03 April 2011 18:59 >To: E-Prime >Subject: Re: Auditory lexical decision task in e-prime > >Hi all, > >After working with the program, I have it playing using the slides. >The issue that I am currently having is that instead of allowing me to >make a judgment to each individual stimulus, it instead plays all of >the sound stimuli in a row without the chance for a response. I am not >sure how I can allow a response to be made to each auditory stimulus. > >Again, I'm very sorry for the basicness of this question. > >I also have a request in with the PST support team. > >Thank you so much, >Eleni -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From fluencystudy at gmail.com Mon Apr 4 20:03:11 2011 From: fluencystudy at gmail.com (signy) Date: Mon, 4 Apr 2011 13:03:11 -0700 Subject: programming a test for assessing order memory In-Reply-To: Message-ID: Thank you for your reply, Antonello. I am having trouble implementing this. Do you put this for the test phase? Is there a way I could look at your script? Best, Signy On Mar 25, 5:50?am, Antonello Puglia wrote: > Hi Signy, > I had the same problem, but with 9 pictures. I tried this and it works! > Check it out > ?This can be done using a nested List object. For example, you would have > your TrialList set up with 9 attributes (e.g., Image1, Image2, etc or > words). In the Nested column of the TrialList, you would enter StimList. > This will create a new nested List object. Inside the StimList, add 8 rows > to make 9 total, and add a single attribute named "Stim". Under the Stim > attribute, list all of the possible image files that will be presented on > the Slide. Click the Property Pages icon and set the sampling to random. > > In the TrialList, you will use colon syntax to sample 9 items randomly from > the StimList. Under the Image1 attribute, enter [Stim:0] under Image2, enter > [Stim:1] and so on up to [Stim:8]. At run-time, E-Prime will select the > sequence of images randomly. > > On your Slide object, each SlideImage sub-object should have its filename > property set to [Image1] [Image2] and so on. E-Prime will randomly select > the image presented in each SlideImage, creating a different sequence for > each subject. > > Please be sure to take a look at the E-Prime User's Guide for more > information on nested List objects and colon syntax. > > I hope that this has been helpful. > Best regards ? ? ? ? ? ? ? ?Antonello > 2011/3/24 signy > > > Hi all, > > I am having some trouble programming a new experiment. > > in this experiment, participants are shown 8 words, one at a time. > > in a test phase, they are then given 2,4 or 6 words and asked to state > > the order that these words were presented. > > > I can program the study phase fine, but I am unsure how to present > > multiple stim on one screen for the order test phase. > > The way I have it set up now is there are blocked test phases: > > arrange 2 words test phase > > arrange 4 words test phase > > arrange 6 words test phase > > > What I am unsure about is presenting 2,4or 6 words, randomly selected > > from the study list of 8 words on the screen at once (the response > > will be verbal, so input is not necessary). > > > Thanks for any help! > > > best, > > Signy > > > -- > > You received this message because you are subscribed to the Google Groups > > "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to > > e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/e-prime?hl=en. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From antonello.puglia at gmail.com Tue Apr 5 08:22:20 2011 From: antonello.puglia at gmail.com (Antonello Puglia) Date: Tue, 5 Apr 2011 10:22:20 +0200 Subject: programming a test for assessing order memory In-Reply-To: <2ada2aab-dbe7-45d9-9060-da9cd74b8fa8@s9g2000yqm.googlegroups.com> Message-ID: Dear Signy, I send you my recognition test. It's an italian version. At the end my participants have to write down the exact sequence of the objects they heard before. I used images + words. Good luck! 2011/4/4 signy > Thank you for your reply, Antonello. > > I am having trouble implementing this. Do you put this for the test > phase? Is there a way I could look at your script? > > Best, > Signy > > > > On Mar 25, 5:50 am, Antonello Puglia > wrote: > > Hi Signy, > > I had the same problem, but with 9 pictures. I tried this and it works! > > Check it out > > This can be done using a nested List object. For example, you would have > > your TrialList set up with 9 attributes (e.g., Image1, Image2, etc or > > words). In the Nested column of the TrialList, you would enter StimList. > > This will create a new nested List object. Inside the StimList, add 8 > rows > > to make 9 total, and add a single attribute named "Stim". Under the Stim > > attribute, list all of the possible image files that will be presented on > > the Slide. Click the Property Pages icon and set the sampling to random. > > > > In the TrialList, you will use colon syntax to sample 9 items randomly > from > > the StimList. Under the Image1 attribute, enter [Stim:0] under Image2, > enter > > [Stim:1] and so on up to [Stim:8]. At run-time, E-Prime will select the > > sequence of images randomly. > > > > On your Slide object, each SlideImage sub-object should have its filename > > property set to [Image1] [Image2] and so on. E-Prime will randomly select > > the image presented in each SlideImage, creating a different sequence for > > each subject. > > > > Please be sure to take a look at the E-Prime User's Guide for more > > information on nested List objects and colon syntax. > > > > I hope that this has been helpful. > > Best regards Antonello > > 2011/3/24 signy > > > > > Hi all, > > > I am having some trouble programming a new experiment. > > > in this experiment, participants are shown 8 words, one at a time. > > > in a test phase, they are then given 2,4 or 6 words and asked to state > > > the order that these words were presented. > > > > > I can program the study phase fine, but I am unsure how to present > > > multiple stim on one screen for the order test phase. > > > The way I have it set up now is there are blocked test phases: > > > arrange 2 words test phase > > > arrange 4 words test phase > > > arrange 6 words test phase > > > > > What I am unsure about is presenting 2,4or 6 words, randomly selected > > > from the study list of 8 words on the screen at once (the response > > > will be verbal, so input is not necessary). > > > > > Thanks for any help! > > > > > best, > > > Signy > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "E-Prime" group. > > > To post to this group, send email to e-prime at googlegroups.com. > > > To unsubscribe from this group, send email to > > > e-prime+unsubscribe at googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/e-prime?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: images.rar Type: application/rar Size: 189571 bytes Desc: not available URL: From pan_work at yahoo.Fr Wed Apr 6 19:23:36 2011 From: pan_work at yahoo.Fr (pan_work at yahoo.Fr) Date: Wed, 6 Apr 2011 12:23:36 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! Message-ID: Hi Dear, I send this mess because I need help. Im not a big user and just want to do something very very simple but I spend hours now and cannot find any good solution... To resume, I just want to show few pictures randomly in a sub object (no problem for this...) Then, I just want to ask people to choose one picture with the mouse and click on it. I just want to record the name of the pictures who have been clicked. That's all !!! Unfortunately, it seems to be something hard to do. I asked to the support EPRIME and people send me a experiment files, the name is "response aeras for mouse" but it seems to be so different from what we search... If someone knows a way... Cheers ?Pierre -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pan_work at yahoo.Fr Wed Apr 6 19:50:36 2011 From: pan_work at yahoo.Fr (pan_work at yahoo.Fr) Date: Wed, 6 Apr 2011 12:50:36 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: Message-ID: When I look at DOHITTEST, I know there is a way to "simply record" in the data files the name of a jpeg present clicked from the sub object... -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Wed Apr 6 20:44:18 2011 From: liwenna at gmail.com (liwenna) Date: Wed, 6 Apr 2011 13:44:18 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: <8fd4754f-0098-4fc1-979c-08d8ad2837e9@a26g2000vbo.googlegroups.com> Message-ID: z0mg... don't panic!! Hi "Pierre, I you found the dohittest example you're nearly there! Implement it in an inline after the slide that you want to record the response to, do adjust the code to actually read the slide that you want it to read from (see caps in stringhitcode pasted below). Also: in your triallist create an attribute called 'Correctresp' in which you enter the filename of the .jpg that is the correct answer for each level. *********** 'Designate "theState" as the Default Slide State, which is the 'current, ActiveState on the Slide object "Stimulus" Dim theState as SlideState Set theState = ENTERNAMEOFSLIDEHERE.States("Default") Dim strHit As String Dim theMouseResponseData As MouseResponseData 'Was there a response? If ENTERNAMEOFSLIDEHERE.InputMasks.Responses.Count > 0 Then 'Get the mouse response Set theMouseResponseData = CMouseResponseData( ENTERNAMEOFSLIDEHERE.InputMasks.Responses(1)) 'Determine string name of SlideImage or SlideText object at 'mouse click coordinates. Assign that value to strHit strHit = theState.HitTest(theMouseResponseData.CursorX, theMouseResponseData.CursorY) 'Compare string name where mouse click occurred to CorrectAnswer 'attribute on each trial, and score response 'NOTE: This comparison is case sensitive If strHit = c.GetAttrib("Correctresp") Then Stimulus.ACC = 1 Else Stimulus.ACC = 0 End If End If c.SetAttrib "response", strHit ********* Do report back whether or not that solves your problem :) Best, liw On Apr 6, 9:50?pm, "pan_w... at yahoo.Fr" wrote: > When I look at DOHITTEST, I know there is a way to "simply record" in > the data files the name of a jpeg present clicked from the sub > object... -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Wed Apr 6 20:49:13 2011 From: liwenna at gmail.com (liwenna) Date: Wed, 6 Apr 2011 13:49:13 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: Message-ID: and I am making the same mistake as I did last time I posted this code >.< ***** If strHit = c.GetAttrib("Correctresp") Then Stimulus.ACC = 1 Else Stimulus.ACC = 0 End If ***** should read: ***** If strHit = c.GetAttrib("Correctresp") Then ENTERNAMEOFSLIDEHERE.ACC = 1 Else ENTERNAMEOFSLIDEHERE.ACC = 0 End If ***** On Apr 6, 10:44?pm, liwenna wrote: > z0mg... don't panic!! > > Hi "Pierre, > > I you found the dohittest example you're nearly there! Implement it in > an inline after the slide that you want to record the response to, do > adjust the code to actually read the slide that you want it to read > from (see caps in stringhitcode pasted below). Also: in your triallist > create an attribute called 'Correctresp' in which you enter the > filename of the .jpg that is the correct answer for each level. > > *********** > 'Designate "theState" as the Default Slide State, which is the > 'current, ActiveState on the Slide object "Stimulus" > Dim theState as SlideState > Set theState = ENTERNAMEOFSLIDEHERE.States("Default") > > Dim strHit As String > Dim theMouseResponseData As MouseResponseData > > 'Was there a response? > If ?ENTERNAMEOFSLIDEHERE.InputMasks.Responses.Count > 0 Then > > 'Get the mouse response > Set theMouseResponseData = > CMouseResponseData( ENTERNAMEOFSLIDEHERE.InputMasks.Responses(1)) > > 'Determine string name of SlideImage or SlideText object at > 'mouse click coordinates. Assign that value to strHit > strHit = theState.HitTest(theMouseResponseData.CursorX, > theMouseResponseData.CursorY) > > 'Compare string name where mouse click occurred to CorrectAnswer > 'attribute on each trial, and score response > 'NOTE: This comparison is case sensitive > If strHit = c.GetAttrib("Correctresp") Then > Stimulus.ACC = 1 > Else > Stimulus.ACC = 0 > End If > > End If > c.SetAttrib "response", strHit > > ********* > > Do report back whether or not that solves your problem :) > > Best, > > liw > > On Apr 6, 9:50?pm, "pan_w... at yahoo.Fr" wrote: > > > When I look at DOHITTEST, I know there is a way to "simply record" in > > the data files the name of a jpeg present clicked from the sub > > object... -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pan_work at yahoo.Fr Thu Apr 7 18:08:44 2011 From: pan_work at yahoo.Fr (pan_work at yahoo.Fr) Date: Thu, 7 Apr 2011 11:08:44 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: <6fcb7e4e-8cd4-4e4a-9f63-4d66bc17d4f0@p3g2000vbv.googlegroups.com> Message-ID: Thanks a lot... but Im not shure to understand... Because there is no "correct response"... Imagine I have 5 pictures in the slide ? I will try to edit something with your informations thanks a lot... I already tried to adapt the hittest without any success... On 6 avr, 22:49, liwenna wrote: > and I am making the same mistake as I did last time I posted this code > > >.< > > ***** > If strHit = c.GetAttrib("Correctresp") Then > Stimulus.ACC = 1 > Else > Stimulus.ACC = 0 > End If > ***** > > should read: > > ***** > If strHit = c.GetAttrib("Correctresp") Then > ENTERNAMEOFSLIDEHERE.ACC = 1 > Else > ENTERNAMEOFSLIDEHERE.ACC = 0 > End If > ***** > > On Apr 6, 10:44?pm, liwenna wrote: > > > > > z0mg... don't panic!! > > > Hi "Pierre, > > > I you found the dohittest example you're nearly there! Implement it in > > an inline after the slide that you want to record the response to, do > > adjust the code to actually read the slide that you want it to read > > from (see caps in stringhitcode pasted below). Also: in your triallist > > create an attribute called 'Correctresp' in which you enter the > > filename of the .jpg that is the correct answer for each level. > > > *********** > > 'Designate "theState" as the Default Slide State, which is the > > 'current, ActiveState on the Slide object "Stimulus" > > Dim theState as SlideState > > Set theState = ENTERNAMEOFSLIDEHERE.States("Default") > > > Dim strHit As String > > Dim theMouseResponseData As MouseResponseData > > > 'Was there a response? > > If ?ENTERNAMEOFSLIDEHERE.InputMasks.Responses.Count > 0 Then > > > 'Get the mouse response > > Set theMouseResponseData = > > CMouseResponseData( ENTERNAMEOFSLIDEHERE.InputMasks.Responses(1)) > > > 'Determine string name of SlideImage or SlideText object at > > 'mouse click coordinates. Assign that value to strHit > > strHit = theState.HitTest(theMouseResponseData.CursorX, > > theMouseResponseData.CursorY) > > > 'Compare string name where mouse click occurred to CorrectAnswer > > 'attribute on each trial, and score response > > 'NOTE: This comparison is case sensitive > > If strHit = c.GetAttrib("Correctresp") Then > > Stimulus.ACC = 1 > > Else > > Stimulus.ACC = 0 > > End If > > > End If > > c.SetAttrib "response", strHit > > > ********* > > > Do report back whether or not that solves your problem :) > > > Best, > > > liw > > > On Apr 6, 9:50?pm, "pan_w... at yahoo.Fr" wrote: > > > > When I look at DOHITTEST, I know there is a way to "simply record" in > > > the data files the name of a jpeg present clicked from the sub > > > object...- Masquer le texte des messages pr?c?dents - > > - Afficher le texte des messages pr?c?dents - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pan_work at yahoo.Fr Thu Apr 7 18:31:20 2011 From: pan_work at yahoo.Fr (pan_work at yahoo.Fr) Date: Thu, 7 Apr 2011 11:31:20 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: <6fcb7e4e-8cd4-4e4a-9f63-4d66bc17d4f0@p3g2000vbv.googlegroups.com> Message-ID: To explain... I have, for example, two images : a.jpg and b.jpg I want randomize the Left or right position of the pictures. So I create in the trial 2 attributes [stim1] and [stim2] and put it on 2 samples on the cycle. Now, it's OK, in my subobject I have two images directly load by this attributes... Then, people click by choice on the LEFT or the RIGHT image... there is no only one correct answer... if I create a third attribute, like correctanswer and specify that for example a.jpg is the correctanswer, I just have a "1" written on the datafiles... It's not enough for what I want to do... the problem come from the logical of a correctanswer... I don't know if I am enough clear ! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Fri Apr 8 16:51:31 2011 From: liwenna at gmail.com (liwenna) Date: Fri, 8 Apr 2011 09:51:31 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: <6692d707-37d7-41be-9ca9-522b8455c938@e9g2000vbk.googlegroups.com> Message-ID: Hiya Pierre, Then don't create the correctanswer attribute ;) Simply ditch these lines: *** 'Compare string name where mouse click occurred to CorrectAnswer 'attribute on each trial, and score response 'NOTE: This comparison is case sensitive If strHit = c.GetAttrib("Correctresp") Then Stimulus.ACC = 1 Else Stimulus.ACC = 0 End If ***** Do keep the line that reads: c.SetAttrib "response", strHit it should make an attribute called response appear in your log files telling you on which image the response was made. The "1" that you see in the attribute slidename.resp represents the left button of the mouse, if you would have clicked on the image with the right button then it would have read "2". Nothing useful there... ignore slidename.resp. best, AW On Apr 7, 8:31?pm, "pan_w... at yahoo.Fr" wrote: > To explain... > I have, for example, two images : a.jpg and b.jpg > I want randomize the Left or right position of the pictures. > So I create in the trial 2 attributes [stim1] and [stim2] and put it > on 2 samples on the cycle. > Now, it's OK, in my subobject I have two images directly load by this > attributes... > Then, people click by choice on the LEFT or the RIGHT image... there > is no only one correct answer... if I create a third attribute, like > correctanswer and specify that for example a.jpg is the correctanswer, > I just have a "1" written on the datafiles... It's not enough for what > I want to do... the problem come from the logical of a > correctanswer... I don't know if I am enough clear ! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From nusphd at gmail.com Mon Apr 11 05:22:23 2011 From: nusphd at gmail.com (Lidia Suarez) Date: Mon, 11 Apr 2011 13:22:23 +0800 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: <50a5fec0-186a-4f5e-a4d3-dd5a553b8fc2@e9g2000vbk.googlegroups.com> Message-ID: Thanks AW, As Pierre, I also had a similar problem. Thanks for the script, it has been very helpful. Regards, Lidia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pan_work at yahoo.Fr Tue Apr 12 08:53:34 2011 From: pan_work at yahoo.Fr (pan_work at yahoo.Fr) Date: Tue, 12 Apr 2011 01:53:34 -0700 Subject: Problem with the keyboard language Azerty or Aqerty Message-ID: Hi Dear Eprimers, ... I complete this morning my new experiment and eveything is working fine... Almost... Because I just have a little problem here, and I cannot find any informations to solve it. The subjects of the experiment will be French and in our country we use aquerty keyboard with accent like "?"or "?" or "?"... and by default EPRIME is set for azerty keyboard. Im looking to select the "good langugages key" (french) but cannot find the solution... If anyone knows how deal with that... Pierre -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Tue Apr 12 10:47:43 2011 From: liwenna at gmail.com (liwenna) Date: Tue, 12 Apr 2011 03:47:43 -0700 Subject: Problem with the keyboard language Azerty or Aqerty In-Reply-To: Message-ID: Hello Pierre, Do you need the aquerty keyboard for input by your subjects trough an echo? In that case I think that, unfortunately enough, there will be no solution for this problem. Not long ago there was a guy named Yoed on here that was trying the solve that same problem except that he needed hebrew input. Try a search on the word 'hebrew' in the search this group bar to see the small avalanche of posts that relate to that question. He had been in contact with PST on this one too and this is the answer he got from them: **** Are you using E-Prime v1.x or E-Prime 2.0? While E-Prime 2.0 is supported by the English/Western European versions of Windows XP and Vista, this really only applies to text that is displayed by the objects. That is, while the "Text" property of a TextDisplay will accept foreign characters, the other properties (including .Input and its related echo properties) will not. All non-English characters or accents will go unrecognized by E-Prime in the responses and in the text that is echoed to the screen. E-Prime 2.0 has resolved this to some degree by allowing non-English fonts to appear as responses in the data file (i.e., UNICODE fonts are permitted). However, the echo client will still only display English and the responses themselves will still be based on the QWERTY keyboard. You could get around this by manually echoing the subject's responses to the screen. For example, you could take the subject's input and then convert it to Hebrew in script, and then display this on screen (e.g., if the semicolon key is pressed, convert this to a specific character and display it on screen, etc). However, this can be fairly script intensive and would require that the Hebrew characters appear correctly in TextDisplay objects and/or Slide objects and appear correctly in InLine objects. If you are interested, I would recommend taking a look at SAMPLE:Process Responses Templatefor an example of how to change what is displayed on screen based on the subject's responses. Please let me know if you have any further questions. ***** I do remember that some people here suggested some alternative things to try but as far as I know Yoed never succeeded in having his participants enter hebrew answers in e-prime. Sorry to bring this bad news... Best, AW On Apr 12, 10:53?am, "pan_w... at yahoo.Fr" wrote: > Hi Dear Eprimers, ... > I complete this morning my new experiment and eveything is working > fine... Almost... Because I just have a little problem here, and I > cannot find any informations to solve it. The subjects of the > experiment will be French and in our country we use aquerty keyboard > with accent like "?"or "?" or "?"... and by default EPRIME is set for > azerty keyboard. Im looking to select the "good langugages > key" (french) but cannot find the solution... > > If anyone knows how deal with that... > > Pierre -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Tue Apr 12 10:49:43 2011 From: liwenna at gmail.com (liwenna) Date: Tue, 12 Apr 2011 03:49:43 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: Message-ID: You're welcome Lidia. Glad to have been of help. Happy testing! On Apr 11, 7:22?am, Lidia Suarez wrote: > Thanks AW, > > As Pierre, I also had a similar problem. Thanks for the script, it has been > very helpful. > > Regards, > Lidia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pan_work at yahoo.Fr Tue Apr 12 12:37:18 2011 From: pan_work at yahoo.Fr (pan_work at yahoo.Fr) Date: Tue, 12 Apr 2011 05:37:18 -0700 Subject: Problem with the keyboard language Azerty or Aqerty In-Reply-To: Message-ID: Thanks Liwenna, ... It seems very bad... In fact, my experiment is pretty simple, the task is about word to be completed by the subject. In the screen, a text like "unha_ _y" is showed and othen, on the same screen I ask to participants to write the word it could be, for each trial. The "wordstimulus" comes from a list, and I get attributes like the correct answer... here the correct answer is "unhappy"... Everything is OK with this task, I have the RT, the correct answer and the textanswer quoted by participants... the only problem is that when people quoted, is not the good language Keyboard !!! On 12 avr, 12:47, liwenna wrote: > Hello Pierre, > > Do you need the aquerty keyboard for input by your subjects trough an > echo? In that case I think that, unfortunately enough, there will be > no solution for this problem. > Not long ago there was a guy named Yoed on here that was trying the > solve that same problem except that he needed hebrew input. Try a > search on the word 'hebrew' ?in the search this group bar to see the > small avalanche of posts that relate to that question. > > He had been in contact with PST on this one too and this is the answer > he got from them: > **** > Are you using E-Prime v1.x or E-Prime 2.0? While E-Prime 2.0 is > supported by > the English/Western European versions of Windows XP and Vista, this > really > only applies to text that is displayed by the objects. That is, while > the > "Text" property of a TextDisplay will accept foreign characters, the > other > properties (including .Input and its related echo properties) will > not. All > non-English characters or accents will go unrecognized by E-Prime in > the > responses and in the text that is echoed to the screen. > > E-Prime 2.0 has resolved this to some degree by allowing non-English > fonts > to appear as responses in the data file (i.e., UNICODE fonts are > permitted). > However, the echo client will still only display English and the > responses > themselves will still be based on the QWERTY keyboard. You could get > around > this by manually echoing the subject's responses to the screen. For > example, > you could take the subject's input and then convert it to Hebrew in > script, > and then display this on screen (e.g., if the semicolon key is > pressed, > convert this to a specific character and display it on screen, etc). > However, this can be fairly script intensive and would require that > the > Hebrew characters appear correctly in TextDisplay objects and/or Slide > objects and appear correctly in InLine objects. If you are interested, > I > would recommend taking a look at SAMPLE:Process Responses > Template Mode=View&SampleID=47>for > an example of how to change what is displayed on screen based on the > subject's responses. > > Please let me know if you have any further questions. > ***** > > I do remember that some people here suggested some alternative things > to try but as far as I know Yoed never succeeded in having his > participants enter hebrew answers in e-prime. > > Sorry to bring this bad news... > > Best, > > AW > > On Apr 12, 10:53?am, "pan_w... at yahoo.Fr" wrote: > > > > > Hi Dear Eprimers, ... > > I complete this morning my new experiment and eveything is working > > fine... Almost... Because I just have a little problem here, and I > > cannot find any informations to solve it. The subjects of the > > experiment will be French and in our country we use aquerty keyboard > > with accent like "?"or "?" or "?"... and by default EPRIME is set for > > azerty keyboard. Im looking to select the "good langugages > > key" (french) but cannot find the solution... > > > If anyone knows how deal with that... > > > Pierre- Masquer le texte des messages pr?c?dents - > > - Afficher le texte des messages pr?c?dents - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pan_work at yahoo.Fr Tue Apr 12 12:42:10 2011 From: pan_work at yahoo.Fr (pan_work at yahoo.Fr) Date: Tue, 12 Apr 2011 05:42:10 -0700 Subject: HELP : A SIMPLE FORCED CHOICE TASK but cannot do ! In-Reply-To: <63c1a1dc-3890-426e-9b73-2d2c07621dca@l6g2000vbn.googlegroups.com> Message-ID: I need to try that... Unfortunately I had not so much time so I found a solution with the VisualScale. I put number 1 and number 2 besides the pictures and ask to participants to don't click on the pictures but on the visualscale... Then If I got 5 images, I put a 5-likert visual click... Pretty artisanal but it worked for last week. But I want to do better. I need to try your solution Liwenna... On 12 avr, 12:49, liwenna wrote: > You're welcome Lidia. Glad to have been of help. > > Happy testing! > > On Apr 11, 7:22?am, Lidia Suarez wrote: > > > > > Thanks AW, > > > As Pierre, I also had a similar problem. Thanks for the script, it has been > > very helpful. > > > Regards, > > Lidia- Masquer le texte des messages pr?c?dents - > > - Afficher le texte des messages pr?c?dents - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From rendongcai at gmail.com Tue Apr 12 13:15:21 2011 From: rendongcai at gmail.com (Cai Rendong) Date: Tue, 12 Apr 2011 21:15:21 +0800 Subject: Has anyone used the automated reading/symmetry span task before? In-Reply-To: Message-ID: After the "get the experimenter" screen, you just press the SPACE bar and then you will get all the data of the subject. On Fri, Feb 4, 2011 at 2:17 AM, Xingyu wrote: > Hi, I am using the eprime version of automated reading/symmetry span > task developed by Attention & WM lab at GaTech. I have problem > terminating the task though. Every time it runs successfully to the > end screen told subjects to "get the experimenter", while I can do > nothing there but to hit ctrl+alt+shift to compulsorily terminate the > task, this resulted in not getting the summary data.... > I am just wondering if anyone has used that task before or if anyone > knows what the problem might be and the possible solutions. btw, I > only have the script for the task but not the .es file. > Thank you! > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- Rendong Cai Ph.D. candidate in Psycholinguistics, National Key Research Center for Linguistics and Applied Linguistics Office: R224,Teaching Building 1 , Guangdong University of Foreign Studies, Guangzhou, P.R. China, 510420. Email: rendongcai at gmail.com, rendongcai at 163.com Mobile: (0860)15820297444 -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Apr 12 16:27:29 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 12 Apr 2011 12:27:29 -0400 Subject: Problem with the keyboard language Azerty or Aqerty In-Reply-To: <082f0e13-622d-49ae-8ec3-35c948ec0ffd@o26g2000vby.googlegro ups.com> Message-ID: A bit of unsolicited technical explanation -- I think the keyboard layout limitation results from E-Prime using Microsoft DirectX and its virtual key codes. This does allow for enhanced keyboard performance, which we generally want for precise RT-type experiments (e.g., timing, also, can distinguish between left & right shift keys, etc.), but as we see here it may create other limitations with regard to handling alternate keyboard layouts. Would be nice to have this confirmed (or corrected) and further explained by PST staff... -- David McFarlane, Professional Faultfinder >Thanks Liwenna, >... It seems very bad... In fact, my experiment is pretty simple, the >task is about word to be completed by the subject. In the screen, a >text like "unha_ _y" is showed and othen, on the same screen I ask to >participants to write the word it could be, for each trial. The >"wordstimulus" comes from a list, and I get attributes like the >correct answer... here the correct answer is "unhappy"... >Everything is OK with this task, I have the RT, the correct answer and >the textanswer quoted by participants... the only problem is that when >people quoted, is not the good language Keyboard !!! > > >On 12 avr, 12:47, liwenna wrote: > > Hello Pierre, > > > > Do you need the aquerty keyboard for input by your subjects trough an > > echo? In that case I think that, unfortunately enough, there will be > > no solution for this problem. > > Not long ago there was a guy named Yoed on here that was trying the > > solve that same problem except that he needed hebrew input. Try a > > search on the word 'hebrew' in the search this group bar to see the > > small avalanche of posts that relate to that question. > > > > He had been in contact with PST on this one too and this is the answer > > he got from them: > > **** > > Are you using E-Prime v1.x or E-Prime 2.0? While E-Prime 2.0 is > > supported by > > the English/Western European versions of Windows XP and Vista, this > > really > > only applies to text that is displayed by the objects. That is, while > > the > > "Text" property of a TextDisplay will accept foreign characters, the > > other > > properties (including .Input and its related echo properties) will > > not. All > > non-English characters or accents will go unrecognized by E-Prime in > > the > > responses and in the text that is echoed to the screen. > > > > E-Prime 2.0 has resolved this to some degree by allowing non-English > > fonts > > to appear as responses in the data file (i.e., UNICODE fonts are > > permitted). > > However, the echo client will still only display English and the > > responses > > themselves will still be based on the QWERTY keyboard. You could get > > around > > this by manually echoing the subject's responses to the screen. For > > example, > > you could take the subject's input and then convert it to Hebrew in > > script, > > and then display this on screen (e.g., if the semicolon key is > > pressed, > > convert this to a specific character and display it on screen, etc). > > However, this can be fairly script intensive and would require that > > the > > Hebrew characters appear correctly in TextDisplay objects and/or Slide > > objects and appear correctly in InLine objects. If you are interested, > > I > > would recommend taking a look at SAMPLE:Process Responses > > > Template > Mode=View&SampleID=47>for > > an example of how to change what is displayed on screen based on the > > subject's responses. > > > > Please let me know if you have any further questions. > > ***** > > > > I do remember that some people here suggested some alternative things > > to try but as far as I know Yoed never succeeded in having his > > participants enter hebrew answers in e-prime. > > > > Sorry to bring this bad news... > > > > Best, > > > > AW > > > > On Apr 12, 10:53 am, "pan_w... at yahoo.Fr" wrote: > > > > > > > > > Hi Dear Eprimers, ... > > > I complete this morning my new experiment and eveything is working > > > fine... Almost... Because I just have a little problem here, and I > > > cannot find any informations to solve it. The subjects of the > > > experiment will be French and in our country we use aquerty keyboard > > > with accent like "?"or "?" or "?"... and by default EPRIME is set for > > > azerty keyboard. Im looking to select the "good langugages > > > key" (french) but cannot find the solution... > > > > > If anyone knows how deal with that... > > > > > Pierre- Masquer le texte des messages pr?c?dents - > > > > - Afficher le texte des messages pr?c?dents - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Tue Apr 12 17:09:35 2011 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 12 Apr 2011 18:09:35 +0100 Subject: Problem with the keyboard language Azerty or Aqerty In-Reply-To: <4da47d7e.c6c2e70a.479a.746eSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Hiya, As far as I know from Azerty keyboards, they generally have about as many keys as Qwerty ones, no? This should mean that, for the most part, a one to one mapping is possible (possibly unlike Hebrew keyboards)... If the echo is an issue, then you might as well work out some form of looping to do the echo object, replacing every keystroke: 1. Declare the final response as nothing at all: c.SetAttrib "FinalResponse", "" 2. Insert a Label, PreStimulusLabel for instance. 3. Here comes the stimulus, myStimulus. Underneath the word you show, the attribute [FinalResponse]. Which will be blank in the beginning. Only a single response is used. 4. Do this, but then use case for prettier: If myStimulus.RESP = "q" then c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "a" goto PreStimulusLabel end if If myStimulus.RESP = "w" then c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "z" goto PreStimulusLabel end if .... And in the case of {ENTER}, we just continue. Will take a bit of time to get that nice, but shouldn't be too difficult? Of course, bothering with the accents might be a bit too much. Seeing my name generally isn't spelled with one either, you'll have my sympathy :) Best, Mich Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology www.cognitology.eu -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of David McFarlane Sent: 12 April 2011 17:27 To: e-prime at googlegroups.com Subject: Re: Problem with the keyboard language Azerty or Aqerty A bit of unsolicited technical explanation -- I think the keyboard layout limitation results from E-Prime using Microsoft DirectX and its virtual key codes. This does allow for enhanced keyboard performance, which we generally want for precise RT-type experiments (e.g., timing, also, can distinguish between left & right shift keys, etc.), but as we see here it may create other limitations with regard to handling alternate keyboard layouts. Would be nice to have this confirmed (or corrected) and further explained by PST staff... -- David McFarlane, Professional Faultfinder >Thanks Liwenna, >... It seems very bad... In fact, my experiment is pretty simple, the >task is about word to be completed by the subject. In the screen, a >text like "unha_ _y" is showed and othen, on the same screen I ask to >participants to write the word it could be, for each trial. The >"wordstimulus" comes from a list, and I get attributes like the >correct answer... here the correct answer is "unhappy"... >Everything is OK with this task, I have the RT, the correct answer and >the textanswer quoted by participants... the only problem is that when >people quoted, is not the good language Keyboard !!! > > >On 12 avr, 12:47, liwenna wrote: > > Hello Pierre, > > > > Do you need the aquerty keyboard for input by your subjects trough an > > echo? In that case I think that, unfortunately enough, there will be > > no solution for this problem. > > Not long ago there was a guy named Yoed on here that was trying the > > solve that same problem except that he needed hebrew input. Try a > > search on the word 'hebrew' in the search this group bar to see the > > small avalanche of posts that relate to that question. > > > > He had been in contact with PST on this one too and this is the answer > > he got from them: > > **** > > Are you using E-Prime v1.x or E-Prime 2.0? While E-Prime 2.0 is > > supported by > > the English/Western European versions of Windows XP and Vista, this > > really > > only applies to text that is displayed by the objects. That is, while > > the > > "Text" property of a TextDisplay will accept foreign characters, the > > other > > properties (including .Input and its related echo properties) will > > not. All > > non-English characters or accents will go unrecognized by E-Prime in > > the > > responses and in the text that is echoed to the screen. > > > > E-Prime 2.0 has resolved this to some degree by allowing non-English > > fonts > > to appear as responses in the data file (i.e., UNICODE fonts are > > permitted). > > However, the echo client will still only display English and the > > responses > > themselves will still be based on the QWERTY keyboard. You could get > > around > > this by manually echoing the subject's responses to the screen. For > > example, > > you could take the subject's input and then convert it to Hebrew in > > script, > > and then display this on screen (e.g., if the semicolon key is > > pressed, > > convert this to a specific character and display it on screen, etc). > > However, this can be fairly script intensive and would require that > > the > > Hebrew characters appear correctly in TextDisplay objects and/or Slide > > objects and appear correctly in InLine objects. If you are interested, > > I > > would recommend taking a look at SAMPLE:Process Responses > > > Template > Mode=View&SampleID=47>for > > an example of how to change what is displayed on screen based on the > > subject's responses. > > > > Please let me know if you have any further questions. > > ***** > > > > I do remember that some people here suggested some alternative things > > to try but as far as I know Yoed never succeeded in having his > > participants enter hebrew answers in e-prime. > > > > Sorry to bring this bad news... > > > > Best, > > > > AW > > > > On Apr 12, 10:53 am, "pan_w... at yahoo.Fr" wrote: > > > > > > > > > Hi Dear Eprimers, ... > > > I complete this morning my new experiment and eveything is working > > > fine... Almost... Because I just have a little problem here, and I > > > cannot find any informations to solve it. The subjects of the > > > experiment will be French and in our country we use aquerty keyboard > > > with accent like "?"or "?" or "?"... and by default EPRIME is set for > > > azerty keyboard. Im looking to select the "good langugages > > > key" (french) but cannot find the solution... > > > > > If anyone knows how deal with that... > > > > > Pierre- Masquer le texte des messages pr?c?dents - > > > > - Afficher le texte des messages pr?c?dents - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From psycholika at gmail.com Wed Apr 13 15:31:36 2011 From: psycholika at gmail.com (Siatra Vasiliki) Date: Wed, 13 Apr 2011 08:31:36 -0700 Subject: Problem with the keyboard language Azerty or Aqerty In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E5100@EXCHANGE3.ad.nottingham.ac.uk> Message-ID: Hello, is this the same problem as with cyrillic font, or greek etc? Because, when I want to use cyrillic or greek fonts I just change the language for non-Unicode programs in my computer to the language that I want to use, and actually I use the E-Prime v1.x for these experiments without problem. All the best, Vasilik.ee On Apr 12, 8:09?pm, Michiel Spape wrote: > Hiya, > As far as I know from Azerty keyboards, they generally have about as many keys as Qwerty ones, no? This should mean that, for the most part, a one to one mapping is possible (possibly unlike Hebrew keyboards)... If the echo is an issue, then you might as well work out some form of looping to do the echo object, replacing every keystroke: > 1. Declare the final response as nothing at all: > c.SetAttrib "FinalResponse", "" > 2. Insert a Label, PreStimulusLabel for instance. > 3. Here comes the stimulus, myStimulus. Underneath the word you show, the attribute [FinalResponse]. Which will be blank in the beginning. Only a single response is used. > 4. Do this, but then use case for prettier: ? ? > If myStimulus.RESP = "q" then > ? ? ? ? c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "a" > ? ? ? ? goto PreStimulusLabel > end if > If myStimulus.RESP = "w" then > ? ? ? ? c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "z" > ? ? ? ? goto PreStimulusLabel > end if > .... > > And in the case of {ENTER}, we just continue. Will take a bit of time to get that nice, but shouldn't be too difficult? Of course, bothering with the accents might be a bit too much. Seeing my name generally isn't spelled with one either, you'll have my sympathy :) > Best, > Mich > > Michiel Spap? > Research Fellow > Perception & Action group > University of Nottingham > School of Psychologywww.cognitology.eu > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of David McFarlane > Sent: 12 April 2011 17:27 > To: e-prime at googlegroups.com > Subject: Re: Problem with the keyboard language Azerty or Aqerty > > A bit of unsolicited technical explanation -- I > think the keyboard layout limitation results from > E-Prime using Microsoft DirectX and its virtual > key codes. ?This does allow for enhanced keyboard > performance, which we generally want for precise > RT-type experiments (e.g., timing, also, can > distinguish between left & right shift keys, > etc.), but as we see here it may create other > limitations with regard to handling alternate keyboard layouts. > > Would be nice to have this confirmed (or > corrected) and further explained by PST staff... > > -- David McFarlane, Professional Faultfinder > > >Thanks Liwenna, > >... It seems very bad... In fact, my experiment is pretty simple, the > >task is about word to be completed by the subject. In the screen, a > >text like "unha_ _y" is showed and othen, on the same screen I ask to > >participants to write the word it could be, for each trial. The > >"wordstimulus" comes from a list, and I get attributes like the > >correct answer... here the correct answer is "unhappy"... > >Everything is OK with this task, I have the RT, the correct answer and > >the textanswer quoted by participants... the only problem is that when > >people quoted, is not the good language Keyboard ?!!! > > >On 12 avr, 12:47, liwenna wrote: > > > Hello Pierre, > > > > Do you need the aquerty keyboard for input by your subjects trough an > > > echo? In that case I think that, unfortunately enough, there will be > > > no solution for this problem. > > > Not long ago there was a guy named Yoed on here that was trying the > > > solve that same problem except that he needed hebrew input. Try a > > > search on the word 'hebrew' ?in the search this group bar to see the > > > small avalanche of posts that relate to that question. > > > > He had been in contact with PST on this one too and this is the answer > > > he got from them: > > > **** > > > Are you using E-Prime v1.x or E-Prime 2.0? While E-Prime 2.0 is > > > supported by > > > the English/Western European versions of Windows XP and Vista, this > > > really > > > only applies to text that is displayed by the objects. That is, while > > > the > > > "Text" property of a TextDisplay will accept foreign characters, the > > > other > > > properties (including .Input and its related echo properties) will > > > not. All > > > non-English characters or accents will go unrecognized by E-Prime in > > > the > > > responses and in the text that is echoed to the screen. > > > > E-Prime 2.0 has resolved this to some degree by allowing non-English > > > fonts > > > to appear as responses in the data file (i.e., UNICODE fonts are > > > permitted). > > > However, the echo client will still only display English and the > > > responses > > > themselves will still be based on the QWERTY keyboard. You could get > > > around > > > this by manually echoing the subject's responses to the screen. For > > > example, > > > you could take the subject's input and then convert it to Hebrew in > > > script, > > > and then display this on screen (e.g., if the semicolon key is > > > pressed, > > > convert this to a specific character and display it on screen, etc). > > > However, this can be fairly script intensive and would require that > > > the > > > Hebrew characters appear correctly in TextDisplay objects and/or Slide > > > objects and appear correctly in InLine objects. If you are interested, > > > I > > > would recommend taking a look at SAMPLE:Process Responses > > > Template > > Mode=View&SampleID=47>for > > > an example of how to change what is displayed on screen based on the > > > subject's responses. > > > > Please let me know if you have any further questions. > > > ***** > > > > I do remember that some people here suggested some alternative things > > > to try but as far as I know Yoed never succeeded in having his > > > participants enter hebrew answers in e-prime. > > > > Sorry to bring this bad news... > > > > Best, > > > > AW > > > > On Apr 12, 10:53 am, "pan_w... at yahoo.Fr" wrote: > > > > > Hi Dear Eprimers, ... > > > > I complete this morning my new experiment and eveything is working > > > > fine... Almost... Because I just have a little problem here, and I > > > > cannot find any informations to solve it. The subjects of the > > > > experiment will be French and in our country we use aquerty keyboard > > > > with accent like "?"or "?" or "?"... and by default EPRIME is set for > > > > azerty keyboard. Im looking to select the "good langugages > > > > key" (french) but cannot find the solution... > > > > > If anyone knows how deal with that... > > > > > Pierre- Masquer le texte des messages pr?c?dents - > > > > - Afficher le texte des messages pr?c?dents - > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. ? Please do not use, copy or disclose the information contained in this message or in any attachment. ?Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Jedema at pitt.edu Wed Apr 13 19:27:23 2011 From: Jedema at pitt.edu (Hank Jedema) Date: Wed, 13 Apr 2011 12:27:23 -0700 Subject: synchronize event markers with refresh rate In-Reply-To: Message-ID: Thanks Paul. I did incorporate your recommendation into my program. However, there are still some issues unresolved. So I use the OnsetSignalDelay command for the event markers associated with the appearance of stimuli on the screen and I still use the writeport command to send event markers associated with the timing of touch screen responses. Can the OnsetSignalDelay command address multiple "pins" (OnsetSignalData) in its output ? The signal that E-prime sends to the other PC is actually an "8-bit strobe" which requires a "strobe signal" to be sent immediately after the 8-bit strobe. Currently it seems that the strobed event marker is not received until the end of the actual stimulus because the strobe signal is not received until an inline immediately after the stimulus. Is there a way to set OnsetSignalData to address two pins (one included in the strobe (parallel port output pins 2-9 (= D0-D7 = &H378 1-255) and one on parallel port pin 1 (=C0, &H378+2) ? This may sound complicated but we have used this approach successfully as a way to communicate between systems where the timing was not as critical. Hank On Mar 30, 12:40?pm, Paul Groot wrote: > Hi Hank, > > When using event markers for visual stimuli, you never should use the > writeport function. This is because (in most cases) you would like to > present the visual stimulus during the short refresh fase of the > display. This is the default case when onset sync is set to vertical > blank. (As David already explained!) If the stimulus is not synced > this way, you will end up with an incomplete first frame (flickering). > So, in most cases this causes unpredictable onset delays. Therfore, > any writeport call will be executed to early, because eprime will hold > the image presentation until the next refresh occurs (=OnsetDelay). > So, just use the Onset/Offset properties described in the previous > emails. The OnsetSignal will automatically generate a trigger as soon > as the image is presented. (I.e. EPrime will automatically sync the > implicit writeport command properly) > > Also: Preparation of ?the image (loading, uncompressing, scaling, ...) > could be performed during a so called pre-release period. This period > can be defined in the object just before the stimulus. This is advised > for accurate onset times because image preparation time is NOT fixed > in general. However, be carefull if you put any inline script between > this object and the stimulus. (It will be executed at the start of the > pre-release period!) > > best > paul > > 2011/3/30 Hank Jedema : > > > > > > > > > Thanks to Davis, Baris, and Paul for your quick responses. > > I used a writeport command in my code to send my event markers to my > > recording system. I will have to look up what the exact loading time > > of an image on my Elo Carroll touch screen is, because I did not > > adjust for that (fixed) delay yet. > > I based my question on the timing of the event markers on the > > following: I collect multiple event markers for both the stimulus > > appearance as well as the response timing using a electrophysiology > > rig with sub-millisecond (<0.15 msec) timing accuracy. When I compare > > the time difference between 2 event markers from touch screen > > responses it seems that Eprime and my Plexon rig correspond nicely > > (<1msec difference). When I compare the time difference between an > > event marker from a stimulus appearance and a touch screen response, > > there is a much greater difference (10-18msec). On a trial by trial > > basis the difference between the two event markers seems to match the > > stimulus.onset delay listed in the Eprime output. Based on this, I > > believe that the event marker sent out by my E-prime code precedes the > > appearance of the stimulus on the screen. I will try the suggestion to > > use an inline as soon as the stimulus is on the screen next week. I > > will also check on the thread that David provided and post my results. > > > Best, > > Hank > > > On Mar 30, 2:39?am, Paul Groot wrote: > >> Hi Hank, > > >> The event markers should be in sync when you prepare the markers using > >> the following functions: > > >> Stim.OffsetSignalEnabled = True > >> Stim.OnsetSignalEnabled = True > >> Stim.OffsetSignalPort = &H378 > >> Stim.OnsetSignalPort = &H378 > >> Stim.OffsetSignalData = &H00 > >> Stim.OnsetSignalData = &HFF ?' < this is your onset code in hexadedimal notation > > >> Where Stim is your display object. > > >> Most flatscreens have an onset delay of a few milliseconds, so this > >> would be a fixed delay caused by the properties of the display. > > >> Best, > >> Paul > > >> 2011/3/29 Hank Jedema : > > >> > Hi All, > > >> > I am trying to run a stop signal response task while recording > >> > electrophysiological activity on another setup. In order to get > >> > synchronization of behavior with the timing of my recordings, I have E- > >> > prime sent out event markers via the parallel port to an input of my > >> > recording device. It seems that this works well responses, but it > >> > seems that E-prime sends out the event markers for the display of > >> > stimuli before the stimulus actually appears on the screen: the > >> > eventmarker/timestamp is sent when the code issues the request for the > >> > stimulus to appear, rather than when the stimulus actually appears on > >> > the screen (i.e at the vertical blank/screen refresh after the > >> > stimulus.onset delay). Is there a way to get the event marker signal > >> > to synchronize with the actual appearance of the stimulus or is this > >> > something that can only be corrected offline by correcting the > >> > timestamps for stimulus appearance with their onset delay ? > > >> > Thanks very much for your help. > > >> > Hank > > >> > -- > >> > You received this message because you are subscribed to the Google Groups "E-Prime" group. > >> > To post to this group, send email to e-prime at googlegroups.com. > >> > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > >> > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From jie.liu.psych at gmail.com Wed Apr 13 22:20:09 2011 From: jie.liu.psych at gmail.com (Karl) Date: Wed, 13 Apr 2011 15:20:09 -0700 Subject: negative onsetdelay& log with prerelease Message-ID: Hello, all We just got a new laptop (win7) and installed the eprime (professional2.0). Our fmri paradigm is relatively simple--every trial has two components: 1) a fixation period with duration varying from 2000 to 4000ms 2) a pic presentation for 2000ms during which a response of button pressing is collected. 1) We tried to prerelease the pic, but whatever the prerelease number is, there are still lots of non-zeros in the pic-onsetdelay log file. They are generally less than 20ms, but more concerning is that there is even negative onset delay, like -5 or -11. What could the problem be? 2) if we set the pre-release too long, it seems to disrupt logging the response we collect during pic presentation. For our case, should we use prelease of pic or not? If not, how can we still ensure pic onset is accurate? Chapter 3 is quite unclear about this. 3) It is suggested here to use cumulative timing code for fMRI. Just curious about shorting the stimulus presentation duration is less concerning in fMRI? Thanks in advance Karl -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Thu Apr 14 12:36:30 2011 From: liwenna at gmail.com (liwenna) Date: Thu, 14 Apr 2011 05:36:30 -0700 Subject: Problem with the keyboard language Azerty or Aqerty In-Reply-To: Message-ID: Hello Vasilik, but is it then also possible for your participants to enter text in cyrilic? I think the specific problem here lies with the 'echo object' (that shows participants what they're typing on the display) and not so much with simply 'presenting text'. If it does: then that would be awesome! On Apr 13, 5:31?pm, Siatra Vasiliki wrote: > Hello, > > is this the same problem as with cyrillic font, or greek etc? > Because, when I want to use cyrillic or greek fonts I just change the > language for non-Unicode programs in my computer to the language that > I want to use, and actually I use the E-Prime v1.x for these > experiments without problem. > > All the best, > Vasilik.ee > > On Apr 12, 8:09?pm, Michiel Spape > wrote: > > > Hiya, > > As far as I know from Azerty keyboards, they generally have about as many keys as Qwerty ones, no? This should mean that, for the most part, a one to one mapping is possible (possibly unlike Hebrew keyboards)... If the echo is an issue, then you might as well work out some form of looping to do the echo object, replacing every keystroke: > > 1. Declare the final response as nothing at all: > > c.SetAttrib "FinalResponse", "" > > 2. Insert a Label, PreStimulusLabel for instance. > > 3. Here comes the stimulus, myStimulus. Underneath the word you show, the attribute [FinalResponse]. Which will be blank in the beginning. Only a single response is used. > > 4. Do this, but then use case for prettier: ? ? > > If myStimulus.RESP = "q" then > > ? ? ? ? c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "a" > > ? ? ? ? goto PreStimulusLabel > > end if > > If myStimulus.RESP = "w" then > > ? ? ? ? c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "z" > > ? ? ? ? goto PreStimulusLabel > > end if > > .... > > > And in the case of {ENTER}, we just continue. Will take a bit of time to get that nice, but shouldn't be too difficult? Of course, bothering with the accents might be a bit too much. Seeing my name generally isn't spelled with one either, you'll have my sympathy :) > > Best, > > Mich > > > Michiel Spap? > > Research Fellow > > Perception & Action group > > University of Nottingham > > School of Psychologywww.cognitology.eu > > > -----Original Message----- > > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of David McFarlane > > Sent: 12 April 2011 17:27 > > To: e-prime at googlegroups.com > > Subject: Re: Problem with the keyboard language Azerty or Aqerty > > > A bit of unsolicited technical explanation -- I > > think the keyboard layout limitation results from > > E-Prime using Microsoft DirectX and its virtual > > key codes. ?This does allow for enhanced keyboard > > performance, which we generally want for precise > > RT-type experiments (e.g., timing, also, can > > distinguish between left & right shift keys, > > etc.), but as we see here it may create other > > limitations with regard to handling alternate keyboard layouts. > > > Would be nice to have this confirmed (or > > corrected) and further explained by PST staff... > > > -- David McFarlane, Professional Faultfinder > > > >Thanks Liwenna, > > >... It seems very bad... In fact, my experiment is pretty simple, the > > >task is about word to be completed by the subject. In the screen, a > > >text like "unha_ _y" is showed and othen, on the same screen I ask to > > >participants to write the word it could be, for each trial. The > > >"wordstimulus" comes from a list, and I get attributes like the > > >correct answer... here the correct answer is "unhappy"... > > >Everything is OK with this task, I have the RT, the correct answer and > > >the textanswer quoted by participants... the only problem is that when > > >people quoted, is not the good language Keyboard ?!!! > > > >On 12 avr, 12:47, liwenna wrote: > > > > Hello Pierre, > > > > > Do you need the aquerty keyboard for input by your subjects trough an > > > > echo? In that case I think that, unfortunately enough, there will be > > > > no solution for this problem. > > > > Not long ago there was a guy named Yoed on here that was trying the > > > > solve that same problem except that he needed hebrew input. Try a > > > > search on the word 'hebrew' ?in the search this group bar to see the > > > > small avalanche of posts that relate to that question. > > > > > He had been in contact with PST on this one too and this is the answer > > > > he got from them: > > > > **** > > > > Are you using E-Prime v1.x or E-Prime 2.0? While E-Prime 2.0 is > > > > supported by > > > > the English/Western European versions of Windows XP and Vista, this > > > > really > > > > only applies to text that is displayed by the objects. That is, while > > > > the > > > > "Text" property of a TextDisplay will accept foreign characters, the > > > > other > > > > properties (including .Input and its related echo properties) will > > > > not. All > > > > non-English characters or accents will go unrecognized by E-Prime in > > > > the > > > > responses and in the text that is echoed to the screen. > > > > > E-Prime 2.0 has resolved this to some degree by allowing non-English > > > > fonts > > > > to appear as responses in the data file (i.e., UNICODE fonts are > > > > permitted). > > > > However, the echo client will still only display English and the > > > > responses > > > > themselves will still be based on the QWERTY keyboard. You could get > > > > around > > > > this by manually echoing the subject's responses to the screen. For > > > > example, > > > > you could take the subject's input and then convert it to Hebrew in > > > > script, > > > > and then display this on screen (e.g., if the semicolon key is > > > > pressed, > > > > convert this to a specific character and display it on screen, etc). > > > > However, this can be fairly script intensive and would require that > > > > the > > > > Hebrew characters appear correctly in TextDisplay objects and/or Slide > > > > objects and appear correctly in InLine objects. If you are interested, > > > > I > > > > would recommend taking a look at SAMPLE:Process Responses > > > > Template > > > Mode=View&SampleID=47>for > > > > an example of how to change what is displayed on screen based on the > > > > subject's responses. > > > > > Please let me know if you have any further questions. > > > > ***** > > > > > I do remember that some people here suggested some alternative things > > > > to try but as far as I know Yoed never succeeded in having his > > > > participants enter hebrew answers in e-prime. > > > > > Sorry to bring this bad news... > > > > > Best, > > > > > AW > > > > > On Apr 12, 10:53 am, "pan_w... at yahoo.Fr" wrote: > > > > > > Hi Dear Eprimers, ... > > > > > I complete this morning my new experiment and eveything is working > > > > > fine... Almost... Because I just have a little problem here, and I > > > > > cannot find any informations to solve it. The subjects of the > > > > > experiment will be French and in our country we use aquerty keyboard > > > > > with accent like "?"or "?" or "?"... and by default EPRIME is set for > > > > > azerty keyboard. Im looking to select the "good langugages > > > > > key" (french) but cannot find the solution... > > > > > > If anyone knows how deal with that... > > > > > > Pierre- Masquer le texte des messages pr?c?dents - > > > > > - Afficher le texte des messages pr?c?dents - > > > -- > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. ? Please do not use, copy or disclose the information contained in this message or in any attachment. ?Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > > This message has been checked for viruses but the contents of an attachment > > may still contain software viruses which could damage your computer system: > > you are advised to perform your own checks. Email communications with the > > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From vera.donk at googlemail.com Thu Apr 14 14:27:06 2011 From: vera.donk at googlemail.com (Vera) Date: Thu, 14 Apr 2011 07:27:06 -0700 Subject: Sound on button press Message-ID: Hi group! I already got some useful help here about a year ago and everything worked fine (after a while you kind of get the "hang" of eprime...;-) ), but now I seem to run into a problem (which actually seems a very easy-to-do-thing to me, but I haven't figured out a way to do this yet). I show participants an image on a slide for 2000 ms They have to answer by pushing a button whether a target is present (if there is no target, they shouldn't do anything -> typical go-nogo task). The image will however stay visible 2000 ms independent of their answer (every trial = 2000 ms of image). Now, as this is all taking place in a driving environment, where quite a lot is going on, I would like to give out a sound once a button is pushed (but the image still needs to stay there!). I of course have the option of using a feedback-display, but then I only get the sound, once the slide disappears. I really would like to have the sound on button press, just to confirm the participant "ok, noticed your response" (or not: there will not be sound in absence of a response). Any ideas on how to do this? Thanks in advance! Greetings, Vera -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From matthewdwood82 at gmail.com Thu Apr 14 14:27:42 2011 From: matthewdwood82 at gmail.com (Matthew) Date: Thu, 14 Apr 2011 07:27:42 -0700 Subject: Problem with the keyboard language Azerty or Aqerty In-Reply-To: Message-ID: I was hunting around for a solution to a similar keyboard mapping problem, and found this script that may be helpful. I think the language in their example experiment is French, so you may not have to modify that much. http://webloria.loria.fr/~quintonj/index.php/Research/EKIS Haven't looked at it (or much of this thread, actually) in great detail, but it looks like it declares two strings with the AZERTY English & corresponding AZERTY French characters, and then converts each character by finding the index of its position in one string and getting the corresponding character in the other. Good luck, -Matt On Apr 14, 8:36?am, liwenna wrote: > Hello Vasilik, > > but is it then also possible for your participants to enter text in > cyrilic? I think the specific problem here lies with the 'echo > object' (that shows participants what they're typing on the display) > and not so much with simply 'presenting text'. > > If it does: then that would be awesome! > > On Apr 13, 5:31?pm, Siatra Vasiliki wrote: > > > > > > > > > Hello, > > > is this the same problem as with cyrillic font, or greek etc? > > Because, when I want to use cyrillic or greek fonts I just change the > > language for non-Unicode programs in my computer to the language that > > I want to use, and actually I use the E-Prime v1.x for these > > experiments without problem. > > > All the best, > > Vasilik.ee > > > On Apr 12, 8:09?pm, Michiel Spape > > wrote: > > > > Hiya, > > > As far as I know from Azerty keyboards, they generally have about as many keys as Qwerty ones, no? This should mean that, for the most part, a one to one mapping is possible (possibly unlike Hebrew keyboards)... If the echo is an issue, then you might as well work out some form of looping to do the echo object, replacing every keystroke: > > > 1. Declare the final response as nothing at all: > > > c.SetAttrib "FinalResponse", "" > > > 2. Insert a Label, PreStimulusLabel for instance. > > > 3. Here comes the stimulus, myStimulus. Underneath the word you show, the attribute [FinalResponse]. Which will be blank in the beginning. Only a single response is used. > > > 4. Do this, but then use case for prettier: ? ? > > > If myStimulus.RESP = "q" then > > > ? ? ? ? c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "a" > > > ? ? ? ? goto PreStimulusLabel > > > end if > > > If myStimulus.RESP = "w" then > > > ? ? ? ? c.SetAttrib "FinalResponse", c.GetAttrib ("FinalResponse") & "z" > > > ? ? ? ? goto PreStimulusLabel > > > end if > > > .... > > > > And in the case of {ENTER}, we just continue. Will take a bit of time to get that nice, but shouldn't be too difficult? Of course, bothering with the accents might be a bit too much. Seeing my name generally isn't spelled with one either, you'll have my sympathy :) > > > Best, > > > Mich > > > > Michiel Spap? > > > Research Fellow > > > Perception & Action group > > > University of Nottingham > > > School of Psychologywww.cognitology.eu > > > > -----Original Message----- > > > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of David McFarlane > > > Sent: 12 April 2011 17:27 > > > To: e-prime at googlegroups.com > > > Subject: Re: Problem with the keyboard language Azerty or Aqerty > > > > A bit of unsolicited technical explanation -- I > > > think the keyboard layout limitation results from > > > E-Prime using Microsoft DirectX and its virtual > > > key codes. ?This does allow for enhanced keyboard > > > performance, which we generally want for precise > > > RT-type experiments (e.g., timing, also, can > > > distinguish between left & right shift keys, > > > etc.), but as we see here it may create other > > > limitations with regard to handling alternate keyboard layouts. > > > > Would be nice to have this confirmed (or > > > corrected) and further explained by PST staff... > > > > -- David McFarlane, Professional Faultfinder > > > > >Thanks Liwenna, > > > >... It seems very bad... In fact, my experiment is pretty simple, the > > > >task is about word to be completed by the subject. In the screen, a > > > >text like "unha_ _y" is showed and othen, on the same screen I ask to > > > >participants to write the word it could be, for each trial. The > > > >"wordstimulus" comes from a list, and I get attributes like the > > > >correct answer... here the correct answer is "unhappy"... > > > >Everything is OK with this task, I have the RT, the correct answer and > > > >the textanswer quoted by participants... the only problem is that when > > > >people quoted, is not the good language Keyboard ?!!! > > > > >On 12 avr, 12:47, liwenna wrote: > > > > > Hello Pierre, > > > > > > Do you need the aquerty keyboard for input by your subjects trough an > > > > > echo? In that case I think that, unfortunately enough, there will be > > > > > no solution for this problem. > > > > > Not long ago there was a guy named Yoed on here that was trying the > > > > > solve that same problem except that he needed hebrew input. Try a > > > > > search on the word 'hebrew' ?in the search this group bar to see the > > > > > small avalanche of posts that relate to that question. > > > > > > He had been in contact with PST on this one too and this is the answer > > > > > he got from them: > > > > > **** > > > > > Are you using E-Prime v1.x or E-Prime 2.0? While E-Prime 2.0 is > > > > > supported by > > > > > the English/Western European versions of Windows XP and Vista, this > > > > > really > > > > > only applies to text that is displayed by the objects. That is, while > > > > > the > > > > > "Text" property of a TextDisplay will accept foreign characters, the > > > > > other > > > > > properties (including .Input and its related echo properties) will > > > > > not. All > > > > > non-English characters or accents will go unrecognized by E-Prime in > > > > > the > > > > > responses and in the text that is echoed to the screen. > > > > > > E-Prime 2.0 has resolved this to some degree by allowing non-English > > > > > fonts > > > > > to appear as responses in the data file (i.e., UNICODE fonts are > > > > > permitted). > > > > > However, the echo client will still only display English and the > > > > > responses > > > > > themselves will still be based on the QWERTY keyboard. You could get > > > > > around > > > > > this by manually echoing the subject's responses to the screen. For > > > > > example, > > > > > you could take the subject's input and then convert it to Hebrew in > > > > > script, > > > > > and then display this on screen (e.g., if the semicolon key is > > > > > pressed, > > > > > convert this to a specific character and display it on screen, etc). > > > > > However, this can be fairly script intensive and would require that > > > > > the > > > > > Hebrew characters appear correctly in TextDisplay objects and/or Slide > > > > > objects and appear correctly in InLine objects. If you are interested, > > > > > I > > > > > would recommend taking a look at SAMPLE:Process Responses > > > > > Template > > > > Mode=View&SampleID=47>for > > > > > an example of how to change what is displayed on screen based on the > > > > > subject's responses. > > > > > > Please let me know if you have any further questions. > > > > > ***** > > > > > > I do remember that some people here suggested some alternative things > > > > > to try but as far as I know Yoed never succeeded in having his > > > > > participants enter hebrew answers in e-prime. > > > > > > Sorry to bring this bad news... > > > > > > Best, > > > > > > AW > > > > > > On Apr 12, 10:53 am, "pan_w... at yahoo.Fr" wrote: > > > > > > > Hi Dear Eprimers, ... > > > > > > I complete this morning my new experiment and eveything is working > > > > > > fine... Almost... Because I just have a little problem here, and I > > > > > > cannot find any informations to solve it. The subjects of the > > > > > > experiment will be French and in our country we use aquerty keyboard > > > > > > with accent like "?"or "?" or "?"... and by default EPRIME is set for > > > > > > azerty keyboard. Im looking to select the "good langugages > > > > > > key" (french) but cannot find the solution... > > > > > > > If anyone knows how deal with that... > > > > > > > Pierre- Masquer le texte des messages pr?c?dents - > > > > > > - Afficher le texte des messages pr?c?dents - > > > > -- > > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > > To post to this group, send email to e-prime at googlegroups.com. > > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. ? Please do not use, copy or disclose the information contained in this message or in any attachment. ?Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > > > This message has been checked for viruses but the contents of an attachment > > > may still contain software viruses which could damage your computer system: > > > you are advised to perform your own checks. Email communications with the > > > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From matthewdwood82 at gmail.com Thu Apr 14 14:39:42 2011 From: matthewdwood82 at gmail.com (Matthew) Date: Thu, 14 Apr 2011 07:39:42 -0700 Subject: string input with spaces Message-ID: Hi all, I have trouble with a problem solving experiment a student in a class I'm TAing put together. Rebus puzzles (e.g. http://preview.tinyurl.com/3s73mwj) are being used as the task. The answers to these puzzles are short idioms or sayings (e.g. "a cut above the rest"). The script has a slide which presents the puzzle stimulus (picture file) and echoes input from the keyboard. Problem is, when the answer held in our [CorrectAnswer] attribute is a string that contains spaces, we either get an error message "Correct is not part of allowable," or the script fails to recognize that a correct answer has been provided. I've mucked around with various settings of allowable input in the Duration/Input and Echo submenus of the SlideObject, and am having trouble remembering which mapped to which. I think the problem is somewhere in how the input is being parsed and compared to the value held in the list attribute [CorrectAnswer]. Our current workaround is to omit spaces from all responses, but it seems like the fix should be fairly simple (whatever it is). Am happy to send a copy of the experiment on request. Thanks for your help, -Matt -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Thu Apr 14 15:53:02 2011 From: liwenna at gmail.com (liwenna) Date: Thu, 14 Apr 2011 08:53:02 -0700 Subject: string input with spaces In-Reply-To: Message-ID: Hi Matt, Not sure this helps (you're no spaces work around sounds fine to me, too?) but here are my 2 cents: In your current set-up: how does the slide advance/terminate after the subject has provided his/her answer? I am kinda guessing that you're using a double input mask, one for the keyboard and it's echo and one for the mouse that has a termination response. Is this the case? For some reason.. don't ask me why, I see that in such a case at the slide termination the mouse response (1 for left and 2 for right button) is logged into the attribute slidename.resp... when calculating the accuracy (slidename.acc) e-prime compares slidename.resp with slidename.cresp... obviously, if slidename.resp contains value "1", this does not match with your string answer. So... ermm... remove the mouse input mask and make for instance the right arrow the termination response (enter {rightarrow} into the box termination response). Now your pp can type their answer and then press right arrow to continue to the next slide and their typed answer remains logged into slidename.resp and can be compared to slidename.cresp. Do note that the echo logs all keys pressed including function keys: {SPACE} and also the {RIGHTARROW} that pp press to terminate the slide. So in your correctanswer the answer: "This answer contains a space", should read: This{SPACE}answer{SPACE}contains{SPACE} a{SPACE}space{RIGHTARROW} . If I do that I can get e-prime to log my response (this answer contains a space) as correct... but I'd reckon this method is pretty harsh, also when it comes to pp making typoes and such... best, liw On Apr 14, 4:39?pm, Matthew wrote: > Hi all, > > I have trouble with a problem solving experiment a student in a class > I'm TAing put together. ?Rebus puzzles (e.g.http://preview.tinyurl.com/3s73mwj) > are being used as the task. ?The answers to these puzzles are short > idioms or sayings (e.g. "a cut above the rest"). > > The script has a slide which presents the puzzle stimulus (picture > file) and echoes input from the keyboard. ?Problem is, when the answer > held in ?our [CorrectAnswer] attribute is a string that contains > spaces, we either get an error message "Correct is not part of > allowable," or the script fails to recognize that a correct answer has > been provided. ?I've mucked around with various settings of allowable > input in the Duration/Input and Echo submenus of the SlideObject, and > am having trouble remembering which mapped to which. > > I think the problem is somewhere in how the input is being parsed and > compared to the value held in the list attribute [CorrectAnswer]. ?Our > current workaround is to omit spaces from all responses, but it seems > like the fix should be fairly simple (whatever it is). ?Am happy to > send a copy of the experiment on request. > > Thanks for your help, > -Matt -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Thu Apr 14 16:00:09 2011 From: liwenna at gmail.com (liwenna) Date: Thu, 14 Apr 2011 09:00:09 -0700 Subject: Sound on button press In-Reply-To: <91957209-11f6-450e-a9a1-42ac9f65bccc@z31g2000vbs.googlegroups.com> Message-ID: Hi Vera! first thing that comes to mind (I think something like this was discussed here before... ages ago). Create a second, similar, slide right after the current one you have now but add your sound object to this slide so that the sound is heard when this slide appears. Inbetween the two slides place an inline that sets the second slide's duration to the remainder of the 2000 ms (slide2.duration = 2000 - slide1.duration) and perhaps add a goto label line to entirely skip the second slide in case of no response... i.e. "if slide1.resp = "" then goto jumplabel", place the label called jumplabel after the second slide . A quick and dirty suggestion, I hope it helps you, though. best, liw On Apr 14, 4:27?pm, Vera wrote: > Hi group! > > I already got some useful help here about a year ago and everything > worked fine (after a while you kind of get the "hang" of > eprime...;-) ), but now I seem to run into a problem (which actually > seems a very easy-to-do-thing to me, but I haven't figured out a way > to do this yet). > > I show participants an image on a slide for 2000 ms > > They have to answer by pushing a button whether a target is present > (if there is no target, they shouldn't do anything -> typical go-nogo > task). The image will however stay visible 2000 ms independent of > their answer (every trial = 2000 ms of image). > > Now, as this is all taking place in a driving environment, where quite > a lot is going on, I would like to give out a sound once a button is > pushed (but the image still needs to stay there!). > > I of course have the option of using a feedback-display, but then I > only get the sound, once the slide disappears. > > I really would like to have the sound on button press, just to confirm > the participant "ok, noticed your response" (or not: there will not be > sound in absence of a response). > > Any ideas on how to do this? > > Thanks in advance! > > Greetings, > Vera -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Apr 14 20:09:36 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 14 Apr 2011 16:09:36 -0400 Subject: Wisconsin card sorting test Message-ID: I have gotten several direct messages about this project, so perhaps I should post a public update. First, thank you to everyone who has expressed an interest in this. Sadly, by the time I got the help that I requested and found the needed materials, my window of opportunity passed and I had to move on to other matters while leaving this project undone. I hope to return to it at a later time, but I cannot say when that would be. Aside from taking time out to write the code (greatly simplified since the current canonical version uses a fixed card sequence, unlike the original research versions), one particular roadblock I face would be making the stimulus materials. Several folks have kindly found and pointed out the WCST materials available through http://pebl.sourceforge.net/battery.html ; I wish to make clear, however, that those materials significantly depart from the standard cards and are entirely unsuited to my project. (I would call their program "WCST-like", not a true WCST. I aim for something higher in my program.) For those who want a fully automated WCST and can spend some money, please note that you may purchase a commercial (and non-E-Prime) version through Psychological Assessment Resources, Inc. (http://www4.parinc.com/ ). Once again, thanks to everyone for your interest, and I will keep this thread updated whenever I should make progress. -- David McFarlane, Professional Faultfinder On Sep 3 2010, 12:28 pm, David McFarlane wrote: > After casting about far & wide, I found a complete set of WCST > materials right here at my own institution. So I am all set there > now, my thanks to everyone who replied. > > Now I need to finish this project and submit it to STEP. I will > probably do this in stages. As stated earlier, programming the basic > control logic for merely administering the test is the easy part, and > I have that worked out already with a mere text-only > keyboard-response model. Adding the graphics and improving the > response methods will take a little more tedious work. I might > submit a first draft once I get that far. > > Then the hard work comes when I add computation of all the customary > raw WCST scores. With that accomplished I would consider the project > finished -- I have no hope of going the extra yard to have it convert > raw summary scores into demographically corrected normed scores, for > that users will need to consult the Wisconsion Card Sorting Test > Manual, Revised and Expanded, by Robert K. Heaton et al. (1993), > Psychological Assessment Resources, Inc., Lutz, Florida, USA, or use > WCST scoring software. > > -- David McFarlane, Professional Faultfinder > > At 8/31/2010 05:31 PM Tuesday, David McFarlane wrote: > > >Oh, forgot to say, if interested then please contact me directly by > >e-mail (off the list). > > >Thanks, > >David McFarlane, Professional Faultfinder > > >>For those of you who might not read beyond the first line: I will > >>write a professional quality WCST in EP for no charge, if I can > >>only get a bit of help. Read on if interested... > > >>Well, despite the reservations I expressed earlier, on my own time > >>I went ahead and threw together a working skeleton in EP for the > >>WCST, just to flex my E-Prime muscles. The basic control logic is > >>really quite simple, and with a couple of tricks (e.g., nested > >>attribute references) the E-Prime design is rather sleek. > > >>I would like to complete this project to my usual professional > >>standards and then submit it for inclusion in the public STEP > >>library so that everyone can use it. In short, I aim to make this > >>no less than a completely faithful computerized replica of the > >>standardized test, in EP. But to do that I will need many more > >>specific details on the mechanics of the standardized test. E.g., > >>I have been told that the standardized test presents the "response" > >>cards in the same pre-ordained sequence for each run, and I need to > >>know that sequence. Also, if I can get hold of the scoring rules > >>then I might even have a whack at that, although I think it enough > >>just to have the program administer the test & record raw > >>data. (It would also be nice if I could get someone else to do the > >>card graphics, as I am lousy at graphics -- I would need only 16 > >>image files, not all 64, since I know how to make EP change the > >>colors.) I should be able to learn all I need from the official > >>WCST Manual, with perhaps a look at a printed card deck. But a > >>manual costs $115, and a card deck $170, more than I care to spend > >>for something that is, for me at least, only a hobby project. > > >>So here's the deal: If any of you can help me get access to > >>materials that fully specify the mechanics of the test (ideally the > >>printed Manual and/or cards) then I will complete this project in > >>short order and you will all have a professional quality WCST in EP. > > >>-- David McFarlane, Professional Faultfinder > > >>At 8/23/2010 05:24 PM Monday, David McFarlane wrote: > >>>Well, I toyed with the idea of making a simple WCST in E-Prime > >>>just to amuse myself. But when I looked into it further, I got puzzled. > > >>>The WCST started off with simple printed materials administered > >>>manually by a human examiner. Clearly the WCST does not require > >>>millisecond precision. So if we simply want to automate it, why > >>>use such an expensive, specialized, and heavyweight platform as > >>>E-Prime? Wouldn't it make more sense to use some more common > >>>platform such as JavaScript, or Flash, or Python, or even straight > >>>Visual Basic? Note that the WCST was automated using simple Turbo > >>>Basic (for DOS?) as far back as 1996. Isn't this another case of, > >>>"When all you have is a hammer, every problem looks like a > >>>nail" Or, insofar as I have not kept up with the literature on > >>>the WCST, am I just missing something that is obvious to the rest of you? > > >>>Also, apparently scoring the test is quite complex (perseverative > >>>errors, nonperseverative errors, etc.), so building that into the > >>>program (as opposed to leaving that to later data analysis) would > >>>take some care. > > >>>Finally, did anyone else know that the term "WisconsinCard > >>>Sorting Test" was trademarked by Wells Printing and Digital > >>>Services of Madison,Wisconsin, USA (see > >>>http://en.wikipedia.org/wiki/Wisconsin_card_sort)? So we cannot > >>>give the name "WisconsinCard Sorting Test" to any printed > >>>materials that we produce, but since the trademark does not cover > >>>computerized versions we may continue to use the name "Wisconsin > >>>Card Sorting Test" for our computerized versions. > > >>>With all that said, note that someone did make an automated WCST > >>>demo for Inquisit's Millisecond > >>>(http://www.millisecond.com/download/samples/v3/CardSort), though > >>>I do not know what data it stores or how it handles the test scoring. > > >>>-- David McFarlane, Professional Faultfinder > > >>>At 8/20/2010 12:10 PM Friday, David McFarlane wrote: > >>>>As far as I can tell no one has made an E-Prime WCST available on > >>>>the Web. It would be quite interesting to make one. As I > >>>>recall, in essence the task involves operantly rewarding the > >>>>subject for correctly following an undisclosed rule, changing the > >>>>rule whenever the subject achieves an overall success criterion, > >>>>and seeing how well the subject can adapt to the changing > >>>>rules. This would require some interesting code in E-Prime, in > >>>>particular scoring the success rate and then changing the > >>>>"correct" rule on the fly, but it could be done. Wish I had the > >>>>liberty to do it myself. > > >>>>-- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Apr 14 20:34:36 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 14 Apr 2011 16:34:36 -0400 Subject: synchronize event markers with refresh rate In-Reply-To: <423ffc29-d0b8-48a6-bf37-3e289c05c7f2@l30g2000vbn.googlegro ups.com> Message-ID: Hank, (Hmm, I see OnsetDelay, OnsetSignalData, OnsetSignalEnabled, and OnsetSignalPort, but no OnsetSignalDelay, so not sure what you are referring to there. But no matter...) Yes, both OnsetSignal... and WritePort can handle all 8 bits of any digital I/O port. For more background information on how to generally handle multiple digitital I/O bits, please read "Parallel Port Complete" by Jan Axelson (http://www.amazon.com/Parallel-Port-Complete-Programming-Interfacing/dp/0965081915/ref=sr_1_1?ie=UTF8&s=books&qid=1302813230&sr=1-1 ), or just Google around. -- David McFarlane, Professional Faultfinder At 4/13/2011 03:27 PM Wednesday, you wrote: >Thanks Paul. I did incorporate your recommendation into my program. >However, there are still some issues unresolved. So I use the >OnsetSignalDelay command for the event markers associated with the >appearance of stimuli on the screen and I still use the writeport >command to send event markers associated with the timing of touch >screen responses. Can the OnsetSignalDelay command address multiple >"pins" (OnsetSignalData) in its output ? >The signal that E-prime sends to the other PC is actually an "8-bit >strobe" which requires a "strobe signal" to be sent immediately after >the 8-bit strobe. Currently it seems that the strobed event marker is >not received until the end of the actual stimulus because the strobe >signal is not received until an inline immediately after the stimulus. >Is there a way to set OnsetSignalData to address two pins (one >included in the strobe (parallel port output pins 2-9 (= D0-D7 = &H378 >1-255) and one on parallel port pin 1 (=C0, &H378+2) ? This may sound >complicated but we have used this approach successfully as a way to >communicate between systems where the timing was not as critical. >Hank > >On Mar 30, 12:40 pm, Paul Groot wrote: > > Hi Hank, > > > > When using event markers for visual stimuli, you never should use the > > writeport function. This is because (in most cases) you would like to > > present the visual stimulus during the short refresh fase of the > > display. This is the default case when onset sync is set to vertical > > blank. (As David already explained!) If the stimulus is not synced > > this way, you will end up with an incomplete first frame (flickering). > > So, in most cases this causes unpredictable onset delays. Therfore, > > any writeport call will be executed to early, because eprime will hold > > the image presentation until the next refresh occurs (=OnsetDelay). > > So, just use the Onset/Offset properties described in the previous > > emails. The OnsetSignal will automatically generate a trigger as soon > > as the image is presented. (I.e. EPrime will automatically sync the > > implicit writeport command properly) > > > > Also: Preparation of the image (loading, uncompressing, scaling, ...) > > could be performed during a so called pre-release period. This period > > can be defined in the object just before the stimulus. This is advised > > for accurate onset times because image preparation time is NOT fixed > > in general. However, be carefull if you put any inline script between > > this object and the stimulus. (It will be executed at the start of the > > pre-release period!) > > > > best > > paul > > > > 2011/3/30 Hank Jedema : > > > > > > > > > > > > > > > > > Thanks to Davis, Baris, and Paul for your quick responses. > > > I used a writeport command in my code to send my event markers to my > > > recording system. I will have to look up what the exact loading time > > > of an image on my Elo Carroll touch screen is, because I did not > > > adjust for that (fixed) delay yet. > > > I based my question on the timing of the event markers on the > > > following: I collect multiple event markers for both the stimulus > > > appearance as well as the response timing using a electrophysiology > > > rig with sub-millisecond (<0.15 msec) timing accuracy. When I compare > > > the time difference between 2 event markers from touch screen > > > responses it seems that Eprime and my Plexon rig correspond nicely > > > (<1msec difference). When I compare the time difference between an > > > event marker from a stimulus appearance and a touch screen response, > > > there is a much greater difference (10-18msec). On a trial by trial > > > basis the difference between the two event markers seems to match the > > > stimulus.onset delay listed in the Eprime output. Based on this, I > > > believe that the event marker sent out by my E-prime code precedes the > > > appearance of the stimulus on the screen. I will try the suggestion to > > > use an inline as soon as the stimulus is on the screen next week. I > > > will also check on the thread that David provided and post my results. > > > > > Best, > > > Hank > > > > > On Mar 30, 2:39 am, Paul Groot wrote: > > >> Hi Hank, > > > > >> The event markers should be in sync when you prepare the markers using > > >> the following functions: > > > > >> Stim.OffsetSignalEnabled = True > > >> Stim.OnsetSignalEnabled = True > > >> Stim.OffsetSignalPort = &H378 > > >> Stim.OnsetSignalPort = &H378 > > >> Stim.OffsetSignalData = &H00 > > >> Stim.OnsetSignalData = &HFF ' < this is your onset code in > hexadedimal notation > > > > >> Where Stim is your display object. > > > > >> Most flatscreens have an onset delay of a few milliseconds, so this > > >> would be a fixed delay caused by the properties of the display. > > > > >> Best, > > >> Paul > > > > >> 2011/3/29 Hank Jedema : > > > > >> > Hi All, > > > > >> > I am trying to run a stop signal response task while recording > > >> > electrophysiological activity on another setup. In order to get > > >> > synchronization of behavior with the timing of my > recordings, I have E- > > >> > prime sent out event markers via the parallel port to an input of my > > >> > recording device. It seems that this works well responses, but it > > >> > seems that E-prime sends out the event markers for the display of > > >> > stimuli before the stimulus actually appears on the screen: the > > >> > eventmarker/timestamp is sent when the code issues the request for the > > >> > stimulus to appear, rather than when the stimulus actually appears on > > >> > the screen (i.e at the vertical blank/screen refresh after the > > >> > stimulus.onset delay). Is there a way to get the event marker signal > > >> > to synchronize with the actual appearance of the stimulus or is this > > >> > something that can only be corrected offline by correcting the > > >> > timestamps for stimulus appearance with their onset delay ? > > > > >> > Thanks very much for your help. > > > > >> > Hank -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Apr 14 20:49:58 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 14 Apr 2011 16:49:58 -0400 Subject: Sound on button press In-Reply-To: Message-ID: Vera, Agree with liw generally about handling the timing, but I would just use a SoundOut object instead of a Slide or anything visual, that way your visual stim will simply remain while your sound plays with no further fuss. My own favorite trick for getting timing like this to work is to make use of the more esoteric SetNextTargetOnsetTime (see the online E-Basic Help). On your stimulus Slide (let's call it StimSlide), set End Action to (terminate) and leave its Duration at 2000. Follow that with an inline, and then a SoundOut object (let's call it FeedbackSound) and set its Duration to 2000. In the inline between StimSlide and FeedbackSound, just put SetNextTargetOnsetTime StimSlide.OnsetTime Now, whenever your program gets to FeedbackSound, it will think that FeedbackSound was supposed to start at the same time as StimSlide and then end 2000 ms later, i.e., 2000 ms after StimSlide started. Isn't that slick? And it required no computation. Admittedly, using tricks like this does rely on some deeper understanding of the inner hidden workings of E-Prime, and I don't have time to explain all that just now. Also, your subject may get a short beep even for no response, so you may have to work out a little more code to get everything to work the way you want (see liw's further discussion earlier). -- David McFarlane, Professional Faultfinder At 4/14/2011 12:00 PM Thursday, you wrote: >Hi Vera! > >first thing that comes to mind (I think something like this was >discussed here before... ages ago). Create a second, similar, slide >right after the current one you have now but add your sound object to >this slide so that the sound is heard when this slide appears. >Inbetween the two slides place an inline that sets the second slide's >duration to the remainder of the 2000 ms (slide2.duration = 2000 - >slide1.duration) and perhaps add a goto label line to entirely skip >the second slide in case of no response... i.e. "if slide1.resp = "" >then goto jumplabel", place the label called jumplabel after the >second slide . > >A quick and dirty suggestion, I hope it helps you, though. > >best, > >liw > >On Apr 14, 4:27 pm, Vera wrote: > > Hi group! > > > > I already got some useful help here about a year ago and everything > > worked fine (after a while you kind of get the "hang" of > > eprime...;-) ), but now I seem to run into a problem (which actually > > seems a very easy-to-do-thing to me, but I haven't figured out a way > > to do this yet). > > > > I show participants an image on a slide for 2000 ms > > > > They have to answer by pushing a button whether a target is present > > (if there is no target, they shouldn't do anything -> typical go-nogo > > task). The image will however stay visible 2000 ms independent of > > their answer (every trial = 2000 ms of image). > > > > Now, as this is all taking place in a driving environment, where quite > > a lot is going on, I would like to give out a sound once a button is > > pushed (but the image still needs to stay there!). > > > > I of course have the option of using a feedback-display, but then I > > only get the sound, once the slide disappears. > > > > I really would like to have the sound on button press, just to confirm > > the participant "ok, noticed your response" (or not: there will not be > > sound in absence of a response). > > > > Any ideas on how to do this? > > > > Thanks in advance! > > > > Greetings, > > Vera -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Apr 14 21:01:20 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 14 Apr 2011 17:01:20 -0400 Subject: string input with spaces In-Reply-To: Message-ID: Matt, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... In your .edat files, take a look at your .RESP value strings, and compare those to the strings in your Correct attribute. Does the subject's RESP have a "{SPACE}" wherever they entered a space character? Then your Correct attribute has to do the same. Please see the "{key} nomenclature" topic in the online E-Basic Help. Alternatively, you could add inline code to replace the {key} nomenclature with proper text, as in the example provided by PST's own Matt Lenhart at http://www.pstnet.com/forum/Topic2194-5-1.aspx (must register & login to download). -- David McFarlane, Professional Faultfinder At 4/14/2011 10:39 AM Thursday, you wrote: >Hi all, > >I have trouble with a problem solving experiment a student in a class >I'm TAing put together. Rebus puzzles (e.g. >http://preview.tinyurl.com/3s73mwj) >are being used as the task. The answers to these puzzles are short >idioms or sayings (e.g. "a cut above the rest"). > >The script has a slide which presents the puzzle stimulus (picture >file) and echoes input from the keyboard. Problem is, when the answer >held in our [CorrectAnswer] attribute is a string that contains >spaces, we either get an error message "Correct is not part of >allowable," or the script fails to recognize that a correct answer has >been provided. I've mucked around with various settings of allowable >input in the Duration/Input and Echo submenus of the SlideObject, and >am having trouble remembering which mapped to which. > >I think the problem is somewhere in how the input is being parsed and >compared to the value held in the list attribute [CorrectAnswer]. Our >current workaround is to omit spaces from all responses, but it seems >like the fix should be fairly simple (whatever it is). Am happy to >send a copy of the experiment on request. > >Thanks for your help, >-Matt -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Fri Apr 15 09:21:25 2011 From: liwenna at gmail.com (liwenna) Date: Fri, 15 Apr 2011 02:21:25 -0700 Subject: negative onsetdelay& log with prerelease In-Reply-To: <9149eb44-16da-4fc0-900d-55584858daf0@e9g2000vbk.googlegroups.com> Message-ID: Hello Karl, I certainly am no genius at this but here are some thoughts 1) the negative onsets are generally not more worrying than the positive ones, do aim at getting them as short as possible. I never built an fMRI task, not sure how precisely timed you should aim with them. I'd guess that less than 20 ms would be quite acceptable? But here's some explanation: The onset time depends on your display's refresh rate. In your logfile's you should find a pretty exact (not sure how accurate though!) measurement of the refreshrate, made by e- prime, somehow...? :s (perhaps someone else may shed some light on that?) It may read 75.352 for instance... but let's say that that simply is a 75 hertz refreshrate. What is a 75 hz refreshrate...? For displays that are not too intelligent (i.e. old type crt screens) each pixel of the display will be "replaced" 75 times per second... the display will continually refresh pixels starting at the topleft pixel, moving in rows to the right then the next line until the bottomright pixel is replaced and then starts again at the top left pxiel. Most LCD displays have some built in intelligence that will decide for itself when to replace pixels, although there are more modern LCD displays that apparently do have a more predictable pixel refresh pattern. In any case: This kinda means that a pixel can only be replaced once every 13,3333 ms.... (75 refreshes per 1000 ms -> 1000/75 = 13.33333). So.. if your fixation period is set to last 3000 ms (for instance), e-prime will try to make it last 225,00 refreshrates... which should actually be ok most of the time... but you wrote that your fixation periods are varying... say that you also have trials in which it is 2500 ms? Then e-prime would try to make it last 187,50 refreshrates... which is impossible and therefore in half these trials the timing will be off by roughly half a refreshrate in one direction (+6 or +7) and the other half of the time by roughly half a refreshrate in the other direction (-6 or -7). 2) yes it does that... wiht prerelease you tell e-prime to start working on the next slide while the current one is still up, this interferese with it's ability to log responses to this slide. But I actually don't think you should use prerelease on the pic.... because there is no accurate timing needed for the NEXT slide, is there? Moreover: the next slide is on the next run of the trialprocedure, right? (next fixation period)... not sure about this but I don't think prereleasing works 'over to the next run of the procedure', although it may be possible if you use a certain scrip. 3) Sorry, I don't understand your question here :/ What it boils down too: to get really precise timing you often need a whole constellation of tricks and one of them is to adjust your desired display durations to the refresh rate of your screen and then also actually use a screen that is predictable in it's refresh rates. But I kinda reckon that in your mri room you will have LCD's or that you'll want to use that laptop? Moreover you'll likely have a whole projector set-up for showing the display to the participant in the scanner. All of these will add to imprecise timing, I have no idea how bad that is for an fMRI type experiment... I'd reckon that, given that fMRI has a temporal resolution of a few seconds itself (right?), you have no need to be worried about 20ms delay... but do consult with someone more knowledgeable on fMRI and e- prime ^.^ best, liw On Apr 14, 12:20?am, Karl wrote: > Hello, all > > We just got a new laptop (win7) and installed the eprime > (professional2.0). Our fmri paradigm is relatively simple--every trial > has two components: 1) a fixation period with duration varying from > 2000 to 4000ms 2) a pic presentation for 2000ms during which a > response of button pressing is collected. > > 1) We tried to prerelease the pic, but whatever the prerelease number > is, there are still lots of non-zeros in the pic-onsetdelay log file. > They are generally less than 20ms, but more concerning is that there > is even negative onset delay, like -5 or -11. What could the problem > be? > > 2) if we set the pre-release too long, it seems to disrupt logging the > response we collect during pic presentation. For our case, should we > use prelease of pic or not? If not, how can we still ensure pic onset > is accurate? Chapter 3 is quite unclear about this. > > 3) It is suggested here to use cumulative timing code for fMRI. Just > curious about shorting the stimulus presentation duration is less > concerning in fMRI? > > Thanks in advance > > Karl -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From vera.donk at googlemail.com Fri Apr 15 15:58:33 2011 From: vera.donk at googlemail.com (Vera) Date: Fri, 15 Apr 2011 08:58:33 -0700 Subject: Sound on button press In-Reply-To: <4da75e0e.473c2b0a.31cf.1a9bSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Hi Liwenna, hi David, I tried both of your solutions (and actually encountered problems with both of them), but they gave me some useful ideas to actually solve my problem and I would like to post the solution I found for future users. :-) To your SetNextTargetOnsetTime David, as I had to set the End Action to (terminate), the slideimage would actually disappear (which is not what I wanted, I just wanted to have a sound to confirm button press WITHOUT the slideimage disappearing). As for your solution Liwenna, using 2 identical slides of which the second one with a sound, I actually found a small problem in the inline that you proposed. It turns out that "slide.duration" is actually referring to the duration you set for the slide (e.g. 2000 ms). If you then do slide2.duration = 2000 - slide1.duration basically you get 2000 - 2000 = 0. :-) The correct way (for me at least) to do it is: slide2.duration = slide1.duration - slide1.RT (e.g. 2000 - 1345 = 655 = duration slide2) (and make sure to put the duration of slide2 on 0 (zero) ms). Then it works perfectly! :-) I also would like to thank you, David for your hint towards SetNextTargetOnsetTime StimSlide.OnsetTime. Although I couldn't use it this time, it might be useful in the future. In other words: thanks to both of you! :-) Have an nice weekend! Greetings, Vera On Apr 14, 10:49?pm, David McFarlane wrote: > Vera, > > Agree with liw generally about handling the timing, but I would just > use a SoundOut object instead of a Slide or anything visual, that way > your visual stim will simply remain while your sound plays with no > further fuss. > > My own favorite trick for getting timing like this to work is to make > use of the more esoteric SetNextTargetOnsetTime (see the online > E-Basic Help). ?On your stimulus Slide (let's call it StimSlide), set > End Action to (terminate) and leave its Duration at 2000. ?Follow > that with an inline, and then a SoundOut object (let's call it > FeedbackSound) and set its Duration to 2000. ?In the inline between > StimSlide and FeedbackSound, just put > > SetNextTargetOnsetTime StimSlide.OnsetTime > > Now, whenever your program gets to FeedbackSound, it will think that > FeedbackSound was supposed to start at the same time as StimSlide and > then end 2000 ms later, i.e., 2000 ms after StimSlide started. ?Isn't > that slick? ?And it required no computation. > > Admittedly, using tricks like this does rely on some deeper > understanding of the inner hidden workings of E-Prime, and I don't > have time to explain all that just now. ?Also, your subject may get a > short beep even for no response, so you may have to work out a little > more code to get everything to work the way you want (see liw's > further discussion earlier). > > -- David McFarlane, Professional Faultfinder > > At 4/14/2011 12:00 PM Thursday, you wrote: > > >Hi Vera! > > >first thing that comes to mind (I think something like this was > >discussed here before... ages ago). Create a second, similar, slide > >right after the current one you have now but add your sound object to > >this slide so that the sound is heard when this slide appears. > >Inbetween the two slides place an inline that sets the second slide's > >duration to the remainder of the 2000 ms (slide2.duration = 2000 - > >slide1.duration) and perhaps add a goto label line to entirely skip > >the second slide in case of no response... i.e. "if slide1.resp = "" > >then goto jumplabel", place the label called jumplabel after the > >second slide . > > >A quick and dirty suggestion, I hope it helps you, though. > > >best, > > >liw > > >On Apr 14, 4:27 pm, Vera wrote: > > > Hi group! > > > > I already got some useful help here about a year ago and everything > > > worked fine (after a while you kind of get the "hang" of > > > eprime...;-) ), but now I seem to run into a problem (which actually > > > seems a very easy-to-do-thing to me, but I haven't figured out a way > > > to do this yet). > > > > I show participants an image on a slide for 2000 ms > > > > They have to answer by pushing a button whether a target is present > > > (if there is no target, they shouldn't do anything -> typical go-nogo > > > task). The image will however stay visible 2000 ms independent of > > > their answer (every trial = 2000 ms of image). > > > > Now, as this is all taking place in a driving environment, where quite > > > a lot is going on, I would like to give out a sound once a button is > > > pushed (but the image still needs to stay there!). > > > > I of course have the option of using a feedback-display, but then I > > > only get the sound, once the slide disappears. > > > > I really would like to have the sound on button press, just to confirm > > > the participant "ok, noticed your response" (or not: there will not be > > > sound in absence of a response). > > > > Any ideas on how to do this? > > > > Thanks in advance! > > > > Greetings, > > > Vera -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Fri Apr 15 16:32:10 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 15 Apr 2011 12:32:10 -0400 Subject: Sound on button press In-Reply-To: Message-ID: Vera, Thanks for posting back with your solution... At 4/15/2011 11:58 AM Friday, you wrote: >To your SetNextTargetOnsetTime David, as I had to set the End Action >to (terminate), the slideimage would actually disappear Um, no, not if you have Clear After set to No, which is the default. I had just assumed that you had Clear After set to the default value of No. With Clear After set to No, a visual stimulus remains visible until some other visual stimulus comes to replace it, which is almost always a better way to do things (i.e., why have a stimulus do the extra work of clearing itself when the next stimulus would cover it anyway?). You must have set Clear After to Yes at some point, try setting it to No and see whether or not I know what I am talking about :). Regards, -- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pfc.groot at gmail.com Fri Apr 15 19:02:17 2011 From: pfc.groot at gmail.com (Paul Groot) Date: Fri, 15 Apr 2011 12:02:17 -0700 Subject: synchronize event markers with refresh rate In-Reply-To: <423ffc29-d0b8-48a6-bf37-3e289c05c7f2@l30g2000vbn.googlegroups.com> Message-ID: Hi Hank, The OnsetSignal-properties can only address one IO-port at the time (all 8 bits at the same time because there is no masking mechanism). Using any kind of handshaking just complicates the one-way digital interface. However, if you still would like to use a separate strobe signal, you could use the WritePort function in an inline just before the stimulus object to set/prepare the 8 data-pins. Then configure the OnsetSignal properties to generate the time-critical strobe signal, so it 'triggers' at stimulus onset. However, the OnsetSignal properties cannot write individual bits of the control register (C0), so this might complicate things a bit if other bits of the control register should be preserved. Also note that this wouldn't work if the duration of the strobe is critical and is different from the stimulus duration. The markers that have to be generated for responses are indeed different. In most cases these markers can be generated with the writeport function after termination of the stimulus object. Because of this, these response markers will not be exactly in sync with the actual response (i.e. it takes time in eprime to handle the response, terminate the object and start the inline script). There are two possible workarounds if the timing of response markers is very critical: 1) use special hardware to detect responses and route it digitally to both the eprime system and the second system. 2) apply an off-line correction by using the stimulus-onset marker and the (accurate) RT recorded by eprime to insert response markers at the right places in the acquired data. However, my guess would be that the touch responses are not detected very accurately anyway, so simply using writeport would be sufficient in this case. (You could simply estimate the delay by comparing the RT values recorded by eprime with the time differences of the stim/response markers.) best, Paul -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Fri Apr 15 19:26:07 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 15 Apr 2011 15:26:07 -0400 Subject: synchronize event markers with refresh rate In-Reply-To: Message-ID: At 4/15/2011 03:02 PM Friday, Paul Groot wrote: >Hi Hank, > >The OnsetSignal-properties can only address one IO-port at the time >(all 8 bits at the same time because there is no masking mechanism). Hmm, couldn't one apply a mask using And or Or in inline code before the stimulus object? E.g., if you wanted to apply only bits 0-2 of some other input port, how about something like '/------------------------------------------------------ ' Using Consts in order to avoid "magic numbers" in code: Const InPort as Integer = &h1234 ' whatever Const OutPort as Integer = &h0378 Const OutMask as Integer = &h07 ' bits 0-2 StimText.OnsetSignalEnabled = True StimText.OnsetSignalPort = OutPort StimText.OnsetSignalData = ReadPort(InPort) And OutMask '\------------------------------------------------------ Or, if one merely wanted to apply bits 0-2 without affecting any other bits, how about '/------------------------------------------------------ ' Using Consts in order to avoid "magic numbers" in code: Const OutPort as Integer = &h0378 Const OutMask as Integer = &h07 ' bits 0-2 Const OutData as Integer = &h05 ' for example StimText.OnsetSignalEnabled = True StimText.OnsetSignalPort = OutPort StimText.OnsetSignalData = (ReadPort(OutPort) And OutMask) _ Or OutData '\------------------------------------------------------ -- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From lml1934 at gmail.com Sat Apr 16 19:11:54 2011 From: lml1934 at gmail.com (Lisa Levinson) Date: Sat, 16 Apr 2011 12:11:54 -0700 Subject: Using EBasic Message-ID: I am trying to replicate an event-related potential experiment that investigated the development of the magnocellular and parvocellular visual pathways. I am not looking to further study the development of these pathways, rather their correlation with other behavioral measures. The stims were originally programmed using the Presentation software language. I have attempted to create modified versions of the stims using Quark and Final Cut. I have generated the graphics and imported them into E-Studio but the major issue I am having concerns the parvocellular stim. If I can't control for luminance then I will potentially be eliciting a response from the magnocellular pathway as well. Using EBasic I was wondering if it would be possible to create "objects" such as a blue and green high frequency grating in which the colors are isoluminant with the background and low spacial frequency grayscale grating with a low luminance contrast. I have limited programming experience but can work with others who know Visual Basic for Applications. I am concerned though the psychophysical nature of these stims will not work with EPrime. Would greatly appreciate some input. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From vera.donk at googlemail.com Sun Apr 17 10:27:19 2011 From: vera.donk at googlemail.com (Vera) Date: Sun, 17 Apr 2011 03:27:19 -0700 Subject: Sound on button press In-Reply-To: <4da87318.c6c2e70a.21b9.29dcSMTPIN_ADDED@gmr-mx.google.com> Message-ID: David, Thanks for replying, I will have a look at that tomorrow at work. I was already wondering why you would write that, knowing that it would terminate my action. Ok, I have to check the "clear after set" option. Thanks for pointing that out! :-) Greetings, Vera On Apr 15, 6:32?pm, David McFarlane wrote: > Vera, > > Thanks for posting back with your solution... > > At 4/15/2011 11:58 AM Friday, you wrote: > > >To your SetNextTargetOnsetTime David, as I had to set the End Action > >to (terminate), the slideimage would actually disappear > > Um, no, not if you have Clear After set to No, which is the > default. ?I had just assumed that you had Clear After set to the > default value of No. ?With Clear After set to No, a visual stimulus > remains visible until some other visual stimulus comes to replace it, > which is almost always a better way to do things (i.e., why have a > stimulus do the extra work of clearing itself when the next stimulus > would cover it anyway?). ?You must have set Clear After to Yes at > some point, try setting it to No and see whether or not I know what I > am talking about :). > > Regards, > -- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Apr 18 19:23:14 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 18 Apr 2011 15:23:14 -0400 Subject: Using EBasic In-Reply-To: <38d74848-6b67-4558-b9b2-49360ae323d4@a19g2000prj.googlegro ups.com> Message-ID: Lisa, As I recall, Presentation has some very nice high-level facilities for generating complex and dynamic visual stimuli on the fly. By contrast, E-Prime has no such facilities. EP can do some limited things with text, for anything else it usually just presents image, sound, or movie files. But you can go beyond this with low-level E-Basic code, for that you would make extensive use of the methods of the Canvas object -- see the Canvas topic in the online E-Basic Help. To do this well you would probably want to make a bunch of custom subroutines or functions to recreate some of what Presentation did for you -- for more on making subroutines and functions, you might take a look at Chapter 4 of the User's Guide that came with E-Prime, and more particularly work through the classic "VBA for Dummies". Of course, you could just do this all back in Presentation, which you know already does this; or even better, do this all in MATLAB using the Psychophysics Toolbox, which has fantastic visual presentation support. On an off-topic digression, I just learned about a new free open-source cross-platform Python-based system called OpenSesame (http://www.cogsci.nl/software/opensesame ). Has anybody tried this, and can comment on how it stacks up against E-Prime or other products? -- David McFarlane, Professional Faultfinder At 4/16/2011 03:11 PM Saturday, Lisa Levinson wrote: >I am trying to replicate an event-related potential experiment that >investigated the development of the magnocellular and parvocellular >visual pathways. I am not looking to further study the development of >these pathways, rather their correlation with other behavioral >measures. The stims were originally programmed using the Presentation >software language. I have attempted to create modified versions of the >stims using Quark and Final Cut. I have generated the graphics and >imported them into E-Studio but the major issue I am having concerns >the parvocellular stim. If I can't control for luminance then I will >potentially be eliciting a response from the magnocellular pathway as >well. > >Using EBasic I was wondering if it would be possible to create >"objects" such as a blue and green high frequency grating in which the >colors are isoluminant with the background and low spacial frequency >grayscale grating with a low luminance contrast. I have limited >programming experience but can work with others who know Visual Basic >for Applications. I am concerned though the psychophysical nature of >these stims will not work with EPrime. > >Would greatly appreciate some input. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Tue Apr 19 06:01:17 2011 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 19 Apr 2011 07:01:17 +0100 Subject: Using EBasic In-Reply-To: <4dac8fb1.da71e70a.14a2.4834SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Hi Vera, Lisa, list, Just to add to this: it might be worthwhile to just make a screenshot (print-screen, open mspaint, hit paste) and take whatever stimuli you want out of matlab/presentation/etc and use those just as images in e-prime. I imagine that working with E-Prime makes it easier to implement your study in an ERP paradigm. If you want to pursue that path, I don't think your real issue is with programming, because you *should* be able to create the stimuli, isoluminant and whatnot, in photoshop or such. Once you have those (and I'm expecting you don't need millions of different stimuli in an ERP design), it should be a breeze to use these then in E-Prime. The more techy way to go about this is indeed using matlab, though as far as i know, you can't tell matlab or such to just make "grayscale, low contrast, isoluminant". Once you know the formulae behind such descriptions, I believe it shouldn't be too hard to just use photoshop or anything else (I think psychophysics people might want to kill me for making this statement, however). Of course, if you do wish to pursue the 'make visuals on the fly' sort of path, you might find it helpful to have a look at PsychoPy (developed around here), which I'm sure should be fairly easy to work with as well. It has functions predefined (I think) for gabor-type stimuli and all the basic ingredients of the field of visual cognition (and others). Since it works on PCs as well, I guess you could even run it, make the stimuli, hit print-screen and get the experiment to run in E-Prime anyway. Best, Mich ________________________________________ From: e-prime at googlegroups.com [e-prime at googlegroups.com] On Behalf Of David McFarlane [mcfarla9 at msu.edu] Sent: 18 April 2011 20:23 To: E-Prime Subject: Re: Using EBasic Lisa, As I recall, Presentation has some very nice high-level facilities for generating complex and dynamic visual stimuli on the fly. By contrast, E-Prime has no such facilities. EP can do some limited things with text, for anything else it usually just presents image, sound, or movie files. But you can go beyond this with low-level E-Basic code, for that you would make extensive use of the methods of the Canvas object -- see the Canvas topic in the online E-Basic Help. To do this well you would probably want to make a bunch of custom subroutines or functions to recreate some of what Presentation did for you -- for more on making subroutines and functions, you might take a look at Chapter 4 of the User's Guide that came with E-Prime, and more particularly work through the classic "VBA for Dummies". Of course, you could just do this all back in Presentation, which you know already does this; or even better, do this all in MATLAB using the Psychophysics Toolbox, which has fantastic visual presentation support. On an off-topic digression, I just learned about a new free open-source cross-platform Python-based system called OpenSesame (http://www.cogsci.nl/software/opensesame ). Has anybody tried this, and can comment on how it stacks up against E-Prime or other products? -- David McFarlane, Professional Faultfinder At 4/16/2011 03:11 PM Saturday, Lisa Levinson wrote: >I am trying to replicate an event-related potential experiment that >investigated the development of the magnocellular and parvocellular >visual pathways. I am not looking to further study the development of >these pathways, rather their correlation with other behavioral >measures. The stims were originally programmed using the Presentation >software language. I have attempted to create modified versions of the >stims using Quark and Final Cut. I have generated the graphics and >imported them into E-Studio but the major issue I am having concerns >the parvocellular stim. If I can't control for luminance then I will >potentially be eliciting a response from the magnocellular pathway as >well. > >Using EBasic I was wondering if it would be possible to create >"objects" such as a blue and green high frequency grating in which the >colors are isoluminant with the background and low spacial frequency >grayscale grating with a low luminance contrast. I have limited >programming experience but can work with others who know Visual Basic >for Applications. I am concerned though the psychophysical nature of >these stims will not work with EPrime. > >Would greatly appreciate some input. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Tue Apr 19 08:01:51 2011 From: liwenna at gmail.com (liwenna) Date: Tue, 19 Apr 2011 01:01:51 -0700 Subject: Using EBasic In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E5A18@EXCHANGE3.ad.nottingham.ac.uk> Message-ID: Hi Vera, Now that "the proper pro's" gave their opinion, I'd like to throw in my 2 cents... your post reminded me of a thread on the pst user forums not too long ago: http://support.pstnet.com/forum/Topic5031-23-1.aspx#bm5039 . This person wanted to change the background to isoluminant colors... the solution I gave him is perhaps a bit of a detour, I later realized that it's probably quite possible to generate rgb values and assign them directly on to the slide object background instead of using a canvas rectangle with the same dimensions as the display... in any case: in his last post the guy sounded quite happy, which makes me think that he might well have succeeded also in the isoluminance part of his quest... you could try to e-mail him and ask him for advice. best, liw On Apr 19, 8:01?am, Michiel Spape wrote: > Hi Vera, Lisa, list, > Just to add to this: it might be worthwhile to just make a screenshot (print-screen, open mspaint, hit paste) and take whatever stimuli you want out of matlab/presentation/etc and use those just as images in e-prime. I imagine that working with E-Prime makes it easier to implement your study in an ERP paradigm. If you want to pursue that path, I don't think your real issue is with programming, because you *should* be able to create the stimuli, isoluminant and whatnot, in photoshop or such. Once you have those (and I'm expecting you don't need millions of different stimuli in an ERP design), it should be a breeze to use these then in E-Prime. The more techy way to go about this is indeed using matlab, though as far as i know, you can't tell matlab or such to just make "grayscale, low contrast, isoluminant". Once you know the formulae behind such descriptions, I believe it shouldn't be too hard to just use photoshop or anything else (I think psychophysics people might want to kill me for making this statement, however). > > Of course, ?if you do wish to pursue the 'make visuals on the fly' sort of path, you might find it helpful to have a look at PsychoPy (developed around here), which I'm sure should be fairly easy to work with as well. It has functions predefined (I think) for gabor-type stimuli and all the basic ingredients of the field of visual cognition (and others). Since it works on PCs as well, I guess you could even run it, make the stimuli, hit print-screen and get the experiment to run in E-Prime anyway. > > Best, > Mich > > ________________________________________ > From: e-prime at googlegroups.com [e-prime at googlegroups.com] On Behalf Of David McFarlane [mcfar... at msu.edu] > Sent: 18 April 2011 20:23 > To: E-Prime > Subject: Re: Using EBasic > > Lisa, > > As I recall, Presentation has some very nice high-level facilities > for generating complex and dynamic visual stimuli on the fly. ?By > contrast, E-Prime has no such facilities. ?EP can do some limited > things with text, for anything else it usually just presents image, > sound, or movie files. ?But you can go beyond this with low-level > E-Basic code, for that you ?would make extensive use of the methods > of the Canvas object -- see the Canvas topic in the online E-Basic > Help. ?To do this well you would probably want to make a bunch of > custom subroutines or functions to recreate some of what Presentation > did for you -- for more on making subroutines and functions, you > might take a look at Chapter 4 of the User's Guide that came with > E-Prime, and more particularly work through the classic "VBA for Dummies". > > Of course, you could just do this all back in Presentation, which you > know already does this; or even better, do this all in MATLAB using > the Psychophysics Toolbox, which has fantastic visual presentation support. > > On an off-topic digression, I just learned about a new free > open-source cross-platform Python-based system called OpenSesame > (http://www.cogsci.nl/software/opensesame). ?Has anybody tried this, > and can comment on how it stacks up against E-Prime or other products? > > -- David McFarlane, Professional Faultfinder > > At 4/16/2011 03:11 PM Saturday, Lisa Levinson wrote: > > > > >I am trying to replicate an event-related potential experiment that > >investigated the development of the magnocellular and parvocellular > >visual pathways. I am not looking to further study the development of > >these pathways, rather their correlation with other behavioral > >measures. The stims were originally programmed using the Presentation > >software language. I have attempted to create modified versions of the > >stims using Quark and Final Cut. I have generated the graphics and > >imported them into E-Studio but the major issue I am having concerns > >the parvocellular stim. If I can't control for luminance then I will > >potentially be eliciting a response from the magnocellular pathway as > >well. > > >Using EBasic I was wondering if it would be possible to create > >"objects" such as a blue and green high frequency grating in which the > >colors are isoluminant with the background and low spacial frequency > >grayscale grating with a low luminance contrast. I have limited > >programming experience but can work with others who know Visual Basic > >for Applications. I am concerned though the psychophysical nature of > >these stims will not work with EPrime. > > >Would greatly appreciate some input. > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en.Thismessage and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. ? Please do not use, copy or disclose the information contained in this message or in any attachment. ?Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From andrea-laura at gmx.ch Tue Apr 19 10:32:21 2011 From: andrea-laura at gmx.ch (miamalika) Date: Tue, 19 Apr 2011 03:32:21 -0700 Subject: How to fade from slide1 to slide2 (inline?) Message-ID: Hey there! I have a problem. I want to create a Stroop imagery task which functions as following: first, a color NAME is presented and the subjects have to imagine that color in a following box (white text frame in a slide). Then, a second slide is presented (same text frame in a slide) but with a back color varying. Now I want a gradual change between the white empty text box and the colored text box so that the colors appear to "fade in". How can I do this? I'm pretty new to e-prime so it should be an easy solution.. I also thought about fading a picture in pixel by pixel or to have the brightness of 1 slide gradually changing from white to the color. What appears best to you? How could I do this? Thank you and best regards Mia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Tue Apr 19 10:53:17 2011 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 19 Apr 2011 11:53:17 +0100 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <8746a8a7-17a9-4198-a3fb-9fe890ac0efb@k3g2000prl.googlegroups.com> Message-ID: Hiya, Sounds like a nice paradigm! ... however, fading, much like movement, is not all that easy in E-Prime, though it can be done. For a nice example, see the E-Primer thingy (on my website, about me, underneath everything else - it takes some time to download) in which you learn, somewhere, to make a box move. Knowing that, you can do the same, but then with the colour. So, one, you realise that colours in E-Prime are represented as 3 bytes (i.e. 3 values between 0 and 255) in RGB (redgreenblue) space. Thus, from Red (255, 0, 0) to Blue (0,0,255), should be possible by going linearly from 255->0 on the first (red) dimension, and 0->255 on the third (blue) dimension - passing, for instance, somewhere along the way 128,0,128 (purple). Knowing that, you could do all this neatly using a little list in between your stimuli to do the whole fading. The list can then have an exit-time of exactly the amount of time you wish to spend fading. Inside the list is the simple procedure with a slide taking, say, 15 ms, and then you change the colour attributes just before every time the slide is shown. For instance, if the slide would have a text display showing [name], in forecolour being [colour], you could simply change the attribute as long as you know: - How much time has passed since beginning of the fading? - How long should the slide take? - What's the begin colour? - What's the end colour? Then, you could simply linearly interpolate between colours and set the [colour] accordingly. Well, there are quite a few ways to go about this, but none, as far as I can see, for a first-time E-Prime user exactly simple. As for pixel-by-pixel fading, you could do that... but it will take some canvas programming. More difficult than the above. Best, Mich Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology www.cognitology.eu -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of miamalika Sent: 19 April 2011 11:32 To: E-Prime Subject: How to fade from slide1 to slide2 (inline?) Hey there! I have a problem. I want to create a Stroop imagery task which functions as following: first, a color NAME is presented and the subjects have to imagine that color in a following box (white text frame in a slide). Then, a second slide is presented (same text frame in a slide) but with a back color varying. Now I want a gradual change between the white empty text box and the colored text box so that the colors appear to "fade in". How can I do this? I'm pretty new to e-prime so it should be an easy solution.. I also thought about fading a picture in pixel by pixel or to have the brightness of 1 slide gradually changing from white to the color. What appears best to you? How could I do this? Thank you and best regards Mia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Tue Apr 19 13:06:21 2011 From: liwenna at gmail.com (liwenna) Date: Tue, 19 Apr 2011 06:06:21 -0700 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E5373@EXCHANGE3.ad.nottingham.ac.uk> Message-ID: Michiel, I was planning on suggesting exactly that :) Although I'd like to propose doing it without a list and with a single proc that switches back and forth to show the same slide over again with the necessary variables modified... it's about as easy and gives less mess in the edat files... I did this for a moving object, inspired by your example, only a week ago... :) I can't test this idea right now for I don't have e-prime where I am, but you could try these steps: First off.. try this in a new and experiment/e-studiofile, you can add all the other elements of your task once you got the fading working. Your experiment file (blank! not basic...) shows you a sessionproc. On the sessionproc add a list, call it triallist for instance, and associate a procedure by typing the desired name of the procedure (trialproc?) into the column 'procedure'. You could make several levels, but for now a single level will also suffice. At the beginning of the trialprocedure place an inline with the following code (copy/paste everything between ****'s. The lines that start wat a ' should colour green in e-prime, they are comments, not code... if e-prime breaks up the sentences differently and part of the comments do show up in black, blue or orange font, then add ' s at the beginning of each line that is not code, so that they turn green): **************** 'create all the variables you'll need: dim r as integer dim g as integer dim b as integer dim vr as string dim vb as string dim vg as string dim stepcounter as integer 'assign value 255 to the red green and blue channels, rgb 255,255,255 is white r=255 b=255 g=255 'map the integer values of r, g, and b onto the string variables vr, vb and vg (there is probably a far better way to do this, but I don't know how) vr$= r vb$= b vg$= g 'use the string rgb variables to modify the backgroundcolor of the textobject 'this is the line that I am most unsecure about and as said can't test it right now.... It assumes a slide text subobject (so.. the textbox on your slide) to be called text1, which 'afaik is the default setting for the first textbox you place on the slide, text2 for the next etc. if you didn't change these names this might work... also might not... I'll test it 'myself tomorrow. I could not find the proper code anywhere and I kinda wonder how the program would know what text1 on which slide to manipulate... text1.BackColor = CColor (""& vr$ &","& vg$ &","& vb$ &"") ***************** Now after this inline place your slide and put a textbox on it (which will likely be named text1 by default). In this example I'll try to change the color from white to red in 51 steps... each phase (52, including the starting phase) will then be shown for the duration of the slide... say that you want the transition to take about 1,5 second... then each phase shoudl be shown for 1500/52 = 28,8 ms... this is impossible so for now set the duration of the slide to 29ms, which probably won't work exactly as well timed as one would want, but let's focus on the fading first.... Directly after the slide place another inline with the following code: ****************** 'first the values of green and blue will be decreased by 5 points, we started at 255,255,255 and this way after 51 repeats we will end at 255,0,0, which is pure red r = r g = g - 5 b = b - b 'map the integer values of rgb onto the string variables of rgb vr$= r vb$= b vg$= g 'assign the new value to text1.backcolor Text1.BackColor = CColor (""& vr$ &","& vg$ &","& vb$ &"") 'stepcounter keeps track of the number of times the above code is executed, after the 52 step the fading is done and the values of g and b will actually be negative (-5) so 'it's time to stop the sequence and move on... for that place a label after this inline (on the same procedure!), that you call endlabel, at step 52 the program will continue at 'that label. stepcounter = stepcounter + 1 if stepcounter = 52 then goto endlabel 'if however the fading is completed yet, the program should return back and show the same slide again, but now with the new values of RGB that were modified in the 'above lines. For that place a label inbetween the first inline and the slide. This label should be called againlabel. if stepcounter < 52 then goto againlabel ************ I think... that if you run the little program that you just created, you should see some fading happening.... :) although things kinda depend on the line "Text1.BackColor = ..." that I am fairly unsure about :/ best, liw On Apr 19, 12:53?pm, Michiel Spape wrote: > Hiya, > Sounds like a nice paradigm! > ... however, fading, much like movement, is not all that easy in E-Prime, though it can be done. For a nice example, see the E-Primer thingy (on my website, about me, underneath everything else - it takes some time to download) in which you learn, somewhere, to make a box move. Knowing that, you can do the same, but then with the colour. > So, one, you realise that colours in E-Prime are represented as 3 bytes (i.e. 3 values between 0 and 255) in RGB (redgreenblue) space. Thus, from Red (255, 0, 0) to Blue (0,0,255), should be possible by going linearly from 255->0 on the first (red) dimension, and 0->255 on the third (blue) dimension - passing, for instance, somewhere along the way 128,0,128 (purple). > Knowing that, you could do all this neatly using a little list in between your stimuli to do the whole fading. The list can then have an exit-time of exactly the amount of time you wish to spend fading. Inside the list is the simple procedure with a slide taking, say, 15 ms, and then you change the colour attributes just before every time the slide is shown. For instance, if the slide would have a text display showing [name], in forecolour being [colour], you could simply change the attribute as long as you know: > - How much time has passed since beginning of the fading? > - How long should the slide take? > - What's the begin colour? > - What's the end colour? > Then, you could simply linearly interpolate between colours and set the [colour] accordingly. > > Well, there are quite a few ways to go about this, but none, as far as I can see, for a first-time E-Prime user exactly simple. As for pixel-by-pixel fading, you could do that... but it will take some canvas programming. More difficult than the above. > Best, > Mich > > Michiel Spap? > Research Fellow > Perception & Action group > University of Nottingham > School of Psychologywww.cognitology.eu > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of miamalika > Sent: 19 April 2011 11:32 > To: E-Prime > Subject: How to fade from slide1 to slide2 (inline?) > > Hey there! > > I have a problem. I want to create a Stroop imagery task which > functions as following: first, a color NAME is presented and the > subjects have to imagine that color in a following box (white text > frame in a slide). Then, a second slide is presented (same text frame > in a slide) but with a back color varying. > > Now I want a gradual change between the white empty text box and the > colored text box so that the colors appear to "fade in". > > How can I do this? I'm pretty new to e-prime so it should be an easy > solution.. > > I also thought about fading a picture in pixel by pixel or to have the > brightness of 1 slide gradually changing from white to the color. > > What appears best to you? How could I do this? > > Thank you and best regards > Mia > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. ? Please do not use, copy or disclose the information contained in this message or in any attachment. ?Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Tue Apr 19 13:08:42 2011 From: liwenna at gmail.com (liwenna) Date: Tue, 19 Apr 2011 06:08:42 -0700 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <0d8936a7-3c9e-434d-b3ad-52ec39226bd8@o26g2000vby.googlegroups.com> Message-ID: hahaha, well there you go >.< the lines already broke up differently when I posted the message as compared to when I wrote it... so do make sure to 'green out' all my comments in the code by using 's , before you try to run it... it will definitely not run if my squaks are still considered code by the program :/ On Apr 19, 3:06?pm, liwenna wrote: > Michiel, I was planning on suggesting exactly that :) > > Although I'd like to propose doing it without a list and with a single > proc that switches back and forth to show the same slide over again > with the necessary variables modified... it's about as easy and gives > less mess in the edat files... ?I did this for a moving object, > inspired by your example, only a week ago... :) > > I can't test this idea right now for I don't have e-prime where I am, > but you could try these steps: > > First off.. try this in a new and experiment/e-studiofile, you can add > all the other elements of your task once you got the fading working. > > Your experiment file (blank! not basic...) shows you a sessionproc. On > the sessionproc add a list, call it triallist for instance, and > associate a procedure by typing the desired name of the procedure > (trialproc?) into the column 'procedure'. You could make several > levels, but for now a single level will also suffice. > > At the beginning of the trialprocedure place an inline with the > following code ?(copy/paste everything between ****'s. The lines that > start wat a ' ?should colour green in e-prime, they are comments, not > code... if e-prime breaks up the sentences differently and part of the > comments do show up in black, blue or orange font, then add ' s ?at > the beginning of each line that is not code, so that they turn green): > > **************** > 'create all the variables you'll need: > dim r as integer > dim g as integer > dim b as integer > dim vr as string > dim vb as string > dim vg as string > dim stepcounter as integer > > 'assign value 255 to the red green and blue channels, rgb 255,255,255 > is white > r=255 > b=255 > g=255 > > 'map the integer values of r, g, and b onto the string variables vr, > vb and vg (there is probably a far better way to do this, but I don't > know how) > vr$= r > vb$= b > vg$= g > > 'use the string rgb variables to modify the backgroundcolor of the > textobject > 'this is the line that I am most unsecure about and as said can't test > it right now.... It assumes a slide text subobject (so.. the textbox > on your slide) to be called text1, which 'afaik is the default setting > for the first textbox you place on the slide, text2 for the next etc. > if you didn't change these names this might work... also might not... > I'll test it 'myself tomorrow. I could not find the proper code > anywhere and I kinda wonder how the program would know what text1 on > which slide to manipulate... > text1.BackColor = CColor (""& vr$ &","& vg$ &","& vb$ &"") > > ***************** > > Now after this inline place your slide and put a textbox on it (which > will likely be named text1 by default). > In this example I'll try to change the color from white to red in 51 > steps... each phase (52, including the starting phase) will then be > shown for the duration of the slide... say that you want the > transition to take about 1,5 second... then each phase shoudl be shown > for 1500/52 = 28,8 ms... this is impossible so for now set the > duration of the slide to 29ms, which probably won't work exactly as > well timed as one would want, but let's focus on the fading first.... > > Directly after the slide place another inline with the following code: > > ****************** > 'first the values of green and blue will be decreased by 5 points, we > started at 255,255,255 and this way after 51 repeats we will end at > 255,0,0, which is pure red > r = r > g = g - 5 > b = b - b > > 'map the integer values of rgb onto the string variables of rgb > vr$= r > vb$= b > vg$= g > > 'assign the new value to text1.backcolor > Text1.BackColor = CColor (""& vr$ &","& vg$ &","& vb$ &"") > > 'stepcounter keeps track of the number of times the above code is > executed, after the 52 step the fading is done and the values of g and > b will actually be negative (-5) so > 'it's time to stop the sequence and move on... for that place a label > after this inline (on the same procedure!), that you call endlabel, at > step 52 the program will continue at 'that label. > stepcounter = stepcounter + 1 > if stepcounter = 52 then goto endlabel > > 'if however the fading is completed yet, the program should return > back and show the same slide again, but now with the new values of RGB > that were modified in the 'above lines. For that place a label > inbetween the first inline and the slide. This label should be called > againlabel. > if stepcounter < 52 then goto againlabel > ************ > > I think... that if you run the little program that you just created, > you should see some fading happening.... :) ?although things kinda > depend on the line "Text1.BackColor = ..." that I am fairly unsure > about :/ > > best, > > liw > > On Apr 19, 12:53?pm, Michiel Spape > wrote: > > > Hiya, > > Sounds like a nice paradigm! > > ... however, fading, much like movement, is not all that easy in E-Prime, though it can be done. For a nice example, see the E-Primer thingy (on my website, about me, underneath everything else - it takes some time to download) in which you learn, somewhere, to make a box move. Knowing that, you can do the same, but then with the colour. > > So, one, you realise that colours in E-Prime are represented as 3 bytes (i.e. 3 values between 0 and 255) in RGB (redgreenblue) space. Thus, from Red (255, 0, 0) to Blue (0,0,255), should be possible by going linearly from 255->0 on the first (red) dimension, and 0->255 on the third (blue) dimension - passing, for instance, somewhere along the way 128,0,128 (purple). > > Knowing that, you could do all this neatly using a little list in between your stimuli to do the whole fading. The list can then have an exit-time of exactly the amount of time you wish to spend fading. Inside the list is the simple procedure with a slide taking, say, 15 ms, and then you change the colour attributes just before every time the slide is shown. For instance, if the slide would have a text display showing [name], in forecolour being [colour], you could simply change the attribute as long as you know: > > - How much time has passed since beginning of the fading? > > - How long should the slide take? > > - What's the begin colour? > > - What's the end colour? > > Then, you could simply linearly interpolate between colours and set the [colour] accordingly. > > > Well, there are quite a few ways to go about this, but none, as far as I can see, for a first-time E-Prime user exactly simple. As for pixel-by-pixel fading, you could do that... but it will take some canvas programming. More difficult than the above. > > Best, > > Mich > > > Michiel Spap? > > Research Fellow > > Perception & Action group > > University of Nottingham > > School of Psychologywww.cognitology.eu > > > -----Original Message----- > > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of miamalika > > Sent: 19 April 2011 11:32 > > To: E-Prime > > Subject: How to fade from slide1 to slide2 (inline?) > > > Hey there! > > > I have a problem. I want to create a Stroop imagery task which > > functions as following: first, a color NAME is presented and the > > subjects have to imagine that color in a following box (white text > > frame in a slide). Then, a second slide is presented (same text frame > > in a slide) but with a back color varying. > > > Now I want a gradual change between the white empty text box and the > > colored text box so that the colors appear to "fade in". > > > How can I do this? I'm pretty new to e-prime so it should be an easy > > solution.. > > > I also thought about fading a picture in pixel by pixel or to have the > > brightness of 1 slide gradually changing from white to the color. > > > What appears best to you? How could I do this? > > > Thank you and best regards > > Mia > > > -- > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. ? Please do not use, copy or disclose the information contained in this message or in any attachment. ?Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > > This message has been checked for viruses but the contents of an attachment > > may still contain software viruses which could damage your computer system: > > you are advised to perform your own checks. Email communications with the > > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Tue Apr 19 15:42:49 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 19 Apr 2011 11:42:49 -0400 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <0a20b817-8b33-4c3e-8a66-04ab01fe9f29@32g2000vbe.googlegrou ps.com> Message-ID: Mia Do I correctly read that you want to present the second stimulus by decreasing its transparency / increasing its opacity over the first stimulus? I don't know much about managing transparency/opacity of visual stimuli, but I wonder if Canvas.RopMode = ebROPModeMerge (see the online E-Basic Help) could help you here? You might also ask PST's trained staff at http://support.pstnet.com/e%2Dprime/support/login.asp -- they strive to respond to all requests in 24-48 hours, and this is pretty much their substitute for proper documentation, so make full use of it. In any event, please post back here with your results. -- David McFarlane, Professional Faultfinder >hahaha, well there you go >.< the lines already broke up differently >when I posted the message as compared to when I wrote it... so do make >sure to 'green out' all my comments in the code by using 's , before >you try to run it... it will definitely not run if my squaks are >still considered code by the program :/ > >On Apr 19, 3:06 pm, liwenna wrote: > > Michiel, I was planning on suggesting exactly that :) > > > > Although I'd like to propose doing it without a list and with a single > > proc that switches back and forth to show the same slide over again > > with the necessary variables modified... it's about as easy and gives > > less mess in the edat files... I did this for a moving object, > > inspired by your example, only a week ago... :) > > > > I can't test this idea right now for I don't have e-prime where I am, > > but you could try these steps: > > > > First off.. try this in a new and experiment/e-studiofile, you can add > > all the other elements of your task once you got the fading working. > > > > Your experiment file (blank! not basic...) shows you a sessionproc. On > > the sessionproc add a list, call it triallist for instance, and > > associate a procedure by typing the desired name of the procedure > > (trialproc?) into the column 'procedure'. You could make several > > levels, but for now a single level will also suffice. > > > > At the beginning of the trialprocedure place an inline with the > > following code (copy/paste everything between ****'s. The lines that > > start wat a ' should colour green in e-prime, they are comments, not > > code... if e-prime breaks up the sentences differently and part of the > > comments do show up in black, blue or orange font, then add ' s at > > the beginning of each line that is not code, so that they turn green): > > > > **************** > > 'create all the variables you'll need: > > dim r as integer > > dim g as integer > > dim b as integer > > dim vr as string > > dim vb as string > > dim vg as string > > dim stepcounter as integer > > > > 'assign value 255 to the red green and blue channels, rgb 255,255,255 > > is white > > r=255 > > b=255 > > g=255 > > > > 'map the integer values of r, g, and b onto the string variables vr, > > vb and vg (there is probably a far better way to do this, but I don't > > know how) > > vr$= r > > vb$= b > > vg$= g > > > > 'use the string rgb variables to modify the backgroundcolor of the > > textobject > > 'this is the line that I am most unsecure about and as said can't test > > it right now.... It assumes a slide text subobject (so.. the textbox > > on your slide) to be called text1, which 'afaik is the default setting > > for the first textbox you place on the slide, text2 for the next etc. > > if you didn't change these names this might work... also might not... > > I'll test it 'myself tomorrow. I could not find the proper code > > anywhere and I kinda wonder how the program would know what text1 on > > which slide to manipulate... > > text1.BackColor = CColor (""& vr$ &","& vg$ &","& vb$ &"") > > > > ***************** > > > > Now after this inline place your slide and put a textbox on it (which > > will likely be named text1 by default). > > In this example I'll try to change the color from white to red in 51 > > steps... each phase (52, including the starting phase) will then be > > shown for the duration of the slide... say that you want the > > transition to take about 1,5 second... then each phase shoudl be shown > > for 1500/52 = 28,8 ms... this is impossible so for now set the > > duration of the slide to 29ms, which probably won't work exactly as > > well timed as one would want, but let's focus on the fading first.... > > > > Directly after the slide place another inline with the following code: > > > > ****************** > > 'first the values of green and blue will be decreased by 5 points, we > > started at 255,255,255 and this way after 51 repeats we will end at > > 255,0,0, which is pure red > > r = r > > g = g - 5 > > b = b - b > > > > 'map the integer values of rgb onto the string variables of rgb > > vr$= r > > vb$= b > > vg$= g > > > > 'assign the new value to text1.backcolor > > Text1.BackColor = CColor (""& vr$ &","& vg$ &","& vb$ &"") > > > > 'stepcounter keeps track of the number of times the above code is > > executed, after the 52 step the fading is done and the values of g and > > b will actually be negative (-5) so > > 'it's time to stop the sequence and move on... for that place a label > > after this inline (on the same procedure!), that you call endlabel, at > > step 52 the program will continue at 'that label. > > stepcounter = stepcounter + 1 > > if stepcounter = 52 then goto endlabel > > > > 'if however the fading is completed yet, the program should return > > back and show the same slide again, but now with the new values of RGB > > that were modified in the 'above lines. For that place a label > > inbetween the first inline and the slide. This label should be called > > againlabel. > > if stepcounter < 52 then goto againlabel > > ************ > > > > I think... that if you run the little program that you just created, > > you should see some fading happening.... :) although things kinda > > depend on the line "Text1.BackColor = ..." that I am fairly unsure > > about :/ > > > > best, > > > > liw > > > > On Apr 19, 12:53 pm, Michiel Spape > > wrote: > > > > > Hiya, > > > Sounds like a nice paradigm! > > > ... however, fading, much like movement, is > not all that easy in E-Prime, though it can be > done. For a nice example, see the E-Primer > thingy (on my website, about me, underneath > everything else - it takes some time to > download) in which you learn, somewhere, to > make a box move. Knowing that, you can do the same, but then with the colour. > > > So, one, you realise that colours in > E-Prime are represented as 3 bytes (i.e. 3 > values between 0 and 255) in RGB (redgreenblue) > space. Thus, from Red (255, 0, 0) to Blue > (0,0,255), should be possible by going linearly > from 255->0 on the first (red) dimension, and > 0->255 on the third (blue) dimension - passing, > for instance, somewhere along the way 128,0,128 (purple). > > > Knowing that, you could do all this neatly > using a little list in between your stimuli to > do the whole fading. The list can then have an > exit-time of exactly the amount of time you > wish to spend fading. Inside the list is the > simple procedure with a slide taking, say, 15 > ms, and then you change the colour attributes > just before every time the slide is shown. For > instance, if the slide would have a text > display showing [name], in forecolour being > [colour], you could simply change the attribute as long as you know: > > > - How much time has passed since beginning of the fading? > > > - How long should the slide take? > > > - What's the begin colour? > > > - What's the end colour? > > > Then, you could simply linearly interpolate > between colours and set the [colour] accordingly. > > > > > Well, there are quite a few ways to go > about this, but none, as far as I can see, for > a first-time E-Prime user exactly simple. As > for pixel-by-pixel fading, you could do that... > but it will take some canvas programming. More difficult than the above. > > > Best, > > > Mich > > > > > Michiel Spap? > > > Research Fellow > > > Perception & Action group > > > University of Nottingham > > > School of Psychologywww.cognitology.eu > > > > > -----Original Message----- > > > From: e-prime at googlegroups.com > [mailto:e-prime at googlegroups.com] On Behalf Of miamalika > > > Sent: 19 April 2011 11:32 > > > To: E-Prime > > > Subject: How to fade from slide1 to slide2 (inline?) > > > > > Hey there! > > > > > I have a problem. I want to create a Stroop imagery task which > > > functions as following: first, a color NAME is presented and the > > > subjects have to imagine that color in a following box (white text > > > frame in a slide). Then, a second slide is presented (same text frame > > > in a slide) but with a back color varying. > > > > > Now I want a gradual change between the white empty text box and the > > > colored text box so that the colors appear to "fade in". > > > > > How can I do this? I'm pretty new to e-prime so it should be an easy > > > solution.. > > > > > I also thought about fading a picture in pixel by pixel or to have the > > > brightness of 1 slide gradually changing from white to the color. > > > > > What appears best to you? How could I do this? > > > > > Thank you and best regards > > > Mia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pfc.groot at gmail.com Tue Apr 19 22:52:28 2011 From: pfc.groot at gmail.com (Paul Groot) Date: Wed, 20 Apr 2011 00:52:28 +0200 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <8746a8a7-17a9-4198-a3fb-9fe890ac0efb@k3g2000prl.googlegroups.com> Message-ID: Hi Mia, The attached example is a kind of minimal implementation (using EPrime 1.2) of a simple drawing loop which changes the background color on the fly. Much like suggested in previous postings. I initialy tried to dynamically read the background color at the beginning of the script, but couldn''t get the translation from long RGB values to separate R G and B values in the range 0..255. So, just as a workaround, both the initial and target colors are explicitly coded. hope it is of any help Paul -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- A non-text attachment was scrubbed... Name: FadingColors.es Type: application/octet-stream Size: 8827 bytes Desc: not available URL: From jotapan at hotmail.com Wed Apr 20 00:33:55 2011 From: jotapan at hotmail.com (jotapan) Date: Tue, 19 Apr 2011 17:33:55 -0700 Subject: jump or if then? Message-ID: Hi to all, I have what I believe o be a simple task to program, but I just not being able to do it since I'm a beginner in e-prime. I have two tasks: 1) task 1: responses A and B 2) and task 2: responses 1, 2, and 3 I want task 2 to be presented to the participant only if he responds A in task 1; if he responds B he should just gets the next trial of task 1. I tried looking into the "jump" of the stimulus property, but from what I understood it works independently of what response is given to that stimulus. Another idea I had was just to create a script with an if then rule, which I don't know how to do :( the idea would be something like (with proper coding) If response to task 1 = A, then task B, else Task A end if Any help would be very appreciated! thanks Jotapan -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Wed Apr 20 08:23:36 2011 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Wed, 20 Apr 2011 09:23:36 +0100 Subject: jump or if then? In-Reply-To: <35a1c336-e8a5-47eb-93ce-b472f9cba50d@r23g2000vbp.googlegroups.com> Message-ID: Hiya, If it's as simple as you think it is, you should be able to do it after having read the "getting started guide". In this case, you would be right - and if the getting started guide may not do it for you, I'd suggest working through our little bit of freely available course material (www.cognitology.eu, about me, underneath everything else), because, ultimately, you cannot use E-Prime 'instantly' (at least, very few students seem to, even though there are some talented 'coders-to-be'). So, despite me answering this question, try to give it a go anyway. 1. Stimulus1 is a textdisplay saying "Do you want to do task 2? A = yes, B = no", allowable response ab. That's just about what you want, no? 2. After that is an inline saying IF Stimulus1.RESP = "b" THEN goto Dontwanttodotask2 3. Stimulus2 is a textdisplay saying "Select response 1, 2 or 3" (or whatever you'd like). 4. Then insert a label, call it Dontwanttodotask2 That's basically it. Note that I use no else, since Stimulus2 will follow anyway, unless b is selected. After 4 is the end of the trial, so it should continue with your task1. Best, Mich Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology www.cognitology.eu -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan Sent: 20 April 2011 01:34 To: E-Prime Subject: jump or if then? Hi to all, I have what I believe o be a simple task to program, but I just not being able to do it since I'm a beginner in e-prime. I have two tasks: 1) task 1: responses A and B 2) and task 2: responses 1, 2, and 3 I want task 2 to be presented to the participant only if he responds A in task 1; if he responds B he should just gets the next trial of task 1. I tried looking into the "jump" of the stimulus property, but from what I understood it works independently of what response is given to that stimulus. Another idea I had was just to create a script with an if then rule, which I don't know how to do :( the idea would be something like (with proper coding) If response to task 1 = A, then task B, else Task A end if Any help would be very appreciated! thanks Jotapan -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From jotapan at hotmail.com Wed Apr 20 10:33:17 2011 From: jotapan at hotmail.com (jotapan) Date: Wed, 20 Apr 2011 03:33:17 -0700 Subject: jump or if then? In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E53C6@EXCHANGE3.ad.nottingham.ac.uk> Message-ID: Hi Michiel, Thank you so much for your reply and for the link to your e-prime guide. It will be very helpful! I have been able to jump task 2 when participants responds B in task 1 using your suggestion, but I now have a problem in the response and RT data logging. I was expecting the program not to save any information for the task2 trials when they are not presented to the participant (i.e., when it just jumps to task 1 again not presenting task2). However, the program is simply repeating whatever response is given the first time task 2 is presented on the following trials when task 2 is not presented; these data only change the next time task 2 is presented again and another response is given to the task. Jotapan On Apr 20, 9:23?am, Michiel Spape wrote: > Hiya, > If it's as simple as you think it is, you should be able to do it after having read the "getting started guide". In this case, you would be right - and if the getting started guide may not do it for you, I'd suggest working through our little bit of freely available course material (www.cognitology.eu, about me, underneath everything else), because, ultimately, you cannot use E-Prime 'instantly' (at least, very few students seem to, even though there are some talented 'coders-to-be'). So, despite me answering this question, try to give it a go anyway. > > 1. Stimulus1 is a textdisplay saying "Do you want to do task 2? A = yes, B = no", allowable response ab. That's just about what you want, no? > 2. After that is an inline saying > IF Stimulus1.RESP = "b" THEN goto Dontwanttodotask2 > 3. Stimulus2 is a textdisplay saying "Select response 1, 2 or 3" (or whatever you'd like). > 4. Then insert a label, call it Dontwanttodotask2 > > That's basically it. Note that I use no else, since Stimulus2 will follow anyway, unless b is selected. After 4 is the end of the trial, so it should continue with your task1. > Best, > Mich > > Michiel Spap? > Research Fellow > Perception & Action group > University of Nottingham > School of Psychologywww.cognitology.eu > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan > Sent: 20 April 2011 01:34 > To: E-Prime > Subject: jump or if then? > > Hi to all, > I have what I believe o be a simple task to program, but I just not > being able to do it since I'm a beginner in e-prime. > > I have two tasks: > 1) task 1: responses A and B > 2) and task 2: responses 1, 2, and 3 > > I want task 2 to be presented to the participant only if he responds A > in task 1; if he responds B he should just gets the next trial of task > 1. > I tried looking into the "jump" of the stimulus property, but from > what I understood it works independently of what response is given to > that stimulus. > Another idea I had was just to create a script with an if then rule, > which I don't know how to do :( the idea would be something like (with > proper coding) > > If response to task 1 = A, > then task B, > else Task A > end if > > Any help would be very appreciated! thanks > Jotapan > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. ? Please do not use, copy or disclose the information contained in this message or in any attachment. ?Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Wed Apr 20 10:36:15 2011 From: liwenna at gmail.com (liwenna) Date: Wed, 20 Apr 2011 03:36:15 -0700 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: Message-ID: Oh Paul, that is really cool! I also tried my own suggestion.. it didn't work indeed >.< the one line that I doubted about is indeed not correct... it does work if you replace it with: CSlideText(Slide1.States(Slide1.ActiveState).Objects("Text1")).backcolor= CColor (""& vr$ &","& vg$ &","& vb$ &"") For anyone trying to use it: that line should replace the line "text1.backcolor = " which appears twice in the code I wrote above. There also is a typo in that code... somewhere there is a line that reads: b = b -b ... which shoudl be b= b-5... otherwise the color fades to very yellow first and then to red :p adding these lines at the start of the second inline (and then removing the r = r, g = g-5 and b=b-b lines) makes the color fade to either red green or blue based on the color specified in an attribute called color: ************** select case c.getattrib ("color") case "red" r = r g = g -5 b = b -5 case "blue" r = r -5 g = g -5 b = b case "green" r = r -5 b = b -5 g = g end select ******** I am quite in love with this feature... :p Hope to find some use for it some day ^.^ Paul, how did you attach a file??! best, liw On Apr 20, 12:52?am, Paul Groot wrote: > Hi Mia, > > The attached example is a kind of minimal implementation (using EPrime > 1.2) of a simple drawing loop which changes the background color on > the fly. Much like suggested in previous postings. I initialy tried to > dynamically read the background color at the beginning of the script, > but couldn''t get the translation from long RGB values to separate R G > and B values in the range 0..255. So, just as a workaround, both the > initial and target colors are explicitly coded. > > hope it is of any help > Paul > > ?FadingColors.es > 11KViewDownload -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Wed Apr 20 10:55:10 2011 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Wed, 20 Apr 2011 11:55:10 +0100 Subject: jump or if then? In-Reply-To: Message-ID: Hi Jotapan, It shouldn't, as far as I can see. Do you have the most typical E-Prime structure here, or are you, in fact, jumping to and fro, indeed adding even another goto to my suggestion? That is to say, for E-Prime, it makes sense to stop thinking about "go to task 1, then goto task 2, followed by task 1" but instead see it as: In the beginning, there is a trial. In one trial, we present either one or two stimuli (or tasks, if you will). This means that there is no "going back to task 1" but rather, at the end of the trial, the procedure is repeated. In which case, Stimulus1.RESP as well as Stimulus2.RESP should be cleared. If this shot in the dark totally misses, however, you can just ignore me and use some work-around. I like to store my dependent variables as "Y_" followed by the type - so they all are stored at the end of your .edat file. This also gives you a little bit of flexibility in storing your data as you would like to analyse it. I'd say pick the correct lines and store your favourite responses at your favourite moment by doing something like c.SetAttrib "Y_RESP2", Stimulus2.RESP or, which shouldn't be necessary, at the very end: IF Stimulus1.RESP = "a" then c.SetAttrib "Y_RESP2", Stimulus2.RESP else c.SetAttrib "Y_RESP2", "" Best, Mich Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology www.cognitology.eu -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan Sent: 20 April 2011 11:33 To: E-Prime Subject: Re: jump or if then? Hi Michiel, Thank you so much for your reply and for the link to your e-prime guide. It will be very helpful! I have been able to jump task 2 when participants responds B in task 1 using your suggestion, but I now have a problem in the response and RT data logging. I was expecting the program not to save any information for the task2 trials when they are not presented to the participant (i.e., when it just jumps to task 1 again not presenting task2). However, the program is simply repeating whatever response is given the first time task 2 is presented on the following trials when task 2 is not presented; these data only change the next time task 2 is presented again and another response is given to the task. Jotapan On Apr 20, 9:23?am, Michiel Spape wrote: > Hiya, > If it's as simple as you think it is, you should be able to do it after having read the "getting started guide". In this case, you would be right - and if the getting started guide may not do it for you, I'd suggest working through our little bit of freely available course material (www.cognitology.eu, about me, underneath everything else), because, ultimately, you cannot use E-Prime 'instantly' (at least, very few students seem to, even though there are some talented 'coders-to-be'). So, despite me answering this question, try to give it a go anyway. > > 1. Stimulus1 is a textdisplay saying "Do you want to do task 2? A = yes, B = no", allowable response ab. That's just about what you want, no? > 2. After that is an inline saying > IF Stimulus1.RESP = "b" THEN goto Dontwanttodotask2 > 3. Stimulus2 is a textdisplay saying "Select response 1, 2 or 3" (or whatever you'd like). > 4. Then insert a label, call it Dontwanttodotask2 > > That's basically it. Note that I use no else, since Stimulus2 will follow anyway, unless b is selected. After 4 is the end of the trial, so it should continue with your task1. > Best, > Mich > > Michiel Spap? > Research Fellow > Perception & Action group > University of Nottingham > School of Psychologywww.cognitology.eu > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan > Sent: 20 April 2011 01:34 > To: E-Prime > Subject: jump or if then? > > Hi to all, > I have what I believe o be a simple task to program, but I just not > being able to do it since I'm a beginner in e-prime. > > I have two tasks: > 1) task 1: responses A and B > 2) and task 2: responses 1, 2, and 3 > > I want task 2 to be presented to the participant only if he responds A > in task 1; if he responds B he should just gets the next trial of task > 1. > I tried looking into the "jump" of the stimulus property, but from > what I understood it works independently of what response is given to > that stimulus. > Another idea I had was just to create a script with an if then rule, > which I don't know how to do :( the idea would be something like (with > proper coding) > > If response to task 1 = A, > then task B, > else Task A > end if > > Any help would be very appreciated! thanks > Jotapan > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. ? Please do not use, copy or disclose the information contained in this message or in any attachment. ?Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From jotapan at hotmail.com Wed Apr 20 11:19:55 2011 From: jotapan at hotmail.com (jotapan) Date: Wed, 20 Apr 2011 04:19:55 -0700 Subject: jump or if then? In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E53FD@EXCHANGE3.ad.nottingham.ac.uk> Message-ID: Hi Michiel, Thanks for your new suggestion. I think I'm using the right structure, but I might be missing something :( Here's what I'm doing in this procedure: > Slide 1 : allowed responses A & B > InLIne 1: If slide1.RESP="b" THEN goto donttask2 > Slide 2: allowed responses 1 & 2 & 3 > Label: donttask2 I'll be trying your suggestion, Best, Jotapan On Apr 20, 11:55?am, Michiel Spape wrote: > Hi Jotapan, > It shouldn't, as far as I can see. Do you have the most typical E-Prime structure here, or are you, in fact, jumping to and fro, indeed adding even another goto to my suggestion? That is to say, for E-Prime, it makes sense to stop thinking about "go to task 1, then goto task 2, followed by task 1" but instead see it as: > In the beginning, there is a trial. > In one trial, we present either one or two stimuli (or tasks, if you will). > This means that there is no "going back to task 1" but rather, at the end of the trial, the procedure is repeated. In which case, Stimulus1.RESP as well as Stimulus2.RESP should be cleared. > > If this shot in the dark totally misses, however, you can just ignore me and use some work-around. I like to store my dependent variables as "Y_" followed by the type - so they all are stored at the end of your .edat file. This also gives you a little bit of flexibility in storing your data as you would like to analyse it. I'd say pick the correct lines and store your favourite responses at your favourite moment by doing something like > c.SetAttrib "Y_RESP2", Stimulus2.RESP > or, which shouldn't be necessary, at the very end: > IF Stimulus1.RESP = "a" then c.SetAttrib "Y_RESP2", Stimulus2.RESP else c.SetAttrib "Y_RESP2", "" > > Best, > Mich > > Michiel Spap? > Research Fellow > Perception & Action group > University of Nottingham > School of Psychologywww.cognitology.eu > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan > Sent: 20 April 2011 11:33 > To: E-Prime > Subject: Re: jump or if then? > > Hi Michiel, > > Thank you so much for your reply and for the link to your e-prime > guide. It will be very helpful! > > I have been able to jump task 2 when participants responds B in task 1 > using your suggestion, but I now have a problem in the response and RT > data logging. I was expecting the program not to save any information > for the task2 trials when they are not presented to the participant > (i.e., when it just jumps to task 1 again not presenting task2). > However, the program is simply repeating whatever response is given > the first time task 2 is presented on the following trials when task 2 > is not presented; these data only change the next time task 2 is > presented again and another response is given to the task. > > Jotapan > > On Apr 20, 9:23?am, Michiel Spape > wrote: > > Hiya, > > If it's as simple as you think it is, you should be able to do it after having read the "getting started guide". In this case, you would be right - and if the getting started guide may not do it for you, I'd suggest working through our little bit of freely available course material (www.cognitology.eu, about me, underneath everything else), because, ultimately, you cannot use E-Prime 'instantly' (at least, very few students seem to, even though there are some talented 'coders-to-be'). So, despite me answering this question, try to give it a go anyway. > > > 1. Stimulus1 is a textdisplay saying "Do you want to do task 2? A = yes, B = no", allowable response ab. That's just about what you want, no? > > 2. After that is an inline saying > > IF Stimulus1.RESP = "b" THEN goto Dontwanttodotask2 > > 3. Stimulus2 is a textdisplay saying "Select response 1, 2 or 3" (or whatever you'd like). > > 4. Then insert a label, call it Dontwanttodotask2 > > > That's basically it. Note that I use no else, since Stimulus2 will follow anyway, unless b is selected. After 4 is the end of the trial, so it should continue with your task1. > > Best, > > Mich > > > Michiel Spap? > > Research Fellow > > Perception & Action group > > University of Nottingham > > School of Psychologywww.cognitology.eu > > > -----Original Message----- > > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan > > Sent: 20 April 2011 01:34 > > To: E-Prime > > Subject: jump or if then? > > > Hi to all, > > I have what I believe o be a simple task to program, but I just not > > being able to do it since I'm a beginner in e-prime. > > > I have two tasks: > > 1) task 1: responses A and B > > 2) and task 2: responses 1, 2, and 3 > > > I want task 2 to be presented to the participant only if he responds A > > in task 1; if he responds B he should just gets the next trial of task > > 1. > > I tried looking into the "jump" of the stimulus property, but from > > what I understood it works independently of what response is given to > > that stimulus. > > Another idea I had was just to create a script with an if then rule, > > which I don't know how to do :( the idea would be something like (with > > proper coding) > > > If response to task 1 = A, > > then task B, > > else Task A > > end if > > > Any help would be very appreciated! thanks > > Jotapan > > > -- > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. ? Please do not use, copy or disclose the information contained in this message or in any attachment. ?Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > > This message has been checked for viruses but the contents of an attachment > > may still contain software viruses which could damage your computer system: > > you are advised to perform your own checks. Email communications with the > > University of Nottingham may be monitored as permitted by UK legislation. > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. ? Please do not use, copy or disclose the information contained in this message or in any attachment. ?Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From ashtyster at gmail.com Wed Apr 20 11:24:36 2011 From: ashtyster at gmail.com (Ashtyster) Date: Wed, 20 Apr 2011 04:24:36 -0700 Subject: adjusting time of stimulus presentation by key presses Message-ID: Hello, I would like to develop a task in which the default viewing time of each stimulus could be adjusted by the participants according to their ?work-effort?, i.e. the frequency of key-pressing of either the ?up? or the ?down? keys. I would like to have a visual analogue scale presented together with each stimulus which would provide participants with a real time indication of the viewing time duration, with a bar moving downwards over time (the speed of movement could either be slowed or increased by the key presses). First of all, is it possible to create such a task with E-Prime. If yes, could anyone please advise on which objects/functions to tamper with? All kinds of input will be very much appreciated! Cheers, A. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From jotapan at hotmail.com Wed Apr 20 11:24:55 2011 From: jotapan at hotmail.com (jotapan) Date: Wed, 20 Apr 2011 04:24:55 -0700 Subject: jump or if then? In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E53FD@EXCHANGE3.ad.nottingham.ac.uk> Message-ID: Hi Michiel, Thank you so much for this new input. I think I have the right structure in my procedure. Here is what I have in my procedure: > Slide 1 : allowed responses a & b > InLIne: If slide1.RESP="b" THEN goto donttask2 > Slide 2: allowed responses 1, 2, & 3 > Label: donttask2 Indeed at the end of this sequence it moves on to the next trial on the list. Am I missing something? I'll try you suggestion as well, Best, Jotapan On Apr 20, 11:55?am, Michiel Spape wrote: > Hi Jotapan, > It shouldn't, as far as I can see. Do you have the most typical E-Prime structure here, or are you, in fact, jumping to and fro, indeed adding even another goto to my suggestion? That is to say, for E-Prime, it makes sense to stop thinking about "go to task 1, then goto task 2, followed by task 1" but instead see it as: > In the beginning, there is a trial. > In one trial, we present either one or two stimuli (or tasks, if you will). > This means that there is no "going back to task 1" but rather, at the end of the trial, the procedure is repeated. In which case, Stimulus1.RESP as well as Stimulus2.RESP should be cleared. > > If this shot in the dark totally misses, however, you can just ignore me and use some work-around. I like to store my dependent variables as "Y_" followed by the type - so they all are stored at the end of your .edat file. This also gives you a little bit of flexibility in storing your data as you would like to analyse it. I'd say pick the correct lines and store your favourite responses at your favourite moment by doing something like > c.SetAttrib "Y_RESP2", Stimulus2.RESP > or, which shouldn't be necessary, at the very end: > IF Stimulus1.RESP = "a" then c.SetAttrib "Y_RESP2", Stimulus2.RESP else c.SetAttrib "Y_RESP2", "" > > Best, > Mich > > Michiel Spap? > Research Fellow > Perception & Action group > University of Nottingham > School of Psychologywww.cognitology.eu > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan > Sent: 20 April 2011 11:33 > To: E-Prime > Subject: Re: jump or if then? > > Hi Michiel, > > Thank you so much for your reply and for the link to your e-prime > guide. It will be very helpful! > > I have been able to jump task 2 when participants responds B in task 1 > using your suggestion, but I now have a problem in the response and RT > data logging. I was expecting the program not to save any information > for the task2 trials when they are not presented to the participant > (i.e., when it just jumps to task 1 again not presenting task2). > However, the program is simply repeating whatever response is given > the first time task 2 is presented on the following trials when task 2 > is not presented; these data only change the next time task 2 is > presented again and another response is given to the task. > > Jotapan > > On Apr 20, 9:23?am, Michiel Spape > wrote: > > Hiya, > > If it's as simple as you think it is, you should be able to do it after having read the "getting started guide". In this case, you would be right - and if the getting started guide may not do it for you, I'd suggest working through our little bit of freely available course material (www.cognitology.eu, about me, underneath everything else), because, ultimately, you cannot use E-Prime 'instantly' (at least, very few students seem to, even though there are some talented 'coders-to-be'). So, despite me answering this question, try to give it a go anyway. > > > 1. Stimulus1 is a textdisplay saying "Do you want to do task 2? A = yes, B = no", allowable response ab. That's just about what you want, no? > > 2. After that is an inline saying > > IF Stimulus1.RESP = "b" THEN goto Dontwanttodotask2 > > 3. Stimulus2 is a textdisplay saying "Select response 1, 2 or 3" (or whatever you'd like). > > 4. Then insert a label, call it Dontwanttodotask2 > > > That's basically it. Note that I use no else, since Stimulus2 will follow anyway, unless b is selected. After 4 is the end of the trial, so it should continue with your task1. > > Best, > > Mich > > > Michiel Spap? > > Research Fellow > > Perception & Action group > > University of Nottingham > > School of Psychologywww.cognitology.eu > > > -----Original Message----- > > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of jotapan > > Sent: 20 April 2011 01:34 > > To: E-Prime > > Subject: jump or if then? > > > Hi to all, > > I have what I believe o be a simple task to program, but I just not > > being able to do it since I'm a beginner in e-prime. > > > I have two tasks: > > 1) task 1: responses A and B > > 2) and task 2: responses 1, 2, and 3 > > > I want task 2 to be presented to the participant only if he responds A > > in task 1; if he responds B he should just gets the next trial of task > > 1. > > I tried looking into the "jump" of the stimulus property, but from > > what I understood it works independently of what response is given to > > that stimulus. > > Another idea I had was just to create a script with an if then rule, > > which I don't know how to do :( the idea would be something like (with > > proper coding) > > > If response to task 1 = A, > > then task B, > > else Task A > > end if > > > Any help would be very appreciated! thanks > > Jotapan > > > -- > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. ? Please do not use, copy or disclose the information contained in this message or in any attachment. ?Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > > This message has been checked for viruses but the contents of an attachment > > may still contain software viruses which could damage your computer system: > > you are advised to perform your own checks. Email communications with the > > University of Nottingham may be monitored as permitted by UK legislation. > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. ? Please do not use, copy or disclose the information contained in this message or in any attachment. ?Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From matthewdwood82 at gmail.com Wed Apr 20 12:43:01 2011 From: matthewdwood82 at gmail.com (Matthew) Date: Wed, 20 Apr 2011 05:43:01 -0700 Subject: string input with spaces In-Reply-To: <4da760ae.da71e70a.075d.2236SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Hi Liw, Dave, Great advice! We had tried using the space character based on what was in the datafile, but didn't think to expand the column in the spreadsheet to reveal the other character of interest, {ENTER}. I'm a little surprised that the termination response is logged actually, but only when Allowable is {ANY} and Advanced... Response Mode is ALL. I have a similar script that has both these set to AlphaNumeric, and {ENTER} terminates the response but is never logged. Wouldn't be hard to clean these out of the datafile either via the EPrime script or a VB macro afterwards, but since only an "educated" few will be looking at this data, I don't feel like its necessary. I'll cross-post this to my SOS on PST's forums. Best, -Matt On Apr 14, 5:01?pm, David McFarlane wrote: > Matt, > > Stock reminder: ?1) I do not work for PST. ?2) PST's trained staff > takes any and all questions athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they > strive to respond to all requests in 24-48 hours -- this is pretty > much their substitute for proper documentation, so make full use of > it. ?3) If you do get an answer from PST Web Support, please extend > the courtesy of posting their reply back here for the sake of others. > > That said, here is my take... > > In your .edat files, take a look at your .RESP value strings, and > compare those to the strings in your Correct attribute. ?Does the > subject's RESP have a "{SPACE}" wherever they entered a space > character? ?Then your Correct attribute has to do the same. ?Please > see the "{key} nomenclature" topic in the online E-Basic > Help. ?Alternatively, you could add inline code to replace the {key} > nomenclature with proper text, as in the example provided by PST's > own Matt Lenhart athttp://www.pstnet.com/forum/Topic2194-5-1.aspx?(must register & > login to download). > > -- David McFarlane, Professional Faultfinder > > At 4/14/2011 10:39 AM Thursday, you wrote: > > > > > > > > >Hi all, > > >I have trouble with a problem solving experiment a student in a class > >I'm TAing put together. ?Rebus puzzles (e.g. > >http://preview.tinyurl.com/3s73mwj) > >are being used as the task. ?The answers to these puzzles are short > >idioms or sayings (e.g. "a cut above the rest"). > > >The script has a slide which presents the puzzle stimulus (picture > >file) and echoes input from the keyboard. ?Problem is, when the answer > >held in ?our [CorrectAnswer] attribute is a string that contains > >spaces, we either get an error message "Correct is not part of > >allowable," or the script fails to recognize that a correct answer has > >been provided. ?I've mucked around with various settings of allowable > >input in the Duration/Input and Echo submenus of the SlideObject, and > >am having trouble remembering which mapped to which. > > >I think the problem is somewhere in how the input is being parsed and > >compared to the value held in the list attribute [CorrectAnswer]. ?Our > >current workaround is to omit spaces from all responses, but it seems > >like the fix should be fairly simple (whatever it is). ?Am happy to > >send a copy of the experiment on request. > > >Thanks for your help, > >-Matt -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From r.dardennes at gmail.com Wed Apr 20 21:46:56 2011 From: r.dardennes at gmail.com (Roland Dardennes) Date: Wed, 20 Apr 2011 14:46:56 -0700 Subject: CodecConfig crashes immediately + refreshment error with two 120 Hz LCD monitors driven by an ATI card Message-ID: Good evening, I am trying to load a wmv movie in an experiment. For this purpose, I launched CodecConfig but it crashes immediately. After reading EP2 KB I made an update from revision 2.0.8.74 to 2.0.8.90. But CodecConfig still crashes on my SP3 XP Sony Vaio RX406. I had no problem using the old version on my W7 HP EliteBook laptop, but it crashes everytime on my Sony. Any advice will be welcomed. Meanwhile, I will use VLC to show the movie (it is just a relaxing sequence to get a baseline for GSR sampling). Another problem is the use of two displays. When I used an old CRT Viewsonic parallel to a LCD Viewsonic, I could have a monitor for the participant while monitoring on the LCD. I changed it for a 120 Hz LCD monitor (the other one is also a 120 Hz monitor) but had to use the Graphic Card software - ATI Catalyst - to make them work properly. Then, I launched an experiment and I got a refreshment error because E- Prime could not get a refresh rate higher than 40 (and both monitors are setup for 120 Hz refreshment rate). If someone did have a problem of this kind, I would appreciate knowing how the problem was solved. Thank you for this very useful E-Prime Group that provides excellent help facing the poor documentation of E-Prime, Basic-Help included. RD -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pfc.groot at gmail.com Wed Apr 20 21:49:45 2011 From: pfc.groot at gmail.com (Paul Groot) Date: Wed, 20 Apr 2011 23:49:45 +0200 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <7be41e6a-895c-48d6-8434-020352246a8f@u15g2000vby.googlegroups.com> Message-ID: well, I just replied within my email reader (google webmail in this case) and attached the file. Not sure if you can also attach anything when you reply from the google group webpages. Paul 2011/4/20 liwenna : ... > > Paul, how did you attach a file??! > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Thu Apr 21 09:07:14 2011 From: liwenna at gmail.com (Anne-Wil Kruijt) Date: Thu, 21 Apr 2011 11:07:14 +0200 Subject: How to fade from slide1 to slide2 (inline?) Message-ID: Like this?? *if not working but someone IS reading it somehow, after all: this is a test to see if I can post a message to a certain thread on the e-prime group directly from my web browser so that it can have attachments* -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fadingcolors.es2 Type: application/octet-stream Size: 37098 bytes Desc: not available URL: From liwenna at gmail.com Thu Apr 21 09:09:13 2011 From: liwenna at gmail.com (liwenna) Date: Thu, 21 Apr 2011 02:09:13 -0700 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: Message-ID: yay! so, for anyone else: from your (g?)mail browser send the e-mail to e- prime at googlegroups.com and enter re: nameoftopic ( Re: How to fade from slide1 to slide2 (inline?) in this case) as the subject. On Apr 21, 11:07?am, Anne-Wil Kruijt wrote: > Like this?? > > *if not working but someone IS reading it somehow, after all: this is a test > to see if I can post a message to a certain thread on the e-prime group > directly from my web browser so that it can have attachments* > > ?fadingcolors.es2 > 48KViewDownload -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Thu Apr 21 09:10:40 2011 From: liwenna at gmail.com (liwenna) Date: Thu, 21 Apr 2011 02:10:40 -0700 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: Message-ID: ow and I probably shouldn't have given it the exact same filename as Paul's version... >.< On Apr 21, 11:09?am, liwenna wrote: > yay! > > so, for anyone else: from your (g?)mail browser send the e-mail to e- > prime at googlegroups.com and enter re: nameoftopic ( Re: How to fade > from slide1 to slide2 (inline?) in this case) as the subject. > > On Apr 21, 11:07?am, Anne-Wil Kruijt wrote: > > > Like this?? > > > *if not working but someone IS reading it somehow, after all: this is a test > > to see if I can post a message to a certain thread on the e-prime group > > directly from my web browser so that it can have attachments* > > > ?fadingcolors.es2 > > 48KViewDownload -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Apr 21 16:14:32 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 21 Apr 2011 12:14:32 -0400 Subject: adjusting time of stimulus presentation by key presses In-Reply-To: Message-ID: Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... First, it is very possible to make such a task in E-Prime, though it will not be simple. In short, you could use an attribute reference for the Duration property of each stimulus, and then adjust that attribute value in inline code using c.SetAttrib (see Chapter 4 of the User's Guide that came with E-Prime, and the "Context" topic in the online E-Basic Help). You will also need some global variables to keep track of things, once again see Chapter 4. To use "up" & "down" key responses you will have to use the {key} nomenclature, see that topic in the online E-Basic Help. You might also want to learn about using releases as responses in case you want to do things by having subjects press & hold a key, etc. To create your graphics, you might use another attrbute reference to set the Height or Width property of objects on a Slide (my own favorite trick), or delve right into the Canvas object and draw whatever you like. I leave the rest as an exercise for you. -- David McFarlane, Professional Faultfinder >I would like to develop a task in which the default viewing time of >each stimulus could be adjusted by the participants according to their >'work-effort', i.e. the frequency of key-pressing of either the 'up' >or the 'down' keys. I would like to have a visual analogue scale >presented together with each stimulus which would provide participants >with a real time indication of the viewing time duration, with a bar >moving downwards over time (the speed of movement could either be >slowed or increased by the key presses). > >First of all, is it possible to create such a task with E-Prime. If >yes, could anyone please advise on which objects/functions to tamper >with? > >All kinds of input will be very much appreciated! > >Cheers, >A. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Apr 21 17:51:38 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 21 Apr 2011 13:51:38 -0400 Subject: jump or if then? In-Reply-To: <09DAEA8BC192C94EB62C8E71FC35A5D92DDE9E53C6@EXCHANGE3.ad.no ttingham.ac.uk> Message-ID: I would have you go with Mich's approach here. But as an academic exercise, here is how to accomplish the same thing using Jump and no inline. Trial proc structured same as before, but no inline: - Slide 1 : allowed responses A & B - Slide 2: allowed responses 1 & 2 & 3 - Label: donttask2 On Slide 1, set Jump Label to donttask2. Then add *two* keyboard input masks. For one of them, set Allowable to A, and End Action to Jump; for the other, set Allowable to B and End Action to (terminate). That should do it. Using multiple input masks and Jump is an art suitable to only a few, most will find If-Then in an inline more manageable. -- David McFarlane, Professional At 4/20/2011 04:23 AM Wednesday, Michiel Spape wrote: >Hiya, >If it's as simple as you think it is, you should >be able to do it after having read the "getting >started guide". In this case, you would be right >- and if the getting started guide may not do it >for you, I'd suggest working through our little >bit of freely available course material >(www.cognitology.eu, about me, underneath >everything else), because, ultimately, you >cannot use E-Prime 'instantly' (at least, very >few students seem to, even though there are some >talented 'coders-to-be'). So, despite me >answering this question, try to give it a go anyway. > >1. Stimulus1 is a textdisplay saying "Do you >want to do task 2? A = yes, B = no", allowable >response ab. That's just about what you want, no? >2. After that is an inline saying >IF Stimulus1.RESP = "b" THEN goto Dontwanttodotask2 >3. Stimulus2 is a textdisplay saying "Select >response 1, 2 or 3" (or whatever you'd like). >4. Then insert a label, call it Dontwanttodotask2 > >That's basically it. Note that I use no else, >since Stimulus2 will follow anyway, unless b is >selected. After 4 is the end of the trial, so it >should continue with your task1. >Best, >Mich > >Michiel Spap? >Research Fellow >Perception & Action group >University of Nottingham >School of Psychology >www.cognitology.eu > > >-----Original Message----- >From: e-prime at googlegroups.com >[mailto:e-prime at googlegroups.com] On Behalf Of jotapan >Sent: 20 April 2011 01:34 >To: E-Prime >Subject: jump or if then? > >Hi to all, >I have what I believe o be a simple task to program, but I just not >being able to do it since I'm a beginner in e-prime. > >I have two tasks: >1) task 1: responses A and B >2) and task 2: responses 1, 2, and 3 > >I want task 2 to be presented to the participant only if he responds A >in task 1; if he responds B he should just gets the next trial of task >1. >I tried looking into the "jump" of the stimulus property, but from >what I understood it works independently of what response is given to >that stimulus. >Another idea I had was just to create a script with an if then rule, >which I don't know how to do :( the idea would be something like (with >proper coding) > >If response to task 1 = A, >then task B, >else Task A >end if > >Any help would be very appreciated! thanks >Jotapan -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From andrea-laura at gmx.ch Tue Apr 26 15:33:05 2011 From: andrea-laura at gmx.ch (miamalika) Date: Tue, 26 Apr 2011 08:33:05 -0700 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <0ff1e566-e781-447c-bbe0-3f1b4dafc1f8@w9g2000prg.googlegroups.com> Message-ID: Hi guys! WOW, THANK YOU SO MUCH FOR YOUR SUPPORT! After all the Eastern celebrations I am struggling with meetings, dates... but I will start to realize your suggestions asap! I will report my results as soon as I get there.. Thanks again and best wishes - mia On 21 Apr., 11:10, liwenna wrote: > ow and I probably shouldn't have given it the exact same filename as > Paul's version... >.< > > On Apr 21, 11:09?am, liwenna wrote: > > > > > yay! > > > so, for anyone else: from your (g?)mail browser send the e-mail to e- > > prime at googlegroups.com and enter re: nameoftopic ( Re: How to fade > > from slide1 to slide2 (inline?) in this case) as the subject. > > > On Apr 21, 11:07?am, Anne-Wil Kruijt wrote: > > > > Like this?? > > > > *if not working but someone IS reading it somehow, after all: this is a test > > > to see if I can post a message to a certain thread on the e-prime group > > > directly from my web browser so that it can have attachments* > > > > ?fadingcolors.es2 > > > 48KViewDownload -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From liwenna at gmail.com Wed Apr 27 09:33:52 2011 From: liwenna at gmail.com (liwenna) Date: Wed, 27 Apr 2011 02:33:52 -0700 Subject: How to fade from slide1 to slide2 (inline?) In-Reply-To: <43bbb2bc-8f42-4411-b410-24a725b97c3b@w36g2000vbi.googlegroups.com> Message-ID: Hi Mia, A little warning ahead: given that your task is a Stroop task you'll also want to collect response times... probably using a microphone? Should the rt's include the time that is spent on the fading? If so, then you'll probably have to use one trick or another in order to arrive at the correct RT. What trick to use exactly kinda depends on which fading set-up you'll use (although all three are pretty similar) and what your termination response is (button, mic). Don't hesitate to come back once you arrived at that point and maybe the other readers can already make their suggestions? I would likely opt for using some set-up in which the rt is computed from the rttime variables but I vaguely remember that in the past I have read David suggesting an entirely different object to run simultaneously on which the response is collected... but I can't find that post back... David? best, liw On Apr 26, 5:33?pm, miamalika wrote: > Hi guys! > > WOW, THANK YOU SO MUCH FOR YOUR SUPPORT! > > After all the Eastern celebrations I am struggling with meetings, > dates... but I will start to realize your suggestions asap! > > I will report my results as soon as I get there.. > > Thanks again and best wishes > - mia > > On 21 Apr., 11:10, liwenna wrote: > > > ow and I probably shouldn't have given it the exact same filename as > > Paul's version... >.< > > > On Apr 21, 11:09?am, liwenna wrote: > > > > yay! > > > > so, for anyone else: from your (g?)mail browser send the e-mail to e- > > > prime at googlegroups.com and enter re: nameoftopic ( Re: How to fade > > > from slide1 to slide2 (inline?) in this case) as the subject. > > > > On Apr 21, 11:07?am, Anne-Wil Kruijt wrote: > > > > > Like this?? > > > > > *if not working but someone IS reading it somehow, after all: this is a test > > > > to see if I can post a message to a certain thread on the e-prime group > > > > directly from my web browser so that it can have attachments* > > > > > ?fadingcolors.es2 > > > > 48KViewDownload -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From l.crooymans at gmail.com Thu Apr 28 15:18:31 2011 From: l.crooymans at gmail.com (Luke) Date: Thu, 28 Apr 2011 08:18:31 -0700 Subject: Tower of hanoi task Message-ID: A part of my research will require participants to do a tower of hanoi task. I found the task here: http://step.psy.cmu.edu/scripts-plus/ (#19). I think the problem is caused by e-prime conversion. After converting the file to a e-prime 2.0 compatible version, running it gives me a run time error after the first screens. This was not the case with e- prime 1.0 (my thesis mentor has used the task for a previous experiment). The error i get is "Factor error: load function only permitted with LoadMethod of ebLoadMethodfile (12101). Line 881, error # -999. After browsing these forums a bit i figured Paul Groot (the author) used the embedded load function to keep the script small, but ActionList.Load should work with that (i havent found any indication why it shouldn't). I plan on starting my experiments next week, so time is of the essence. Hopefully someone here is able to help me out with this problem and I can get things rolling. thanks in advance Luke -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Apr 28 19:16:05 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 28 Apr 2011 15:16:05 -0400 Subject: Tower of hanoi task In-Reply-To: <6aff8030-5b35-4b23-a6ce-cc6461a29178@d28g2000yqc.googlegro ups.com> Message-ID: Luke, Thanks to the abundant detail in your post (including precise directions to find the troubled program), I took an interest in this puzzle. If you look around the code where the program fails, you will see that it is in an inline called InitTrial. If you look at InitTrial, you will see that it contains the lines ActionList.LoadMethod = ebLoadMethodEmbedded ActionList.Load (it fails at ActionList.Load). Now, if you look in the Full script window to the InitObjects() subroutine, you will where ActionList gets set up in that subroutine, starting with lines like Set ActionList = New List and coming to ActionList.LoadProperties At least, that is the code generated by EP2 (EP2.0.8.22 to be exact; I know, I need to upgrade). By contrast, where EP2 generates ActionList.LoadProperties, EP1 generates several other lines, including ActionList.LoadMethod = ebLoadMethodEmbedded ActionList.Load i.e., the very two lines that you see up in the InitTrial inline. Note two things here: (1) EP2 does not use the .LoadMethod and .Load methods, having replaced those with .LoadProperties (which AFAIK PST has not yet bothered to document for us); (2) Since the InitObjects subroutine already does all the setup for ActionList, those two lines in the InitTrial inline were always redundant anyway. So the solution comes down merely to getting rid of those two lines in the InitTrial inline. To be sure, I did this in both EP1 and EP2 and then the program works fine. I will send this to the STEP folks so they may update their example (and thanks again to Paul Groot for writing and contributing this nice TOH program in the first place). -- David McFarlane, Professional Faultfinder >A part of my research will require participants to do a tower of hanoi >task. I found the task here: http://step.psy.cmu.edu/scripts-plus/ >(#19). > >I think the problem is caused by e-prime conversion. After converting >the file to a e-prime 2.0 compatible version, running it gives me a >run time error after the first screens. This was not the case with e- >prime 1.0 (my thesis mentor has used the task for a previous >experiment). > >The error i get is "Factor error: load function only permitted with >LoadMethod of ebLoadMethodfile (12101). >Line 881, error # -999. >After browsing these forums a bit i figured Paul Groot (the author) >used the embedded load function to keep the script small, but >ActionList.Load should work with that (i havent found any indication >why it shouldn't). > >I plan on starting my experiments next week, so time is of the >essence. Hopefully someone here is able to help me out with this >problem and I can get things rolling. > >thanks in advance >Luke -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From erin.siebert at gmail.com Thu Apr 28 21:35:24 2011 From: erin.siebert at gmail.com (Erin) Date: Thu, 28 Apr 2011 14:35:24 -0700 Subject: selecting an image with the mouse cursor by contact alone (without clicking) Message-ID: I want find out how to make an image selection happen by simply having the mouse cursor contact an image, without any clicking. My experiment is actually a match-to-sample task for chimpanzees using a joystick without buttons. I have successfully set up the joystick to control the mouse cursor in E-Prime, so the chimp can control the mouse cursor using the joystick. I want the chimp to be able to select an image by simply contacting the image with the mouse cursor. The experiment will have three images displayed- a sample image at the top of the screen (no response if contacted), then below, 2 images: one image that matches the sample (correct if contacted), and a non- matching foil image (incorrect if contacted). So, I need to figure out how to have an image selection happen by contact with the mouse cursor alone, and how to designate the image response as correct or incorrect. I have searched the E-Prime help, and checked the forums with no luck. I downloaded the sample experiment "Response Areas For Mouse Input Sample," but I am not sure how to adapt it to select an image without a click. I am new to E- Prime, and would appreciate any information. thank you. Erin -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From baltimore.ben at gmail.com Fri Apr 29 13:08:18 2011 From: baltimore.ben at gmail.com (ben robinson) Date: Fri, 29 Apr 2011 09:08:18 -0400 Subject: selecting an image with the mouse cursor by contact alone (without clicking) In-Reply-To: <3e16f5dd-c9d3-4094-b41b-334724c94d02@e21g2000yqe.googlegroups.com> Message-ID: you could use a Do...Loop Until in an Inline to continuously check for mouse cursor position until some condition is met, for instance the cursor's x and y position both meet some requirement (ie, If x > 5 and x < 10 and y > 5 and y < 10 Then trial.ACC = 1, trial.RT = clock.read). does that make sense? ben On Thu, Apr 28, 2011 at 5:35 PM, Erin wrote: > I want find out how to make an image selection happen by simply having > the mouse cursor contact an image, without any clicking. My experiment > is actually a match-to-sample task for chimpanzees using a joystick > without buttons. I have successfully set up the joystick to control > the mouse cursor in E-Prime, so the chimp can control the mouse cursor > using the joystick. I want the chimp to be able to select an image by > simply contacting the image with the mouse cursor. > > The experiment will have three images displayed- a sample image at the > top of the screen (no response if contacted), then below, 2 images: > one image that matches the sample (correct if contacted), and a non- > matching foil image (incorrect if contacted). > > So, I need to figure out how to have an image selection happen by > contact with the mouse cursor alone, and how to designate the image > response as correct or incorrect. I have searched the E-Prime help, > and checked the forums with no luck. I downloaded the sample > experiment "Response Areas For Mouse Input Sample," but I am not sure > how to adapt it to select an image without a click. I am new to E- > Prime, and would appreciate any information. thank you. > > Erin > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From l.crooymans at gmail.com Fri Apr 29 14:25:54 2011 From: l.crooymans at gmail.com (Luke) Date: Fri, 29 Apr 2011 07:25:54 -0700 Subject: Tower of hanoi task In-Reply-To: <4db9bcf9.da71e70a.552d.216aSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Thanks david, the task is working now. On Apr 28, 9:16?pm, David McFarlane wrote: > Luke, > > Thanks to the abundant detail in your post (including precise > directions to find the troubled program), I took an interest in this puzzle. > > If you look around the code where the program fails, you will see > that it is in an inline called InitTrial. ?If you look at InitTrial, > you will see that it contains the lines > > ? ? ?ActionList.LoadMethod = ebLoadMethodEmbedded > ? ? ?ActionList.Load > > (it fails at ActionList.Load). > > Now, if you look in the Full script window to the InitObjects() > subroutine, you will where ActionList gets set up in that subroutine, > starting with lines like > > ? ? ?Set ActionList = New List > > and coming to > > ? ? ?ActionList.LoadProperties > > At least, that is the code generated by EP2 (EP2.0.8.22 to be exact; > I know, I need to upgrade). ?By contrast, where EP2 generates > ActionList.LoadProperties, EP1 generates several other lines, including > > ? ? ?ActionList.LoadMethod = ebLoadMethodEmbedded > ? ? ?ActionList.Load > > i.e., the very two lines that you see up in the InitTrial inline. > > Note two things here: ?(1) EP2 does not use the .LoadMethod and .Load > methods, having replaced those with .LoadProperties (which AFAIK PST > has not yet bothered to document for us); ?(2) Since the InitObjects > subroutine already does all the setup for ActionList, those two lines > in the InitTrial inline were always redundant anyway. > > So the solution comes down merely to getting rid of those two lines > in the InitTrial inline. ?To be sure, I did this in both EP1 and EP2 > and then the program works fine. ?I will send this to the STEP folks > so they may update their example (and thanks again to Paul Groot for > writing and contributing this nice TOH program in the first place). > > -- David McFarlane, Professional Faultfinder > > > > > > > > >A part of my research will require participants to do a tower of hanoi > >task. I found the task here:http://step.psy.cmu.edu/scripts-plus/ > >(#19). > > >I think the problem is caused by e-prime conversion. After converting > >the file to a e-prime 2.0 compatible version, running it gives me a > >run time error after the first screens. This was not the case with e- > >prime 1.0 (my thesis mentor has used the task for a previous > >experiment). > > >The error i get is "Factor error: load function only permitted with > >LoadMethod of ebLoadMethodfile (12101). > >Line 881, error # -999. > >After browsing these forums a bit i figured Paul Groot (the author) > >used the embedded load function to keep the script small, but > >ActionList.Load should work with that (i havent found any indication > >why it shouldn't). > > >I plan on starting my experiments next week, so time is of the > >essence. Hopefully someone here is able to help me out with this > >problem and I can get things rolling. > > >thanks in advance > >Luke -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Fri Apr 29 14:34:52 2011 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 29 Apr 2011 10:34:52 -0400 Subject: selecting an image with the mouse cursor by contact alone (without clicking) In-Reply-To: Message-ID: Erin, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... Basically, what Ben already said. Inside your loop, you can get mouse cursor position using Mouse.GetCursorPos (see the MouseDevice.GetCursorPos topic in the online E-Basic Help). For the test, you could use SlideState.HitTest, or PointInRect (see those topics in the online E-Basic Help), depending on your tastes and requirements. E.g., for just one rectangular target zone, Const tgtName as String = "Image1" Dim x as Long, y as Long Dim slState as SlideState ' for convenience Set slState = StimSlide.States("Default") Do ' loop until mouse enters the named region Mouse.GetCursorPos x, y Loop Until ( (slState.HitTest( x, y ) = tgtName) ) Do be aware that some uses of HitTest and PointInRect include top & left edges as part of the rectangle, but exclude bottom & right edges as part of the rectangle, in case that is important to you. Since you want the loop to end when the mouse contacts any of *three* distinct areas, you will need to construct a somewhat more elaborate conditional clause than in this example, but you get the idea. And if you want to allow for non-rectangular target zones then you will have to incorporate some kind of mask into your tests, which I leave as an exercise. -- David McFarlane, Professional Faultfinder At 4/29/2011 09:08 AM Friday, ben robinson wrote: >you could use a Do...Loop Until in an Inline to continuously check >for mouse cursor position until some condition is met, for instance >the cursor's x and y position both meet some requirement (ie, If x > >5 and x < 10 and y > 5 and y < 10 Then trial.ACC = 1, trial.RT = >clock.read). does that make sense? > >ben > >On Thu, Apr 28, 2011 at 5:35 PM, Erin ><erin.siebert at gmail.com> wrote: >I want find out how to make an image selection happen by simply having >the mouse cursor contact an image, without any clicking. My experiment >is actually a match-to-sample task for chimpanzees using a joystick >without buttons. I have successfully set up the joystick to control >the mouse cursor in E-Prime, so the chimp can control the mouse cursor >using the joystick. I want the chimp to be able to select an image by >simply contacting the image with the mouse cursor. > >The experiment will have three images displayed- a sample image at the >top of the screen (no response if contacted), then below, 2 images: >one image that matches the sample (correct if contacted), and a non- >matching foil image (incorrect if contacted). > >So, I need to figure out how to have an image selection happen by >contact with the mouse cursor alone, and how to designate the image >response as correct or incorrect. I have searched the E-Prime help, >and checked the forums with no luck. I downloaded the sample >experiment "Response Areas For Mouse Input Sample," but I am not sure >how to adapt it to select an image without a click. I am new to E- >Prime, and would appreciate any information. thank you. > >Erin -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.