From mcfarla9 at msu.edu Tue Jan 3 20:43:35 2012 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 3 Jan 2012 15:43:35 -0500 Subject: Correct, Incorrect and No Response: Differential Feedback Display Times In-Reply-To: <86e0c548-6cf0-4f39-962b-406242c810f8@q9g2000yqe.googlegrou ps.com> Message-ID: Brad, Stock reminder: 1) I do not work for PST. 2) PST's trained staff take 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) In addition, PST takes questions at their Facebook page (http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 ), and offers several instructional videos there and on their YouTube channel (http://www.youtube.com/user/PSTNET ) (no Twitter feed yet, though). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... You do not say how you get your feedback to show "please try to respond faster" for the no-response case, but let's assume that you use the same stimulus feedback object for each type of response, and need merely adjust its duration. In that case, you need merely add an If clause to include the no-respone case. I have documented at http://support.pstnet.com/forum/Topic2711-5-1.aspx?Highlight=problems+feedback a few ways to test for no-response with inline code, so pick one that suits you. E.g., Const DurCorrect as Integer = 1000 Const DurIncorrect as Integer = 1500 Const DurNoResponse as Integer = 2000 If (StimText.RT = 0) Then ' no response c.SetAttrib "FeedDur", DurNoResponse ElseIf StimText.ACC Then ' correct answer c.SetAttrib "FeedDur", DurCorrect Else ' incorrect answer c.SetAttrib "FeedDur", DurIncorrect End If -- David McFarlane At 12/23/2011 11:15 PM Friday, you wrote: >I am trying to program e prime to display "correct" after a correct >response for 1000 ms, and "incorrect" after an incorrect response for >1500ms. I also wish to display "please try to respond faster" for >2000 ms in the event a participant takes longer than 1500 ms to >respond to the stimulus. Thanks to a previous post, I used the >following inline to code for the correct and incorrect responses. I >have also been able to set the response time limit at 1500 ms. >However, I have been unable to determine how to set the no response >feedback display at 2000 ms. Any suggestions would be much >appreciated! > >-Brad > >Const DurCorrect as Integer = 1000 >Const DurIncorrect as Integer = 1500 >If StimText.ACC Then ' correct answer > c.SetAttrib "FeedDur", DurCorrect >Else ' incorrect answer > c.SetAttrib "FeedDur", DurIncorrect >End If -- 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 doronarbiv at gmail.com Sun Jan 8 15:34:02 2012 From: doronarbiv at gmail.com (doron arbiv) Date: Sun, 8 Jan 2012 07:34:02 -0800 Subject: inconsistent updating of error counting variable Message-ID: hello, i have a target slide,1000 mls in duration and has a 3000 mls time limit. the target slide is followed by a blank slide, 2000 mls in duration, which doesn't collect any response. after the blank slide i have a short script which says the following: elseif c.getattrib("TrialType")="FaceTarget" then if c.getattrib("Target.ACC")=0 then FaceError=FaceError+1 i present only two lines from the script, since i am only testing the "FaceTarget" trial type for now. in my test i intentionally make errors, so that the FaceError variable will reach 20 (there are 20 trials in a block). the problem is that while "Target.ACC" always shows a "0" value in the edata output file, the FaceError variable sometime fails to add "1" to itself, as it should when "Target.ACC"=0. this happens approximately twice in each block of 20 trials and i have no idea why it happens. i have some guesses. one is that maybe "Traget.ACC" is unavailable to the script following the Blank slide, so that when the condition: " if c.getattrib("Target.ACC")=0 then FaceError=FaceError+1 " appears, the "Target.ACC" attribute isn't ready for comparison. Can you please help me with this bizarre bug? -- 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 Mon Jan 9 10:17:37 2012 From: liwenna at gmail.com (liwenna) Date: Mon, 9 Jan 2012 02:17:37 -0800 Subject: inconsistent updating of error counting variable In-Reply-To: Message-ID: Hi Doron, That sounds really weird indeed. What are the conditions presented under the "If then" lines that precede the elseif then line that you presented us with? If one of those happens to be met, than the line that you're testing now will not be executed. In a similar veign: are you absolutely positive that all trials have the trialtype set to FaceTarget, with no typoes etc? You probably have, but this is the only one thing that I can think of right away that you did not yet disconfirm in your post. If none of those than I might advice you to have the actual script program at by one of your colleaguesm me or someone else from here. Best, liw On 8 jan, 10:34, doron arbiv wrote: > hello, > > i have a target slide,1000 mls in duration and has a 3000 mls time > limit. the target slide is followed by a blank slide, 2000 mls in > duration, which doesn't collect any response. after the blank slide i > have a short script which says the following: > elseif c.getattrib("TrialType")="FaceTarget" then >      if c.getattrib("Target.ACC")=0 then FaceError=FaceError+1 > > i present only two lines from the script, since i am only testing the > "FaceTarget" trial type for now. > in my test i intentionally make errors, so that the FaceError variable > will reach 20 (there are 20 trials in a block). > the problem is that while "Target.ACC" always shows a  "0" value in > the edata output file, the FaceError variable sometime fails to add > "1" to itself, as it should when "Target.ACC"=0. this happens > approximately twice in each block of 20 trials and i have no idea why > it happens. > > i have some guesses. one is that maybe "Traget.ACC" is unavailable to > the script following the Blank slide, so that when the condition: > " if c.getattrib("Target.ACC")=0 then FaceError=FaceError+1 " appears, > the "Target.ACC" attribute isn't ready for comparison. > Can you please help me with this bizarre bug? -- 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 hackersdady at gmail.com Tue Jan 10 07:32:55 2012 From: hackersdady at gmail.com (Hacker's Dad) Date: Tue, 10 Jan 2012 13:02:55 +0530 Subject: inconsistent updating of error counting variable In-Reply-To: Message-ID: On Mon, Jan 9, 2012 at 3:47 PM, liwenna wrote: > Hi Doron, > > That sounds really weird indeed. > > What are the conditions presented under the "If then" lines that > precede the elseif then line that you presented us with? If one of > those happens to be met, than the line that you're testing now will > not be executed. In a similar veign: are you absolutely positive that > all trials have the trialtype set to FaceTarget, with no typoes etc? > You probably have, but this is the only one thing that I can think of > right away that you did not yet disconfirm in your post. > > If none of those than I might advice you to have the actual script > program at by one of your colleaguesm me or someone else from here. > > Best, > > liw > > > > On 8 jan, 10:34, doron arbiv wrote: > > hello, > > > > i have a target slide,1000 mls in duration and has a 3000 mls time > > limit. the target slide is followed by a blank slide, 2000 mls in > > duration, which doesn't collect any response. after the blank slide i > > have a short script which says the following: > > elseif c.getattrib("TrialType")="FaceTarget" then > > if c.getattrib("Target.ACC")=0 then FaceError=FaceError+1 > > > > i present only two lines from the script, since i am only testing the > > "FaceTarget" trial type for now. > > in my test i intentionally make errors, so that the FaceError variable > > will reach 20 (there are 20 trials in a block). > > the problem is that while "Target.ACC" always shows a "0" value in > > the edata output file, the FaceError variable sometime fails to add > > "1" to itself, as it should when "Target.ACC"=0. this happens > > approximately twice in each block of 20 trials and i have no idea why > > it happens. > > > > i have some guesses. one is that maybe "Traget.ACC" is unavailable to > > the script following the Blank slide, so that when the condition: > > " if c.getattrib("Target.ACC")=0 then FaceError=FaceError+1 " appears, > > the "Target.ACC" attribute isn't ready for comparison. > > Can you please help me with this bizarre bug? > > -- > 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. > > dear user, it is global variable error use global variable your problems will be resolved. -- Regards, Ravindra kumar Ravindra Softwares 204 gurunanak nagar naini allahabad 211008 Uttar Pradesh INDIA -- 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 supercarv at googlemail.com Tue Jan 10 11:59:29 2012 From: supercarv at googlemail.com (Richard Carvey) Date: Tue, 10 Jan 2012 03:59:29 -0800 Subject: Using mouse click to select one of several alternative responses In-Reply-To: Message-ID: Hi Paul, I've made use of that code, thanks. The only problem I'm having is that a click outside of a target button still advances the program, logging the response, but moving on to the next trial. Is there any way you know of that I can set it so that a click outside of specified areas (so an iACC = -1) doesn't do anything? Or perhaps so that it re- loads the response screen for them to try again? Thanks, Richard On Dec 19 2011, 10:44 pm, Paul Groot wrote: > Hi Richard, > > You might have a look at the VAS example script I posted a while ago > onhttp://pfcgroot.nl/e-prime/83-example-scripts/80-visual-analogue-scal.... > This example contains a bit more script then you need, but the > ACK_HandleResponse function (in the user script tab) demonstrates how > you can use boundaries of (text-)objects as hit area for mouse clicks. > The core of this piece of script uses the Mouse.GetCursorPos and > Object.HitTest functions to implement two user confirmation buttons. > It can be easily adapted for more buttons. Also, instead of using the > boundaries of a slide element (i.e. text or image), you can also make > your own hit-test function. > > cheers, > Paul Groot > > 2011/12/19 Richard Carvey : > > > > > Hi, > > > I'm trying to build an experiment in which nine items are displayed on > > screen, and participants need to select one fo them using the mouse. I > > have seen a couple of people mention issues with clicks anywhere on > > screen being registered as responses, but I would like to make sure > > that only clicks within the bounds of the nine items are accepted, and > > that the specific item clicked is logged. Clicking any of the nine > > items should advanc the program, no one answer is correct or > > incorrect. > > > If anybody could offer me some advice on how to achieve this, it would > > be greatly appreciated. Annoyingly, whoever installed E-Prime (1.2, > > btw) on this computer saw fit not install the help functions correctly/ > > at all. > > > Thanks, > > > Richard > > > -- > > 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.- Hide quoted text - > > - Show quoted text - -- 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 Jan 10 18:51:40 2012 From: pfc.groot at gmail.com (Paul Groot) Date: Tue, 10 Jan 2012 19:51:40 +0100 Subject: Using mouse click to select one of several alternative responses In-Reply-To: <0d0a0756-6d3f-4cf3-a0bd-bfca8982487f@d8g2000vbb.googlegroups.com> Message-ID: Hi Richard, I currently don't have an eprime license to check my own example, but in general there are two way's of dealing with wrong-clicks: 1) put the relevant slide and script in separate list that loops 'forever' (i.e. putting a high number for the 'exit list after' value). Then use the List.Terminate function to accept, stop the sublist and continue. 2) Put a label before the relevant slide and use a goto-statement to jump back to the label if IACC=-1. (i.e. if iACC=-1 then goto MyLabel) I personaly don't like the goto-construct because one of the drawbacks is that wrong selections are not logged automatically. However, the use of an additional list takes a bit more effort to implement. I think my example script is already using the repeating sublist because the VasList is passed as third argument: choice = ACK_HandleResponse(c, "VasAck", VasList) But remember to set terminate condition of the sublist to a large value in that case. best, paul 2012/1/10 Richard Carvey : > Hi Paul, > > I've made use of that code, thanks. The only problem I'm having is > that a click outside of a target button still advances the program, > logging the response, but moving on to the next trial. Is there any > way you know of that I can set it so that a click outside of specified > areas (so an iACC = -1) doesn't do anything? Or perhaps so that it re- > loads the response screen for them to try again? > > Thanks, > > Richard > > On Dec 19 2011, 10:44 pm, Paul Groot wrote: >> Hi Richard, >> >> You might have a look at the VAS example script I posted a while ago >> onhttp://pfcgroot.nl/e-prime/83-example-scripts/80-visual-analogue-scal.... >> This example contains a bit more script then you need, but the >> ACK_HandleResponse function (in the user script tab) demonstrates how >> you can use boundaries of (text-)objects as hit area for mouse clicks. >> The core of this piece of script uses the Mouse.GetCursorPos and >> Object.HitTest functions to implement two user confirmation buttons. >> It can be easily adapted for more buttons. Also, instead of using the >> boundaries of a slide element (i.e. text or image), you can also make >> your own hit-test function. >> >> cheers, >> Paul Groot >> >> 2011/12/19 Richard Carvey : >> >> >> >> > Hi, >> >> > I'm trying to build an experiment in which nine items are displayed on >> > screen, and participants need to select one fo them using the mouse. I >> > have seen a couple of people mention issues with clicks anywhere on >> > screen being registered as responses, but I would like to make sure >> > that only clicks within the bounds of the nine items are accepted, and >> > that the specific item clicked is logged. Clicking any of the nine >> > items should advanc the program, no one answer is correct or >> > incorrect. >> >> > If anybody could offer me some advice on how to achieve this, it would >> > be greatly appreciated. Annoyingly, whoever installed E-Prime (1.2, >> > btw) on this computer saw fit not install the help functions correctly/ >> > at all. >> >> > Thanks, >> >> > Richard >> >> > -- >> > 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.- Hide quoted text - >> >> - Show quoted text - > > -- > 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 mtfujii at gmail.com Wed Jan 11 03:16:27 2012 From: mtfujii at gmail.com (Fuji Mountain) Date: Tue, 10 Jan 2012 19:16:27 -0800 Subject: Display visual stimuli Message-ID: Hi. How do we display 3 visual stimuli on the screen concurrently that flashes at 11Hz, 16Hz, and 19Hz? Is this possible to achieve in E- prime? Would the frequencies be steady and reliable? The visual stimuli I've in mind are made up of images. Not a canvas draw with text or polygons. But actual images e.g. a visual stimulus that flashes between a green car and a red car. 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 mcfarla9 at msu.edu Thu Jan 12 16:46:41 2012 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 12 Jan 2012 11:46:41 -0500 Subject: Display visual stimuli In-Reply-To: <8df144d5-e346-42c5-98d1-d4b22d69a73c@z19g2000vbe.googlegro ups.com> Message-ID: Stock reminder: 1) I do not work for PST. 2) PST's trained staff take 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) In addition, PST takes questions at their Facebook page (http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 ), and offers several instructional videos there and on their YouTube channel (http://www.youtube.com/user/PSTNET ) (no Twitter feed yet, though). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... This has been discussed. Please see the thread at http://groups.google.com/group/e-prime/browse_thread/thread/f929f804ceb5a557 , which in turn will direct you to an even earlier thread. Good luck, -- David McFarlane At 1/10/2012 10:16 PM Tuesday, you wrote: >How do we display 3 visual stimuli on the screen concurrently that >flashes at 11Hz, 16Hz, and 19Hz? Is this possible to achieve in E- >prime? Would the frequencies be steady and reliable? The visual >stimuli I've in mind are made up of images. Not a canvas draw with >text or polygons. But actual images e.g. a visual stimulus that >flashes between a green car and a red car. -- 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 nforrin at gmail.com Mon Jan 16 19:03:35 2012 From: nforrin at gmail.com (Noah Forrin) Date: Mon, 16 Jan 2012 11:03:35 -0800 Subject: Comprising a new study list based on incorrect responses. Message-ID: Hello, I'm an Eprime novice and would greatly appreciate any help! I'm programming a memory study as follows: Study List 1: Subjects study 40 words. Recognition List: Consistent of both studied and new words. Subjects are instructed to press 'm' if the word was studied or 'c' if it's new. Study List 2: Comprised only of incorrect responses to the Recognition List items. So for each incorrect response on the Recognition List, I'd like that word to be transfered over to Study List 2, which subjects will be shown after the Recognition List is finished. Does anyone know how this last part (i.e., transferring a word from one list to another following an incorrect response) could be accomplished? Thanks, Noah -- 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 Jan 16 19:14:29 2012 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 16 Jan 2012 14:14:29 -0500 Subject: Comprising a new study list based on incorrect responses. In-Reply-To: <59729258-3594-45f3-bb9c-7b800d7b0a79@u32g2000yqe.googlegro ups.com> Message-ID: Noah, Stock reminder: 1) I do not work for PST. 2) PST's trained staff take 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) In addition, PST takes questions at their Facebook page (http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 ), and offers several instructional videos there and on their YouTube channel (http://www.youtube.com/user/PSTNET ) (no Twitter feed yet, though). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... I don't know the best way to do this, but the PST web site does have a "Study-Recall" example that you could download to start this. Just bear in mind that PST programmers often use sloppy and poor programming practices in their examples, so take them as starting points for thought, not programming models for emulation. They do at least provide actual working examples, so they get credit for that. And since you are a beginner, you might also see my essays at http://groups.google.com/group/e-prime/browse_thread/thread/5425e03968cab428 and http://groups.google.com/group/e-prime/browse_thread/thread/b0ce54870b723fc3 . -- David McFarlane At 1/16/2012 02:03 PM Monday, you wrote: >Hello, > >I'm an Eprime novice and would greatly appreciate any help! > >I'm programming a memory study as follows: > >Study List 1: Subjects study 40 words. > >Recognition List: Consistent of both studied and new words. Subjects >are instructed to press 'm' if the word was studied or 'c' if it's >new. > >Study List 2: Comprised only of incorrect responses to the Recognition >List items. > >So for each incorrect response on the Recognition List, I'd like that >word to be transfered over to Study List 2, which subjects will be >shown after the Recognition List is finished. > >Does anyone know how this last part (i.e., transferring a word from >one list to another following an incorrect response) could be >accomplished? > >Thanks, >Noah -- 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 alicerancai at gmail.com Mon Jan 23 17:39:22 2012 From: alicerancai at gmail.com (Alice Cai) Date: Mon, 23 Jan 2012 09:39:22 -0800 Subject: Research Assistant in E-prime Message-ID: Hi, I was wondering if anyone would be interested in a Research Assistant post at University College London? We're looking for someone who can program experiments by using E-prime (e.g, be able write scripts using E-basics). Please visit the link below if you're interested: https://atsv7.wcn.co.uk/search_engine/jobs.cgi?owner=5041416&ownertype=fair&jcode=1228381&vt_template=965&adminview=1 Thanks, Alice -- 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 ahafri at gmail.com Mon Jan 23 19:25:28 2012 From: ahafri at gmail.com (Alon Hafri) Date: Mon, 23 Jan 2012 11:25:28 -0800 Subject: modifying Z-order of slide images at runtime Message-ID: Hi everyone, It's quite easy to change Z-order before runtime with the GUI (bring to front, send to back, etc.), but I'd like to modify the Z-order of slide images at runtime via some InLine script. Anyone have any tips? A related post last year on the E-Prime User Forum did not result in an answer (http://support.pstnet.com/forum/Topic5308-12-1.aspx? Update=1) so I'm soliciting your help. Thanks in advance! Alon -- 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 ababajani2 at gmail.com Tue Jan 24 00:22:59 2012 From: ababajani2 at gmail.com (abbas) Date: Mon, 23 Jan 2012 16:22:59 -0800 Subject: re-generate the ".es2" file with new parameters Message-ID: Hi, I am trying to use E-Prime 2.0 for a Working Memory (WM) task to be used in fMRI with multiple runs. Each run of the WM task contains about 80 different images. There will be 10 runs and images used in runs are different. I have written the E-Prime script (.es2) for the first run and would like to find an automatic method to re-generate the ".es2" files for other runs based on the ".es2" of the first run (without openning and editing ".es2" in E-Studio). I was thinking to read the ".es2" file of the first run as a text in, for example, MATLAB and rename all "*.jpg" images on it to new names and then save it as a new file. But as the ".es2" is not formatted as text, I cannot do that. I appreciate it if anyone let me know a solution to automatically re- generate the ".es2" file with new parameters, e.g., name of images, without opening it in E-Studio. Thank you, Abbas -- 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 jelman523 at gmail.com Wed Jan 25 01:02:05 2012 From: jelman523 at gmail.com (Jeremy Elman) Date: Tue, 24 Jan 2012 17:02:05 -0800 Subject: resetting the sampling of a nested list Message-ID: Hello, I am currently having trouble with the sampling of a nested list that contains more items than the list calling on it. Here is the basic setup: DetailTestList1: 150 items. Each row contains a description of a picture and 6 true/false detail pairs (details are matched such that pair 1 has a true column and a false column, and so on). This list is randomly selected and calls on DetailTestProc which contains the list below. DetailList1: This list takes the sampled item from above and selects one detail from each pair sequentially until it works through 6 pairs. Each row corresponds to a detail pair the will be displayed on a slide. We would like for it to randomly present either the True or the False detail with one constraint: one type of detail (True or False) can only be chosen a minimum of 2 times and a maximum of 4 times for each item selected from DetailTestList1. The DetailPair field is filled in by a nested list to determine if a True or False detail is chosen, and this in turn grabs either the True or False pairmate from the list above which is displayed on a slide. In order to do this, we nested the following table: TrueFalseList: This list has 8 rows, 4 True and 4 False. We'd like the list above (DetailList1) to sample 6 of these 8 rows and then reset. Ideally, Each selection from DetailTestList1 would move on to DetailList1 where 6 details are presented. Whether or not they are True or False depends on sampling 6 items from TrueFalseList. This completes the loop and another item from DetailTestList1 can be chosen with the sampling from TrueFalseList reset. Unfortunately, TrueFalseList seems to be sampled 8 times, even when I set it to reset/exit after 6 samples. Any ideas on what parameters or set-up I should change? Thanks for your help, Jeremy -- 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 d.vinson at ucl.ac.uk Wed Jan 25 15:58:49 2012 From: d.vinson at ucl.ac.uk (David Vinson) Date: Wed, 25 Jan 2012 15:58:49 +0000 Subject: problem displaying grayscale images Message-ID: Hi all, I'm using E-Prime 2.0 Pro to display some 8-bit grayscale images, and there are constant display artifacts where certain pixels appear white rather than their "correct" grayscale value, but the images are displayed fine otherwise. These images are displayed at their original dimensions (ie no stretch), via a simple ImageDisplay object with a relatively long duration. I've tried these on a few different machines and it happens reliably across different hardware, using different display resolutions, different timing etc. These artifacts are not apparent when previewing the images in other graphics packages, so it's not simply that my images have become corrupted. It seems to be the same pixels every time, and there is sure to be a very simple explanation I'm somehow overlooking? Anyone? [Yes I realise this is a perfect query for E-Prime Support staff. But I bet I'll get a quicker answer this way]. Thanks! -dv -- David Vinson, Ph.D. Senior Postdoctoral Researcher Cognitive, Perceptual and Brain Sciences Research Department University College London 26 Bedford Way, London WC1H 0AP Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) -- 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 D.Moore at bath.ac.uk Wed Jan 25 16:00:59 2012 From: D.Moore at bath.ac.uk (David Moore) Date: Wed, 25 Jan 2012 16:00:59 +0000 Subject: time limit for task Message-ID: Dear e-primers, I am generating an experiment in which participants have to perform on of two tasks and they choose when to do each. The task however needs to last exactly 10 minutes and I dont seem to be able to work out how to force e-prime to have a time limit, if participants could see there time remaining as well that would be perfect. Best David -- 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 josealejandro.aristizabalc at gmail.com Wed Jan 25 18:19:07 2012 From: josealejandro.aristizabalc at gmail.com (Jose Alejandro Aristizabal C) Date: Wed, 25 Jan 2012 19:19:07 +0100 Subject: code msgbox Message-ID: Hi people I have a msgbox, what appears in the centre of the screen. Can I switch msgbox, what not appear in the centre.? What code in basic, I must to use ? Thanks -- 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 d.vinson at ucl.ac.uk Wed Jan 25 18:31:37 2012 From: d.vinson at ucl.ac.uk (David Vinson) Date: Wed, 25 Jan 2012 18:31:37 +0000 Subject: problem displaying grayscale images In-Reply-To: <4F2026B9.70809@ucl.ac.uk> Message-ID: Well, we figured out our problem but I thought I'd share it with the list anyway, just in case anyone else makes the same silly mistake. It turns out we had set the ImageDisplay "Use Source Color Key" = Yes and Source Color Key = gray. So any pixels matching the source color key (gray in this case) were not displayed. Switching this off solved the problem. -dv On 25/01/2012 15:58, David Vinson wrote: > Hi all, > > I'm using E-Prime 2.0 Pro to display some 8-bit grayscale images, and > there are constant display artifacts where certain pixels appear white > rather than their "correct" grayscale value, but the images are > displayed fine otherwise. > > These images are displayed at their original dimensions (ie no > stretch), via a simple ImageDisplay object with a relatively long > duration. > > I've tried these on a few different machines and it happens reliably > across different hardware, using different display resolutions, > different timing etc. These artifacts are not apparent when previewing > the images in other graphics packages, so it's not simply that my > images have become corrupted. > > It seems to be the same pixels every time, and there is sure to be a > very simple explanation I'm somehow overlooking? Anyone? > > [Yes I realise this is a perfect query for E-Prime Support staff. But > I bet I'll get a quicker answer this way]. > > Thanks! > -dv > -- David Vinson, Ph.D. Senior Postdoctoral Researcher Cognitive, Perceptual and Brain Sciences Research Department University College London 26 Bedford Way, London WC1H 0AP Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) -- 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 cintiablank at gmail.com Wed Jan 25 19:43:57 2012 From: cintiablank at gmail.com (Cintia Blank) Date: Wed, 25 Jan 2012 11:43:57 -0800 Subject: Difficulties running ANT (Attentional Network Test) and Task Switching Paradigm Message-ID: Hello! I am writing to report the difficulties I am having to run both the ANT (Attentional Network Test) and Task Switching Paradigm. I have the scripts of both tests, and they seem to be complete. Anyway, when I try to run them, I receive the following messages: TASK SWITCHING PARADIGM: (Both versions) Device name: SRBOX Error: 0x00004a46 Message: unable to open this SRBOX: 0x00000103 Obs.: however, the device looks properly installed and working. ATTENTIONAL NETWORK TEST: Device Name: Display Error: 0x000003ec Message: unable to set display mode: 0x80004001 The e-prime version I have is 1.2 and I am using Windows 7. If there is someone who can help me with that, please send me an e- mail address so that I can send you the scripts. Thanks a lot. Cíntia -- 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 sovspape at cognitology.eu Wed Jan 25 20:32:15 2012 From: sovspape at cognitology.eu (MSpape) Date: Wed, 25 Jan 2012 12:32:15 -0800 Subject: problem displaying grayscale images In-Reply-To: <4F204A89.6070500@ucl.ac.uk> Message-ID: Hi, Dammit, so happy I was to suggest something, should have read newer messages first! Sorry about that, but well found... Best, Mich ------------ Hi, Two things, but sadly I cannot replicate your bug (if it is such), as I'm still lacking in E-Prime: * Have you tried converting the images to regular (what is it, 32 bit?) bmps? It might well be that E-Prime does not use 128 colours grayscale (8 bit) but 128 colours coloured decoding, which would result in far fewer colours for gray (perhaps about 8, which isn't a lot if you include white and black!). Recoding the pictures in maximal bitrate should help. * Is your screen set to 16 bit (E-Prime default) instead of 32 bit? The former is recommended since time immemorial, but we do remember that PCs were much less able to decode fast (so that decoding time would result in latency). It used to be thought of as 'optimising' to run your videocard 32-bit style, but (or so I've heard), there are so few people actually using that now that videocards themselves are optimised for 32-bit, resulting at best in equal performance for 16- bit, and possible even slower (for useless conversion). Anyway, I'd suggest changing the 16-bit in E-Prime to 32-bit - I assume it won't hurt! Best, Mich (back from being a gentleman of leisure) Research fellow Helsinki Institute for Information Technology Finland On Jan 25, 8:31 pm, David Vinson wrote: > Well, we figured out our problem but I thought I'd share it with the > list anyway, just in case anyone else makes the same silly mistake. > > It turns out we had set the ImageDisplay "Use Source Color Key" = Yes > and Source Color Key = gray.  So any pixels matching the source color > key (gray in this case) were not displayed.  Switching this off solved > the problem. > > -dv > > On 25/01/2012 15:58, David Vinson wrote: > > > > > > > Hi all, > > > I'm using E-Prime 2.0 Pro to display some 8-bit grayscale images, and > > there are constant display artifacts where certain pixels appear white > > rather than their "correct" grayscale value, but the images are > > displayed fine otherwise. > > > These images are displayed at their original dimensions (ie no > > stretch), via a simple ImageDisplay object with a relatively long > > duration. > > > I've tried these on a few different machines and it happens reliably > > across different hardware, using different display resolutions, > > different timing etc. These artifacts are not apparent when previewing > > the images in other graphics packages, so it's not simply that my > > images have become corrupted. > > > It seems to be the same pixels every time, and there is sure to be a > > very simple explanation I'm somehow overlooking?  Anyone? > > > [Yes I realise this is a perfect query for E-Prime Support staff. But > > I bet I'll get a quicker answer this way]. > > > Thanks! > > -dv > > -- > David Vinson, Ph.D. > Senior Postdoctoral Researcher > Cognitive, Perceptual and Brain Sciences Research Department > University College London > 26 Bedford Way, London WC1H 0AP > Tel +44 (0)20 7679 5311  (UCL internal ext. 25311)- Hide quoted text - > > - Show quoted text - -- 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 sovspape at cognitology.eu Wed Jan 25 20:33:03 2012 From: sovspape at cognitology.eu (MSpape) Date: Wed, 25 Jan 2012 12:33:03 -0800 Subject: Difficulties running ANT (Attentional Network Test) and Task Switching Paradigm In-Reply-To: <80409fd7-5a40-49da-b16d-850476558673@k28g2000yqn.googlegroups.com> Message-ID: Hi, 1) Is your SRBox working with /other/ experiments? Is the COM port correctly set in the experiment? Have a look to see if you can make a simple infinite duration screen in a blank experiment run, with the SRBox set as response box and see whether that works. If that works, see what the difference is with the script for your TS paradigm. 2) Does your monitor support 640x480 resolution? They do not necessarily any more... Your ANT test presumably requires this and this resolution at this and this refreshrate, or your timing will not be as you report it. Many older scripts were set up to work for CRT screens, they do not necessarily work for TFT ones. In any case, I'd suggest diving a bit deeper into the script. Somebody over there, be it a technician or PhD student or whatever, who knows both E-Prime AND the equipment, needs to have a look. Somebody here can make it run as well, I'm sure, but you run a heavy risk of not knowing exactly what is happening. Best, Mich On Jan 25, 9:43 pm, Cintia Blank wrote: > Hello! > I am writing to report the difficulties I am having to run both the > ANT (Attentional Network Test) and Task Switching Paradigm. I have the > scripts of both tests, and they seem to be complete. Anyway, when I > try to run them, I receive the following messages: > > TASK SWITCHING PARADIGM: (Both versions) > > Device name: SRBOX > Error: 0x00004a46 > Message: unable to open this SRBOX: 0x00000103 > > Obs.: however, the device looks properly installed and working. > > ATTENTIONAL NETWORK TEST: > > Device Name: Display > Error: 0x000003ec > Message: unable to set display mode: 0x80004001 > > The e-prime version I have is 1.2 and I am using Windows 7. > If there is someone who can help me with that, please send me an e- > mail address so that I can send you the scripts. > > Thanks a lot. > Cíntia -- 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 sovspape at cognitology.eu Wed Jan 25 20:33:39 2012 From: sovspape at cognitology.eu (MSpape) Date: Wed, 25 Jan 2012 12:33:39 -0800 Subject: time limit for task In-Reply-To: <3698ED32A6AF7FD03A64A2FF@mppc-116-lab-04.campus.bath.ac.uk> Message-ID: Hi, Okay, checked for newer messages, this has not been solved, correct? Place your experiment in a list. Any list, even if it has only one level. See the option for exit-list after... and change to 10 minutes. Sorted? Now, if you want to display changing stuff, in E-prime, be prepared for hardship, as it isn't E-Prime's forte. For instance, before the experiment, place Dim ExperimentStarted as Long ...in the global script place (alt+5). Place ExperimentStarted = Clock.Read ...in an inline just before the aforementioned list Then, at any point you want to review how much time there is left, you could say something like: C.SetAttrib "SecondsLeft" = (10 * 60 * 1000 - (Clock.Read - ExperimentStarted))/1000 And voila, you have an attribute with the number of seconds left, which you can place at any point in time on some TextDisplay in a slide or something. However, it will only update if you repeat that line. I'll leave you to that. Best, Mich On Jan 25, 6:00 pm, David Moore wrote: > Dear e-primers, > > I am generating an experiment in which participants have to perform on of > two tasks and they choose when to do each. The task however needs to last > exactly 10 minutes and I dont seem to be able to work out how to force > e-prime to have a time limit, if participants could see there time > remaining as well that would be perfect. > > Best > David -- 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 D.Moore at bath.ac.uk Thu Jan 26 12:35:30 2012 From: D.Moore at bath.ac.uk (David Moore) Date: Thu, 26 Jan 2012 12:35:30 +0000 Subject: time limit for task In-Reply-To: Message-ID: Hi Mich, Thank you very much for your help. There are two small problems that I am still having. I have the experiment set up with two procedures coming from one this one running one task and one running the other. After the end of each trial the following script is run If Decresp.resp= 1 then goto Label1 If Decresp.resp= 2 then goto Label2 This either takes them back to before the trial again to stay put of ends the trial and starts the other task. Therefore by by setting the end time as 10 minutes in the overall list it will only exit after the participant chooses to change the task. I was therefore wondering if there was some script that can end it more immediately at 10 minutes. Also I have put in the script for the time however it does not seem be displayed on the slide I have put a text display with [SecondsLeft] in it however is says there is no such attribute. Thank you again David --On 25 January 2012 12:33 -0800 MSpape wrote: > Hi, > Okay, checked for newer messages, this has not been solved, correct? > Place your experiment in a list. Any list, even if it has only one > level. See the option for exit-list after... and change to 10 minutes. > Sorted? > Now, if you want to display changing stuff, in E-prime, be prepared > for hardship, as it isn't E-Prime's forte. For instance, before the > experiment, place Dim ExperimentStarted as Long ...in the global > script place (alt+5). Place ExperimentStarted = Clock.Read ...in an > inline just before the aforementioned list Then, at any point you want > to review how much time there is left, you could say something like: > C.SetAttrib "SecondsLeft" = (10 * 60 * 1000 - (Clock.Read - > ExperimentStarted))/1000 And voila, you have an attribute with the > number of seconds left, which you can place at any point in time on > some TextDisplay in a slide or something. However, it will only update > if you repeat that line. I'll leave you to that. > > Best, > Mich > > > On Jan 25, 6:00 pm, David Moore wrote: >> Dear e-primers, >> >> I am generating an experiment in which participants have to perform on of >> two tasks and they choose when to do each. The task however needs to last >> exactly 10 minutes and I dont seem to be able to work out how to force >> e-prime to have a time limit, if participants could see there time >> remaining as well that would be perfect. >> >> Best >> David > > -- > 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 linda.toscani at gmail.com Thu Jan 26 22:59:23 2012 From: linda.toscani at gmail.com (Linda T) Date: Thu, 26 Jan 2012 14:59:23 -0800 Subject: stimuli position Message-ID: Hi, I changed the pc I use to run my experiment. So I have a different screen with a different resolution now. I changed the resolution of my experiment in properties: experiment properties object experiment. The instruction and the fixation cross are in the right place on the screen now (for this things I employed text display). I have some problems with the stimuli that come after. I have two images on a slide and they are not in the middle of the screen. The two images have the same coordinates and they are in the same position (between each others) in comparison to my old experiment. I think that I have a problem with my slide not with the stimuli that I have on the slide. I don't want to replace the two images in the right place manually because I can't put any changes in my experiment. Maybe it is a problem of the resolution of the slide. What can I do? I hope to be clear. Thanks LT -- 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 lundwall.becky at gmail.com Fri Jan 27 18:59:44 2012 From: lundwall.becky at gmail.com (BeckyL) Date: Fri, 27 Jan 2012 10:59:44 -0800 Subject: creating an oscillating bar using an inline element Message-ID: I am trying to use the pstnet a modification of the sample "Simple Animation/Apparent Motion Example" and to create a new task. I have EP 2 and am using Windows XP. I have tried using the E-prime Reference Guide and Online E-Basic help but they are not specific enough to solve the problem below with my code. I am having trouble getting the line to move horizontally instead of diagonally up and right (eventually I want it to oscillate in place instead of move off the screen, but that is another step). ORIGINAL CODE 'Loop continuously until the lines are off screen. Do Until y1 = 30 'Increment and decrement coordinates. x1 = x1 + 1 y1 = y1 - 1 'Wait until the screen refreshes to avoid partial displays. Display.WaitForVerticalBlank 'Clear the screen and draw the new lines. cnvs.Clear cnvs.Line x1, y1, x1, y1 + lineLen Loop Logically, it seems that the next step would be to specify that x1 = x1 + 1 but y1 remain at 50 (or that y1 = y1). This works for the first trial but crashes for the second trial. Could someone please give more guidance on specifying coordinates for movement? 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 d.vinson at ucl.ac.uk Sun Jan 29 12:58:58 2012 From: d.vinson at ucl.ac.uk (Vinson, David) Date: Sun, 29 Jan 2012 12:58:58 +0000 Subject: creating an oscillating bar using an inline element In-Reply-To: Message-ID: Hi BeckyL, It looks like your main assumption is correct - holding y1 constant rather than varying it along with x1 should produce horizontal motion in the Simple Animation example. If it works on the first trial it's not a complete failure but may have something to do with changes in values from one trial to the next. My guess is that there's something amiss with your treatment of y1 outside of the assignment to a constant value. Perhaps the exit condition is never met: as in the code below, y1 will never reach 30 if you get rid of (y1 = y1 - 1). So it will run fine, until x1 reaches the edge of the screen in which case it will either crash (display of negative values for x may break it) or hang (because it is no longer drawing anything visible). If this is the case, changing the exit condition so it's based on the value of x1 should sort things out. another possibility is the assignment of values to y1. Check to make sure that indeed y1 is assigned the value you want, and that this value persists across trials. The simplest way to test this out is to set the value of y1 immediately before the loop (although this is not good programming practice, it's a clear way to be sure that y1 has the desired value). In cases like these I find it's useful to employ the debug.print function as part of the inline code - for example here displaying the value of x1,y1 to the output window while the experiment is running. hope this helps! david ________________________________________ From: e-prime at googlegroups.com [e-prime at googlegroups.com] on behalf of BeckyL [lundwall.becky at gmail.com] Sent: 27 January 2012 18:59 To: E-Prime Subject: creating an oscillating bar using an inline element I am trying to use the pstnet a modification of the sample "Simple Animation/Apparent Motion Example" and to create a new task. I have EP 2 and am using Windows XP. I have tried using the E-prime Reference Guide and Online E-Basic help but they are not specific enough to solve the problem below with my code. I am having trouble getting the line to move horizontally instead of diagonally up and right (eventually I want it to oscillate in place instead of move off the screen, but that is another step). ORIGINAL CODE 'Loop continuously until the lines are off screen. Do Until y1 = 30 'Increment and decrement coordinates. x1 = x1 + 1 y1 = y1 - 1 'Wait until the screen refreshes to avoid partial displays. Display.WaitForVerticalBlank 'Clear the screen and draw the new lines. cnvs.Clear cnvs.Line x1, y1, x1, y1 + lineLen Loop Logically, it seems that the next step would be to specify that x1 = x1 + 1 but y1 remain at 50 (or that y1 = y1). This works for the first trial but crashes for the second trial. Could someone please give more guidance on specifying coordinates for movement? 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. -- 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 rzimmerlxch at gmail.com Sun Jan 29 22:24:33 2012 From: rzimmerlxch at gmail.com (Robert Zimmerman) Date: Sun, 29 Jan 2012 14:24:33 -0800 Subject: Presenting 2 stimuli simultaneously (with different durations) Message-ID: I am new to using E-Prime, and in charge of programming studies for a small lab that does not have much knowledge of the program in general. We are trying to program a visual hemifield experiment in which an item will be presented either to the left or the right of a fixation point. We want the fixation point ("+") to come on-screen 500ms BEFORE the item, remain on screen while the item is presented, and remain on screen after the item clears for another 2000ms. Does anybody know if it is possible to do this with 2 events, a fixation event and a target item event, which overlap? Or will I need to set up 3 events, fixation for 500ms, followed by item with fixation for 175ms, followed by fixation for 2000ms, presented serially? Any help is much 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 Mon Jan 30 12:42:23 2012 From: liwenna at gmail.com (liwenna) Date: Mon, 30 Jan 2012 04:42:23 -0800 Subject: Presenting 2 stimuli simultaneously (with different durations) In-Reply-To: Message-ID: Hi Robert, The latter solution is what I always use, three slides: fixation, stimuli and intertrialinterval. I'd say that according to e-prime logic this is a more sensible setup than trying to have items from one slide (event) remain while a next slide starts. Also: you might find that 'an e-primer' by Spapé en Verdonschot is an useful starting point for getting a grip on e-prime's machinations ;) You can download it here: step.psy.cmu.edu/materials/EPrimer.pdf . Best, AW On Jan 29, 11:24 pm, Robert Zimmerman wrote: > I am new to using E-Prime, and in charge of programming studies for a > small lab that does not have much knowledge of the program in general. > We are trying to program a visual hemifield experiment in which an > item will be presented either to the left or the right of a fixation > point. We want the fixation point ("+") to come on-screen 500ms BEFORE > the item, remain on screen while the item is presented, and remain on > screen after the item clears for another 2000ms. Does anybody know if > it is possible to do this with 2 events, a fixation event and a target > item event, which overlap? Or will I need to set up 3 events, fixation > for 500ms, followed by item with fixation for 175ms, followed by > fixation for 2000ms, presented serially? Any help is much 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 Mon Jan 30 12:50:54 2012 From: liwenna at gmail.com (liwenna) Date: Mon, 30 Jan 2012 04:50:54 -0800 Subject: stimuli position In-Reply-To: Message-ID: Hi Linda, That sounds frustrating to say the least :p Could it be that the position of the image-objects are defined in pixels and not in % (i.e. a simple numeric value like 300 in the x/y boxes, rather than 25% or something the like?). If that is the case then e-prime defines the location of the objects as a set number of pixels from the topleft corner of the display. Telling e-prime that the display has grown (or shrunken) will not make it change the number of pixels at which it locates the object and thus the object will have moved to a relatively different position on the display. Why is it not possible to make adjustments to the experiment? Because you're in the middle of running it? If that's the case then I'd would certainly not switch displays and continue at the old one, unless it's broken, in that case try to find one that is as similar as possible :s best, AW On Jan 26, 11:59 pm, Linda T wrote: > Hi, > > I changed the pc I use to run my experiment. So I have a different > screen with a different resolution now. > I changed the resolution of my experiment in properties: experiment > properties object experiment. The instruction and the fixation cross > are in the right place on the screen now (for this things I employed > text display). I have some problems with the stimuli that come after. > I have two images on a slide and they are not in the middle of the > screen. The two images have the same coordinates and they are in the > same position (between each others) in comparison to my old > experiment. I think that I have a problem with my slide not with the > stimuli that I have on the slide. I don't want to replace the two > images in the right place manually because I can't put any changes in > my experiment. Maybe it is a problem of the resolution of the slide. > What can I do? > I hope to be clear. > > Thanks > > LT -- 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 Mon Jan 30 13:12:10 2012 From: liwenna at gmail.com (liwenna) Date: Mon, 30 Jan 2012 05:12:10 -0800 Subject: re-generate the ".es2" file with new parameters In-Reply-To: <390cda28-c554-4ff0-8c38-0823a0bdc9af@b23g2000yqn.googlegroups.com> Message-ID: Hi Abbas, Nope, as far as I am aware that is not possible. What you can do however, is build an .es2 file that doesn't yet contain the imagenames and that will 'load in' images from .txt files (and different .txt files could be used based on settings like 'group' or 'subjectnumber'. Have a look in this thread (http://groups.google.com/group/e-prime/ browse_thread/thread/796a659358219e31/ca5a6ac346ccc3d8? #ca5a6ac346ccc3d8) for some pointers on how to start doing that. Best, liw On Jan 24, 1:22 am, abbas wrote: > Hi, > > I am trying to use E-Prime 2.0 for a Working Memory (WM) task to be > used in fMRI with multiple runs. Each run of the WM task contains > about 80 different images. There will be 10 runs and images used in > runs are different. I have written the E-Prime script (.es2) for the > first run and would like to find an automatic method to re-generate > the ".es2" files for other runs based on the ".es2" of the first run > (without openning and editing ".es2" in E-Studio). I was thinking to > read the ".es2" file of the first run as a text in, for example, > MATLAB and rename all "*.jpg" images on it to new names and then save > it as a new file. But as the ".es2" is not formatted as text, I cannot > do that. > > I appreciate it if anyone let me know a solution to automatically re- > generate the ".es2" file with new parameters, e.g., name of images, > without opening it in E-Studio. > > Thank you, > Abbas -- 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 brieana.viscomi at gmail.com Mon Jan 30 15:53:49 2012 From: brieana.viscomi at gmail.com (Brieana) Date: Mon, 30 Jan 2012 07:53:49 -0800 Subject: using mouse scroll as response device for a sliding scale Message-ID: Hi everyone, I am trying to create a sliding scale that can be used by participants to place a bid from $0-50 with a mouse scroll. The inline scripts that I am using I found in a PST support forum post and just changed the parameters to fit my needs. However, I just found out that the facility I will be conducting the fMRI study in does not have a compatible keypad device so I have to switch the response device to a mouse. Does anyone know of how I can change the inline script(s) such that a scroll up would mean scrolling through values greater than 50 and scrolling down would mean scrolling through values lesser than 50? Thanks for the read and for the help! Brieana -- 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 brieana.viscomi at gmail.com Mon Jan 30 15:56:14 2012 From: brieana.viscomi at gmail.com (Brieana) Date: Mon, 30 Jan 2012 07:56:14 -0800 Subject: using mouse scroll as response device for a sliding scale In-Reply-To: Message-ID: Oops, my bad. Below is the code for each of the two inline scripts: 'InitializeTrial' inlinescript: 'Designate "theSlide" as the current Slide Dim theSlide As Slide Set theSlide = VASSlide 'Designate "theState" as the Default Slide State, which is the 'current, ActiveState on theSlide Dim theState as SlideState Set theState = theSlide.States("Default") 'Gain access to the SlideCursor SlideText. Dim Drag1 As SlideText Set Drag1 = CSlideText(theState.Objects("SlideCursor")) Drag1.X = "55%" Dim theRating As SlideText Set theRating = CSlideText(theState.Objects("Rating")) theRating.X = "55%" theRating.Text = "" -------------------------- 'ChangeScale' inline script: Dim nCurrentScore As Integer nCurrentScore = 25 Dim nResponseCount As Integer Dim theKeyboardResponseData As KeyboardResponseData Do While theSlide.InputMasks.IsPending() 'Was there a response? If theSlide.InputMasks.Responses.Count > nResponseCount Then nResponseCount = nResponseCount + 1 Set theKeyboardResponseData = CKeyboardResponseData(theSlide.InputMasks.Responses(nResponseCount)) 'Move cursor/change score If theKeyboardResponseData.RESP = "{RIGHTARROW}" Then 'Check for top of scale If nCurrentScore <= 49 Then nCurrentScore = nCurrentScore + 1 Else Debug.Print "top of scale" End If Else 'Check for bottom of scale If nCurrentScore > 0 Then nCurrentScore = nCurrentScore - 1 Else Debug.Print "bottom of scale" End If End If 'Update the slider (adjusted by 5%) and rating feedback Drag1.X = CInt(nCurrentScore * 2) -.8 & "%" theRating.Text = nCurrentScore theSlide.Draw Sleep 1 End If Loop c.SetAttrib "Rating", nCurrentScore -------- Thanks. On Jan 30, 10:53 am, Brieana wrote: > Hi everyone, > > I am trying to create a sliding scale that can be used by participants > to place a bid from $0-50 with a mouse scroll. The inline scripts that > I am using I found in a PST support forum post and just changed the > parameters to fit my needs.  However, I just found out that the > facility I will be conducting the fMRI study in does not have a > compatible keypad device so I have to switch the response device to a > mouse.  Does anyone know of how I can change the inline script(s) such > that a scroll up would mean scrolling through values greater than 50 > and scrolling down would mean scrolling through values lesser than > 50? > > Thanks for the read and for the help! > > Brieana -- 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 Tue Jan 31 00:55:10 2012 From: lml1934 at gmail.com (lml1934 at gmail.com) Date: Tue, 31 Jan 2012 00:55:10 +0000 Subject: creating an oscillating bar using an inline element In-Reply-To: Message-ID: Another option. Create an animation in Final Cut save as an .avi file and run as a movie. Much easier for placement on the screen. Sent from my Verizon Wireless BlackBerry -----Original Message----- From: "Vinson, David" Sender: e-prime at googlegroups.com Date: Sun, 29 Jan 2012 12:58:58 To: e-prime at googlegroups.com Reply-To: e-prime at googlegroups.com Subject: RE: creating an oscillating bar using an inline element Hi BeckyL, It looks like your main assumption is correct - holding y1 constant rather than varying it along with x1 should produce horizontal motion in the Simple Animation example. If it works on the first trial it's not a complete failure but may have something to do with changes in values from one trial to the next. My guess is that there's something amiss with your treatment of y1 outside of the assignment to a constant value. Perhaps the exit condition is never met: as in the code below, y1 will never reach 30 if you get rid of (y1 = y1 - 1). So it will run fine, until x1 reaches the edge of the screen in which case it will either crash (display of negative values for x may break it) or hang (because it is no longer drawing anything visible). If this is the case, changing the exit condition so it's based on the value of x1 should sort things out. another possibility is the assignment of values to y1. Check to make sure that indeed y1 is assigned the value you want, and that this value persists across trials. The simplest way to test this out is to set the value of y1 immediately before the loop (although this is not good programming practice, it's a clear way to be sure that y1 has the desired value). In cases like these I find it's useful to employ the debug.print function as part of the inline code - for example here displaying the value of x1,y1 to the output window while the experiment is running. hope this helps! david ________________________________________ From: e-prime at googlegroups.com [e-prime at googlegroups.com] on behalf of BeckyL [lundwall.becky at gmail.com] Sent: 27 January 2012 18:59 To: E-Prime Subject: creating an oscillating bar using an inline element I am trying to use the pstnet a modification of the sample "Simple Animation/Apparent Motion Example" and to create a new task. I have EP 2 and am using Windows XP. I have tried using the E-prime Reference Guide and Online E-Basic help but they are not specific enough to solve the problem below with my code. I am having trouble getting the line to move horizontally instead of diagonally up and right (eventually I want it to oscillate in place instead of move off the screen, but that is another step). ORIGINAL CODE 'Loop continuously until the lines are off screen. Do Until y1 = 30 'Increment and decrement coordinates. x1 = x1 + 1 y1 = y1 - 1 'Wait until the screen refreshes to avoid partial displays. Display.WaitForVerticalBlank 'Clear the screen and draw the new lines. cnvs.Clear cnvs.Line x1, y1, x1, y1 + lineLen Loop Logically, it seems that the next step would be to specify that x1 = x1 + 1 but y1 remain at 50 (or that y1 = y1). This works for the first trial but crashes for the second trial. Could someone please give more guidance on specifying coordinates for movement? 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. -- 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 lundwall.becky at gmail.com Tue Jan 31 13:25:42 2012 From: lundwall.becky at gmail.com (BeckyL) Date: Tue, 31 Jan 2012 05:25:42 -0800 Subject: creating an oscillating bar using an inline element In-Reply-To: <1648033958-1327971313-cardhu_decombobulator_blackberry.rim.net-1621943976-@b25.c3.bise6.blackberry> Message-ID: Thank you both for your willingness to help. I'll work on this this morning and update the group on the results as soon as possible. Just so you know, the problem with the movie option is that E-prime tends to crash when you use movies and have a Windows 7 or Vista operating system -- and we are still trying to verify that we have enough computers with XP at the remote testing site. On Jan 30, 6:55 pm, lml1... at gmail.com wrote: > Another option. Create an animation in Final Cut save as an .avi file and run as a movie. Much easier for placement on the screen. > Sent from my Verizon Wireless BlackBerry > > > > > > > > -----Original Message----- > From: "Vinson, David" > > Sender: e-prime at googlegroups.com > Date: Sun, 29 Jan 2012 12:58:58 > To: e-prime at googlegroups.com > Reply-To: e-prime at googlegroups.com > Subject: RE: creating an oscillating bar using an inline element > > Hi BeckyL, > > It looks like your main assumption is correct - holding y1 constant rather than varying it along with x1 should produce horizontal motion in the Simple Animation example.   If it works on the first trial it's not a complete failure but may have something to do with changes in values from one trial to the next. > > My guess is that there's something amiss with your treatment of y1 outside of the assignment to a constant value.  Perhaps the exit condition is never met:  as in the code below, y1 will never reach 30 if you get rid of (y1 = y1 - 1).  So it will run fine, until x1 reaches the edge of the screen in which case it will either crash (display of negative values for x may break it) or hang (because it is no longer drawing anything visible).  If this is the case, changing the exit condition so it's based on the value of x1 should sort things out. > > another possibility is the assignment of values to y1.   Check to make sure that indeed y1 is assigned the value you want, and that this value persists across trials.  The simplest way to test this out is to set the value of y1 immediately before the loop (although this is not good programming practice, it's a clear way to be sure that y1 has the desired value). > > In cases like these I find it's useful to employ the debug.print function as part of the inline code - for example here displaying the value of x1,y1 to the output window while the experiment is running. > > hope this helps! > david > ________________________________________ > From: e-prime at googlegroups.com [e-prime at googlegroups.com] on behalf of BeckyL [lundwall.be... at gmail.com] > Sent: 27 January 2012 18:59 > To: E-Prime > Subject: creating an oscillating bar using an inline element > > I am trying to use the pstnet a modification of the sample "Simple > Animation/Apparent Motion Example" and to create a new task. I have EP > 2 and am using Windows XP. I have tried using the E-prime Reference > Guide and Online E-Basic help but they are not specific enough to > solve the problem below with my code. I am having trouble getting the > line to move horizontally instead of diagonally up and right > (eventually I want it to oscillate in place instead of move off the > screen, but that is another step). > > ORIGINAL CODE > > 'Loop continuously until the lines are off screen. > Do Until y1 = 30 > >    'Increment and decrement coordinates. >    x1 = x1 + 1 > >    y1 = y1 - 1 > >    'Wait until the screen refreshes to avoid partial displays. >    Display.WaitForVerticalBlank > >    'Clear the screen and draw the new lines. >    cnvs.Clear > >    cnvs.Line x1, y1, x1, y1 + lineLen > > Loop > > Logically, it seems that the next step would be to specify that x1 = > x1 + 1 but y1 remain at 50 (or that y1 = y1). This works for the first > trial but crashes for the second trial. > > Could someone please give more guidance on specifying coordinates for > movement? 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 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 raghav.destiny at gmail.com Tue Jan 31 16:00:25 2012 From: raghav.destiny at gmail.com (Raghav) Date: Tue, 31 Jan 2012 08:00:25 -0800 Subject: Adding rows to the eDat file using code Message-ID: Hello ! I am using ePrime to display a series of pictures which change with a mouseclick. This is working perfectly I have a coded function that receives data from an external device (ASL 504 Pan-Tilt Eyetracker). Everytime the function is run it receives an X value and a Y value. I am able to store these values as numbers and even display them on screen. I am trying to run the above function 30 times a second during each picture display. I need the eDAT file to have a row for every time it is run (30 rows per second). Each row should have the usual stimulus related fields plus this X and Y value from my function Currently in my trial procedure, I have an inline object after the picture display and I have this code in it. This is just a simple loop that continuously receives the x and y values [quote] dim x as single, y as single do if ASL_GetPOG(x, y, true) then cnv.Text 20, 20, "Point of gaze from eye tracker" cnv.Text 20, 40, "x = " & x & " " cnv.Text 20, 60, "y = " & y & " " c.setAttrib "textDisplay1.gazePosX", x c.setAttrib “textDisplay1.gazePosY”, y end if Loop Until TextDisplay1.RT > 0 /[quote] This however just creates one row for each slide and gives me the last value of X and Y that has been received. Calling the function at regular time intervals inside the inline object does he same thing. I am able to create a string and store a long string of these X and Y values which I am able to parse through later...but an ideal case for me would be to add a row to the eDAT file everytime the function is run with X and Y values. Any help on how to accomplish this would be most helpful. I have a bit of programming experience but am extremely new to ePrime. -- 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 Jan 3 20:43:35 2012 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 3 Jan 2012 15:43:35 -0500 Subject: Correct, Incorrect and No Response: Differential Feedback Display Times In-Reply-To: <86e0c548-6cf0-4f39-962b-406242c810f8@q9g2000yqe.googlegrou ps.com> Message-ID: Brad, Stock reminder: 1) I do not work for PST. 2) PST's trained staff take 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) In addition, PST takes questions at their Facebook page (http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 ), and offers several instructional videos there and on their YouTube channel (http://www.youtube.com/user/PSTNET ) (no Twitter feed yet, though). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... You do not say how you get your feedback to show "please try to respond faster" for the no-response case, but let's assume that you use the same stimulus feedback object for each type of response, and need merely adjust its duration. In that case, you need merely add an If clause to include the no-respone case. I have documented at http://support.pstnet.com/forum/Topic2711-5-1.aspx?Highlight=problems+feedback a few ways to test for no-response with inline code, so pick one that suits you. E.g., Const DurCorrect as Integer = 1000 Const DurIncorrect as Integer = 1500 Const DurNoResponse as Integer = 2000 If (StimText.RT = 0) Then ' no response c.SetAttrib "FeedDur", DurNoResponse ElseIf StimText.ACC Then ' correct answer c.SetAttrib "FeedDur", DurCorrect Else ' incorrect answer c.SetAttrib "FeedDur", DurIncorrect End If -- David McFarlane At 12/23/2011 11:15 PM Friday, you wrote: >I am trying to program e prime to display "correct" after a correct >response for 1000 ms, and "incorrect" after an incorrect response for >1500ms. I also wish to display "please try to respond faster" for >2000 ms in the event a participant takes longer than 1500 ms to >respond to the stimulus. Thanks to a previous post, I used the >following inline to code for the correct and incorrect responses. I >have also been able to set the response time limit at 1500 ms. >However, I have been unable to determine how to set the no response >feedback display at 2000 ms. Any suggestions would be much >appreciated! > >-Brad > >Const DurCorrect as Integer = 1000 >Const DurIncorrect as Integer = 1500 >If StimText.ACC Then ' correct answer > c.SetAttrib "FeedDur", DurCorrect >Else ' incorrect answer > c.SetAttrib "FeedDur", DurIncorrect >End If -- 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 doronarbiv at gmail.com Sun Jan 8 15:34:02 2012 From: doronarbiv at gmail.com (doron arbiv) Date: Sun, 8 Jan 2012 07:34:02 -0800 Subject: inconsistent updating of error counting variable Message-ID: hello, i have a target slide,1000 mls in duration and has a 3000 mls time limit. the target slide is followed by a blank slide, 2000 mls in duration, which doesn't collect any response. after the blank slide i have a short script which says the following: elseif c.getattrib("TrialType")="FaceTarget" then if c.getattrib("Target.ACC")=0 then FaceError=FaceError+1 i present only two lines from the script, since i am only testing the "FaceTarget" trial type for now. in my test i intentionally make errors, so that the FaceError variable will reach 20 (there are 20 trials in a block). the problem is that while "Target.ACC" always shows a "0" value in the edata output file, the FaceError variable sometime fails to add "1" to itself, as it should when "Target.ACC"=0. this happens approximately twice in each block of 20 trials and i have no idea why it happens. i have some guesses. one is that maybe "Traget.ACC" is unavailable to the script following the Blank slide, so that when the condition: " if c.getattrib("Target.ACC")=0 then FaceError=FaceError+1 " appears, the "Target.ACC" attribute isn't ready for comparison. Can you please help me with this bizarre bug? -- 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 Mon Jan 9 10:17:37 2012 From: liwenna at gmail.com (liwenna) Date: Mon, 9 Jan 2012 02:17:37 -0800 Subject: inconsistent updating of error counting variable In-Reply-To: Message-ID: Hi Doron, That sounds really weird indeed. What are the conditions presented under the "If then" lines that precede the elseif then line that you presented us with? If one of those happens to be met, than the line that you're testing now will not be executed. In a similar veign: are you absolutely positive that all trials have the trialtype set to FaceTarget, with no typoes etc? You probably have, but this is the only one thing that I can think of right away that you did not yet disconfirm in your post. If none of those than I might advice you to have the actual script program at by one of your colleaguesm me or someone else from here. Best, liw On 8 jan, 10:34, doron arbiv wrote: > hello, > > i have a target slide,1000 mls in duration and has a 3000 mls time > limit. the target slide is followed by a blank slide, 2000 mls in > duration, which doesn't collect any response. after the blank slide i > have a short script which says the following: > elseif c.getattrib("TrialType")="FaceTarget" then > ? ? ?if c.getattrib("Target.ACC")=0 then FaceError=FaceError+1 > > i present only two lines from the script, since i am only testing the > "FaceTarget" trial type for now. > in my test i intentionally make errors, so that the FaceError variable > will reach 20 (there are 20 trials in a block). > the problem is that while "Target.ACC" always shows a ?"0" value in > the edata output file, the FaceError variable sometime fails to add > "1" to itself, as it should when "Target.ACC"=0. this happens > approximately twice in each block of 20 trials and i have no idea why > it happens. > > i have some guesses. one is that maybe "Traget.ACC" is unavailable to > the script following the Blank slide, so that when the condition: > " if c.getattrib("Target.ACC")=0 then FaceError=FaceError+1 " appears, > the "Target.ACC" attribute isn't ready for comparison. > Can you please help me with this bizarre bug? -- 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 hackersdady at gmail.com Tue Jan 10 07:32:55 2012 From: hackersdady at gmail.com (Hacker's Dad) Date: Tue, 10 Jan 2012 13:02:55 +0530 Subject: inconsistent updating of error counting variable In-Reply-To: Message-ID: On Mon, Jan 9, 2012 at 3:47 PM, liwenna wrote: > Hi Doron, > > That sounds really weird indeed. > > What are the conditions presented under the "If then" lines that > precede the elseif then line that you presented us with? If one of > those happens to be met, than the line that you're testing now will > not be executed. In a similar veign: are you absolutely positive that > all trials have the trialtype set to FaceTarget, with no typoes etc? > You probably have, but this is the only one thing that I can think of > right away that you did not yet disconfirm in your post. > > If none of those than I might advice you to have the actual script > program at by one of your colleaguesm me or someone else from here. > > Best, > > liw > > > > On 8 jan, 10:34, doron arbiv wrote: > > hello, > > > > i have a target slide,1000 mls in duration and has a 3000 mls time > > limit. the target slide is followed by a blank slide, 2000 mls in > > duration, which doesn't collect any response. after the blank slide i > > have a short script which says the following: > > elseif c.getattrib("TrialType")="FaceTarget" then > > if c.getattrib("Target.ACC")=0 then FaceError=FaceError+1 > > > > i present only two lines from the script, since i am only testing the > > "FaceTarget" trial type for now. > > in my test i intentionally make errors, so that the FaceError variable > > will reach 20 (there are 20 trials in a block). > > the problem is that while "Target.ACC" always shows a "0" value in > > the edata output file, the FaceError variable sometime fails to add > > "1" to itself, as it should when "Target.ACC"=0. this happens > > approximately twice in each block of 20 trials and i have no idea why > > it happens. > > > > i have some guesses. one is that maybe "Traget.ACC" is unavailable to > > the script following the Blank slide, so that when the condition: > > " if c.getattrib("Target.ACC")=0 then FaceError=FaceError+1 " appears, > > the "Target.ACC" attribute isn't ready for comparison. > > Can you please help me with this bizarre bug? > > -- > 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. > > dear user, it is global variable error use global variable your problems will be resolved. -- Regards, Ravindra kumar Ravindra Softwares 204 gurunanak nagar naini allahabad 211008 Uttar Pradesh INDIA -- 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 supercarv at googlemail.com Tue Jan 10 11:59:29 2012 From: supercarv at googlemail.com (Richard Carvey) Date: Tue, 10 Jan 2012 03:59:29 -0800 Subject: Using mouse click to select one of several alternative responses In-Reply-To: Message-ID: Hi Paul, I've made use of that code, thanks. The only problem I'm having is that a click outside of a target button still advances the program, logging the response, but moving on to the next trial. Is there any way you know of that I can set it so that a click outside of specified areas (so an iACC = -1) doesn't do anything? Or perhaps so that it re- loads the response screen for them to try again? Thanks, Richard On Dec 19 2011, 10:44?pm, Paul Groot wrote: > Hi Richard, > > You might have a look at the VAS example script I posted a while ago > onhttp://pfcgroot.nl/e-prime/83-example-scripts/80-visual-analogue-scal.... > This example contains a bit more script then you need, but the > ACK_HandleResponse function (in the user script tab) demonstrates how > you can use boundaries of (text-)objects as hit area for mouse clicks. > The core of this piece of script uses the Mouse.GetCursorPos and > Object.HitTest functions to implement two user confirmation buttons. > It can be easily adapted for more buttons. Also, instead of using the > boundaries of a slide element (i.e. text or image), you can also make > your own hit-test function. > > cheers, > Paul Groot > > 2011/12/19 Richard Carvey : > > > > > Hi, > > > I'm trying to build an experiment in which nine items are displayed on > > screen, and participants need to select one fo them using the mouse. I > > have seen a couple of people mention issues with clicks anywhere on > > screen being registered as responses, but I would like to make sure > > that only clicks within the bounds of the nine items are accepted, and > > that the specific item clicked is logged. Clicking any of the nine > > items should advanc the program, no one answer is correct or > > incorrect. > > > If anybody could offer me some advice on how to achieve this, it would > > be greatly appreciated. Annoyingly, whoever installed E-Prime (1.2, > > btw) on this computer saw fit not install the help functions correctly/ > > at all. > > > Thanks, > > > Richard > > > -- > > 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.- Hide quoted text - > > - Show quoted text - -- 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 Jan 10 18:51:40 2012 From: pfc.groot at gmail.com (Paul Groot) Date: Tue, 10 Jan 2012 19:51:40 +0100 Subject: Using mouse click to select one of several alternative responses In-Reply-To: <0d0a0756-6d3f-4cf3-a0bd-bfca8982487f@d8g2000vbb.googlegroups.com> Message-ID: Hi Richard, I currently don't have an eprime license to check my own example, but in general there are two way's of dealing with wrong-clicks: 1) put the relevant slide and script in separate list that loops 'forever' (i.e. putting a high number for the 'exit list after' value). Then use the List.Terminate function to accept, stop the sublist and continue. 2) Put a label before the relevant slide and use a goto-statement to jump back to the label if IACC=-1. (i.e. if iACC=-1 then goto MyLabel) I personaly don't like the goto-construct because one of the drawbacks is that wrong selections are not logged automatically. However, the use of an additional list takes a bit more effort to implement. I think my example script is already using the repeating sublist because the VasList is passed as third argument: choice = ACK_HandleResponse(c, "VasAck", VasList) But remember to set terminate condition of the sublist to a large value in that case. best, paul 2012/1/10 Richard Carvey : > Hi Paul, > > I've made use of that code, thanks. The only problem I'm having is > that a click outside of a target button still advances the program, > logging the response, but moving on to the next trial. Is there any > way you know of that I can set it so that a click outside of specified > areas (so an iACC = -1) doesn't do anything? Or perhaps so that it re- > loads the response screen for them to try again? > > Thanks, > > Richard > > On Dec 19 2011, 10:44?pm, Paul Groot wrote: >> Hi Richard, >> >> You might have a look at the VAS example script I posted a while ago >> onhttp://pfcgroot.nl/e-prime/83-example-scripts/80-visual-analogue-scal.... >> This example contains a bit more script then you need, but the >> ACK_HandleResponse function (in the user script tab) demonstrates how >> you can use boundaries of (text-)objects as hit area for mouse clicks. >> The core of this piece of script uses the Mouse.GetCursorPos and >> Object.HitTest functions to implement two user confirmation buttons. >> It can be easily adapted for more buttons. Also, instead of using the >> boundaries of a slide element (i.e. text or image), you can also make >> your own hit-test function. >> >> cheers, >> Paul Groot >> >> 2011/12/19 Richard Carvey : >> >> >> >> > Hi, >> >> > I'm trying to build an experiment in which nine items are displayed on >> > screen, and participants need to select one fo them using the mouse. I >> > have seen a couple of people mention issues with clicks anywhere on >> > screen being registered as responses, but I would like to make sure >> > that only clicks within the bounds of the nine items are accepted, and >> > that the specific item clicked is logged. Clicking any of the nine >> > items should advanc the program, no one answer is correct or >> > incorrect. >> >> > If anybody could offer me some advice on how to achieve this, it would >> > be greatly appreciated. Annoyingly, whoever installed E-Prime (1.2, >> > btw) on this computer saw fit not install the help functions correctly/ >> > at all. >> >> > Thanks, >> >> > Richard >> >> > -- >> > 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.- Hide quoted text - >> >> - Show quoted text - > > -- > 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 mtfujii at gmail.com Wed Jan 11 03:16:27 2012 From: mtfujii at gmail.com (Fuji Mountain) Date: Tue, 10 Jan 2012 19:16:27 -0800 Subject: Display visual stimuli Message-ID: Hi. How do we display 3 visual stimuli on the screen concurrently that flashes at 11Hz, 16Hz, and 19Hz? Is this possible to achieve in E- prime? Would the frequencies be steady and reliable? The visual stimuli I've in mind are made up of images. Not a canvas draw with text or polygons. But actual images e.g. a visual stimulus that flashes between a green car and a red car. 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 mcfarla9 at msu.edu Thu Jan 12 16:46:41 2012 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 12 Jan 2012 11:46:41 -0500 Subject: Display visual stimuli In-Reply-To: <8df144d5-e346-42c5-98d1-d4b22d69a73c@z19g2000vbe.googlegro ups.com> Message-ID: Stock reminder: 1) I do not work for PST. 2) PST's trained staff take 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) In addition, PST takes questions at their Facebook page (http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 ), and offers several instructional videos there and on their YouTube channel (http://www.youtube.com/user/PSTNET ) (no Twitter feed yet, though). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... This has been discussed. Please see the thread at http://groups.google.com/group/e-prime/browse_thread/thread/f929f804ceb5a557 , which in turn will direct you to an even earlier thread. Good luck, -- David McFarlane At 1/10/2012 10:16 PM Tuesday, you wrote: >How do we display 3 visual stimuli on the screen concurrently that >flashes at 11Hz, 16Hz, and 19Hz? Is this possible to achieve in E- >prime? Would the frequencies be steady and reliable? The visual >stimuli I've in mind are made up of images. Not a canvas draw with >text or polygons. But actual images e.g. a visual stimulus that >flashes between a green car and a red car. -- 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 nforrin at gmail.com Mon Jan 16 19:03:35 2012 From: nforrin at gmail.com (Noah Forrin) Date: Mon, 16 Jan 2012 11:03:35 -0800 Subject: Comprising a new study list based on incorrect responses. Message-ID: Hello, I'm an Eprime novice and would greatly appreciate any help! I'm programming a memory study as follows: Study List 1: Subjects study 40 words. Recognition List: Consistent of both studied and new words. Subjects are instructed to press 'm' if the word was studied or 'c' if it's new. Study List 2: Comprised only of incorrect responses to the Recognition List items. So for each incorrect response on the Recognition List, I'd like that word to be transfered over to Study List 2, which subjects will be shown after the Recognition List is finished. Does anyone know how this last part (i.e., transferring a word from one list to another following an incorrect response) could be accomplished? Thanks, Noah -- 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 Jan 16 19:14:29 2012 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 16 Jan 2012 14:14:29 -0500 Subject: Comprising a new study list based on incorrect responses. In-Reply-To: <59729258-3594-45f3-bb9c-7b800d7b0a79@u32g2000yqe.googlegro ups.com> Message-ID: Noah, Stock reminder: 1) I do not work for PST. 2) PST's trained staff take 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) In addition, PST takes questions at their Facebook page (http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 ), and offers several instructional videos there and on their YouTube channel (http://www.youtube.com/user/PSTNET ) (no Twitter feed yet, though). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... I don't know the best way to do this, but the PST web site does have a "Study-Recall" example that you could download to start this. Just bear in mind that PST programmers often use sloppy and poor programming practices in their examples, so take them as starting points for thought, not programming models for emulation. They do at least provide actual working examples, so they get credit for that. And since you are a beginner, you might also see my essays at http://groups.google.com/group/e-prime/browse_thread/thread/5425e03968cab428 and http://groups.google.com/group/e-prime/browse_thread/thread/b0ce54870b723fc3 . -- David McFarlane At 1/16/2012 02:03 PM Monday, you wrote: >Hello, > >I'm an Eprime novice and would greatly appreciate any help! > >I'm programming a memory study as follows: > >Study List 1: Subjects study 40 words. > >Recognition List: Consistent of both studied and new words. Subjects >are instructed to press 'm' if the word was studied or 'c' if it's >new. > >Study List 2: Comprised only of incorrect responses to the Recognition >List items. > >So for each incorrect response on the Recognition List, I'd like that >word to be transfered over to Study List 2, which subjects will be >shown after the Recognition List is finished. > >Does anyone know how this last part (i.e., transferring a word from >one list to another following an incorrect response) could be >accomplished? > >Thanks, >Noah -- 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 alicerancai at gmail.com Mon Jan 23 17:39:22 2012 From: alicerancai at gmail.com (Alice Cai) Date: Mon, 23 Jan 2012 09:39:22 -0800 Subject: Research Assistant in E-prime Message-ID: Hi, I was wondering if anyone would be interested in a Research Assistant post at University College London? We're looking for someone who can program experiments by using E-prime (e.g, be able write scripts using E-basics). Please visit the link below if you're interested: https://atsv7.wcn.co.uk/search_engine/jobs.cgi?owner=5041416&ownertype=fair&jcode=1228381&vt_template=965&adminview=1 Thanks, Alice -- 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 ahafri at gmail.com Mon Jan 23 19:25:28 2012 From: ahafri at gmail.com (Alon Hafri) Date: Mon, 23 Jan 2012 11:25:28 -0800 Subject: modifying Z-order of slide images at runtime Message-ID: Hi everyone, It's quite easy to change Z-order before runtime with the GUI (bring to front, send to back, etc.), but I'd like to modify the Z-order of slide images at runtime via some InLine script. Anyone have any tips? A related post last year on the E-Prime User Forum did not result in an answer (http://support.pstnet.com/forum/Topic5308-12-1.aspx? Update=1) so I'm soliciting your help. Thanks in advance! Alon -- 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 ababajani2 at gmail.com Tue Jan 24 00:22:59 2012 From: ababajani2 at gmail.com (abbas) Date: Mon, 23 Jan 2012 16:22:59 -0800 Subject: re-generate the ".es2" file with new parameters Message-ID: Hi, I am trying to use E-Prime 2.0 for a Working Memory (WM) task to be used in fMRI with multiple runs. Each run of the WM task contains about 80 different images. There will be 10 runs and images used in runs are different. I have written the E-Prime script (.es2) for the first run and would like to find an automatic method to re-generate the ".es2" files for other runs based on the ".es2" of the first run (without openning and editing ".es2" in E-Studio). I was thinking to read the ".es2" file of the first run as a text in, for example, MATLAB and rename all "*.jpg" images on it to new names and then save it as a new file. But as the ".es2" is not formatted as text, I cannot do that. I appreciate it if anyone let me know a solution to automatically re- generate the ".es2" file with new parameters, e.g., name of images, without opening it in E-Studio. Thank you, Abbas -- 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 jelman523 at gmail.com Wed Jan 25 01:02:05 2012 From: jelman523 at gmail.com (Jeremy Elman) Date: Tue, 24 Jan 2012 17:02:05 -0800 Subject: resetting the sampling of a nested list Message-ID: Hello, I am currently having trouble with the sampling of a nested list that contains more items than the list calling on it. Here is the basic setup: DetailTestList1: 150 items. Each row contains a description of a picture and 6 true/false detail pairs (details are matched such that pair 1 has a true column and a false column, and so on). This list is randomly selected and calls on DetailTestProc which contains the list below. DetailList1: This list takes the sampled item from above and selects one detail from each pair sequentially until it works through 6 pairs. Each row corresponds to a detail pair the will be displayed on a slide. We would like for it to randomly present either the True or the False detail with one constraint: one type of detail (True or False) can only be chosen a minimum of 2 times and a maximum of 4 times for each item selected from DetailTestList1. The DetailPair field is filled in by a nested list to determine if a True or False detail is chosen, and this in turn grabs either the True or False pairmate from the list above which is displayed on a slide. In order to do this, we nested the following table: TrueFalseList: This list has 8 rows, 4 True and 4 False. We'd like the list above (DetailList1) to sample 6 of these 8 rows and then reset. Ideally, Each selection from DetailTestList1 would move on to DetailList1 where 6 details are presented. Whether or not they are True or False depends on sampling 6 items from TrueFalseList. This completes the loop and another item from DetailTestList1 can be chosen with the sampling from TrueFalseList reset. Unfortunately, TrueFalseList seems to be sampled 8 times, even when I set it to reset/exit after 6 samples. Any ideas on what parameters or set-up I should change? Thanks for your help, Jeremy -- 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 d.vinson at ucl.ac.uk Wed Jan 25 15:58:49 2012 From: d.vinson at ucl.ac.uk (David Vinson) Date: Wed, 25 Jan 2012 15:58:49 +0000 Subject: problem displaying grayscale images Message-ID: Hi all, I'm using E-Prime 2.0 Pro to display some 8-bit grayscale images, and there are constant display artifacts where certain pixels appear white rather than their "correct" grayscale value, but the images are displayed fine otherwise. These images are displayed at their original dimensions (ie no stretch), via a simple ImageDisplay object with a relatively long duration. I've tried these on a few different machines and it happens reliably across different hardware, using different display resolutions, different timing etc. These artifacts are not apparent when previewing the images in other graphics packages, so it's not simply that my images have become corrupted. It seems to be the same pixels every time, and there is sure to be a very simple explanation I'm somehow overlooking? Anyone? [Yes I realise this is a perfect query for E-Prime Support staff. But I bet I'll get a quicker answer this way]. Thanks! -dv -- David Vinson, Ph.D. Senior Postdoctoral Researcher Cognitive, Perceptual and Brain Sciences Research Department University College London 26 Bedford Way, London WC1H 0AP Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) -- 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 D.Moore at bath.ac.uk Wed Jan 25 16:00:59 2012 From: D.Moore at bath.ac.uk (David Moore) Date: Wed, 25 Jan 2012 16:00:59 +0000 Subject: time limit for task Message-ID: Dear e-primers, I am generating an experiment in which participants have to perform on of two tasks and they choose when to do each. The task however needs to last exactly 10 minutes and I dont seem to be able to work out how to force e-prime to have a time limit, if participants could see there time remaining as well that would be perfect. Best David -- 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 josealejandro.aristizabalc at gmail.com Wed Jan 25 18:19:07 2012 From: josealejandro.aristizabalc at gmail.com (Jose Alejandro Aristizabal C) Date: Wed, 25 Jan 2012 19:19:07 +0100 Subject: code msgbox Message-ID: Hi people I have a msgbox, what appears in the centre of the screen. Can I switch msgbox, what not appear in the centre.? What code in basic, I must to use ? Thanks -- 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 d.vinson at ucl.ac.uk Wed Jan 25 18:31:37 2012 From: d.vinson at ucl.ac.uk (David Vinson) Date: Wed, 25 Jan 2012 18:31:37 +0000 Subject: problem displaying grayscale images In-Reply-To: <4F2026B9.70809@ucl.ac.uk> Message-ID: Well, we figured out our problem but I thought I'd share it with the list anyway, just in case anyone else makes the same silly mistake. It turns out we had set the ImageDisplay "Use Source Color Key" = Yes and Source Color Key = gray. So any pixels matching the source color key (gray in this case) were not displayed. Switching this off solved the problem. -dv On 25/01/2012 15:58, David Vinson wrote: > Hi all, > > I'm using E-Prime 2.0 Pro to display some 8-bit grayscale images, and > there are constant display artifacts where certain pixels appear white > rather than their "correct" grayscale value, but the images are > displayed fine otherwise. > > These images are displayed at their original dimensions (ie no > stretch), via a simple ImageDisplay object with a relatively long > duration. > > I've tried these on a few different machines and it happens reliably > across different hardware, using different display resolutions, > different timing etc. These artifacts are not apparent when previewing > the images in other graphics packages, so it's not simply that my > images have become corrupted. > > It seems to be the same pixels every time, and there is sure to be a > very simple explanation I'm somehow overlooking? Anyone? > > [Yes I realise this is a perfect query for E-Prime Support staff. But > I bet I'll get a quicker answer this way]. > > Thanks! > -dv > -- David Vinson, Ph.D. Senior Postdoctoral Researcher Cognitive, Perceptual and Brain Sciences Research Department University College London 26 Bedford Way, London WC1H 0AP Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) -- 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 cintiablank at gmail.com Wed Jan 25 19:43:57 2012 From: cintiablank at gmail.com (Cintia Blank) Date: Wed, 25 Jan 2012 11:43:57 -0800 Subject: Difficulties running ANT (Attentional Network Test) and Task Switching Paradigm Message-ID: Hello! I am writing to report the difficulties I am having to run both the ANT (Attentional Network Test) and Task Switching Paradigm. I have the scripts of both tests, and they seem to be complete. Anyway, when I try to run them, I receive the following messages: TASK SWITCHING PARADIGM: (Both versions) Device name: SRBOX Error: 0x00004a46 Message: unable to open this SRBOX: 0x00000103 Obs.: however, the device looks properly installed and working. ATTENTIONAL NETWORK TEST: Device Name: Display Error: 0x000003ec Message: unable to set display mode: 0x80004001 The e-prime version I have is 1.2 and I am using Windows 7. If there is someone who can help me with that, please send me an e- mail address so that I can send you the scripts. Thanks a lot. C?ntia -- 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 sovspape at cognitology.eu Wed Jan 25 20:32:15 2012 From: sovspape at cognitology.eu (MSpape) Date: Wed, 25 Jan 2012 12:32:15 -0800 Subject: problem displaying grayscale images In-Reply-To: <4F204A89.6070500@ucl.ac.uk> Message-ID: Hi, Dammit, so happy I was to suggest something, should have read newer messages first! Sorry about that, but well found... Best, Mich ------------ Hi, Two things, but sadly I cannot replicate your bug (if it is such), as I'm still lacking in E-Prime: * Have you tried converting the images to regular (what is it, 32 bit?) bmps? It might well be that E-Prime does not use 128 colours grayscale (8 bit) but 128 colours coloured decoding, which would result in far fewer colours for gray (perhaps about 8, which isn't a lot if you include white and black!). Recoding the pictures in maximal bitrate should help. * Is your screen set to 16 bit (E-Prime default) instead of 32 bit? The former is recommended since time immemorial, but we do remember that PCs were much less able to decode fast (so that decoding time would result in latency). It used to be thought of as 'optimising' to run your videocard 32-bit style, but (or so I've heard), there are so few people actually using that now that videocards themselves are optimised for 32-bit, resulting at best in equal performance for 16- bit, and possible even slower (for useless conversion). Anyway, I'd suggest changing the 16-bit in E-Prime to 32-bit - I assume it won't hurt! Best, Mich (back from being a gentleman of leisure) Research fellow Helsinki Institute for Information Technology Finland On Jan 25, 8:31?pm, David Vinson wrote: > Well, we figured out our problem but I thought I'd share it with the > list anyway, just in case anyone else makes the same silly mistake. > > It turns out we had set the ImageDisplay "Use Source Color Key" = Yes > and Source Color Key = gray. ?So any pixels matching the source color > key (gray in this case) were not displayed. ?Switching this off solved > the problem. > > -dv > > On 25/01/2012 15:58, David Vinson wrote: > > > > > > > Hi all, > > > I'm using E-Prime 2.0 Pro to display some 8-bit grayscale images, and > > there are constant display artifacts where certain pixels appear white > > rather than their "correct" grayscale value, but the images are > > displayed fine otherwise. > > > These images are displayed at their original dimensions (ie no > > stretch), via a simple ImageDisplay object with a relatively long > > duration. > > > I've tried these on a few different machines and it happens reliably > > across different hardware, using different display resolutions, > > different timing etc. These artifacts are not apparent when previewing > > the images in other graphics packages, so it's not simply that my > > images have become corrupted. > > > It seems to be the same pixels every time, and there is sure to be a > > very simple explanation I'm somehow overlooking? ?Anyone? > > > [Yes I realise this is a perfect query for E-Prime Support staff. But > > I bet I'll get a quicker answer this way]. > > > Thanks! > > -dv > > -- > David Vinson, Ph.D. > Senior Postdoctoral Researcher > Cognitive, Perceptual and Brain Sciences Research Department > University College London > 26 Bedford Way, London WC1H 0AP > Tel +44 (0)20 7679 5311 ?(UCL internal ext. 25311)- Hide quoted text - > > - Show quoted text - -- 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 sovspape at cognitology.eu Wed Jan 25 20:33:03 2012 From: sovspape at cognitology.eu (MSpape) Date: Wed, 25 Jan 2012 12:33:03 -0800 Subject: Difficulties running ANT (Attentional Network Test) and Task Switching Paradigm In-Reply-To: <80409fd7-5a40-49da-b16d-850476558673@k28g2000yqn.googlegroups.com> Message-ID: Hi, 1) Is your SRBox working with /other/ experiments? Is the COM port correctly set in the experiment? Have a look to see if you can make a simple infinite duration screen in a blank experiment run, with the SRBox set as response box and see whether that works. If that works, see what the difference is with the script for your TS paradigm. 2) Does your monitor support 640x480 resolution? They do not necessarily any more... Your ANT test presumably requires this and this resolution at this and this refreshrate, or your timing will not be as you report it. Many older scripts were set up to work for CRT screens, they do not necessarily work for TFT ones. In any case, I'd suggest diving a bit deeper into the script. Somebody over there, be it a technician or PhD student or whatever, who knows both E-Prime AND the equipment, needs to have a look. Somebody here can make it run as well, I'm sure, but you run a heavy risk of not knowing exactly what is happening. Best, Mich On Jan 25, 9:43?pm, Cintia Blank wrote: > Hello! > I am writing to report the difficulties I am having to run both the > ANT (Attentional Network Test) and Task Switching Paradigm. I have the > scripts of both tests, and they seem to be complete. Anyway, when I > try to run them, I receive the following messages: > > TASK SWITCHING PARADIGM: (Both versions) > > Device name: SRBOX > Error: 0x00004a46 > Message: unable to open this SRBOX: 0x00000103 > > Obs.: however, the device looks properly installed and working. > > ATTENTIONAL NETWORK TEST: > > Device Name: Display > Error: 0x000003ec > Message: unable to set display mode: 0x80004001 > > The e-prime version I have is 1.2 and I am using Windows 7. > If there is someone who can help me with that, please send me an e- > mail address so that I can send you the scripts. > > Thanks a lot. > C?ntia -- 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 sovspape at cognitology.eu Wed Jan 25 20:33:39 2012 From: sovspape at cognitology.eu (MSpape) Date: Wed, 25 Jan 2012 12:33:39 -0800 Subject: time limit for task In-Reply-To: <3698ED32A6AF7FD03A64A2FF@mppc-116-lab-04.campus.bath.ac.uk> Message-ID: Hi, Okay, checked for newer messages, this has not been solved, correct? Place your experiment in a list. Any list, even if it has only one level. See the option for exit-list after... and change to 10 minutes. Sorted? Now, if you want to display changing stuff, in E-prime, be prepared for hardship, as it isn't E-Prime's forte. For instance, before the experiment, place Dim ExperimentStarted as Long ...in the global script place (alt+5). Place ExperimentStarted = Clock.Read ...in an inline just before the aforementioned list Then, at any point you want to review how much time there is left, you could say something like: C.SetAttrib "SecondsLeft" = (10 * 60 * 1000 - (Clock.Read - ExperimentStarted))/1000 And voila, you have an attribute with the number of seconds left, which you can place at any point in time on some TextDisplay in a slide or something. However, it will only update if you repeat that line. I'll leave you to that. Best, Mich On Jan 25, 6:00?pm, David Moore wrote: > Dear e-primers, > > I am generating an experiment in which participants have to perform on of > two tasks and they choose when to do each. The task however needs to last > exactly 10 minutes and I dont seem to be able to work out how to force > e-prime to have a time limit, if participants could see there time > remaining as well that would be perfect. > > Best > David -- 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 D.Moore at bath.ac.uk Thu Jan 26 12:35:30 2012 From: D.Moore at bath.ac.uk (David Moore) Date: Thu, 26 Jan 2012 12:35:30 +0000 Subject: time limit for task In-Reply-To: Message-ID: Hi Mich, Thank you very much for your help. There are two small problems that I am still having. I have the experiment set up with two procedures coming from one this one running one task and one running the other. After the end of each trial the following script is run If Decresp.resp= 1 then goto Label1 If Decresp.resp= 2 then goto Label2 This either takes them back to before the trial again to stay put of ends the trial and starts the other task. Therefore by by setting the end time as 10 minutes in the overall list it will only exit after the participant chooses to change the task. I was therefore wondering if there was some script that can end it more immediately at 10 minutes. Also I have put in the script for the time however it does not seem be displayed on the slide I have put a text display with [SecondsLeft] in it however is says there is no such attribute. Thank you again David --On 25 January 2012 12:33 -0800 MSpape wrote: > Hi, > Okay, checked for newer messages, this has not been solved, correct? > Place your experiment in a list. Any list, even if it has only one > level. See the option for exit-list after... and change to 10 minutes. > Sorted? > Now, if you want to display changing stuff, in E-prime, be prepared > for hardship, as it isn't E-Prime's forte. For instance, before the > experiment, place Dim ExperimentStarted as Long ...in the global > script place (alt+5). Place ExperimentStarted = Clock.Read ...in an > inline just before the aforementioned list Then, at any point you want > to review how much time there is left, you could say something like: > C.SetAttrib "SecondsLeft" = (10 * 60 * 1000 - (Clock.Read - > ExperimentStarted))/1000 And voila, you have an attribute with the > number of seconds left, which you can place at any point in time on > some TextDisplay in a slide or something. However, it will only update > if you repeat that line. I'll leave you to that. > > Best, > Mich > > > On Jan 25, 6:00?pm, David Moore wrote: >> Dear e-primers, >> >> I am generating an experiment in which participants have to perform on of >> two tasks and they choose when to do each. The task however needs to last >> exactly 10 minutes and I dont seem to be able to work out how to force >> e-prime to have a time limit, if participants could see there time >> remaining as well that would be perfect. >> >> Best >> David > > -- > 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 linda.toscani at gmail.com Thu Jan 26 22:59:23 2012 From: linda.toscani at gmail.com (Linda T) Date: Thu, 26 Jan 2012 14:59:23 -0800 Subject: stimuli position Message-ID: Hi, I changed the pc I use to run my experiment. So I have a different screen with a different resolution now. I changed the resolution of my experiment in properties: experiment properties object experiment. The instruction and the fixation cross are in the right place on the screen now (for this things I employed text display). I have some problems with the stimuli that come after. I have two images on a slide and they are not in the middle of the screen. The two images have the same coordinates and they are in the same position (between each others) in comparison to my old experiment. I think that I have a problem with my slide not with the stimuli that I have on the slide. I don't want to replace the two images in the right place manually because I can't put any changes in my experiment. Maybe it is a problem of the resolution of the slide. What can I do? I hope to be clear. Thanks LT -- 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 lundwall.becky at gmail.com Fri Jan 27 18:59:44 2012 From: lundwall.becky at gmail.com (BeckyL) Date: Fri, 27 Jan 2012 10:59:44 -0800 Subject: creating an oscillating bar using an inline element Message-ID: I am trying to use the pstnet a modification of the sample "Simple Animation/Apparent Motion Example" and to create a new task. I have EP 2 and am using Windows XP. I have tried using the E-prime Reference Guide and Online E-Basic help but they are not specific enough to solve the problem below with my code. I am having trouble getting the line to move horizontally instead of diagonally up and right (eventually I want it to oscillate in place instead of move off the screen, but that is another step). ORIGINAL CODE 'Loop continuously until the lines are off screen. Do Until y1 = 30 'Increment and decrement coordinates. x1 = x1 + 1 y1 = y1 - 1 'Wait until the screen refreshes to avoid partial displays. Display.WaitForVerticalBlank 'Clear the screen and draw the new lines. cnvs.Clear cnvs.Line x1, y1, x1, y1 + lineLen Loop Logically, it seems that the next step would be to specify that x1 = x1 + 1 but y1 remain at 50 (or that y1 = y1). This works for the first trial but crashes for the second trial. Could someone please give more guidance on specifying coordinates for movement? 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 d.vinson at ucl.ac.uk Sun Jan 29 12:58:58 2012 From: d.vinson at ucl.ac.uk (Vinson, David) Date: Sun, 29 Jan 2012 12:58:58 +0000 Subject: creating an oscillating bar using an inline element In-Reply-To: Message-ID: Hi BeckyL, It looks like your main assumption is correct - holding y1 constant rather than varying it along with x1 should produce horizontal motion in the Simple Animation example. If it works on the first trial it's not a complete failure but may have something to do with changes in values from one trial to the next. My guess is that there's something amiss with your treatment of y1 outside of the assignment to a constant value. Perhaps the exit condition is never met: as in the code below, y1 will never reach 30 if you get rid of (y1 = y1 - 1). So it will run fine, until x1 reaches the edge of the screen in which case it will either crash (display of negative values for x may break it) or hang (because it is no longer drawing anything visible). If this is the case, changing the exit condition so it's based on the value of x1 should sort things out. another possibility is the assignment of values to y1. Check to make sure that indeed y1 is assigned the value you want, and that this value persists across trials. The simplest way to test this out is to set the value of y1 immediately before the loop (although this is not good programming practice, it's a clear way to be sure that y1 has the desired value). In cases like these I find it's useful to employ the debug.print function as part of the inline code - for example here displaying the value of x1,y1 to the output window while the experiment is running. hope this helps! david ________________________________________ From: e-prime at googlegroups.com [e-prime at googlegroups.com] on behalf of BeckyL [lundwall.becky at gmail.com] Sent: 27 January 2012 18:59 To: E-Prime Subject: creating an oscillating bar using an inline element I am trying to use the pstnet a modification of the sample "Simple Animation/Apparent Motion Example" and to create a new task. I have EP 2 and am using Windows XP. I have tried using the E-prime Reference Guide and Online E-Basic help but they are not specific enough to solve the problem below with my code. I am having trouble getting the line to move horizontally instead of diagonally up and right (eventually I want it to oscillate in place instead of move off the screen, but that is another step). ORIGINAL CODE 'Loop continuously until the lines are off screen. Do Until y1 = 30 'Increment and decrement coordinates. x1 = x1 + 1 y1 = y1 - 1 'Wait until the screen refreshes to avoid partial displays. Display.WaitForVerticalBlank 'Clear the screen and draw the new lines. cnvs.Clear cnvs.Line x1, y1, x1, y1 + lineLen Loop Logically, it seems that the next step would be to specify that x1 = x1 + 1 but y1 remain at 50 (or that y1 = y1). This works for the first trial but crashes for the second trial. Could someone please give more guidance on specifying coordinates for movement? 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. -- 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 rzimmerlxch at gmail.com Sun Jan 29 22:24:33 2012 From: rzimmerlxch at gmail.com (Robert Zimmerman) Date: Sun, 29 Jan 2012 14:24:33 -0800 Subject: Presenting 2 stimuli simultaneously (with different durations) Message-ID: I am new to using E-Prime, and in charge of programming studies for a small lab that does not have much knowledge of the program in general. We are trying to program a visual hemifield experiment in which an item will be presented either to the left or the right of a fixation point. We want the fixation point ("+") to come on-screen 500ms BEFORE the item, remain on screen while the item is presented, and remain on screen after the item clears for another 2000ms. Does anybody know if it is possible to do this with 2 events, a fixation event and a target item event, which overlap? Or will I need to set up 3 events, fixation for 500ms, followed by item with fixation for 175ms, followed by fixation for 2000ms, presented serially? Any help is much 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 Mon Jan 30 12:42:23 2012 From: liwenna at gmail.com (liwenna) Date: Mon, 30 Jan 2012 04:42:23 -0800 Subject: Presenting 2 stimuli simultaneously (with different durations) In-Reply-To: Message-ID: Hi Robert, The latter solution is what I always use, three slides: fixation, stimuli and intertrialinterval. I'd say that according to e-prime logic this is a more sensible setup than trying to have items from one slide (event) remain while a next slide starts. Also: you might find that 'an e-primer' by Spap? en Verdonschot is an useful starting point for getting a grip on e-prime's machinations ;) You can download it here: step.psy.cmu.edu/materials/EPrimer.pdf . Best, AW On Jan 29, 11:24?pm, Robert Zimmerman wrote: > I am new to using E-Prime, and in charge of programming studies for a > small lab that does not have much knowledge of the program in general. > We are trying to program a visual hemifield experiment in which an > item will be presented either to the left or the right of a fixation > point. We want the fixation point ("+") to come on-screen 500ms BEFORE > the item, remain on screen while the item is presented, and remain on > screen after the item clears for another 2000ms. Does anybody know if > it is possible to do this with 2 events, a fixation event and a target > item event, which overlap? Or will I need to set up 3 events, fixation > for 500ms, followed by item with fixation for 175ms, followed by > fixation for 2000ms, presented serially? Any help is much 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 Mon Jan 30 12:50:54 2012 From: liwenna at gmail.com (liwenna) Date: Mon, 30 Jan 2012 04:50:54 -0800 Subject: stimuli position In-Reply-To: Message-ID: Hi Linda, That sounds frustrating to say the least :p Could it be that the position of the image-objects are defined in pixels and not in % (i.e. a simple numeric value like 300 in the x/y boxes, rather than 25% or something the like?). If that is the case then e-prime defines the location of the objects as a set number of pixels from the topleft corner of the display. Telling e-prime that the display has grown (or shrunken) will not make it change the number of pixels at which it locates the object and thus the object will have moved to a relatively different position on the display. Why is it not possible to make adjustments to the experiment? Because you're in the middle of running it? If that's the case then I'd would certainly not switch displays and continue at the old one, unless it's broken, in that case try to find one that is as similar as possible :s best, AW On Jan 26, 11:59?pm, Linda T wrote: > Hi, > > I changed the pc I use to run my experiment. So I have a different > screen with a different resolution now. > I changed the resolution of my experiment in properties: experiment > properties object experiment. The instruction and the fixation cross > are in the right place on the screen now (for this things I employed > text display). I have some problems with the stimuli that come after. > I have two images on a slide and they are not in the middle of the > screen. The two images have the same coordinates and they are in the > same position (between each others) in comparison to my old > experiment. I think that I have a problem with my slide not with the > stimuli that I have on the slide. I don't want to replace the two > images in the right place manually because I can't put any changes in > my experiment. Maybe it is a problem of the resolution of the slide. > What can I do? > I hope to be clear. > > Thanks > > LT -- 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 Mon Jan 30 13:12:10 2012 From: liwenna at gmail.com (liwenna) Date: Mon, 30 Jan 2012 05:12:10 -0800 Subject: re-generate the ".es2" file with new parameters In-Reply-To: <390cda28-c554-4ff0-8c38-0823a0bdc9af@b23g2000yqn.googlegroups.com> Message-ID: Hi Abbas, Nope, as far as I am aware that is not possible. What you can do however, is build an .es2 file that doesn't yet contain the imagenames and that will 'load in' images from .txt files (and different .txt files could be used based on settings like 'group' or 'subjectnumber'. Have a look in this thread (http://groups.google.com/group/e-prime/ browse_thread/thread/796a659358219e31/ca5a6ac346ccc3d8? #ca5a6ac346ccc3d8) for some pointers on how to start doing that. Best, liw On Jan 24, 1:22?am, abbas wrote: > Hi, > > I am trying to use E-Prime 2.0 for a Working Memory (WM) task to be > used in fMRI with multiple runs. Each run of the WM task contains > about 80 different images. There will be 10 runs and images used in > runs are different. I have written the E-Prime script (.es2) for the > first run and would like to find an automatic method to re-generate > the ".es2" files for other runs based on the ".es2" of the first run > (without openning and editing ".es2" in E-Studio). I was thinking to > read the ".es2" file of the first run as a text in, for example, > MATLAB and rename all "*.jpg" images on it to new names and then save > it as a new file. But as the ".es2" is not formatted as text, I cannot > do that. > > I appreciate it if anyone let me know a solution to automatically re- > generate the ".es2" file with new parameters, e.g., name of images, > without opening it in E-Studio. > > Thank you, > Abbas -- 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 brieana.viscomi at gmail.com Mon Jan 30 15:53:49 2012 From: brieana.viscomi at gmail.com (Brieana) Date: Mon, 30 Jan 2012 07:53:49 -0800 Subject: using mouse scroll as response device for a sliding scale Message-ID: Hi everyone, I am trying to create a sliding scale that can be used by participants to place a bid from $0-50 with a mouse scroll. The inline scripts that I am using I found in a PST support forum post and just changed the parameters to fit my needs. However, I just found out that the facility I will be conducting the fMRI study in does not have a compatible keypad device so I have to switch the response device to a mouse. Does anyone know of how I can change the inline script(s) such that a scroll up would mean scrolling through values greater than 50 and scrolling down would mean scrolling through values lesser than 50? Thanks for the read and for the help! Brieana -- 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 brieana.viscomi at gmail.com Mon Jan 30 15:56:14 2012 From: brieana.viscomi at gmail.com (Brieana) Date: Mon, 30 Jan 2012 07:56:14 -0800 Subject: using mouse scroll as response device for a sliding scale In-Reply-To: Message-ID: Oops, my bad. Below is the code for each of the two inline scripts: 'InitializeTrial' inlinescript: 'Designate "theSlide" as the current Slide Dim theSlide As Slide Set theSlide = VASSlide 'Designate "theState" as the Default Slide State, which is the 'current, ActiveState on theSlide Dim theState as SlideState Set theState = theSlide.States("Default") 'Gain access to the SlideCursor SlideText. Dim Drag1 As SlideText Set Drag1 = CSlideText(theState.Objects("SlideCursor")) Drag1.X = "55%" Dim theRating As SlideText Set theRating = CSlideText(theState.Objects("Rating")) theRating.X = "55%" theRating.Text = "" -------------------------- 'ChangeScale' inline script: Dim nCurrentScore As Integer nCurrentScore = 25 Dim nResponseCount As Integer Dim theKeyboardResponseData As KeyboardResponseData Do While theSlide.InputMasks.IsPending() 'Was there a response? If theSlide.InputMasks.Responses.Count > nResponseCount Then nResponseCount = nResponseCount + 1 Set theKeyboardResponseData = CKeyboardResponseData(theSlide.InputMasks.Responses(nResponseCount)) 'Move cursor/change score If theKeyboardResponseData.RESP = "{RIGHTARROW}" Then 'Check for top of scale If nCurrentScore <= 49 Then nCurrentScore = nCurrentScore + 1 Else Debug.Print "top of scale" End If Else 'Check for bottom of scale If nCurrentScore > 0 Then nCurrentScore = nCurrentScore - 1 Else Debug.Print "bottom of scale" End If End If 'Update the slider (adjusted by 5%) and rating feedback Drag1.X = CInt(nCurrentScore * 2) -.8 & "%" theRating.Text = nCurrentScore theSlide.Draw Sleep 1 End If Loop c.SetAttrib "Rating", nCurrentScore -------- Thanks. On Jan 30, 10:53?am, Brieana wrote: > Hi everyone, > > I am trying to create a sliding scale that can be used by participants > to place a bid from $0-50 with a mouse scroll. The inline scripts that > I am using I found in a PST support forum post and just changed the > parameters to fit my needs. ?However, I just found out that the > facility I will be conducting the fMRI study in does not have a > compatible keypad device so I have to switch the response device to a > mouse. ?Does anyone know of how I can change the inline script(s) such > that a scroll up would mean scrolling through values greater than 50 > and scrolling down would mean scrolling through values lesser than > 50? > > Thanks for the read and for the help! > > Brieana -- 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 Tue Jan 31 00:55:10 2012 From: lml1934 at gmail.com (lml1934 at gmail.com) Date: Tue, 31 Jan 2012 00:55:10 +0000 Subject: creating an oscillating bar using an inline element In-Reply-To: Message-ID: Another option. Create an animation in Final Cut save as an .avi file and run as a movie. Much easier for placement on the screen. Sent from my Verizon Wireless BlackBerry -----Original Message----- From: "Vinson, David" Sender: e-prime at googlegroups.com Date: Sun, 29 Jan 2012 12:58:58 To: e-prime at googlegroups.com Reply-To: e-prime at googlegroups.com Subject: RE: creating an oscillating bar using an inline element Hi BeckyL, It looks like your main assumption is correct - holding y1 constant rather than varying it along with x1 should produce horizontal motion in the Simple Animation example. If it works on the first trial it's not a complete failure but may have something to do with changes in values from one trial to the next. My guess is that there's something amiss with your treatment of y1 outside of the assignment to a constant value. Perhaps the exit condition is never met: as in the code below, y1 will never reach 30 if you get rid of (y1 = y1 - 1). So it will run fine, until x1 reaches the edge of the screen in which case it will either crash (display of negative values for x may break it) or hang (because it is no longer drawing anything visible). If this is the case, changing the exit condition so it's based on the value of x1 should sort things out. another possibility is the assignment of values to y1. Check to make sure that indeed y1 is assigned the value you want, and that this value persists across trials. The simplest way to test this out is to set the value of y1 immediately before the loop (although this is not good programming practice, it's a clear way to be sure that y1 has the desired value). In cases like these I find it's useful to employ the debug.print function as part of the inline code - for example here displaying the value of x1,y1 to the output window while the experiment is running. hope this helps! david ________________________________________ From: e-prime at googlegroups.com [e-prime at googlegroups.com] on behalf of BeckyL [lundwall.becky at gmail.com] Sent: 27 January 2012 18:59 To: E-Prime Subject: creating an oscillating bar using an inline element I am trying to use the pstnet a modification of the sample "Simple Animation/Apparent Motion Example" and to create a new task. I have EP 2 and am using Windows XP. I have tried using the E-prime Reference Guide and Online E-Basic help but they are not specific enough to solve the problem below with my code. I am having trouble getting the line to move horizontally instead of diagonally up and right (eventually I want it to oscillate in place instead of move off the screen, but that is another step). ORIGINAL CODE 'Loop continuously until the lines are off screen. Do Until y1 = 30 'Increment and decrement coordinates. x1 = x1 + 1 y1 = y1 - 1 'Wait until the screen refreshes to avoid partial displays. Display.WaitForVerticalBlank 'Clear the screen and draw the new lines. cnvs.Clear cnvs.Line x1, y1, x1, y1 + lineLen Loop Logically, it seems that the next step would be to specify that x1 = x1 + 1 but y1 remain at 50 (or that y1 = y1). This works for the first trial but crashes for the second trial. Could someone please give more guidance on specifying coordinates for movement? 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. -- 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 lundwall.becky at gmail.com Tue Jan 31 13:25:42 2012 From: lundwall.becky at gmail.com (BeckyL) Date: Tue, 31 Jan 2012 05:25:42 -0800 Subject: creating an oscillating bar using an inline element In-Reply-To: <1648033958-1327971313-cardhu_decombobulator_blackberry.rim.net-1621943976-@b25.c3.bise6.blackberry> Message-ID: Thank you both for your willingness to help. I'll work on this this morning and update the group on the results as soon as possible. Just so you know, the problem with the movie option is that E-prime tends to crash when you use movies and have a Windows 7 or Vista operating system -- and we are still trying to verify that we have enough computers with XP at the remote testing site. On Jan 30, 6:55?pm, lml1... at gmail.com wrote: > Another option. Create an animation in Final Cut save as an .avi file and run as a movie. Much easier for placement on the screen. > Sent from my Verizon Wireless BlackBerry > > > > > > > > -----Original Message----- > From: "Vinson, David" > > Sender: e-prime at googlegroups.com > Date: Sun, 29 Jan 2012 12:58:58 > To: e-prime at googlegroups.com > Reply-To: e-prime at googlegroups.com > Subject: RE: creating an oscillating bar using an inline element > > Hi BeckyL, > > It looks like your main assumption is correct - holding y1 constant rather than varying it along with x1 should produce horizontal motion in the Simple Animation example. ? If it works on the first trial it's not a complete failure but may have something to do with changes in values from one trial to the next. > > My guess is that there's something amiss with your treatment of y1 outside of the assignment to a constant value. ?Perhaps the exit condition is never met: ?as in the code below, y1 will never reach 30 if you get rid of (y1 = y1 - 1). ?So it will run fine, until x1 reaches the edge of the screen in which case it will either crash (display of negative values for x may break it) or hang (because it is no longer drawing anything visible). ?If this is the case, changing the exit condition so it's based on the value of x1 should sort things out. > > another possibility is the assignment of values to y1. ? Check to make sure that indeed y1 is assigned the value you want, and that this value persists across trials. ?The simplest way to test this out is to set the value of y1 immediately before the loop (although this is not good programming practice, it's a clear way to be sure that y1 has the desired value). > > In cases like these I find it's useful to employ the debug.print function as part of the inline code - for example here displaying the value of x1,y1 to the output window while the experiment is running. > > hope this helps! > david > ________________________________________ > From: e-prime at googlegroups.com [e-prime at googlegroups.com] on behalf of BeckyL [lundwall.be... at gmail.com] > Sent: 27 January 2012 18:59 > To: E-Prime > Subject: creating an oscillating bar using an inline element > > I am trying to use the pstnet a modification of the sample "Simple > Animation/Apparent Motion Example" and to create a new task. I have EP > 2 and am using Windows XP. I have tried using the E-prime Reference > Guide and Online E-Basic help but they are not specific enough to > solve the problem below with my code. I am having trouble getting the > line to move horizontally instead of diagonally up and right > (eventually I want it to oscillate in place instead of move off the > screen, but that is another step). > > ORIGINAL CODE > > 'Loop continuously until the lines are off screen. > Do Until y1 = 30 > > ? ?'Increment and decrement coordinates. > ? ?x1 = x1 + 1 > > ? ?y1 = y1 - 1 > > ? ?'Wait until the screen refreshes to avoid partial displays. > ? ?Display.WaitForVerticalBlank > > ? ?'Clear the screen and draw the new lines. > ? ?cnvs.Clear > > ? ?cnvs.Line x1, y1, x1, y1 + lineLen > > Loop > > Logically, it seems that the next step would be to specify that x1 = > x1 + 1 but y1 remain at 50 (or that y1 = y1). This works for the first > trial but crashes for the second trial. > > Could someone please give more guidance on specifying coordinates for > movement? 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 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 raghav.destiny at gmail.com Tue Jan 31 16:00:25 2012 From: raghav.destiny at gmail.com (Raghav) Date: Tue, 31 Jan 2012 08:00:25 -0800 Subject: Adding rows to the eDat file using code Message-ID: Hello ! I am using ePrime to display a series of pictures which change with a mouseclick. This is working perfectly I have a coded function that receives data from an external device (ASL 504 Pan-Tilt Eyetracker). Everytime the function is run it receives an X value and a Y value. I am able to store these values as numbers and even display them on screen. I am trying to run the above function 30 times a second during each picture display. I need the eDAT file to have a row for every time it is run (30 rows per second). Each row should have the usual stimulus related fields plus this X and Y value from my function Currently in my trial procedure, I have an inline object after the picture display and I have this code in it. This is just a simple loop that continuously receives the x and y values [quote] dim x as single, y as single do if ASL_GetPOG(x, y, true) then cnv.Text 20, 20, "Point of gaze from eye tracker" cnv.Text 20, 40, "x = " & x & " " cnv.Text 20, 60, "y = " & y & " " c.setAttrib "textDisplay1.gazePosX", x c.setAttrib ?textDisplay1.gazePosY?, y end if Loop Until TextDisplay1.RT > 0 /[quote] This however just creates one row for each slide and gives me the last value of X and Y that has been received. Calling the function at regular time intervals inside the inline object does he same thing. I am able to create a string and store a long string of these X and Y values which I am able to parse through later...but an ideal case for me would be to add a row to the eDAT file everytime the function is run with X and Y values. Any help on how to accomplish this would be most helpful. I have a bit of programming experience but am extremely new to ePrime. -- 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.