From gosenbach at gmail.com Fri May 1 12:28:31 2009 From: gosenbach at gmail.com (Greg Osenbach) Date: Fri, 1 May 2009 08:28:31 -0400 Subject: Accessing NI DAQ card In-Reply-To: <92e95e010904301506o71b7e9cfga7d2772d164a16a9@mail.gmail.com> Message-ID: You can download the latest NI-DAQmx drivers and software from here: http://sine.ni.com/psp/app/doc/p/id/psp-268 You can use the DAQ card via .NET or activeX (VB samples should be included). If you can access the card with e-prime, it would probably be in a similar way to what is in the examples. Sorry I can not give you specific instructions at the moment. I'll cruise around and see if I can find anything more specific. Greg On Thu, Apr 30, 2009 at 6:06 PM, Joana Silva wrote: > No, I think it's just the DAQ card. > > > On Thu, Apr 30, 2009 at 11:04 PM, Greg Osenbach wrote: > >> I am not familiar with that one. I'll have to look up the specs. >> >> Do you have any NI software or just the DAQ card? >> >> >> On Thu, Apr 30, 2009 at 5:50 PM, Joana Silva wrote: >> >>> Hi. >>> >>> The card is pretty old, it's a PCI - 6025E. Additionally the computer in >>> which it is installed only works with drivers from 2002 (version 6.9.3. Is >>> this enough? >>> >>> Thanks. >>> >>> >>> On Thu, Apr 30, 2009 at 9:49 PM, Greg Osenbach wrote: >>> >>>> Hello, >>>> >>>> Which DAQ card do you have? I may be able to help you out but you will >>>> need to give me a few more details about what you have. :) >>>> >>>> Cheers, >>>> Greg >>>> >>>> >>>> On Thu, Apr 30, 2009 at 11:46 AM, student wrote: >>>> >>>>> >>>>> Hello. >>>>> >>>>> Where can I see how E-prime is accessing the NI-card? Is there some >>>>> sort of submenu or tab pertaining to input ports or something similar? >>>>> >>>>> 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 liwenna at gmail.com Fri May 1 14:31:09 2009 From: liwenna at gmail.com (liwenna) Date: Fri, 1 May 2009 07:31:09 -0700 Subject: Display In-Reply-To: <7753d0eb-8b94-4c8c-b216-bfacbb1808c8@b6g2000pre.googlegroups.com> Message-ID: and what would you like to show on the screen instead of the display, then? On Apr 30, 5:47 pm, student wrote: > Hi. > > Does E-prime necessarily have to use a display, or is it possible to > have it running in the background without taking up the computer > screen? > > Tahnks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From mcfarla9 at msu.edu Fri May 1 14:42:33 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 1 May 2009 10:42:33 -0400 Subject: Display In-Reply-To: <92e95e010904301501r4c6bb292u6030885d135190ee@mail.gmail.co m> Message-ID: Joana, Interesting. I will cc this back to the list, since this may be of interest to others and the added detail might help someone else come up with a better answer. As for me, I would avoid such a Rube Golberg setup if at all possible. What software are you using for the task? Is it a canned program, or do you have the source code? If you have the source code I would look harder at finding some way to get the fMRI signals in to the task program itself, and if that were a problem I would then look at porting the entire program to another language/system. But if I had to stick to the Rube Goldberg method, as a last resort I might put in two computers with one to run the task and the other to handle the fMRI input. Just my $0.02, I hope someone here comes up with a better solution. -- David McFarlane, Professional Faultfinder At 4/30/2009 06:01 PM Thursday, you wrote: >Hello. > >It's a pretty convoluted situation. I am not actually using E-prime, >but rather a different software. I am, however, conducting my >experiments in a preexisting fMRI setup which does use E-prime. I >have already installed my program into the computer, but it is >unable to the detect (input) signals from the fMRI. E-prime, >however, is capable of detecting these signals. So the idea was to >use E-prime to receive and register the signals and my program to >run the experiment. But for this, it would have to be possible to >run E-prime without it taking up the display, otherwise my >experiment won't show. Is this clear? Better yet, does this make any sense? > >I really appreaciate the help, since I am at a loss to understand E-prime. > >On Thu, Apr 30, 2009 at 7:29 PM, David McFarlane wrote: > >[REPLYING OFF-LIST, REPLIES WILL COME DIRECTLY TO ME AND *NOT* TO THE LIST] > > >At 4/30/2009 11:47 AM Thursday, student wrote: > >Hi. > >Does E-prime necessarily have to use a display, or is it possible to >have it running in the background without taking up the computer >screen? > >Tahnks. > > >Hmm, I am a little curious why you want to do such a thing, and why >you think E-Prime is the tool to do this instead of some other system. > > >Thanks, > >--------------- >David McFarlane, Systems Designer >Dept. Psychology, Michigan State University --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 josephjaywilliams at gmail.com Fri May 1 20:50:56 2009 From: josephjaywilliams at gmail.com (Joseph Williams) Date: Fri, 1 May 2009 13:50:56 -0700 Subject: Problem with having an item drawn repeatedly from a nested list Message-ID: Hi Everyone, I'm having a problem with an item being drawn twice from a list that is nested in a non-typical way. I had to give two different groups of subjects two different sets of test items, so I had a list with counterbalance selection: the list had list A and list B nested inside along with a variable [listAorlistB]. The first level had list A as a nested list and the variable [listAorlistB] had value "listA", the second had the same for list B. Then a list containing the sub-procedure that displayed the (e.g. 5) test items had the variable ( [listAorlistB] ) as a nested list so that it always choose the relevant set of items. When I look at the data file (and examine the items by running the program) the first 4 items appear to be drawn randomly, but the 5th and last one is a repetition of one of the previous 4: e.g. 4 2 1 2 (instead of drawing item 3). The item numbers which are shown (like in the example) are correctly given by (e.g.) listA[logLevel5], but I don't understand why one is being repeated instead of drawing another one. I looked at multiple subjects and I always get this problem, and I noted is that the final and repeated item is always the item number in listA[SubTrial]. Does anyone have any ideas about what the problem might be? Thank you, Joseph --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 liwenna at gmail.com Mon May 4 14:19:46 2009 From: liwenna at gmail.com (liwenna) Date: Mon, 4 May 2009 07:19:46 -0700 Subject: Problem with having an item drawn repeatedly from a nested list In-Reply-To: <121d07f40905011350x69e64321t59c7e78e60f2aaff@mail.gmail.com> Message-ID: Hi Joseph, At first I thought your problem would be due to having a variable 'listaorlistb' in two consecutive lists... but I built a little testexperiment based on your info and that doesn't seem to be a problem... althoughI did not manage to replicate the last bit of info you give, were you use the variable 'listaorlistb' as a nested list... I could not figure that one out without having e-prime crash. The good news is though, that there is a setup possible, close to what you describe that does exactly what you need (or at least it does for me, and I obviously don't know what other features your task has that might interfere). I found that there is no need to use a variable 'listaorlistb' at all, not in the first 2 level list (as long as you nest listA and listB well, you could use a variable like that for logging though) nor in the actual lista and listb. I hereby post a link to a screenshot of the setup that works for me. I opened the three lists so that you can see all the parameters and randomisation values. I hope it will help you to locate the litle culprit in your own experiment. http://images.redial.net/setuplistaorlistb.bmp Good luck! liw On May 1, 10:50 pm, Joseph Williams wrote: > Hi Everyone, > > I'm having a problem with an item being drawn twice from a list that is > nested in a non-typical way. I had to give two different groups of subjects > two different sets of test items, so I had a list with counterbalance > selection: the list had list A and list B nested inside along with a > variable [listAorlistB]. The first level had list A as a nested list and the > variable [listAorlistB] had value "listA", the second had the same for list > B. > > Then a list containing the sub-procedure that displayed the (e.g. 5) test > items had the variable ( [listAorlistB] ) as a nested list so that it always > choose the relevant set of items. When I look at the data file (and examine > the items by running the program) the first 4 items appear to be drawn > randomly, but the 5th and last one is a repetition of one of the previous 4: > e.g. 4 2 1 2 (instead of drawing item 3). The item numbers which are shown > (like in the example) are correctly given by (e.g.) listA[logLevel5], but I > don't understand why one is being repeated instead of drawing another one. I > looked at multiple subjects and I always get this problem, and I noted is > that the final and repeated item is always the item number in > listA[SubTrial]. > > Does anyone have any ideas about what the problem might be? > > Thank you, > > Joseph --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 rickogorman at gmail.com Mon May 4 20:14:44 2009 From: rickogorman at gmail.com (Rick O'Gorman) Date: Mon, 4 May 2009 21:14:44 +0100 Subject: Textbox bug in E-Prime Message-ID: Out of curiousity, is anyone else besides me finding a serious and regular bug in editing textboxes within slides, such that E-Prime crashes? I'm using 2.0.8.22 RC. It's driving me nuts. It's so bad that I run a second version of E-Prime now ready to go when one crashes, because E-Prime takes so long to open and then open the file I am working with (and no--this is not a cause of the bug; I've only recently started doing this to salvage my sanity!). Rick -- Rick O'Gorman, PhD Psychology, Faculty of Development and Society Collegiate Crescent Campus, Sheffield Hallam University, Sheffield S10 2BP Phone: 0114 225 5788 Fax: 0114 225 2430 http://www.shu.ac.uk/psychology/staff/OGorman.html No passion can survive a woman's seeing her lover hold his fork in the wrong way. ~Edith Wharton --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 maria.hartberg at gmail.com Mon May 4 06:52:34 2009 From: maria.hartberg at gmail.com (Maria) Date: Sun, 3 May 2009 23:52:34 -0700 Subject: experiment over internet Message-ID: Dear all, I have an E-prime experiment that I would like to run over internet, that is participants can be anywhere with internet access. Is there a web module or similar that would enable this? Best wishes Maria --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 ejk4 at pitt.edu Mon May 4 20:54:46 2009 From: ejk4 at pitt.edu (Eliezer Kanal) Date: Mon, 4 May 2009 16:54:46 -0400 Subject: Textbox bug in E-Prime In-Reply-To: <49FF4CB4.6060909@gmail.com> Message-ID: Can you provide the exact minimum steps required to replicate this bug? Eliezer Kanal On May 4, 2009, at 4:14 PM, Rick O'Gorman wrote: > > Out of curiousity, is anyone else besides me finding a serious and > regular bug in editing textboxes within slides, such that E-Prime > crashes? I'm using 2.0.8.22 RC. It's driving me nuts. It's so bad > that I > run a second version of E-Prime now ready to go when one crashes, > because E-Prime takes so long to open and then open the file I am > working with (and no--this is not a cause of the bug; I've only > recently > started doing this to salvage my sanity!). > > Rick > -- > Rick O'Gorman, PhD > Psychology, Faculty of Development and Society > Collegiate Crescent Campus, > Sheffield Hallam University, > Sheffield > S10 2BP > > Phone: 0114 225 5788 Fax: 0114 225 2430 > > http://www.shu.ac.uk/psychology/staff/OGorman.html > > No passion can survive a woman's seeing her lover hold > his fork in the wrong way. > ~Edith Wharton > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 rickogorman at gmail.com Mon May 4 21:04:35 2009 From: rickogorman at gmail.com (Rick O'Gorman) Date: Mon, 4 May 2009 22:04:35 +0100 Subject: Textbox bug in E-Prime In-Reply-To: <962B1BD1-7DAA-4970-9B1C-2A066B533752@pitt.edu> Message-ID: If you suffer it you can't miss it--whenever I double-click to edit text in a textbox, E-Prime will randomly crash. So it doesn't do it every time but will eventually (meaning within a few minutes of editing a textbox). I don't do anything odd--just click into a textbox and start adding text, deleting text or sometimes right when I double-click a textbox it crashes. The odd thing is that I thought this bug went away when I went from 2.0.1 to 2.0.8, but there's been a few months' gap between uses and so I could be wrong. But you don't have to do much fancy to activate the problem on my set-up. I also find that the shortcut keys don't work for textboxes (ctrl-c, ctrl-v) but do work for lists. Unrelated, but I could go on (how about trying to get at the property box for slidestates to change the names--aha, that took me a while to figure out). Rick Eliezer Kanal wrote: > Can you provide the exact minimum steps required to replicate this bug? > > Eliezer Kanal > > > On May 4, 2009, at 4:14 PM, Rick O'Gorman wrote: > >> Out of curiousity, is anyone else besides me finding a serious and >> regular bug in editing textboxes within slides, such that E-Prime >> crashes? I'm using 2.0.8.22 RC. It's driving me nuts. It's so bad >> that I >> run a second version of E-Prime now ready to go when one crashes, >> because E-Prime takes so long to open and then open the file I am >> working with (and no--this is not a cause of the bug; I've only >> recently >> started doing this to salvage my sanity!). >> >> Rick >> -- >> Rick O'Gorman, PhD >> Psychology, Faculty of Development and Society >> Collegiate Crescent Campus, >> Sheffield Hallam University, >> Sheffield >> S10 2BP >> >> Phone: 0114 225 5788 Fax: 0114 225 2430 >> >> http://www.shu.ac.uk/psychology/staff/OGorman.html >> >> No passion can survive a woman's seeing her lover hold >> his fork in the wrong way. >> ~Edith Wharton >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 google at frankbosco.com Mon May 4 21:12:03 2009 From: google at frankbosco.com (frankbosco) Date: Mon, 4 May 2009 14:12:03 -0700 Subject: Textbox bug in E-Prime In-Reply-To: <49FF4CB4.6060909@gmail.com> Message-ID: Rick, ABSOLUTELY! This drives me nuts, as well. For me, it happens especially when adding more that 20-30 characters to a textbox within a slide. What's the deal, E-Prime??? Sometimes, I think that the only feature in E-Prime that works 100% flawlessly is their copyright protection (which, by the way, wastes a great deal of time when working/opening/saving in E-Studio!). Another warning re: E-Prime 2.0: E-Studio randomly deleted an .es2 file on me (after crashing, of course) that I had been working on for several days. I almost lost it. Now, I need to save 2 copies of each .es2 file (huge waste of my time). While I'm complaining about E-Prime 2.0, I would really like to have a set of user's manuals (in print) - I find a 2-year release candidacy to be semi-unacceptable (especially for a software that costs $800 or more!). I think this may be my last E-Prime purchase -- I may look into other options in the future. -Frank On May 4, 3:14 pm, Rick O'Gorman wrote: > Out of curiousity, is anyone else besides me finding a serious and > regular bug in editing textboxes within slides, such that E-Prime > crashes? I'm using 2.0.8.22 RC. It's driving me nuts. It's so bad that I > run a second version of E-Prime now ready to go when one crashes, > because E-Prime takes so long to open and then open the file I am > working with (and no--this is not a cause of the bug; I've only recently > started doing this to salvage my sanity!). > > Rick > -- > Rick O'Gorman, PhD > Psychology, Faculty of Development and Society > Collegiate Crescent Campus, > Sheffield Hallam University, > Sheffield > S10 2BP > > Phone: 0114 225 5788 Fax: 0114 225 2430 > > http://www.shu.ac.uk/psychology/staff/OGorman.html > > No passion can survive a woman's seeing her lover hold > his fork in the wrong way. >                                    ~Edith Wharton --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From Michiel.Spape at nottingham.ac.uk Tue May 5 08:51:14 2009 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 5 May 2009 09:51:14 +0100 Subject: experiment over internet In-Reply-To: Message-ID: Hi, Not that I know of, but you could - if you don't give anything about timing - theoretically run E-Prime on a remote desktop? If a computer has guest login, remote availability, etc, you could put a link on the internet and, with a bit of script, have it start e-prime on log-on. I think learning Flash or Silverlight may take less time, though (I made a couple of experiments http://www.cognitology.eu/Experiments.htm ). Alternatively, for experiments in which timing is not critical anyway (usually the case if you want to do something on the internet), web-programming (php, javascript, etc) is probably much better and easier than e-prime. Best, Mich -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Maria Sent: 04 May 2009 07:53 To: E-Prime Subject: experiment over internet Dear all, I have an E-prime experiment that I would like to run over internet, that is participants can be anywhere with internet access. Is there a web module or similar that would enable this? Best wishes Maria This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From Michiel.Spape at nottingham.ac.uk Tue May 5 09:02:49 2009 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 5 May 2009 10:02:49 +0100 Subject: Textbox bug in E-Prime In-Reply-To: Message-ID: Hi, The corrupted e-studio files following crashes, although not happening often, are indeed absolutely horrendous - and could easily be avoided if only e-studio would automatically save backups (like office, for example). They happened in E-Prime 1 as well, and I remember one of my students had it near the end of an exam (of my e-prime course). What are you supposed to do if that happens? Considering it was not the student's fault, we decided to have a look at the E-Run file and have her TELL us what she had wanted to do with it before E-Prime went bananas - but that is not a really practical solution. Anyway, all the best with your E-Misery, I think we all know it has certain weaknesses that are about as likely to be fixed as SPSS is to better with version 20 (expected release in 3 months). Best, Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of frankbosco Sent: 04 May 2009 22:12 To: E-Prime Subject: Re: Textbox bug in E-Prime Rick, ABSOLUTELY! This drives me nuts, as well. For me, it happens especially when adding more that 20-30 characters to a textbox within a slide. What's the deal, E-Prime??? Sometimes, I think that the only feature in E-Prime that works 100% flawlessly is their copyright protection (which, by the way, wastes a great deal of time when working/opening/saving in E-Studio!). Another warning re: E-Prime 2.0: E-Studio randomly deleted an .es2 file on me (after crashing, of course) that I had been working on for several days. I almost lost it. Now, I need to save 2 copies of each .es2 file (huge waste of my time). While I'm complaining about E-Prime 2.0, I would really like to have a set of user's manuals (in print) - I find a 2-year release candidacy to be semi-unacceptable (especially for a software that costs $800 or more!). I think this may be my last E-Prime purchase -- I may look into other options in the future. -Frank On May 4, 3:14 pm, Rick O'Gorman wrote: > Out of curiousity, is anyone else besides me finding a serious and > regular bug in editing textboxes within slides, such that E-Prime > crashes? I'm using 2.0.8.22 RC. It's driving me nuts. It's so bad that I > run a second version of E-Prime now ready to go when one crashes, > because E-Prime takes so long to open and then open the file I am > working with (and no--this is not a cause of the bug; I've only recently > started doing this to salvage my sanity!). > > Rick > -- > Rick O'Gorman, PhD > Psychology, Faculty of Development and Society > Collegiate Crescent Campus, > Sheffield Hallam University, > Sheffield > S10 2BP > > Phone: 0114 225 5788 Fax: 0114 225 2430 > > http://www.shu.ac.uk/psychology/staff/OGorman.html > > No passion can survive a woman's seeing her lover hold > his fork in the wrong way. >                                    ~Edith Wharton This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From mcfarla9 at msu.edu Tue May 5 20:47:55 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 5 May 2009 16:47:55 -0400 Subject: Textbox bug in E-Prime In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF011D7FD3@VUIEXCHC.ad.notti ngham.ac.uk> Message-ID: Miciel, At 5/5/2009 05:02 AM Tuesday, you wrote: >we decided to have a look at the E-Run file and have her TELL us >what she had wanted to do with it before E-Prime went bananas - but >that is not a really practical solution. And of course that solution no longer works with EP2, as discussed at http://support.pstnet.com/forum/Topic696-12-1.aspx . -- David McFarlane, Professional Faultfinder --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From josephjaywilliams at gmail.com Wed May 6 04:25:10 2009 From: josephjaywilliams at gmail.com (Joseph Williams) Date: Tue, 5 May 2009 21:25:10 -0700 Subject: Problem with having an item drawn repeatedly from a nested list In-Reply-To: <3a001b51-d7f2-4880-a2da-4da8845d434c@e20g2000vbc.googlegroups.com> Message-ID: Hi Liw, Thanks a lot! I appreciate you thinking about this for me. I'll try out this more direct approach that you used, there was a reason to have things nested the way I did it the first time, but now on second thought I think I can get around that. All the best, Joseph On Mon, May 4, 2009 at 7:19 AM, liwenna wrote: > > Hi Joseph, > > At first I thought your problem would be due to having a variable > 'listaorlistb' in two consecutive lists... but I built a little > testexperiment based on your info and that doesn't seem to be a > problem... althoughI did not manage to replicate the last bit of info > you give, were you use the variable 'listaorlistb' as a nested list... > I could not figure that one out without having e-prime crash. > > The good news is though, that there is a setup possible, close to what > you describe that does exactly what you need (or at least it does for > me, and I obviously don't know what other features your task has that > might interfere). I found that there is no need to use a variable > 'listaorlistb' at all, not in the first 2 level list (as long as you > nest listA and listB well, you could use a variable like that for > logging though) nor in the actual lista and listb. I hereby post a > link to a screenshot of the setup that works for me. I opened the > three lists so that you can see all the parameters and randomisation > values. I hope it will help you to locate the litle culprit in your > own experiment. > > http://images.redial.net/setuplistaorlistb.bmp > > Good luck! > > liw > > On May 1, 10:50 pm, Joseph Williams > wrote: > > Hi Everyone, > > > > I'm having a problem with an item being drawn twice from a list that is > > nested in a non-typical way. I had to give two different groups of > subjects > > two different sets of test items, so I had a list with counterbalance > > selection: the list had list A and list B nested inside along with a > > variable [listAorlistB]. The first level had list A as a nested list and > the > > variable [listAorlistB] had value "listA", the second had the same for > list > > B. > > > > Then a list containing the sub-procedure that displayed the (e.g. 5) test > > items had the variable ( [listAorlistB] ) as a nested list so that it > always > > choose the relevant set of items. When I look at the data file (and > examine > > the items by running the program) the first 4 items appear to be drawn > > randomly, but the 5th and last one is a repetition of one of the previous > 4: > > e.g. 4 2 1 2 (instead of drawing item 3). The item numbers which are > shown > > (like in the example) are correctly given by (e.g.) listA[logLevel5], but > I > > don't understand why one is being repeated instead of drawing another > one. I > > looked at multiple subjects and I always get this problem, and I noted is > > that the final and repeated item is always the item number in > > listA[SubTrial]. > > > > Does anyone have any ideas about what the problem might be? > > > > Thank you, > > > > Joseph > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 liwenna at gmail.com Wed May 6 11:42:37 2009 From: liwenna at gmail.com (liwenna) Date: Wed, 6 May 2009 04:42:37 -0700 Subject: Problem with having an item drawn repeatedly from a nested list In-Reply-To: <121d07f40905052125m2972c3e9vcfe2c8b1536029f4@mail.gmail.com> Message-ID: No problem... I kinda like playing with e-prime... ;) Let me know if it works out (and also if not). liw On May 6, 6:25 am, Joseph Williams wrote: > Hi Liw, > > Thanks a lot! I appreciate you thinking about this for me. > > I'll try out this more direct approach that you used, there was a reason to > have things nested the way I did it the first time, but now on second > thought I think I can get around that. > > All the best, > > Joseph > > On Mon, May 4, 2009 at 7:19 AM, liwenna wrote: > > > Hi Joseph, > > > At first I thought your problem would be due to having a variable > > 'listaorlistb' in two consecutive lists... but I built a little > > testexperiment based on your info and that doesn't seem to be a > > problem... althoughI did not manage to replicate the last bit of info > > you give, were you use the variable 'listaorlistb' as a nested list... > > I could not figure that one out without having e-prime crash. > > > The good news is though, that there is a setup possible, close to what > > you describe that does exactly what you need (or at least it does for > > me, and I obviously don't know what other features your task has that > > might interfere). I found that there is no need to use a variable > > 'listaorlistb' at all, not in the first 2 level list (as long as you > > nest listA and listB well, you could use a variable like that for > > logging though) nor in the actual lista and listb. I hereby post a > > link to a screenshot of the setup that works for me. I opened the > > three lists so that you can see all the parameters and randomisation > > values. I hope it will help you to locate the litle culprit in your > > own experiment. > > >http://images.redial.net/setuplistaorlistb.bmp > > > Good luck! > > > liw > > > On May 1, 10:50 pm, Joseph Williams > > wrote: > > > Hi Everyone, > > > > I'm having a problem with an item being drawn twice from a list that is > > > nested in a non-typical way. I had to give two different groups of > > subjects > > > two different sets of test items, so I had a list with counterbalance > > > selection: the list had list A and list B nested inside along with a > > > variable [listAorlistB]. The first level had list A as a nested list and > > the > > > variable [listAorlistB] had value "listA", the second had the same for > > list > > > B. > > > > Then a list containing the sub-procedure that displayed the (e.g. 5) test > > > items had the variable ( [listAorlistB] ) as a nested list so that it > > always > > > choose the relevant set of items. When I look at the data file (and > > examine > > > the items by running the program) the first 4 items appear to be drawn > > > randomly, but the 5th and last one is a repetition of one of the previous > > 4: > > > e.g. 4 2 1 2 (instead of drawing item 3). The item numbers which are > > shown > > > (like in the example) are correctly given by (e.g.) listA[logLevel5], but > > I > > > don't understand why one is being repeated instead of drawing another > > one. I > > > looked at multiple subjects and I always get this problem, and I noted is > > > that the final and repeated item is always the item number in > > > listA[SubTrial]. > > > > Does anyone have any ideas about what the problem might be? > > > > Thank you, > > > > Joseph --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 meg.andrejczuk at gmail.com Thu May 7 14:09:30 2009 From: meg.andrejczuk at gmail.com (Megan Andrejczuk) Date: Thu, 7 May 2009 10:09:30 -0400 Subject: Auditory Recording and Onset timing In-Reply-To: <49fa1573.0e0bca0a.0cb5.ffffb5bfSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Hi all! I have another question which I am hoping you can help me with. I am trying to Configure the Serial Response Box in E-Prime, I have downloaded the utilities format and have tried running it in e-prime however, I keep recieving a run-time error which is as follows *This is what the run time errors says* Run-time Error (Line 1541) 11041: ImageDisplay Internal Error has occurred Marker: 2000 *In Line 1* c.SetAttrib "RefreshTime", Format$(1/(c.GetAttrib ("Display.RefreshRate"))*1000, "##.##") /* Dim dblRefreshTime As Double dblRefreshTime = 1/(c.GetAttrib ("Display.RefreshRate"))*1000 c.SetAttrib "RefreshTime", Format$(dblRefreshTime, "##.##") */ *Script* Menu.Guid = "{52C406B8-5D1F-4B60-A564-CF7F7A1FE513}" Menu.Tag = "" Set MenuEchoClients = New EchoClientCollection Menu.LoadProperties Set Hello = New Slide Hello.Name = "Hello" Hello.Guid = "{C3C963DE-3E11-42D4-B9BA-6A3165479C5A}" Hello.Tag = "" Set HelloEchoClients = New EchoClientCollection Hello.LoadProperties I have tried changing the displat but not much seems to be working. I know the box works because the lights are lit and it has been used previously. I tried emailing pstnet support and have heard nothing. I am beyond frustrated! Any thoughts or suggestions you may have would be greatly appreciated! Thanks, Megan On Thu, Apr 30, 2009 at 5:17 PM, David McFarlane wrote: > > First, you will need EP2 to record audio at all. Next, what if you > used any ordinary stim/response object to wait for and capture the > onset of vocalization via, e.g., a SRBox, and follow that with a > SoundIn object that will then record the remainder of the > response? You might even split a single microphone between the SRBox > (for vocalization onset) and the mic input of the computer sound card > (for recording SoundIn). I will be interested to learn how this works out. > > -- David McFarlane, Professional Faultfinder > > >If I want to record the timing of the onset of a vocalization but I > >also want an auditory recording of the verbal response is there any > >combination of e-prime software/hardware that can do this? In looking > >over the response box features, I found that it will time the onset of > >a vocalization but seems like you need a seperate recording system to > >capture the actual verbatim response. Can you pair the e-prime > >software and the response box in anyway to capture both at the same > >time? > > > >I hope this makes sense :) > > > >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 S.Mobini at uea.ac.uk Thu May 7 14:45:46 2009 From: S.Mobini at uea.ac.uk (Sirous) Date: Thu, 7 May 2009 07:45:46 -0700 Subject: Dot-Probe task using E-Prime Message-ID: Hi I wonder if anybody can provide me with some information about how to set up dot-probe task using E-Prime. many thanks for your help Sirous --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 sara.agosta at gmail.com Thu May 7 20:41:47 2009 From: sara.agosta at gmail.com (saraag) Date: Thu, 7 May 2009 13:41:47 -0700 Subject: trigger the response Message-ID: Hi, I'm running an experiment with e prime while I'm recording the EEG (with analyzer), I would like to trigger te response (correct or answer) can you help me? I thought this was the right : If Slide.Acc= 1 then WritePort &H378, c.GetAttrib ("Trigger")+ 100 If Slide.Acc= 0 then WritePort &H378, c.GetAttrib ("Trigger")+ 200 can you help me? Thank you very much! Sara --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From mcfarla9 at msu.edu Fri May 8 14:18:50 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 8 May 2009 10:18:50 -0400 Subject: trigger the response In-Reply-To: <1084572c-f236-4ced-8895-65e193fcbf0f@e20g2000vbc.googlegro ups.com> Message-ID: I don't know about anything else, but the code as written will produce an error because the name "Slide" is reserved. You cannot have a Slide named simply "Slide", you will need to change that to "Slide1" or "StimSlide" or whatever. Also, on a style and efficiency note, there is no need to do two separate If-Then tests on .ACC, you only need to test once for whether it or not it equals 0 and then branch as necessary, thus: If (Slide.Acc = 1) Then WritePort &H378, c.GetAttrib("Trigger") + 100 Else WritePort &H378, c.GetAttrib("Trigger") + 200 End If Knowing that any non-zero value evaluates to "True", you could get rid of the explicit test and further compact this to simply: If Slide.Acc Then WritePort &H378, c.GetAttrib("Trigger") + 100 Else WritePort &H378, c.GetAttrib("Trigger") + 200 End If Finally, let's get rid of the "magic number" and use a constant (and ideally, put the constant in the global User Area): Const LptDataPort as Integer = &H378 If Slide.Acc Then WritePort LptDataPort, c.GetAttrib("Trigger") + 100 Else WritePort LptDataPort, c.GetAttrib("Trigger") + 200 End If But to truly compact and obfuscate this, you could use the venerable Iif() function, thus: Const LptDataPort as Integer = &H378 WritePort LptDataPort, c.GetAttrib("Trigger") + Iif( Slide.Acc, 100, 200 ) -- David McFarlane, Professional Faultfinder At 5/7/2009 04:41 PM Thursday, Sara wrote: >Hi, I'm running an experiment with e prime while I'm recording the EEG >(with analyzer), I would like to trigger te response (correct or >answer) can you help me? > >I thought this was the right : > >If Slide.Acc= 1 then WritePort &H378, c.GetAttrib ("Trigger")+ 100 >If Slide.Acc= 0 then WritePort &H378, c.GetAttrib ("Trigger")+ 200 > >can you help me? >Thank you very much! >Sara --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From mcfarla9 at msu.edu Fri May 8 14:24:07 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 8 May 2009 10:24:07 -0400 Subject: trigger the response In-Reply-To: <4a043f5c.0f0bca0a.75be.67bdSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Oops, in my hasty copy & paste, I myself forgot to change the name of "Slide" in my examples. Please change "Slide" to something like "StimSlide". Sorry. -- David McFarlane, Professional Faultfinder At 5/8/2009 10:18 AM Friday, David McFarlane wrote: >I don't know about anything else, but the code as written will >produce an error because the name "Slide" is reserved. You cannot >have a Slide named simply "Slide", you will need to change that to >"Slide1" or "StimSlide" or whatever. > >Also, on a style and efficiency note, there is no need to do two >separate If-Then tests on .ACC, you only need to test once for >whether it or not it equals 0 and then branch as necessary, thus: > >If (Slide.Acc = 1) Then > WritePort &H378, c.GetAttrib("Trigger") + 100 >Else > WritePort &H378, c.GetAttrib("Trigger") + 200 >End If > >Knowing that any non-zero value evaluates to "True", you could get >rid of the explicit test and further compact this to simply: > >If Slide.Acc Then > WritePort &H378, c.GetAttrib("Trigger") + 100 >Else > WritePort &H378, c.GetAttrib("Trigger") + 200 >End If > >Finally, let's get rid of the "magic number" and use a constant (and >ideally, put the constant in the global User Area): > >Const LptDataPort as Integer = &H378 >If Slide.Acc Then > WritePort LptDataPort, c.GetAttrib("Trigger") + 100 >Else > WritePort LptDataPort, c.GetAttrib("Trigger") + 200 >End If > >But to truly compact and obfuscate this, you could use the venerable >Iif() function, thus: > >Const LptDataPort as Integer = &H378 >WritePort LptDataPort, c.GetAttrib("Trigger") + Iif( Slide.Acc, 100, 200 ) > >-- David McFarlane, Professional Faultfinder > > >At 5/7/2009 04:41 PM Thursday, Sara wrote: > > >Hi, I'm running an experiment with e prime while I'm recording the EEG > >(with analyzer), I would like to trigger te response (correct or > >answer) can you help me? > > > >I thought this was the right : > > > >If Slide.Acc= 1 then WritePort &H378, c.GetAttrib ("Trigger")+ 100 > >If Slide.Acc= 0 then WritePort &H378, c.GetAttrib ("Trigger")+ 200 > > > >can you help me? > >Thank you very much! > >Sara > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 sara.agosta at gmail.com Fri May 8 18:59:08 2009 From: sara.agosta at gmail.com (Sara Agosta) Date: Fri, 8 May 2009 13:59:08 -0500 Subject: trigger the response In-Reply-To: <4a044089.0d0bca0a.0e0e.68c4SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Thank you very much! the term Slide was only an exemple sorry... what I do not understand is the "magic number"? I've never used that script can you help me and explaining what does this mean? Thank you so much for your help! On monday I'll try the new script for the response and I'll let you know! thanks sara 2009/5/8 David McFarlane > > Oops, in my hasty copy & paste, I myself forgot to change the name of > "Slide" in my examples. Please change "Slide" to something like > "StimSlide". Sorry. > > -- David McFarlane, Professional Faultfinder > > > At 5/8/2009 10:18 AM Friday, David McFarlane wrote: > > >I don't know about anything else, but the code as written will > >produce an error because the name "Slide" is reserved. You cannot > >have a Slide named simply "Slide", you will need to change that to > >"Slide1" or "StimSlide" or whatever. > > > >Also, on a style and efficiency note, there is no need to do two > >separate If-Then tests on .ACC, you only need to test once for > >whether it or not it equals 0 and then branch as necessary, thus: > > > >If (Slide.Acc = 1) Then > > WritePort &H378, c.GetAttrib("Trigger") + 100 > >Else > > WritePort &H378, c.GetAttrib("Trigger") + 200 > >End If > > > >Knowing that any non-zero value evaluates to "True", you could get > >rid of the explicit test and further compact this to simply: > > > >If Slide.Acc Then > > WritePort &H378, c.GetAttrib("Trigger") + 100 > >Else > > WritePort &H378, c.GetAttrib("Trigger") + 200 > >End If > > > >Finally, let's get rid of the "magic number" and use a constant (and > >ideally, put the constant in the global User Area): > > > >Const LptDataPort as Integer = &H378 > >If Slide.Acc Then > > WritePort LptDataPort, c.GetAttrib("Trigger") + 100 > >Else > > WritePort LptDataPort, c.GetAttrib("Trigger") + 200 > >End If > > > >But to truly compact and obfuscate this, you could use the venerable > >Iif() function, thus: > > > >Const LptDataPort as Integer = &H378 > >WritePort LptDataPort, c.GetAttrib("Trigger") + Iif( Slide.Acc, 100, 200 ) > > > >-- David McFarlane, Professional Faultfinder > > > > > >At 5/7/2009 04:41 PM Thursday, Sara wrote: > > > > >Hi, I'm running an experiment with e prime while I'm recording the EEG > > >(with analyzer), I would like to trigger te response (correct or > > >answer) can you help me? > > > > > >I thought this was the right : > > > > > >If Slide.Acc= 1 then WritePort &H378, c.GetAttrib ("Trigger")+ 100 > > >If Slide.Acc= 0 then WritePort &H378, c.GetAttrib ("Trigger")+ 200 > > > > > >can you help me? > > >Thank you very much! > > >Sara > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 frosts at haskins.yale.edu Fri May 8 19:08:58 2009 From: frosts at haskins.yale.edu (Steve Frost) Date: Fri, 8 May 2009 12:08:58 -0700 Subject: soundout object - maximum duration Message-ID: i have a WAV file that i need eprime to play that lasts 2:12, but it appears that this exceeds the maximum value that eprime 2.0 will allow. that is, when i opened the soundout object properties page and changed the buffer size, the maximum allowable value was 100000 milliseconds. Can anybody tell me whether there is a way around this limitation (short of chopping up the sound file into shorter segments) and how to go about it? i also have eprime 2.0 professional available in case that version supports longer audio file durations. thanks. steve frost --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From mcfarla9 at msu.edu Fri May 8 19:27:20 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 8 May 2009 15:27:20 -0400 Subject: soundout object - maximum duration In-Reply-To: <229e1372-dea2-4661-b26f-b0d673459cff@s28g2000vbp.googlegro ups.com> Message-ID: Steve, Easy! EP2 adds the "Streaming" buffer mode, and uses that as the default. In streaming mode EP will just refill the buffer as needed, so the buffer size no longer matters in most cases. Might as well start with the default of 5000 and adjust as needed for performance. BTW, I asked PST and learned that "Buffered" mode has been kept just for compatibility with older scripts, in general you should just always use Streaming (see http://support.pstnet.com/forum/Topic2089-12-1.aspx ). I don't think PST has documented this property yet, if anyone knows otherwise then please post a link. Thanks. -- David McFarlane, Professional Faultfinder >i have a WAV file that i need eprime to play that lasts 2:12, but it >appears that this exceeds the maximum value that eprime 2.0 will >allow. that is, when i opened the soundout object properties page and >changed the buffer size, the maximum allowable value was 100000 >milliseconds. Can anybody tell me whether there is a way around this >limitation (short of chopping up the sound file into shorter segments) >and how to go about it? i also have eprime 2.0 professional available >in case that version supports longer audio file durations. thanks. > >steve frost --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From mcfarla9 at msu.edu Fri May 8 19:32:30 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 8 May 2009 15:32:30 -0400 Subject: trigger the response In-Reply-To: <50a51e790905081159w7700162dl1060559cad727439@mail.gmail.co m> Message-ID: Sara, The "magic number" in the script is just the address of the data port for the parallel (aka lpt, or "lineprinter") device. PST has a couple sample programs on their Downloads site to illustrate this, and you may also check the PST Knowledge Base for articles on how to use the parallel port. Finally, you might try a Google search for more info on the parallel port, and then read "Parallel Port Complete" by Jan Axelson (http://www.amazon.com/Parallel-Port-Complete-Programming-Interfacing/dp/0965081915/ref=sr_1_1?ie=UTF8&s=books&qid=1241811038&sr=1-1 ). Enjoy the technical homework, -- David McFarlane, Professional Faultfinder At 5/8/2009 02:59 PM Friday, you wrote: >Thank you very much! >the term Slide was only an exemple sorry... what I do not understand >is the "magic number"? >I've never used that script can you help me and explaining what does >this mean? > >Thank you so much for your help! > >On monday I'll try the new script for the response and I'll let you know! > >thanks >sara --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 Sat May 9 08:30:58 2009 From: liwenna at gmail.com (liwenna) Date: Sat, 9 May 2009 01:30:58 -0700 Subject: Dot-Probe task using E-Prime In-Reply-To: <1dfe5740-cf39-4a50-9989-8d567ad2f64a@l28g2000vba.googlegroups.com> Message-ID: Are your stimuli pictures or words? Do you need fixed stimulus pairs (for instance when using two facial pictures of the same person in each trial) or should stimulus pairs be randomised? Do you need control over the contingency with which the probe appears on the position of either of the stimulus (or should it just be 50% on each type of stimulus?) I'll get back to you on monday with more details when I am on my 'e- prime' computer.. I just happened to have been working on dot probes for the past few weeks. ;) On May 7, 4:45 pm, Sirous wrote: > Hi I wonder if anybody can provide me with some information about how > to set up dot-probe task using E-Prime. many thanks for your help > Sirous --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 S.Mobini at uea.ac.uk Sat May 9 10:48:30 2009 From: S.Mobini at uea.ac.uk (S.Mobini at uea.ac.uk) Date: Sat, 9 May 2009 11:48:30 +0100 Subject: Dot-Probe task using E-Prime In-Reply-To: Message-ID: Hi Many thanks for your message. I am using the word pairs (e.g., shy and rug), one presented above the other (top and bottom position) but I need to counterbalance this, so for some subjects (50%) shy is the top word and for some others (50%) it is the bottom word. Altogether, I have 45 fixed pairs of words as my verbal stimuli, i.e. 15 pairs of POSITIVE words and Neutral (e.g., happy and pivot), 15 pairs of NEGATIVE words and Neutral (e.g., insecure and tortoise), and 15 pairs of BODY SENSATION and Non-body sensation words (e.g., Edgy and Dial). I need to randomise the order of word pair presentations for each subject so that each subject will receive the word pairs in a randomised order. I also need to control the appearance of the probe (50% at the position of the top word and 50% at the position of the bottom word). Thank you very much for your help. Sirous > > Are your stimuli pictures or words? Do you need fixed stimulus pairs > (for instance when using two facial pictures of the same person in > each trial) or should stimulus pairs be randomised? > Do you need control over the contingency with which the probe appears > on the position of either of the stimulus (or should it just be 50% on > each type of stimulus?) > > I'll get back to you on monday with more details when I am on my 'e- > prime' computer.. I just happened to have been working on dot probes > for the past few weeks. ;) > > > > On May 7, 4:45 pm, Sirous wrote: >> Hi I wonder if anybody can provide me with some information about how >> to set up dot-probe task using E-Prime. many thanks for your help >> Sirous > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 wwwelenawww at gmail.com Mon May 11 21:49:26 2009 From: wwwelenawww at gmail.com (Elena) Date: Mon, 11 May 2009 14:49:26 -0700 Subject: Response triggers going crazy!... (ActiViewTwo) Message-ID: Hello everybody! I would be so thankful if someone could direct me at some solution. I've done a lot of variations of my syntax, but the problem hasn't vanished. Close to despair! I only need triggers (for Biosemi) for correct and incorrect responses, and the triggers that I get don't always correspond to the correctness of responses. Even worse, even when there are no responses, the triggers still show up. So, here's the latest version of my script: -- InlineRESPONSE -- (that I placed before the Text element, asking for a response) If Prompt.ACC = 1 then c.setattrib "RespTrig",2 elseif Prompt.ACC = 0 then c.setattrib "RespTrig",4 end if display.waitForVerticalBlank writeport portAddr, cint(c.getattrib("RespTrig")) sleep 10 writeport portAddr, 0 (I also tried a simpler version -- If Prompt.ACC then code 2 else code 4 end if) Before writing this inline, in my general script (User's) I also tried some syntax -- -- General Script, let's call it for a reference -- dim rep as boolean dim temps as double sub attends(limite) rep = true while clock.read"") then if Prompt.ACC then code 2 else code 4 end if rep=false elseif rep and (ProRight.RESP<>"") then if ProRight.ACC then code 2 else code 4 end if rep=false end if wend end sub This script alone (without InlineRESPONSE) didn't give any errors, but the E-Prime didn't send any response triggers at all (and with stimuli triggers all went well). When I added the InlineRESPONSE (and tried both versions that I give above), the triggers started getting sent, and the right numbers, but not correctly!! Then I tried to disactivate completely the response-related general script, but then my stimuli triggers inline started reporting an error. (Here's my InlineSTIMULI, just in case it's interconnected -- if (Cint(c.getAttrib("Gp")))=(Cint(c.getAttrib("Mng"))) then if (Cint(c.getAttrib("gap1")))=1 then code 71 else code 70 end if elseif (Cint(c.getAttrib("Gp")))<>(Cint(c.getAttrib("Mng"))) then if (Cint(c.getAttrib("gap1")))=0 then code 91 else code 90 end if end if temps=clock.read+1000 attends temps ) It was the last line - attends temps - which E-Prime now couldn't interprete, when I disactivated all the response-related general script. So, I tried to disactivate the general response-related script partially, leaving only -- dim temps as double sub attends(limite) rep = true while clock.read(Cint(c.getAttrib("Mng"))) then if (Cint(c.getAttrib("gap1")))=0 then code 91 else code 90 end if end if temps=clock.read+1000 attends temps Please help! would be very thankful! Elena --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From liwenna at gmail.com Tue May 12 09:53:32 2009 From: liwenna at gmail.com (liwenna) Date: Tue, 12 May 2009 02:53:32 -0700 Subject: Dot-Probe task using E-Prime In-Reply-To: <50031.89.240.213.219.1241866110.squirrel@webmail.uea.ac.uk> Message-ID: I sent a complete script to sirous, but for everybody else I post a screenshot and some explanation here too... (I so often found threads that should contain the answer to my question... but do not as people continued in private e-mail). Screenshot: http://images.redial.net/awdpsirous.bmp Explanation: You want to counterbalance the position of the 'type of words', the position of the probe and the identitiy of the probe, as well as randomise the trial order. To do all this we use two lists... the first list contains the stimuluswords (stimword1 and stimword2) and for logging purposes I also included a variable 'trialtype' so you can easily see in your data which trial is which type... you might consider recoding these into 1, 2, 3 right away (simply change that in the list or add another attribute) so that for instance spss will later be able to easy separate the different type of trials. You can add your remaining 42 word-combinations in here. Every trial will start with e-prime choosing one of the word combinations, at random. If you need blocks of the same trials (neg-neut, hap-neut etc), then we'll need an extra list before this one, but I don't think this is the case, right? Now, nested in this list is the 'positions' list (or positions and probe id would be more accurately). It seemed most simple to just make a list with all possible combinations of word-positions, 'probetype', and probepositions in it. The position of the stimwords are given in 'posstim1' and 'posstim2', if you'll look at the properties of the text-displays in the 'stimuli-slide' you'll see that for the y- position of the frame it refers to these attributes: [posstim1] and [posstim2]. This way the text-displays (with the stimwords which it gets trough calling into [stimword1] and [stimword2] ) will be displayed at y-positions 25% and 75% of the screen, ergo, top and bottom. Then the probe, I used eiterh * or ** here, obviously you can change this into any probes you like. The attribute 'cresp' refers to the correct response... for my probes * and ** I will use buttons on a SR-box, but in this version the two mousebuttons are you used... obviously you can change all this in the stimuli-slide properties. Lastly the attribute 'posprobe': this one is called upon by the probe- texdisplay in the prob-slide in the same way as the stimulusdisplays called into this list for their position, and it determines whether the probe will be shown in the position of stimword1 or stimword2. Regards, liwenna On May 9, 12:48 pm, S.Mob... at uea.ac.uk wrote: > Hi Many thanks for your message. I am using the word pairs (e.g., shy and > rug), one presented above the other (top and bottom position) but I need > to counterbalance this, so for some subjects (50%) shy is the top word and > for some others (50%) it is the bottom word. > Altogether, I have 45 fixed pairs of words as my verbal stimuli, i.e. 15 > pairs of POSITIVE words and Neutral (e.g., happy and pivot), 15 pairs of > NEGATIVE words and Neutral (e.g., insecure and tortoise), and 15 pairs of > BODY SENSATION and Non-body sensation words (e.g., Edgy and Dial). > I need to randomise the order of word pair presentations for each subject > so that each subject will receive the word pairs in a randomised order. I > also need to control the appearance of the probe (50% at the position of > the top word and 50% at the position of the bottom word). > Thank you very much for your help. > Sirous > > > > > Are your stimuli pictures or words? Do you need fixed stimulus pairs > > (for instance when using two facial pictures of the same person in > > each trial) or should stimulus pairs be randomised? > > Do you need control over the contingency with which the probe appears > > on the position of either of the stimulus (or should it just be 50% on > > each type of stimulus?) > > > I'll get back to you on monday with more details when I am on my 'e- > > prime' computer.. I just happened to have been working on dot probes > > for the past few weeks. ;) > > > On May 7, 4:45 pm, Sirous wrote: > >> Hi I wonder if anybody can provide me with some information about how > >> to set up dot-probe task using E-Prime. many thanks for your help > >> Sirous --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 ilaria.mega at gmail.com Tue May 12 16:52:02 2009 From: ilaria.mega at gmail.com (Senzali) Date: Tue, 12 May 2009 09:52:02 -0700 Subject: tms pulse during video playing Message-ID: Hello everybody, I have some troubles with movies presentation: I'm trying to give a TMS pulse during the presentation of a video (it lasts 2 seconds so it's pretty short), at very precise timings, for example 767 milliseconds after the stimulus onset, while the video is still ongoing. I already did a similar experiment using images: I sat the stimulus duration time at 0, and it worked, but it doesn't with videos (the program shows just the frame zero). What kind of InLine should I write? And, how can I determine the pre-release time with movies? Thank you all, I really need some help. Ilaria. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 ilaria.mega at gmail.com Tue May 12 20:33:09 2009 From: ilaria.mega at gmail.com (Senzali) Date: Tue, 12 May 2009 13:33:09 -0700 Subject: tms pulse during video playing Message-ID: Hello everybody, I have some troubles with movies presentation: I'm trying to give a TMS pulse during the presentation of a video (it lasts 2 seconds so it's pretty short), at very precise timings, for example 767 milliseconds after the stimulus onset, while the video is still ongoing. I already did a similar experiment using images: I set the stimulus duration time at 0, and it worked, but it doesn't with videos (the program shows just the frame zero). What kind of InLine should I write? And, how can I determine the pre-release time with movies? Thank you all, I really need some help. Ilaria. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 sookhm00 at gmail.com Fri May 15 01:01:09 2009 From: sookhm00 at gmail.com (shm) Date: Thu, 14 May 2009 18:01:09 -0700 Subject: control the space between the letters Message-ID: Is there any funtion of controling the space between the letters? my experiment design is about reading and i want to adjust the space between the letters. the spaces are 0.5, 0.707, 1, 1.141, and 2 times the standard spacing. there are pool of 400 sentences chosen randomly on each trial. also controling the space is random to each trial and the sentence be chosen only one time. i need your help. thanks. sook --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From baltimore.ben at gmail.com Fri May 15 02:01:09 2009 From: baltimore.ben at gmail.com (ben robinson) Date: Thu, 14 May 2009 22:01:09 -0400 Subject: control the space between the letters In-Reply-To: <0d543ca8-a241-47e1-867d-5ab185239bfc@d7g2000prl.googlegroups.com> Message-ID: if each of your 400 sentences are short enough to fit across the screen without wrapping down to a second line of text, even with the desired 2x spacing, i could imagine coding the x-coordinate for lots of little TextObjects within a SlideObject to the desired spacing, depending on the trial, and having each TextObject only present a single letter. it would be a pain to set it up in the first place, but it seems like one of the simpler solutions... hope they're short sentences... ben On Thu, May 14, 2009 at 9:01 PM, shm wrote: > > Is there any funtion of controling the space between the letters? > my experiment design is about reading and i want to adjust the space > between the letters. > > the spaces are 0.5, 0.707, 1, 1.141, and 2 times the standard > spacing. > there are pool of 400 sentences chosen randomly on each trial. > also controling the space is random to each trial and the sentence be > chosen only one time. > > > i need your help. thanks. > > sook > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 pquain at une.edu.au Fri May 15 06:35:44 2009 From: pquain at une.edu.au (Peter Quain) Date: Fri, 15 May 2009 16:35:44 +1000 Subject: control the space between the letters In-Reply-To: <0d543ca8-a241-47e1-867d-5ab185239bfc@d7g2000prl.googlegrou ps.com> Message-ID: my guess is that you'll need to find / create some font sets that use the same letters but vary their spacing .. then just change the font attribute - TimesNewRoman-.5; TimesNewRoman-.707 .. etc. for your conditions At 11:01 AM 15/05/2009, you wrote: >Is there any funtion of controling the space between the letters? >my experiment design is about reading and i want to adjust the space >between the letters. > >the spaces are 0.5, 0.707, 1, 1.141, and 2 times the standard >spacing. >there are pool of 400 sentences chosen randomly on each trial. >also controling the space is random to each trial and the sentence be >chosen only one time. > > >i need your help. thanks. > >sook > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From mcfarla9 at msu.edu Fri May 15 11:26:25 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 15 May 2009 07:26:25 -0400 Subject: control the space between the letters In-Reply-To: <0d543ca8-a241-47e1-867d-5ab185239bfc@d7g2000prl.googlegroups.com> Message-ID: I would go with changing the fonts, as Peter suggested, if at all possible. But here's another thought: Render each of your sentence & spacing displays into an image file, and then use ImageDisplay instead of TextDisplay to show the sentences. This of course would mean making 400 x 5 = 2000 sentence/spacing image files. -- David McFarlane, Professional Faultfinder shm wrote: > Is there any funtion of controling the space between the letters? > my experiment design is about reading and i want to adjust the space > between the letters. > > the spaces are 0.5, 0.707, 1, 1.141, and 2 times the standard > spacing. > there are pool of 400 sentences chosen randomly on each trial. > also controling the space is random to each trial and the sentence be > chosen only one time. > > > i need your help. thanks. > > sook --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 meg.andrejczuk at gmail.com Mon May 18 15:41:50 2009 From: meg.andrejczuk at gmail.com (meg.andrejczuk) Date: Mon, 18 May 2009 08:41:50 -0700 Subject: data collection Message-ID: I have tested my Serial Response Box and everything seems to be functioning properly. I am confused how to add the timing onset to my experiment. It is a picture naming task, so an image is displayed for two seconds and the participant is directed to name the object as quickly as they can. I would like to start timing at voice onset, in order to know how quickyl they responded. I added the SRBox and then put a SoundIn in the Procedure but I think it is only recording the verbalization. How do I have the SRBox only record the onset time? Also, where will the data be logged? Thanks, Megan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 May 18 18:28:34 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 18 May 2009 14:28:34 -0400 Subject: data collection In-Reply-To: Message-ID: Megan, As a general E-Prime programming strategy, I would start by forgetting about the SoundIn, and just make a simple program that shows the pictures and gets the response time using the voice key response. Then I would make a second simplified program that just shows pictures and records voice responses with SoundIn, without worrying about the response time. Then I would take everything I learned from those two simplified programs and combine that into one program that gets response times from the voice key plus records the responses. Good luck, -- David McFarlane, Professional Faultfinder >I have tested my Serial Response Box and everything seems to be >functioning properly. I am confused how to add the timing onset to my >experiment. It is a picture naming task, so an image is displayed for >two seconds and the participant is directed to name the object as >quickly as they can. I would like to start timing at voice onset, in >order to know how quickyl they responded. I added the SRBox and then >put a SoundIn in the Procedure but I think it is only recording the >verbalization. How do I have the SRBox only record the onset time? >Also, where will the data be logged? > >Thanks, > >Megan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 meg.andrejczuk at gmail.com Mon May 18 18:40:12 2009 From: meg.andrejczuk at gmail.com (Megan Andrejczuk) Date: Mon, 18 May 2009 14:40:12 -0400 Subject: data collection In-Reply-To: <4a11a8d6.0f0bca0a.1cfb.3940SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Thanks David! But that is where my confusion comes in. I am not sure how to incorporate the voice key response. I have the experiment set-up so the pictures appear but don't know how to collect the onset time using the voice key. I am extremely new to e-prime so this may be an elementary question. Thanks, Megan On Mon, May 18, 2009 at 2:28 PM, David McFarlane wrote: > > Megan, > > As a general E-Prime programming strategy, I would start by > forgetting about the SoundIn, and just make a simple program that > shows the pictures and gets the response time using the voice key > response. Then I would make a second simplified program that just > shows pictures and records voice responses with SoundIn, without > worrying about the response time. Then I would take everything I > learned from those two simplified programs and combine that into one > program that gets response times from the voice key plus records the > responses. > > Good luck, > -- David McFarlane, Professional Faultfinder > > > >I have tested my Serial Response Box and everything seems to be > >functioning properly. I am confused how to add the timing onset to my > >experiment. It is a picture naming task, so an image is displayed for > >two seconds and the participant is directed to name the object as > >quickly as they can. I would like to start timing at voice onset, in > >order to know how quickyl they responded. I added the SRBox and then > >put a SoundIn in the Procedure but I think it is only recording the > >verbalization. How do I have the SRBox only record the onset time? > >Also, where will the data be logged? > > > >Thanks, > > > >Megan > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 adamosth at gmail.com Mon May 18 18:41:25 2009 From: adamosth at gmail.com (Adam Osth) Date: Mon, 18 May 2009 14:41:25 -0400 Subject: Randomization problem Message-ID: I'm having a little problem with randomization code in Ebasic. I have this code: Dim drawno As Integer drawno = Random(0, 7) ...and yet, drawno is initialized to '0' every time. This code is used for 8 repetitions in the program, and each time "0" comes up. Even with "Randomize" in front, the same thing happens. Is there something I'm doing wrong? Adam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon May 18 18:49:53 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 18 May 2009 14:49:53 -0400 Subject: data collection In-Reply-To: <7d497d1d0905181140g6df90be4g530839db14359acc@mail.gmail.co m> Message-ID: Megan, Use of the voice key is described on pages 11-12 and 15 of the manual that came with the SRBox. If you do not have the manual then you really have to contact PST and get one from them ASAP. Also, as stated in the manual, the voice key is already set up to work with the Utiilites test program that came with the SRBox (also downloadable from PST). If your voice key does not work with the Utilities program then you have some troubleshooting to do. -- David McFarlane, Professional Faultfinder >Thanks David! But that is where my confusion comes in. I am not sure >how to incorporate the voice key response. I have the experiment >set-up so the pictures appear but don't know how to collect the >onset time using the voice key. I am extremely new to e-prime so >this may be an elementary question. > >Thanks, > >Megan > >On Mon, May 18, 2009 at 2:28 PM, David McFarlane ><mcfarla9 at msu.edu> wrote: > >Megan, > >As a general E-Prime programming strategy, I would start by >forgetting about the SoundIn, and just make a simple program that >shows the pictures and gets the response time using the voice key >response. Then I would make a second simplified program that just >shows pictures and records voice responses with SoundIn, without >worrying about the response time. Then I would take everything I >learned from those two simplified programs and combine that into one >program that gets response times from the voice key plus records the >responses. > >Good luck, >-- David McFarlane, Professional Faultfinder > > > >I have tested my Serial Response Box and everything seems to be > >functioning properly. I am confused how to add the timing onset to my > >experiment. It is a picture naming task, so an image is displayed for > >two seconds and the participant is directed to name the object as > >quickly as they can. I would like to start timing at voice onset, in > >order to know how quickyl they responded. I added the SRBox and then > >put a SoundIn in the Procedure but I think it is only recording the > >verbalization. How do I have the SRBox only record the onset time? > >Also, where will the data be logged? > > > >Thanks, > > > >Megan > >> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 adamosth at gmail.com Mon May 18 19:03:08 2009 From: adamosth at gmail.com (Adam Osth) Date: Mon, 18 May 2009 15:03:08 -0400 Subject: Randomization problem In-Reply-To: <4a11b014.100bca0a.36d2.3bb0SMTPIN_ADDED@gmr-mx.google.com> Message-ID: I just realized when you sent this that it might be due to how the random number is applied. I have the randomization code to select a picture for presentation, so I did this: TestList.setAttrib counter, "Item", c.GetAttrib("Picture:drawno") ...in which one of the 8 files in the attribute "Picture" on another list is randomly selected. Is it defaulting to zero because this isn't syntactically valid? Adam On Mon, May 18, 2009 at 2:59 PM, David McFarlane wrote: > > Adam, > > Hmm, that bit of code works perfectly for me. I suspect the problem > lies somewhere else in the script. Just to be clear, try the > following and see what happens: > > Dim drawno As Integer > Dim i as Integer > For i = 1 to 8 > drawno = Random(0, 7) > MsgBox drawno > Next i > > -- David McFarlane, Professional Faultfinder > > > >I'm having a little problem with randomization code in Ebasic. I > >have this code: > > > >Dim drawno As Integer > >drawno = Random(0, 7) > > > >...and yet, drawno is initialized to '0' every time. This code is > >used for 8 repetitions in the program, and each time "0" comes up. > >Even with "Randomize" in front, the same thing happens. > > > >Is there something I'm doing wrong? > > > >Adam > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon May 18 19:17:58 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 18 May 2009 15:17:58 -0400 Subject: Randomization problem In-Reply-To: <7ef748980905181203s4b2c1697u849fe7e7cf3624e7@mail.gmail.co m> Message-ID: Adam, Wow, I don't know offhand if that syntax works. It looks like you are trying to use "colon syntax", and I don't know if you can use that with the Context.GetAttrib() method, that may work only with the List.GetAttrrib() method (e.g., colon syntax has to know which List has the attribute "Picture"). I would have to make some demo programs and look at the generated code to explore this further, but I will leave that to you. -- David McFarlane, Professional Faultfinder >I just realized when you sent this that it might be due to how the >random number is applied. > >I have the randomization code to select a picture for presentation, >so I did this: >TestList.setAttrib counter, "Item", c.GetAttrib("Picture:drawno") > >...in which one of the 8 files in the attribute "Picture" on another >list is randomly selected. > >Is it defaulting to zero because this isn't syntactically valid? > >Adam > >On Mon, May 18, 2009 at 2:59 PM, David McFarlane ><mcfarla9 at msu.edu> wrote: > >Adam, > >Hmm, that bit of code works perfectly for me. I suspect the problem >lies somewhere else in the script. Just to be clear, try the >following and see what happens: > >Dim drawno As Integer >Dim i as Integer >For i = 1 to 8 > drawno = Random(0, 7) > MsgBox drawno >Next i > >-- David McFarlane, Professional Faultfinder > > > >I'm having a little problem with randomization code in Ebasic. I > >have this code: > > > >Dim drawno As Integer > >drawno = Random(0, 7) > > > >...and yet, drawno is initialized to '0' every time. This code is > >used for 8 repetitions in the program, and each time "0" comes up. > >Even with "Randomize" in front, the same thing happens. > > > >Is there something I'm doing wrong? > > > >Adam > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 meg.andrejczuk at gmail.com Mon May 18 18:53:20 2009 From: meg.andrejczuk at gmail.com (Megan Andrejczuk) Date: Mon, 18 May 2009 14:53:20 -0400 Subject: data collection In-Reply-To: <4a11add5.0e0bca0a.6d3a.3ef1SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Thanks David! On Mon, May 18, 2009 at 2:49 PM, David McFarlane wrote: > > Megan, > > Use of the voice key is described on pages 11-12 and 15 of the manual > that came with the SRBox. If you do not have the manual then you > really have to contact PST and get one from them ASAP. Also, as > stated in the manual, the voice key is already set up to work with > the Utiilites test program that came with the SRBox (also > downloadable from PST). If your voice key does not work with the > Utilities program then you have some troubleshooting to do. > > -- David McFarlane, Professional Faultfinder > > > >Thanks David! But that is where my confusion comes in. I am not sure > >how to incorporate the voice key response. I have the experiment > >set-up so the pictures appear but don't know how to collect the > >onset time using the voice key. I am extremely new to e-prime so > >this may be an elementary question. > > > >Thanks, > > > >Megan > > > >On Mon, May 18, 2009 at 2:28 PM, David McFarlane > ><mcfarla9 at msu.edu> wrote: > > > >Megan, > > > >As a general E-Prime programming strategy, I would start by > >forgetting about the SoundIn, and just make a simple program that > >shows the pictures and gets the response time using the voice key > >response. Then I would make a second simplified program that just > >shows pictures and records voice responses with SoundIn, without > >worrying about the response time. Then I would take everything I > >learned from those two simplified programs and combine that into one > >program that gets response times from the voice key plus records the > >responses. > > > >Good luck, > >-- David McFarlane, Professional Faultfinder > > > > > > >I have tested my Serial Response Box and everything seems to be > > >functioning properly. I am confused how to add the timing onset to my > > >experiment. It is a picture naming task, so an image is displayed for > > >two seconds and the participant is directed to name the object as > > >quickly as they can. I would like to start timing at voice onset, in > > >order to know how quickyl they responded. I added the SRBox and then > > >put a SoundIn in the Procedure but I think it is only recording the > > >verbalization. How do I have the SRBox only record the onset time? > > >Also, where will the data be logged? > > > > > >Thanks, > > > > > >Megan > > > >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 adamosth at gmail.com Mon May 18 19:27:14 2009 From: adamosth at gmail.com (Adam Osth) Date: Mon, 18 May 2009 15:27:14 -0400 Subject: Randomization problem In-Reply-To: <4a11b46a.0f0bca0a.1e7a.3da5SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Ah, I had never thought of that. However, I just tested it with fixed defined numbers (ie: c.GetAttrib("Picture:3")) and it seems to index the correct files just fine. It's only when I use a variable in the colon notation that it has problems (ie: c.GetAttrib("Picture:y")) and defaults to zero. Are there other ways of doing this randomization procedure? It's a little bit sophisticated, which is why I'm using inline code. The program needs to randomly select one picture from 8 pictures in a list that are all presented in random sequence, store that filename and write it to another list for later presentation. Adam On Mon, May 18, 2009 at 3:17 PM, David McFarlane wrote: > > Adam, > > Wow, I don't know offhand if that syntax works. It looks like you > are trying to use "colon syntax", and I don't know if you can use > that with the Context.GetAttrib() method, that may work only with the > List.GetAttrrib() method (e.g., colon syntax has to know which List > has the attribute "Picture"). I would have to make some demo > programs and look at the generated code to explore this further, but > I will leave that to you. > > -- David McFarlane, Professional Faultfinder > > > >I just realized when you sent this that it might be due to how the > >random number is applied. > > > >I have the randomization code to select a picture for presentation, > >so I did this: > >TestList.setAttrib counter, "Item", c.GetAttrib("Picture:drawno") > > > >...in which one of the 8 files in the attribute "Picture" on another > >list is randomly selected. > > > >Is it defaulting to zero because this isn't syntactically valid? > > > >Adam > > > >On Mon, May 18, 2009 at 2:59 PM, David McFarlane > ><mcfarla9 at msu.edu> wrote: > > > >Adam, > > > >Hmm, that bit of code works perfectly for me. I suspect the problem > >lies somewhere else in the script. Just to be clear, try the > >following and see what happens: > > > >Dim drawno As Integer > >Dim i as Integer > >For i = 1 to 8 > > drawno = Random(0, 7) > > MsgBox drawno > >Next i > > > >-- David McFarlane, Professional Faultfinder > > > > > > >I'm having a little problem with randomization code in Ebasic. I > > >have this code: > > > > > >Dim drawno As Integer > > >drawno = Random(0, 7) > > > > > >...and yet, drawno is initialized to '0' every time. This code is > > >used for 8 repetitions in the program, and each time "0" comes up. > > >Even with "Randomize" in front, the same thing happens. > > > > > >Is there something I'm doing wrong? > > > > > >Adam > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon May 18 19:40:28 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 18 May 2009 15:40:28 -0400 Subject: tms pulse during video playing In-Reply-To: Message-ID: Hmm, you bring up an interesting limitation of movie presentation in E-Prime. I also find the same limitation with sound presentation. As far as I can tell, E-Prime has no mechanism to perform secondary actions or script during the playback of sound or movie files. With a lower level language (e.g., C or C++) I would write a loop to keep refreshing the output buffer and checking the clock to perform other actions, but I do not know how to do that with E-Prime objects, or if that is even possible. I will be really interested if someone more clever than me can post a solution. -- David McFarlane, Professional Faultfinder At 5/12/2009 12:52 PM Tuesday, you wrote: >Hello everybody, > >I have some troubles with movies presentation: I'm trying to give a >TMS pulse during the presentation of a video (it lasts 2 seconds so >it's pretty short), at very precise timings, for example 767 >milliseconds after the stimulus onset, while the video is still >ongoing. > >I already did a similar experiment using images: I sat the stimulus >duration time at 0, and it worked, but it doesn't with videos (the >program shows just the frame zero). > >What kind of InLine should I write? > >And, how can I determine the pre-release time with movies? > >Thank you all, I really need some help. > >Ilaria. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 May 18 19:46:39 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 18 May 2009 15:46:39 -0400 Subject: Randomization problem In-Reply-To: <7ef748980905181227w5445c453qe37bec6f7ad17321@mail.gmail.co m> Message-ID: D'oh! Of course, why didn't I see that! "Picture:drawno" is treated as a literal string, it does not evaluate the variable. To do that you need to construct a string containing the value of the variable. So please try something like the following: TestList.setAttrib counter, "Item", c.GetAttrib("Picture:" & drawno) -- David McFarlane, Professional Faultfinder At 5/18/2009 03:27 PM Monday, you wrote: >Ah, I had never thought of that. > >However, I just tested it with fixed defined numbers (ie: >c.GetAttrib("Picture:3")) and it seems to index the correct files >just fine. It's only when I use a variable in the colon notation >that it has problems (ie: c.GetAttrib("Picture:y")) and defaults to zero. > >Are there other ways of doing this randomization procedure? It's a >little bit sophisticated, which is why I'm using inline code. The >program needs to randomly select one picture from 8 pictures in a >list that are all presented in random sequence, store that filename >and write it to another list for later presentation. > >Adam > >On Mon, May 18, 2009 at 3:17 PM, David McFarlane ><mcfarla9 at msu.edu> wrote: > >Adam, > >Wow, I don't know offhand if that syntax works. It looks like you >are trying to use "colon syntax", and I don't know if you can use >that with the Context.GetAttrib() method, that may work only with the >List.GetAttrrib() method (e.g., colon syntax has to know which List >has the attribute "Picture"). I would have to make some demo >programs and look at the generated code to explore this further, but >I will leave that to you. > >-- David McFarlane, Professional Faultfinder > > > >I just realized when you sent this that it might be due to how the > >random number is applied. > > > >I have the randomization code to select a picture for presentation, > >so I did this: > >TestList.setAttrib counter, "Item", c.GetAttrib("Picture:drawno") > > > >...in which one of the 8 files in the attribute "Picture" on another > >list is randomly selected. > > > >Is it defaulting to zero because this isn't syntactically valid? > > > >Adam > > > >On Mon, May 18, 2009 at 2:59 PM, David McFarlane > ><mcfarla9 at msu.edu> wrote: > > > >Adam, > > > >Hmm, that bit of code works perfectly for me. I suspect the problem > >lies somewhere else in the script. Just to be clear, try the > >following and see what happens: > > > >Dim drawno As Integer > >Dim i as Integer > >For i = 1 to 8 > > drawno = Random(0, 7) > > MsgBox drawno > >Next i > > > >-- David McFarlane, Professional Faultfinder > > > > > > >I'm having a little problem with randomization code in Ebasic. I > > >have this code: > > > > > >Dim drawno As Integer > > >drawno = Random(0, 7) > > > > > >...and yet, drawno is initialized to '0' every time. This code is > > >used for 8 repetitions in the program, and each time "0" comes up. > > >Even with "Randomize" in front, the same thing happens. > > > > > >Is there something I'm doing wrong? > > > > > >Adam > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 May 18 18:59:28 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 18 May 2009 14:59:28 -0400 Subject: Randomization problem In-Reply-To: <7ef748980905181141w2e5fac6du6fe3f77fb8348e2e@mail.gmail.co m> Message-ID: Adam, Hmm, that bit of code works perfectly for me. I suspect the problem lies somewhere else in the script. Just to be clear, try the following and see what happens: Dim drawno As Integer Dim i as Integer For i = 1 to 8 drawno = Random(0, 7) MsgBox drawno Next i -- David McFarlane, Professional Faultfinder >I'm having a little problem with randomization code in Ebasic. I >have this code: > >Dim drawno As Integer >drawno = Random(0, 7) > >...and yet, drawno is initialized to '0' every time. This code is >used for 8 repetitions in the program, and each time "0" comes up. >Even with "Randomize" in front, the same thing happens. > >Is there something I'm doing wrong? > >Adam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 adamosth at gmail.com Mon May 18 21:09:50 2009 From: adamosth at gmail.com (Adam Osth) Date: Mon, 18 May 2009 17:09:50 -0400 Subject: Randomization problem In-Reply-To: <4a11bb23.100bca0a.36d2.3da6SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Ah! Works perfectly now. Thanks so much for your help! -Adam On Mon, May 18, 2009 at 3:46 PM, David McFarlane wrote: > > D'oh! Of course, why didn't I see that! "Picture:drawno" is treated > as a literal string, it does not evaluate the variable. To do that > you need to construct a string containing the value of the > variable. So please try something like the following: > > TestList.setAttrib counter, "Item", c.GetAttrib("Picture:" & drawno) > > -- David McFarlane, Professional Faultfinder > > > At 5/18/2009 03:27 PM Monday, you wrote: > >Ah, I had never thought of that. > > > >However, I just tested it with fixed defined numbers (ie: > >c.GetAttrib("Picture:3")) and it seems to index the correct files > >just fine. It's only when I use a variable in the colon notation > >that it has problems (ie: c.GetAttrib("Picture:y")) and defaults to zero. > > > >Are there other ways of doing this randomization procedure? It's a > >little bit sophisticated, which is why I'm using inline code. The > >program needs to randomly select one picture from 8 pictures in a > >list that are all presented in random sequence, store that filename > >and write it to another list for later presentation. > > > >Adam > > > >On Mon, May 18, 2009 at 3:17 PM, David McFarlane > ><mcfarla9 at msu.edu> wrote: > > > >Adam, > > > >Wow, I don't know offhand if that syntax works. It looks like you > >are trying to use "colon syntax", and I don't know if you can use > >that with the Context.GetAttrib() method, that may work only with the > >List.GetAttrrib() method (e.g., colon syntax has to know which List > >has the attribute "Picture"). I would have to make some demo > >programs and look at the generated code to explore this further, but > >I will leave that to you. > > > >-- David McFarlane, Professional Faultfinder > > > > > > >I just realized when you sent this that it might be due to how the > > >random number is applied. > > > > > >I have the randomization code to select a picture for presentation, > > >so I did this: > > >TestList.setAttrib counter, "Item", c.GetAttrib("Picture:drawno") > > > > > >...in which one of the 8 files in the attribute "Picture" on another > > >list is randomly selected. > > > > > >Is it defaulting to zero because this isn't syntactically valid? > > > > > >Adam > > > > > >On Mon, May 18, 2009 at 2:59 PM, David McFarlane > > ><mcfarla9 at msu.edu> > wrote: > > > > > >Adam, > > > > > >Hmm, that bit of code works perfectly for me. I suspect the problem > > >lies somewhere else in the script. Just to be clear, try the > > >following and see what happens: > > > > > >Dim drawno As Integer > > >Dim i as Integer > > >For i = 1 to 8 > > > drawno = Random(0, 7) > > > MsgBox drawno > > >Next i > > > > > >-- David McFarlane, Professional Faultfinder > > > > > > > > > >I'm having a little problem with randomization code in Ebasic. I > > > >have this code: > > > > > > > >Dim drawno As Integer > > > >drawno = Random(0, 7) > > > > > > > >...and yet, drawno is initialized to '0' every time. This code is > > > >used for 8 repetitions in the program, and each time "0" comes up. > > > >Even with "Randomize" in front, the same thing happens. > > > > > > > >Is there something I'm doing wrong? > > > > > > > >Adam > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 rickogorman at gmail.com Wed May 20 17:55:50 2009 From: rickogorman at gmail.com (Rick O'Gorman) Date: Wed, 20 May 2009 18:55:50 +0100 Subject: Textbox bug in E-Prime In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF011D7FD3@VUIEXCHC.ad.nottingham.ac.uk> Message-ID: Apologies for the gap since this was last covered--been tied up with marking. :( I haven't had the problem of having a file be corrupted due to a crash--that really puts the frighteners up me! I think everyone appreciates that complex software will have some bugs, but basic things should work well, as should critical things. E-Prime appears to get critical things right (timing, doesn't crash running experiments) but I don't think editing a textbox should crash a program! Apparently this is to be fixed (I took the issue up with PST in their online support) in the final candidate, but that's not out yet. I'm not touching the SPSS topic, except to note that I'm not as locked into E-Prime. :) Rick Michiel Spape wrote: > Hi, > The corrupted e-studio files following crashes, although not happening often, are indeed absolutely horrendous - and could easily be avoided if only e-studio would automatically save backups (like office, for example). They happened in E-Prime 1 as well, and I remember one of my students had it near the end of an exam (of my e-prime course). What are you supposed to do if that happens? Considering it was not the student's fault, we decided to have a look at the E-Run file and have her TELL us what she had wanted to do with it before E-Prime went bananas - but that is not a really practical solution. > > Anyway, all the best with your E-Misery, I think we all know it has certain weaknesses that are about as likely to be fixed as SPSS is to better with version 20 (expected release in 3 months). > Best, > > Michiel Spapé > Research Fellow > Perception & Action group > University of Nottingham > School of Psychology > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of frankbosco > Sent: 04 May 2009 22:12 > To: E-Prime > Subject: Re: Textbox bug in E-Prime > > > Rick, > > ABSOLUTELY! This drives me nuts, as well. For me, it happens > especially when adding more that 20-30 characters to a textbox within > a slide. What's the deal, E-Prime??? Sometimes, I think that the > only feature in E-Prime that works 100% flawlessly is their copyright > protection (which, by the way, wastes a great deal of time when > working/opening/saving in E-Studio!). Another warning re: E-Prime > 2.0: E-Studio randomly deleted an .es2 file on me (after crashing, of > course) that I had been working on for several days. I almost lost > it. Now, I need to save 2 copies of each .es2 file (huge waste of my > time). While I'm complaining about E-Prime 2.0, I would really like > to have a set of user's manuals (in print) - I find a 2-year release > candidacy to be semi-unacceptable (especially for a software that > costs $800 or more!). I think this may be my last E-Prime purchase -- > I may look into other options in the future. > > -Frank > > On May 4, 3:14 pm, Rick O'Gorman wrote: >> Out of curiousity, is anyone else besides me finding a serious and >> regular bug in editing textboxes within slides, such that E-Prime >> crashes? I'm using 2.0.8.22 RC. It's driving me nuts. It's so bad that I >> run a second version of E-Prime now ready to go when one crashes, >> because E-Prime takes so long to open and then open the file I am >> working with (and no--this is not a cause of the bug; I've only recently >> started doing this to salvage my sanity!). >> >> Rick >> -- >> Rick O'Gorman, PhD >> Psychology, Faculty of Development and Society >> Collegiate Crescent Campus, >> Sheffield Hallam University, >> Sheffield >> S10 2BP >> >> Phone: 0114 225 5788 Fax: 0114 225 2430 >> >> http://www.shu.ac.uk/psychology/staff/OGorman.html >> >> No passion can survive a woman's seeing her lover hold >> his fork in the wrong way. >> ~Edith Wharton > > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses, which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. > > > > -- Rick O'Gorman, PhD Psychology, Faculty of Development and Society Collegiate Crescent Campus, Sheffield Hallam University, Sheffield S10 2BP Phone: 0114 225 5788 Fax: 0114 225 2430 http://www.shu.ac.uk/psychology/staff/OGorman.html No passion can survive a woman's seeing her lover hold his fork in the wrong way. ~Edith Wharton --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 rickogorman at gmail.com Wed May 20 18:32:11 2009 From: rickogorman at gmail.com (Rick O'Gorman) Date: Wed, 20 May 2009 19:32:11 +0100 Subject: help--alternating text and image stimuli In-Reply-To: <49fa1896.0d0bca0a.4344.ffffd3c3SMTPIN_ADDED@gmr-mx.google.com> Message-ID: As per an earlier post, sorry to have lagged in my reply to this thread. Thanks to those who suggested ideas--David McF, Paul J, liwenna. On seeing Paul's suggestion, using a substantial bit of inline code, I was inspired to try figuring out the slidestate method, as it seemed simpler. :) David's email confirmed what I had found--that Slidestate was the solution, but I did not need to use inline code to tell E-Prime which slidestate to use. It's simpler than that. After setting up the alternative slidestates and naming them (you get at this by right-clicking on the tab at the bottom, which will default to, err, 'default', then 'default1', etc.), you can tell E-Prime which one to use in the Slide's general property options. Under the General tab, there's a setting for Activestate. Instead of choosing one of the slidestates that you have created, you can instead enter a variable name in here (e.g., [stimtype]) and then set up which slidestate to use in a list elsewhere, using one of the slidestate names (in my case, I had two, one called 'text' and one called 'pic'). So in my relevant list, I had a variable called slidestate that took either a value of 'pic' or 'text' depending on another variable setting (whether I wanted to present an image or text as a stimulus). This then told the relevant slide to use either pic or text, as appropriate. By the way, when creating multiple slidestates that are variations of each other, there is a 'clone state' option, which is a nice labour-saving tool. Maybe E-Prime will keep me loyal yet. :) Rick David McFarlane wrote: > Rick, > > I would use a Slide object with multiple states, as you guessed. One > state would use a Text sub-object, and another state would use an > Image sub-object. You would then have to use a bit of inline script > to set the state before running the slide in your procedure, based > either on the value of the attribute that encodes the stimulus, or > using another attribute just to indicate text vs. image. Might be > worth browsing the PST downloads to see if they show how to handle > Slide states, or just make a demo program with any Slide (or better, > a Feedback object, which is just a special type of Slide) and look at > the generated script, that's how I figure out how to manage Slide states. > > Good luck, > -- David McFarlane, Professiona Faultfinder > > > At 4/28/2009 05:07 PM Tuesday, you wrote: >> I'm guessing this is easy to do if you know how, but I can't figure a >> solution; the manuals are of little help. I am creating an IAT and want >> a mix of images and text as stimuli. I thought I could just put the >> image file names in the relevant LIST but this doesn't work. I then >> realised that slides have either text or image objects, so I figure I'm >> goiung to have to mess around with multiple versions of slides--do I use >> slidestate? Or can I layer a text object and image object on top of each >> other and assume that it is transparent if nothing is called for that >> implementation? If you've got something that does this can can share it, >> that would be welcome. >> >> Cheers, >> >> Rick >> -- >> Rick O'Gorman, PhD >> Psychology, Faculty of Development and Society >> Collegiate Crescent Campus, >> Sheffield Hallam University, >> Sheffield >> S10 2BP > > > > -- Rick O'Gorman, PhD Psychology, Faculty of Development and Society Collegiate Crescent Campus, Sheffield Hallam University, Sheffield S10 2BP Phone: 0114 225 5788 Fax: 0114 225 2430 http://www.shu.ac.uk/psychology/staff/OGorman.html No passion can survive a woman's seeing her lover hold his fork in the wrong way. ~Edith Wharton --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 gabriele.colaianni at gmail.com Wed May 20 18:35:06 2009 From: gabriele.colaianni at gmail.com (gc) Date: Wed, 20 May 2009 11:35:06 -0700 Subject: eprime lesson Message-ID: Hi, I would like to learn using eprime. Is there some eprime experte in Montreal for some private lesson? thank you very much --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 frosts at haskins.yale.edu Wed May 20 18:42:01 2009 From: frosts at haskins.yale.edu (Steve Frost) Date: Wed, 20 May 2009 11:42:01 -0700 Subject: sound duration syntax Message-ID: I have an experiment in which I am playing out WAVs of sentences, either in Spanish or English based on an input dialog at the beginning of the experiment and this part works fine. However, I also want to set the sound duration to be the exact duration of the audio file. I have calculated the durations for the Spanish and English versions and entered them into columns in my list called AEduration and SPduration. I was wondering how best to link the duration field of the sound object to the appropriate column based on the value of the input dialog? That is, is the variable 'language' is set to 'spanish' then I want the duration field to be linked to the values in the SPduration column and linked to the values in the AEduration if language=english. My one thought is to make the event with the audio a slide and create different slide states that would be selected based on the value of the language variable, but I am wondering if there is an easier way? Thanks. Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 May 21 18:54:31 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 21 May 2009 14:54:31 -0400 Subject: help--alternating text and image stimuli In-Reply-To: <4A144CAB.9090103@gmail.com> Message-ID: Rick, Brilliant use of attribute to control slide state, I had missed that, thank you SO much for figuring that out and posting back! Also thanks for hint about cloning slide states. And I too regain respect for E-Prime when I stumble on things like this. -- David McFarlane, Professional Faultfinder At 5/20/2009 02:32 PM Wednesday, you wrote: >As per an earlier post, sorry to have lagged in my reply to this thread. >Thanks to those who suggested ideas--David McF, Paul J, liwenna. On >seeing Paul's suggestion, using a substantial bit of inline code, I was >inspired to try figuring out the slidestate method, as it seemed simpler. :) > >David's email confirmed what I had found--that Slidestate was the >solution, but I did not need to use inline code to tell E-Prime which >slidestate to use. It's simpler than that. > >After setting up the alternative slidestates and naming them (you get at >this by right-clicking on the tab at the bottom, which will default to, >err, 'default', then 'default1', etc.), you can tell E-Prime which one >to use in the Slide's general property options. Under the General tab, >there's a setting for Activestate. Instead of choosing one of the >slidestates that you have created, you can instead enter a variable name >in here (e.g., [stimtype]) and then set up which slidestate to use in a >list elsewhere, using one of the slidestate names (in my case, I had >two, one called 'text' and one called 'pic'). So in my relevant list, I >had a variable called slidestate that took either a value of 'pic' or >'text' depending on another variable setting (whether I wanted to >present an image or text as a stimulus). This then told the relevant >slide to use either pic or text, as appropriate. > >By the way, when creating multiple slidestates that are variations of >each other, there is a 'clone state' option, which is a nice >labour-saving tool. > >Maybe E-Prime will keep me loyal yet. :) > >Rick > >David McFarlane wrote: > > Rick, > > > > I would use a Slide object with multiple states, as you guessed. One > > state would use a Text sub-object, and another state would use an > > Image sub-object. You would then have to use a bit of inline script > > to set the state before running the slide in your procedure, based > > either on the value of the attribute that encodes the stimulus, or > > using another attribute just to indicate text vs. image. Might be > > worth browsing the PST downloads to see if they show how to handle > > Slide states, or just make a demo program with any Slide (or better, > > a Feedback object, which is just a special type of Slide) and look at > > the generated script, that's how I figure out how to manage Slide states. > > > > Good luck, > > -- David McFarlane, Professiona Faultfinder > > > > > > At 4/28/2009 05:07 PM Tuesday, you wrote: > >> I'm guessing this is easy to do if you know how, but I can't figure a > >> solution; the manuals are of little help. I am creating an IAT and want > >> a mix of images and text as stimuli. I thought I could just put the > >> image file names in the relevant LIST but this doesn't work. I then > >> realised that slides have either text or image objects, so I figure I'm > >> goiung to have to mess around with multiple versions of slides--do I use > >> slidestate? Or can I layer a text object and image object on top of each > >> other and assume that it is transparent if nothing is called for that > >> implementation? If you've got something that does this can can share it, > >> that would be welcome. > >> > >> Cheers, > >> > >> Rick > >> -- > >> Rick O'Gorman, PhD > >> Psychology, Faculty of Development and Society > >> Collegiate Crescent Campus, > >> Sheffield Hallam University, > >> Sheffield > >> S10 2BP > > > > > > > > >-- >Rick O'Gorman, PhD >Psychology, Faculty of Development and Society >Collegiate Crescent Campus, >Sheffield Hallam University, >Sheffield >S10 2BP > >Phone: 0114 225 5788 Fax: 0114 225 2430 > >http://www.shu.ac.uk/psychology/staff/OGorman.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 May 21 19:16:48 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 21 May 2009 15:16:48 -0400 Subject: sound duration syntax In-Reply-To: <7d8d317e-57b0-4dac-bc17-10f0c8250df1@r13g2000vbr.googlegro ups.com> Message-ID: Steve, Four thoughts on this for you... 1) I suppose you could use a bit of inline script before the slide to do something like If c.GetAttrib("language") = "spanish" Then c.SetAttrib "SoundDur", c.GetAttrib("SPduration") ElseIf c.GetAttrib("language") = "english" Then c.SetAttrib "SoundDur", c.GetAttrib("AEduration") Else MsgBox "Invalid language!" End If (or something similar using Iif(), etc., I leave that as an exercise), where "SoundDur" is used to set the duration of the Slide object. 2) The Slide State idea will not work because each Slide has one and only one Duration that applies to all of its states. 3) You could put the Spanish and English sentences each in their own nested list that gets selected by the main list. That way each nested list can have a column called, say, "SoundDur", with the correct durations for each sentence in each language, and your presentation object need only know the value of SoundDur no matter what language. 4) Or, just set the Duration of your SoundOut or Slide object to (infinite), and set End Sound Action of your SoundOut object or sub-object to Terminate. That should play each sound to its end, then automatically terminate the presentation object and move on, without your having to measure or know anything about sound durations. If you then still want to know how long each sound played, you can get that from the time auditing log. Good luck, hope this helps a bit, -- David McFarlane, Professional Faultfinder At 5/20/2009 02:42 PM Wednesday, Steve Frost wrote: >I have an experiment in which I am playing out WAVs of sentences, >either in Spanish or English based on an input dialog at the beginning >of the experiment and this part works fine. However, I also want to >set the sound duration to be the exact duration of the audio file. I >have calculated the durations for the Spanish and English versions and >entered them into columns in my list called AEduration and SPduration. >I was wondering how best to link the duration field of the sound >object to the appropriate column based on the value of the input >dialog? That is, is the variable 'language' is set to 'spanish' then I >want the duration field to be linked to the values in the SPduration >column and linked to the values in the AEduration if language=english. >My one thought is to make the event with the audio a slide and create >different slide states that would be selected based on the value of >the language variable, but I am wondering if there is an easier way? >Thanks. > >Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 rickogorman at gmail.com Fri May 22 09:00:33 2009 From: rickogorman at gmail.com (Rick O'Gorman) Date: Fri, 22 May 2009 10:00:33 +0100 Subject: help--alternating text and image stimuli In-Reply-To: <4a15a368.0d0bca0a.291d.6c59SMTPIN_ADDED@gmr-mx.google.com> Message-ID: You're welcome, glad to contribute something back. I made a typo in my previous post--toward the end of the long paragraph, it should read "So in my relevant list, I had a variable called STIMTYPE that took either a value of 'pic' or 'text' depending on another variable setting". Sorry about that, Rick David McFarlane wrote: > Rick, > > Brilliant use of attribute to control slide state, I had missed that, > thank you SO much for figuring that out and posting back! Also > thanks for hint about cloning slide states. > > And I too regain respect for E-Prime when I stumble on things like this. > > -- David McFarlane, Professional Faultfinder > > > At 5/20/2009 02:32 PM Wednesday, you wrote: > >> As per an earlier post, sorry to have lagged in my reply to this thread. >> Thanks to those who suggested ideas--David McF, Paul J, liwenna. On >> seeing Paul's suggestion, using a substantial bit of inline code, I was >> inspired to try figuring out the slidestate method, as it seemed simpler. :) >> >> David's email confirmed what I had found--that Slidestate was the >> solution, but I did not need to use inline code to tell E-Prime which >> slidestate to use. It's simpler than that. >> >> After setting up the alternative slidestates and naming them (you get at >> this by right-clicking on the tab at the bottom, which will default to, >> err, 'default', then 'default1', etc.), you can tell E-Prime which one >> to use in the Slide's general property options. Under the General tab, >> there's a setting for Activestate. Instead of choosing one of the >> slidestates that you have created, you can instead enter a variable name >> in here (e.g., [stimtype]) and then set up which slidestate to use in a >> list elsewhere, using one of the slidestate names (in my case, I had >> two, one called 'text' and one called 'pic'). So in my relevant list, I >> had a variable called slidestate that took either a value of 'pic' or >> 'text' depending on another variable setting (whether I wanted to >> present an image or text as a stimulus). This then told the relevant >> slide to use either pic or text, as appropriate. >> >> By the way, when creating multiple slidestates that are variations of >> each other, there is a 'clone state' option, which is a nice >> labour-saving tool. >> >> Maybe E-Prime will keep me loyal yet. :) >> >> Rick >> >> David McFarlane wrote: >>> Rick, >>> >>> I would use a Slide object with multiple states, as you guessed. One >>> state would use a Text sub-object, and another state would use an >>> Image sub-object. You would then have to use a bit of inline script >>> to set the state before running the slide in your procedure, based >>> either on the value of the attribute that encodes the stimulus, or >>> using another attribute just to indicate text vs. image. Might be >>> worth browsing the PST downloads to see if they show how to handle >>> Slide states, or just make a demo program with any Slide (or better, >>> a Feedback object, which is just a special type of Slide) and look at >>> the generated script, that's how I figure out how to manage Slide states. >>> >>> Good luck, >>> -- David McFarlane, Professiona Faultfinder >>> >>> >>> At 4/28/2009 05:07 PM Tuesday, you wrote: >>>> I'm guessing this is easy to do if you know how, but I can't figure a >>>> solution; the manuals are of little help. I am creating an IAT and want >>>> a mix of images and text as stimuli. I thought I could just put the >>>> image file names in the relevant LIST but this doesn't work. I then >>>> realised that slides have either text or image objects, so I figure I'm >>>> goiung to have to mess around with multiple versions of slides--do I use >>>> slidestate? Or can I layer a text object and image object on top of each >>>> other and assume that it is transparent if nothing is called for that >>>> implementation? If you've got something that does this can can share it, >>>> that would be welcome. >>>> >>>> Cheers, >>>> >>>> Rick >>>> -- >>>> Rick O'Gorman, PhD >>>> Psychology, Faculty of Development and Society >>>> Collegiate Crescent Campus, >>>> Sheffield Hallam University, >>>> Sheffield >>>> S10 2BP >>> >> -- >> Rick O'Gorman, PhD >> Psychology, Faculty of Development and Society >> Collegiate Crescent Campus, >> Sheffield Hallam University, >> Sheffield >> S10 2BP >> >> Phone: 0114 225 5788 Fax: 0114 225 2430 >> >> http://www.shu.ac.uk/psychology/staff/OGorman.html > > > > -- Rick O'Gorman, PhD Psychology, Faculty of Development and Society Collegiate Crescent Campus, Sheffield Hallam University, Sheffield S10 2BP Phone: 0114 225 5788 Fax: 0114 225 2430 http://www.shu.ac.uk/psychology/staff/OGorman.html No passion can survive a woman's seeing her lover hold his fork in the wrong way. ~Edith Wharton --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 cb.lists at gmail.com Sat May 23 05:18:28 2009 From: cb.lists at gmail.com (CB) Date: Fri, 22 May 2009 22:18:28 -0700 Subject: "Thank you" to David McFarlane Message-ID: For the nth time I've just found a potential solution to a problem I'm trying to solve by searching this ng and finding a relevant and detailed post by David. So, David: many thanks for your seemingly tireless efforts to help here. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 bassam.khoury at sympatico.ca Tue May 26 00:49:36 2009 From: bassam.khoury at sympatico.ca (PsycStudent) Date: Mon, 25 May 2009 17:49:36 -0700 Subject: Touch screen and Eprime Message-ID: Hi, We are aiming to buy a touch screen and we want to make sure that it works well with Eprime. Any advices? Specifically I looked into the “HP TouchSmart IQ800t series” and I liked them specially the 25”, do anyone tried Eprime on HP touch smart monitors? Your help/advice will be highly appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 kathy.smolewska at gmail.com Tue May 26 03:55:38 2009 From: kathy.smolewska at gmail.com (KKat) Date: Mon, 25 May 2009 20:55:38 -0700 Subject: Problem selecting from decks in Gambling Task... Message-ID: Hello, I am currently working on a modified version of the Iowa Gambling Task (or Bechara Gambling Task). I have created a nested design for the 4 decks, hoping that this would allow the program to select values for each deck sequentially. Deck A works but not the others. I'm not sure what I'm doing wrong but I get the error: Run-time Error (Line 490) -990: Factor Error: No such attribute "varwin2" I have attached the relevant section of the script below. I'm not sure how to attach the .es file here. Thank you! Kathy '-------------------------------------------------------------------------- ' Instance Declarations '-------------------------------------------------------------------------- Dim Display As DisplayDevice Dim Sound As SoundDevice Dim Keyboard As KeyboardDevice Dim Mouse As MouseDevice Dim SessionProc As Procedure Dim BlockList As List Dim BlockProc As Procedure Dim TrialProc As Procedure Dim Instructions As TextDisplay Dim InstructionsEchoClients As EchoClientCollection Dim DesignList As List Dim DeckA As List Dim DeckB As List Dim DeckC As List Dim DeckD As List Dim FB As Slide Dim FB_State As SlideState Dim FB_SlideText As SlideText Dim FB_SlideImage As SlideImage Dim Goodbye As TextDisplay Dim Game As Slide Dim GameEchoClients As EchoClientCollection Dim Game_State As SlideState Dim Game_SlideText As SlideText Dim Game_SlideImage As SlideImage Dim Final As Slide Dim Final_State As SlideState Dim Final_SlideText As SlideText '-------------------------------------------------------------------------- ' Package Declare Script '-------------------------------------------------------------------------- '-------------------------------------------------------------------------- ' User Script '-------------------------------------------------------------------------- Dim totalsum As integer Dim var As integer Dim win As integer, loss As integer Dim totalsumD1 As integer Dim totalsumD2 As integer Dim totalsumD3 As integer Dim totalsumD4 As integer Dim winD1 As integer, winD2 As integer, winD3 As integer, winD4 As integer, lossD1 As integer, lossD2 As integer, lossD3 As integer, lossD4 As integer Dim EndTotal As integer Dim EndTotal2 As integer Dim DeckChoice As integer Dim Deck1, Deck2, Deck3, Deck4 As Integer Dim BarTotalwin As Integer Dim TotalGain As Integer Dim TotalLoss As Integer Dim i As Integer, y as Integer, j as Integer '-------------------------------------------------------------------------- ' Package Global Script '-------------------------------------------------------------------------- '-------------------------------------------------------------------------- ' Package Routines '-------------------------------------------------------------------------- '-------------------------------------------------------------------------- ' Implementation '-------------------------------------------------------------------------- Sub SessionProc_Run(c as Context) ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - Initializevariable BEGIN ''''''''''''''''''''''''''''''''''''''''''''' Totalsum = 0 TotalsumD1 = 0 TotalsumD2 = 0 TotalsumD3 = 0 TotalsumD4 = 0 EndTotal = 0 EndTotal2 = 0 BarTotalWin = 0 TotalGain = 0 TotalLoss = 0 ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - Initializevariable END ''''''''''''''''''''''''''''''''''''''''''''' Instructions.InputMasks.Reset If Keyboard.GetState() = ebStateOpen Then InstructionsEchoClients.RemoveAll Instructions.InputMasks.Add Keyboard.CreateInputMask("{SPACE}", "", CLng(Instructions.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") End If Instructions.Run BlockList.Run c ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - GainOrLose BEGIN ''''''''''''''''''''''''''''''''''''''''''''' if totalsum > 0 then Final.ActiveState = "EndWin" c.setAttrib "Endtotal", totalsum end if if totalsum = 0 then Final.ActiveState = "EndNull" c.setAttrib "EndTotal", totalsum end if if totalsum < 0 then Final.ActiveState = "EndLoss" c.setAttrib "EndTotal", totalsum end if ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - GainOrLose END ''''''''''''''''''''''''''''''''''''''''''''' Select Case Final.ActiveState Case "EndWin" Set Final_SlideText = CSlideText(Final.States.Item("EndWin").Objects (1)) Final_SlideText.Text = "Congratulations! You have won a total of $" &_ c.GetAttrib("Endtotal") &_ "." Set Final_SlideText = Nothing Case "EndLoss" Set Final_SlideText = CSlideText(Final.States.Item ("EndLoss").Objects(1)) Final_SlideText.Text = "Unfortunately, you lost money! Your total loss is $" &_ c.GetAttrib("EndTotal") &_ ".\n\n\n\n" Set Final_SlideText = Nothing Case "EndNull" Set Final_SlideText = CSlideText(Final.States.Item ("EndNull").Objects(1)) Final_SlideText.Text = "Unfortunately, you did not win anything. Your final total is $" &_ c.GetAttrib("EndTotal") &_ "." Set Final_SlideText = Nothing End Select Final.Run Goodbye.Run #If RUNTIME_VERSION_MAJOR > 1 Or (RUNTIME_VERSION_MAJOR = 1 And RUNTIME_VERSION_MINOR >= 2) Then ' Log clock timing information c.SetAttrib "Clock.Information", Clock.Information #End If c.Log End Sub Sub BlockProc_Run(c as Context) DesignList.Run c c.Log End Sub Sub TrialProc_Run(c as Context) ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - InLineA BEGIN ''''''''''''''''''''''''''''''''''''''''''''' c.setAttrib "totalsum", totalsum c.setAttrib "TotalsumD1", TotalsumD1 c.setAttrib "TotalsumD2", TotalsumD2 c.setAttrib "TotalsumD3", TotalsumD3 c.setAttrib "TotalsumD4", TotalsumD4 c.setAttrib "TotalGain", TotalGain c.setAttrib "TotalLoss", TotalLoss ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - InLineA END ''''''''''''''''''''''''''''''''''''''''''''' Select Case Game.ActiveState Case "Default" Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (1)) Game_SlideText.Text = "Current Total:" &_ c.GetAttrib("totalsum") Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (2)) Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (3)) Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (4)) Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (5)) Set Game_SlideText = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(6)) Set Game_SlideImage = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(7)) Set Game_SlideImage = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(8)) Set Game_SlideImage = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(9)) Set Game_SlideImage = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (10)) Set Game_SlideText = Nothing End Select Game.InputMasks.Reset If Keyboard.GetState() = ebStateOpen Then GameEchoClients.RemoveAll Game.InputMasks.Add Keyboard.CreateInputMask("afjl", "afjl", CLng (Game.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical ("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") End If Game.Run c.SetAttrib Game.Name & ".RTTime", Game.RTTime c.SetAttrib Game.Name & ".RT", Game.RT c.SetAttrib Game.Name & ".RESP", Game.RESP ' InLine - InLineA BEGIN ''''''''''''''''''''''''''''''''''''''''''''' c.setAttrib "totalsum", totalsum c.setAttrib "TotalsumD1", TotalsumD1 c.setAttrib "TotalsumD2", TotalsumD2 c.setAttrib "TotalsumD3", TotalsumD3 c.setAttrib "TotalsumD4", TotalsumD4 c.setAttrib "TotalGain", TotalGain c.setAttrib "TotalLoss", TotalLoss ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - InLineA END ''''''''''''''''''''''''''''''''''''''''''''' Select Case Game.ActiveState Case "Default" Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (1)) Game_SlideText.Text = "Current Total:" &_ c.GetAttrib("totalsum") Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (2)) Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (3)) Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (4)) Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (5)) Set Game_SlideText = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(6)) Set Game_SlideImage = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(7)) Set Game_SlideImage = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(8)) Set Game_SlideImage = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(9)) Set Game_SlideImage = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (10)) Set Game_SlideText = Nothing End Select Game.InputMasks.Reset If Keyboard.GetState() = ebStateOpen Then GameEchoClients.RemoveAll Game.InputMasks.Add Keyboard.CreateInputMask("afjl", "afjl", CLng (Game.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical ("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") End If Game.Run c.SetAttrib Game.Name & ".RTTime", Game.RTTime c.SetAttrib Game.Name & ".RT", Game.RT c.SetAttrib Game.Name & ".RESP", Game.RESP ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - Choose1234 BEGIN ''''''''''''''''''''''''''''''''''''''''''''' If game.RESP = "a" then FB.ActiveState = "f1" win = c.getAttrib("varwin1") loss = c.getAttrib("varloss1") totalsum = totalsum + win + loss TotalGain = TotalGain + win TotalLoss = TotalLoss + loss c.setAttrib "Totalsum", Totalsum c.setAttrib "AmountWon", win c.setAttrib "AmountLost", loss c.setAttrib "TotalGain", TotalGain c.setAttrib "TotalLoss", TotalLoss c.setAttrib "DeckChoice", 1 winD1 = c.getAttrib("varwin1") lossD1 = c.getAttrib("varloss1") TotalsumD1 = totalsumD1 + winD1 + lossD1 c.setAttrib "TotalsumD1", TotalsumD1 i = Abs(TotalGain) y = c.GetAttrib("TotalLoss") j = Abs(y) BarTotalWin = TotalGain/(i+j)*100 c.setAttrib "BarTotalWin", BarTotalWin If BarTotalWin = 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin < 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then c.setAttrib "BarImage", "Bar13-87.bmp" ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then c.setAttrib "BarImage", "Bar25-75.bmp" ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then c.setAttrib "BarImage", "Bar37-63.bmp" ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then c.setAttrib "BarImage", "Bar50-50.bmp" ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then c.setAttrib "BarImage", "Bar63-37.bmp" ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then c.setAttrib "BarImage", "Bar75-25.bmp" ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then c.setAttrib "BarImage", "Bar87-13.bmp" ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin = 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin > 100 then c.setAttrib "BarImage", "Bar100-0.bmp" End If elseif game.RESP = "f" then FB.ActiveState = "f2" win = c.getAttrib("varwin2") loss = c.getAttrib("varloss2") totalsum = totalsum + win + loss TotalGain = TotalGain + win TotalLoss = TotalLoss + loss c.setAttrib "Totalsum", Totalsum c.setAttrib "AmountWon", win c.setAttrib "AmountLost", loss c.setAttrib "TotalGain", TotalGain c.setAttrib "TotalLoss", TotalLoss c.setAttrib "DeckChoice", 2 winD2 = c.getAttrib("varwin2") lossD2 = c.getAttrib("varloss2") TotalsumD2 = totalsumD2 + winD2 + lossD2 c.setAttrib "TotalsumD2", TotalsumD2 i = Abs(TotalGain) y = c.GetAttrib("TotalLoss") j = Abs(y) BarTotalWin = TotalGain/(i+j)*100 'BarTotalWin = TotalGain/(TotalGain-TotalLoss)*100 c.setAttrib "BarTotalWin", BarTotalWin If BarTotalWin = 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin < 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then c.setAttrib "BarImage", "Bar13-87.bmp" ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then c.setAttrib "BarImage", "Bar25-75.bmp" ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then c.setAttrib "BarImage", "Bar37-63.bmp" ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then c.setAttrib "BarImage", "Bar50-50.bmp" ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then c.setAttrib "BarImage", "Bar63-37.bmp" ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then c.setAttrib "BarImage", "Bar75-25.bmp" ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then c.setAttrib "BarImage", "Bar87-13.bmp" ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin = 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin > 100 then c.setAttrib "BarImage", "Bar100-0.bmp" End If elseif game.RESP = "j" then FB.ActiveState = "f3" win = c.getAttrib("varwin3") loss = c.getAttrib("varloss3") totalsum = totalsum + win + loss TotalGain = TotalGain + win TotalLoss = TotalLoss + loss c.setAttrib "Totalsum", Totalsum c.setAttrib "AmountWon", win c.setAttrib "AmountLost", loss c.setAttrib "TotalGain", TotalGain c.setAttrib "TotalLoss", TotalLoss c.setAttrib "DeckChoice", 3 winD3 = c.getAttrib("varwin3") lossD3 = c.getAttrib("varloss3") TotalsumD3 = totalsumD3 + winD3 + lossD3 c.setAttrib "TotalsumD3", TotalsumD3 i = Abs(TotalGain) y = c.GetAttrib("TotalLoss") j = Abs(y) BarTotalWin = TotalGain/(i+j)*100 'BarTotalWin = TotalGain/(TotalGain-TotalLoss)*100 c.setAttrib "BarTotalWin", BarTotalWin If BarTotalWin = 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin < 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then c.setAttrib "BarImage", "Bar13-87.bmp" ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then c.setAttrib "BarImage", "Bar25-75.bmp" ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then c.setAttrib "BarImage", "Bar37-63.bmp" ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then c.setAttrib "BarImage", "Bar50-50.bmp" ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then c.setAttrib "BarImage", "Bar63-37.bmp" ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then c.setAttrib "BarImage", "Bar75-25.bmp" ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then c.setAttrib "BarImage", "Bar87-13.bmp" ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin = 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin > 100 then c.setAttrib "BarImage", "Bar100-0.bmp" End If elseif game.RESP = "l" then FB.ActiveState = "f4" win = c.getAttrib("varwin4") loss = c.getAttrib("varloss4") totalsum = totalsum + win + loss TotalGain = TotalGain + win TotalLoss = TotalLoss + loss c.setAttrib "Totalsum", Totalsum c.setAttrib "AmountWon", win c.setAttrib "AmountLost", loss c.setAttrib "TotalGain", TotalGain c.setAttrib "TotalLoss", TotalLoss c.setAttrib "DeckChoice", 4 winD4 = c.getAttrib("varwin4") lossD4 = c.getAttrib("varloss4") TotalsumD4 = totalsumD4 + winD4 + lossD4 c.setAttrib "TotalsumD4", TotalsumD4 i = Abs(TotalGain) y = c.GetAttrib("TotalLoss") j = Abs(y) BarTotalWin = TotalGain/(i+j)*100 'BarTotalWin = TotalGain/(TotalGain-TotalLoss)*100 c.setAttrib "BarTotalWin", BarTotalWin If BarTotalWin = 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin < 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then c.setAttrib "BarImage", "Bar13-87.bmp" ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then c.setAttrib "BarImage", "Bar25-75.bmp" ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then c.setAttrib "BarImage", "Bar37-63.bmp" ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then c.setAttrib "BarImage", "Bar50-50.bmp" ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then c.setAttrib "BarImage", "Bar63-37.bmp" ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then c.setAttrib "BarImage", "Bar75-25.bmp" ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then c.setAttrib "BarImage", "Bar87-13.bmp" ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin = 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin > 100 then c.setAttrib "BarImage", "Bar100-0.bmp" End If End If ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - Choose1234 END ''''''''''''''''''''''''''''''''''''''''''''' Select Case FB.ActiveState Case "f1" Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(1)) Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(2)) FB_SlideText.Text = "Previous Total: $" &_ c.GetAttrib("totalsum") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(3)) FB_SlideText.Text = "\nLoss:" &_ c.GetAttrib("varloss1") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(4)) FB_SlideText.Text = "Gain:" &_ c.GetAttrib("varwin1") Set FB_SlideText = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(5)) FB_SlideImage.Filename = c.GetAttrib("BarImage") FB_SlideImage.Load Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(6)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(7)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(8)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(9)) Set FB_SlideImage = Nothing Case "f2" Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(1)) Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(2)) FB_SlideText.Text = "Loss:" &_ c.GetAttrib("varloss2") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(3)) FB_SlideText.Text = "Gain:" &_ c.GetAttrib("varwin2") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(4)) FB_SlideText.Text = "Previous Total:$" &_ c.GetAttrib("totalsum") Set FB_SlideText = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(5)) FB_SlideImage.Filename = c.GetAttrib("BarImage") FB_SlideImage.Load Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(6)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(7)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(8)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(9)) Set FB_SlideImage = Nothing Case "f3" Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(1)) FB_SlideText.Text = "Loss:" &_ c.GetAttrib("varloss3") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(2)) FB_SlideText.Text = "Gain:" &_ c.GetAttrib("varwin3") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(3)) Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(4)) FB_SlideText.Text = "Previous Total:$" &_ c.GetAttrib("totalsum") Set FB_SlideText = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(5)) FB_SlideImage.Filename = c.GetAttrib("BarImage") FB_SlideImage.Load Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(6)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(7)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(8)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(9)) Set FB_SlideImage = Nothing Case "f4" Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(1)) FB_SlideText.Text = "Loss:" &_ c.GetAttrib("varloss4") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(2)) FB_SlideText.Text = "Gain:" &_ c.GetAttrib("varwin4") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(3)) Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(4)) FB_SlideText.Text = "Previous Total:$" &_ c.GetAttrib("totalsum") Set FB_SlideText = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(5)) FB_SlideImage.Filename = c.GetAttrib("BarImage") FB_SlideImage.Load Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(6)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(7)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(8)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(9)) Set FB_SlideImage = Nothing End Select FB.Run c.SetAttrib Game.Name & ".RTTime", Game.RTTime c.SetAttrib Game.Name & ".RT", Game.RT c.SetAttrib Game.Name & ".RESP", Game.RESP c.Log End Sub --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From liwenna at gmail.com Tue May 26 11:16:13 2009 From: liwenna at gmail.com (liwenna) Date: Tue, 26 May 2009 04:16:13 -0700 Subject: Problem selecting from decks in Gambling Task... In-Reply-To: Message-ID: Leaving the script aside... the error states that the program can't find an attribute called "varwin2" . In my experience this error often arises from typoes... check the list that contains 'varwin2' or if it is a declared variable check it's declaration for typing errors. Good luck! On May 26, 5:55 am, KKat wrote: > Hello, > > I am currently working on a modified version of the Iowa Gambling Task > (or Bechara Gambling Task). I have created a nested design for the 4 > decks, hoping that this would allow the program to select values for > each deck sequentially. Deck A works but not the others. I'm not sure > what I'm doing wrong but I get the error: > Run-time Error (Line 490) > -990: Factor Error: > No such attribute "varwin2" > > I have attached the relevant section of the script below. I'm not sure > how to attach the .es file here. > > Thank you! > > Kathy > > '-------------------------------------------------------------------------- > ' Instance Declarations > '-------------------------------------------------------------------------- > Dim Display As DisplayDevice > Dim Sound As SoundDevice > Dim Keyboard As KeyboardDevice > Dim Mouse As MouseDevice > Dim SessionProc As Procedure > > Dim BlockList As List > > Dim BlockProc As Procedure > > Dim TrialProc As Procedure > > Dim Instructions As TextDisplay > Dim InstructionsEchoClients As EchoClientCollection > > Dim DesignList As List > > Dim DeckA As List > > Dim DeckB As List > > Dim DeckC As List > > Dim DeckD As List > > Dim FB As Slide > Dim FB_State As SlideState > Dim FB_SlideText As SlideText > Dim FB_SlideImage As SlideImage > > Dim Goodbye As TextDisplay > > Dim Game As Slide > Dim GameEchoClients As EchoClientCollection > Dim Game_State As SlideState > Dim Game_SlideText As SlideText > Dim Game_SlideImage As SlideImage > > Dim Final As Slide > Dim Final_State As SlideState > Dim Final_SlideText As SlideText > > '-------------------------------------------------------------------------- > ' Package Declare Script > '-------------------------------------------------------------------------- > > '-------------------------------------------------------------------------- > ' User Script > '-------------------------------------------------------------------------- > Dim totalsum As integer > Dim var As integer > Dim win As integer, loss As integer > Dim totalsumD1 As integer > Dim totalsumD2 As integer > Dim totalsumD3 As integer > Dim totalsumD4 As integer > Dim winD1 As integer, winD2 As integer, winD3 As integer, winD4 As > integer, lossD1 As integer, lossD2 As integer, lossD3 As integer, > lossD4 As integer > Dim EndTotal As integer > Dim EndTotal2 As integer > Dim DeckChoice As integer > Dim Deck1, Deck2, Deck3, Deck4 As Integer > Dim BarTotalwin As Integer > Dim TotalGain As Integer > Dim TotalLoss As Integer > Dim i As Integer, y as Integer, j as Integer > > '-------------------------------------------------------------------------- > ' Package Global Script > '-------------------------------------------------------------------------- > > '-------------------------------------------------------------------------- > ' Package Routines > '-------------------------------------------------------------------------- > > '-------------------------------------------------------------------------- > ' Implementation > '-------------------------------------------------------------------------- > Sub SessionProc_Run(c as Context) > >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - Initializevariable BEGIN >         ''''''''''''''''''''''''''''''''''''''''''''' >         Totalsum = 0 > TotalsumD1 = 0 > TotalsumD2 = 0 > TotalsumD3 = 0 > TotalsumD4 = 0 > EndTotal = 0 > EndTotal2 = 0 > BarTotalWin = 0 > TotalGain = 0 > TotalLoss = 0 >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - Initializevariable END >         ''''''''''''''''''''''''''''''''''''''''''''' > >         Instructions.InputMasks.Reset > >         If Keyboard.GetState() = ebStateOpen Then >                 InstructionsEchoClients.RemoveAll >                 Instructions.InputMasks.Add Keyboard.CreateInputMask("{SPACE}", "", > CLng(Instructions.Duration), CLng("1"), ebEndResponseActionTerminate, > CLogical("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") > >         End If > >         Instructions.Run >         BlockList.Run c > >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - GainOrLose BEGIN >         ''''''''''''''''''''''''''''''''''''''''''''' >         if totalsum > 0 then >         Final.ActiveState = "EndWin" >         c.setAttrib "Endtotal", totalsum > end if > if totalsum = 0 then >         Final.ActiveState = "EndNull" >         c.setAttrib "EndTotal", totalsum > end if > if totalsum < 0 then >         Final.ActiveState = "EndLoss" >         c.setAttrib "EndTotal", totalsum > end if >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - GainOrLose END >         ''''''''''''''''''''''''''''''''''''''''''''' > >         Select Case Final.ActiveState >                 Case "EndWin" > >                         Set Final_SlideText = CSlideText(Final.States.Item("EndWin").Objects > (1)) >                         Final_SlideText.Text = "Congratulations! You have won a total of $" > &_ >                                 c.GetAttrib("Endtotal") &_ >                                 "." >                         Set Final_SlideText = Nothing >                 Case "EndLoss" > >                         Set Final_SlideText = CSlideText(Final.States.Item > ("EndLoss").Objects(1)) >                         Final_SlideText.Text = "Unfortunately, you lost money!  Your total > loss is $" &_ >                                 c.GetAttrib("EndTotal") &_ >                                 ".\n\n\n\n" >                         Set Final_SlideText = Nothing >                 Case "EndNull" > >                         Set Final_SlideText = CSlideText(Final.States.Item > ("EndNull").Objects(1)) >                         Final_SlideText.Text = "Unfortunately, you did not win anything. > Your final total is $" &_ >                                 c.GetAttrib("EndTotal") &_ >                                 "." >                         Set Final_SlideText = Nothing >         End Select > >         Final.Run > >         Goodbye.Run > > #If RUNTIME_VERSION_MAJOR > 1  Or (RUNTIME_VERSION_MAJOR = 1 And > RUNTIME_VERSION_MINOR >= 2) Then >         ' Log clock timing information >         c.SetAttrib "Clock.Information", Clock.Information > #End If > >         c.Log > End Sub > > Sub BlockProc_Run(c as Context) >         DesignList.Run c > >         c.Log > End Sub > > Sub TrialProc_Run(c as Context) > >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - InLineA BEGIN >         ''''''''''''''''''''''''''''''''''''''''''''' >         c.setAttrib "totalsum", totalsum > c.setAttrib "TotalsumD1", TotalsumD1 > c.setAttrib "TotalsumD2", TotalsumD2 > c.setAttrib "TotalsumD3", TotalsumD3 > c.setAttrib "TotalsumD4", TotalsumD4 > c.setAttrib "TotalGain", TotalGain > c.setAttrib "TotalLoss", TotalLoss > >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - InLineA END >         ''''''''''''''''''''''''''''''''''''''''''''' > >         Select Case Game.ActiveState >                 Case "Default" > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (1)) >                         Game_SlideText.Text = "Current Total:" &_ >                                 c.GetAttrib("totalsum") >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (2)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (3)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (4)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (5)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(6)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(7)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(8)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(9)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (10)) >                         Set Game_SlideText = Nothing >         End Select > >         Game.InputMasks.Reset > >         If Keyboard.GetState() = ebStateOpen Then >                 GameEchoClients.RemoveAll >                 Game.InputMasks.Add Keyboard.CreateInputMask("afjl", "afjl", CLng > (Game.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical > ("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") > >         End If > >         Game.Run > >         c.SetAttrib Game.Name & ".RTTime", Game.RTTime >         c.SetAttrib Game.Name & ".RT", Game.RT >         c.SetAttrib Game.Name & ".RESP", Game.RESP > > ' InLine - InLineA BEGIN >         ''''''''''''''''''''''''''''''''''''''''''''' >         c.setAttrib "totalsum", totalsum > c.setAttrib "TotalsumD1", TotalsumD1 > c.setAttrib "TotalsumD2", TotalsumD2 > c.setAttrib "TotalsumD3", TotalsumD3 > c.setAttrib "TotalsumD4", TotalsumD4 > c.setAttrib "TotalGain", TotalGain > c.setAttrib "TotalLoss", TotalLoss > >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - InLineA END >         ''''''''''''''''''''''''''''''''''''''''''''' > >         Select Case Game.ActiveState >                 Case "Default" > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (1)) >                         Game_SlideText.Text = "Current Total:" &_ >                                 c.GetAttrib("totalsum") >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (2)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (3)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (4)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (5)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(6)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(7)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(8)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(9)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (10)) >                         Set Game_SlideText = Nothing >         End Select > >         Game.InputMasks.Reset > >         If Keyboard.GetState() = ebStateOpen Then >                 GameEchoClients.RemoveAll >                 Game.InputMasks.Add Keyboard.CreateInputMask("afjl", "afjl", CLng > (Game.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical > ("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") > >         End If > >         Game.Run > >         c.SetAttrib Game.Name & ".RTTime", Game.RTTime >         c.SetAttrib Game.Name & ".RT", Game.RT >         c.SetAttrib Game.Name & ".RESP", Game.RESP > >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - Choose1234 BEGIN >         ''''''''''''''''''''''''''''''''''''''''''''' >         If game.RESP = "a" then >         FB.ActiveState = "f1" >         win = c.getAttrib("varwin1") >         loss = c.getAttrib("varloss1") >         totalsum = totalsum + win + loss >         TotalGain = TotalGain + win >         TotalLoss = TotalLoss + loss >         c.setAttrib "Totalsum", Totalsum >         c.setAttrib "AmountWon", win >         c.setAttrib "AmountLost", loss >         c.setAttrib "TotalGain", TotalGain >         c.setAttrib "TotalLoss", TotalLoss >         c.setAttrib "DeckChoice", 1 >         winD1 = c.getAttrib("varwin1") >         lossD1 = c.getAttrib("varloss1") >         TotalsumD1 = totalsumD1 + winD1 + lossD1 >         c.setAttrib "TotalsumD1", TotalsumD1 >         i = Abs(TotalGain) >         y = c.GetAttrib("TotalLoss") >         j = Abs(y) > >         BarTotalWin = TotalGain/(i+j)*100 >         c.setAttrib "BarTotalWin", BarTotalWin >         If BarTotalWin = 0 then >                 c.setAttrib "BarImage", "Bar0-100.bmp" >         ElseIf BarTotalWin < 0 then >                 c.setAttrib "BarImage", "Bar0-100.bmp" >         ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then >                 c.setAttrib "BarImage", "Bar0-100.bmp" >         ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then >                 c.setAttrib "BarImage", "Bar13-87.bmp" >         ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then >                 c.setAttrib "BarImage", "Bar25-75.bmp" >         ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then >                 c.setAttrib "BarImage", "Bar37-63.bmp" >         ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then >                 c.setAttrib "BarImage", "Bar50-50.bmp" >         ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then >                 c.setAttrib "BarImage", "Bar63-37.bmp" >         ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then >                 c.setAttrib "BarImage", "Bar75-25.bmp" >         ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then >                 c.setAttrib "BarImage", "Bar87-13.bmp" >         ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then >                 c.setAttrib "BarImage", "Bar100-0.bmp" >         ElseIf BarTotalWin = 100 then >                 c.setAttrib "BarImage", "Bar100-0.bmp" >         ElseIf BarTotalWin > 100 then >                 c.setAttrib "BarImage", "Bar100-0.bmp" >         End If > elseif game.RESP = "f" then >         FB.ActiveState = "f2" >     win = c.getAttrib("varwin2") >         loss = c.getAttrib("varloss2") >         totalsum = totalsum + win + loss >         TotalGain = TotalGain + win >         TotalLoss = TotalLoss + loss >         c.setAttrib "Totalsum", Totalsum >         c.setAttrib "AmountWon", win >         c.setAttrib "AmountLost", loss >         c.setAttrib "TotalGain", TotalGain >         c.setAttrib "TotalLoss", TotalLoss >         c.setAttrib "DeckChoice", 2 >         winD2 = c.getAttrib("varwin2") >         lossD2 = c.getAttrib("varloss2") >         TotalsumD2 = totalsumD2 + winD2 + lossD2 >         c.setAttrib "TotalsumD2", TotalsumD2 >         i = Abs(TotalGain) >         y = c.GetAttrib("TotalLoss") >         j = Abs(y) >         BarTotalWin = TotalGain/(i+j)*100 >         'BarTotalWin = TotalGain/(TotalGain-TotalLoss)*100 >         c.setAttrib "BarTotalWin", BarTotalWin >         If BarTotalWin = 0 then >                 c.setAttrib "BarImage", "Bar0-100.bmp" >         ElseIf BarTotalWin < 0 then >                 c.setAttrib "BarImage", "Bar0-100.bmp" >         ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then >                 c.setAttrib "BarImage", "Bar0-100.bmp" >         ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then >                 c.setAttrib "BarImage", "Bar13-87.bmp" >         ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then >                 c.setAttrib "BarImage", "Bar25-75.bmp" >         ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then >                 c.setAttrib "BarImage", "Bar37-63.bmp" >         ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then >                 c.setAttrib "BarImage", "Bar50-50.bmp" >         ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then >                 c.setAttrib "BarImage", "Bar63-37.bmp" >         ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then >                 c.setAttrib "BarImage", "Bar75-25.bmp" >         ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then >                 c.setAttrib "BarImage", "Bar87-13.bmp" >         ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then >                 c.setAttrib "BarImage", "Bar100-0.bmp" >         ElseIf BarTotalWin = 100 then >                 c.setAttrib "BarImage", "Bar100-0.bmp" >         ElseIf BarTotalWin > 100 then >                 c.setAttrib "BarImage", "Bar100-0.bmp" >         End If > elseif game.RESP = "j" then >         FB.ActiveState = "f3" >     win = c.getAttrib("varwin3") >         loss = c.getAttrib("varloss3") >         totalsum = totalsum + win + loss >         TotalGain = TotalGain + win >         TotalLoss = TotalLoss + loss >         c.setAttrib "Totalsum", Totalsum >         c.setAttrib "AmountWon", win >         c.setAttrib "AmountLost", loss >         c.setAttrib "TotalGain", TotalGain >         c.setAttrib "TotalLoss", TotalLoss >         c.setAttrib "DeckChoice", 3 >         winD3 = c.getAttrib("varwin3") >         lossD3 = c.getAttrib("varloss3") >         TotalsumD3 = totalsumD3 + winD3 + lossD3 >         c.setAttrib "TotalsumD3", TotalsumD3 >         i = Abs(TotalGain) >         y = c.GetAttrib("TotalLoss") >         j = Abs(y) >         BarTotalWin = TotalGain/(i+j)*100 >         'BarTotalWin = TotalGain/(TotalGain-TotalLoss)*100 >         c.setAttrib "BarTotalWin", BarTotalWin >         If BarTotalWin = 0 then >                 c.setAttrib "BarImage", "Bar0-100.bmp" >         ElseIf BarTotalWin < 0 then >                 c.setAttrib "BarImage", "Bar0-100.bmp" >         ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then >                 c.setAttrib "BarImage", "Bar0-100.bmp" >         ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then >                 c.setAttrib "BarImage", "Bar13-87.bmp" >         ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then >                 c.setAttrib "BarImage", "Bar25-75.bmp" >         ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then >                 c.setAttrib "BarImage", "Bar37-63.bmp" >         ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then >                 c.setAttrib "BarImage", "Bar50-50.bmp" >         ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then >                 c.setAttrib "BarImage", "Bar63-37.bmp" >         ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then >                 c.setAttrib "BarImage", "Bar75-25.bmp" >         ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then >                 c.setAttrib "BarImage", "Bar87-13.bmp" >         ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then >                 c.setAttrib "BarImage", "Bar100-0.bmp" >         ElseIf BarTotalWin = 100 then >                 c.setAttrib "BarImage", "Bar100-0.bmp" >         ElseIf BarTotalWin > 100 then >                 c.setAttrib "BarImage", "Bar100-0.bmp" >         End If > elseif game.RESP = "l" then >         FB.ActiveState = "f4" >         win = c.getAttrib("varwin4") >         loss = c.getAttrib("varloss4") >         totalsum = totalsum + win + loss >         TotalGain = TotalGain + win >         TotalLoss = TotalLoss + loss >         c.setAttrib "Totalsum", Totalsum >         c.setAttrib "AmountWon", win >         c.setAttrib "AmountLost", loss >         c.setAttrib "TotalGain", TotalGain >         c.setAttrib "TotalLoss", TotalLoss >         c.setAttrib "DeckChoice", 4 >         winD4 = c.getAttrib("varwin4") >         lossD4 = c.getAttrib("varloss4") >         TotalsumD4 = totalsumD4 + winD4 + lossD4 >         c.setAttrib "TotalsumD4", TotalsumD4 >         i = Abs(TotalGain) >         y = c.GetAttrib("TotalLoss") >         j = Abs(y) >         BarTotalWin = TotalGain/(i+j)*100 >         'BarTotalWin = TotalGain/(TotalGain-TotalLoss)*100 >         c.setAttrib "BarTotalWin", BarTotalWin >         If BarTotalWin = 0 then >                 c.setAttrib "BarImage", "Bar0-100.bmp" >         ElseIf BarTotalWin < 0 then >                 c.setAttrib "BarImage", "Bar0-100.bmp" >         ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then >                 c.setAttrib "BarImage", "Bar0-100.bmp" >         ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then >                 c.setAttrib "BarImage", "Bar13-87.bmp" >         ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then >                 c.setAttrib "BarImage", "Bar25-75.bmp" >         ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then >                 c.setAttrib "BarImage", "Bar37-63.bmp" >         ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then >                 c.setAttrib "BarImage", "Bar50-50.bmp" >         ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then >                 c.setAttrib "BarImage", "Bar63-37.bmp" >         ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then >                 c.setAttrib "BarImage", "Bar75-25.bmp" >         ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then >                 c.setAttrib "BarImage", "Bar87-13.bmp" >         ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then >                 c.setAttrib "BarImage", "Bar100-0.bmp" >         ElseIf BarTotalWin = 100 then >                 c.setAttrib "BarImage", "Bar100-0.bmp" >         ElseIf BarTotalWin > 100 then >                 c.setAttrib "BarImage", "Bar100-0.bmp" >         End If > End If > >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - Choose1234 END >         ''''''''''''''''''''''''''''''''''''''''''''' > >         Select Case FB.ActiveState >                 Case "f1" > >                         Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(1)) >                         Set FB_SlideText = Nothing > >                         Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(2)) >                         FB_SlideText.Text = "Previous Total: $" &_ >                                 c.GetAttrib("totalsum") >                         Set FB_SlideText = Nothing > >                         Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(3)) >                         FB_SlideText.Text = "\nLoss:" &_ >                                 c.GetAttrib("varloss1") >                         Set FB_SlideText = Nothing > >                         Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(4)) >                         FB_SlideText.Text = "Gain:" &_ >                                 c.GetAttrib("varwin1") >                         Set FB_SlideText = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(5)) >                         FB_SlideImage.Filename = c.GetAttrib("BarImage") >                         FB_SlideImage.Load >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(6)) >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(7)) >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(8)) >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(9)) >                         Set FB_SlideImage = Nothing >                 Case "f2" > >                         Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(1)) >                         Set FB_SlideText = Nothing > >                         Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(2)) >                         FB_SlideText.Text = "Loss:" &_ >                                 c.GetAttrib("varloss2") >                         Set FB_SlideText = Nothing > >                         Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(3)) >                         FB_SlideText.Text = "Gain:" &_ >                                 c.GetAttrib("varwin2") >                         Set FB_SlideText = Nothing > >                         Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(4)) >                         FB_SlideText.Text = "Previous Total:$" &_ >                                 c.GetAttrib("totalsum") >                         Set FB_SlideText = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(5)) >                         FB_SlideImage.Filename = c.GetAttrib("BarImage") >                         FB_SlideImage.Load >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(6)) >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(7)) >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(8)) >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(9)) >                         Set FB_SlideImage = Nothing >                 Case "f3" > >                         Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(1)) >                         FB_SlideText.Text = "Loss:" &_ >                                 c.GetAttrib("varloss3") >                         Set FB_SlideText = Nothing > >                         Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(2)) >                         FB_SlideText.Text = "Gain:" &_ >                                 c.GetAttrib("varwin3") >                         Set FB_SlideText = Nothing > >                         Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(3)) >                         Set FB_SlideText = Nothing > >                         Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(4)) >                         FB_SlideText.Text = "Previous Total:$" &_ >                                 c.GetAttrib("totalsum") >                         Set FB_SlideText = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(5)) >                         FB_SlideImage.Filename = c.GetAttrib("BarImage") >                         FB_SlideImage.Load >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(6)) >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(7)) >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(8)) >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(9)) >                         Set FB_SlideImage = Nothing >                 Case "f4" > >                         Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(1)) >                         FB_SlideText.Text = "Loss:" &_ >                                 c.GetAttrib("varloss4") >                         Set FB_SlideText = Nothing > >                         Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(2)) >                         FB_SlideText.Text = "Gain:" &_ >                                 c.GetAttrib("varwin4") >                         Set FB_SlideText = Nothing > >                         Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(3)) >                         Set FB_SlideText = Nothing > >                         Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(4)) >                         FB_SlideText.Text = "Previous Total:$" &_ >                                 c.GetAttrib("totalsum") >                         Set FB_SlideText = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(5)) >                         FB_SlideImage.Filename = c.GetAttrib("BarImage") >                         FB_SlideImage.Load >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(6)) >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(7)) >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(8)) >                         Set FB_SlideImage = Nothing > >                         Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(9)) >                         Set FB_SlideImage = Nothing >         End Select > >         FB.Run > >         c.SetAttrib Game.Name & ".RTTime", Game.RTTime >         c.SetAttrib Game.Name & ".RT", Game.RT >         c.SetAttrib Game.Name & ".RESP", Game.RESP > >         c.Log > End Sub --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 kathy.smolewska at gmail.com Tue May 26 12:33:59 2009 From: kathy.smolewska at gmail.com (KKat) Date: Tue, 26 May 2009 05:33:59 -0700 Subject: Problem selecting from decks in Gambling Task... In-Reply-To: Message-ID: Hello :) Thank you for your response. I have double- and triple-checked this and the attribute names match. I think it may have to do with how I've programmed it to find Decks B, C, D. The Decks A, B, C, D are nested under a general "Design List." Deck A appears first, at the top of the list, and seems to work fine. It's not until I press "f", "j", or "l" (i.e., the responses for selecting Decks B to D) that the program fails. Thank you for your help :) Kathy On May 25, 11:55 pm, KKat wrote: > Hello, > > I am currently working on a modified version of the Iowa Gambling Task > (or Bechara Gambling Task). I have created a nested design for the 4 > decks, hoping that this would allow the program to select values for > each deck sequentially. Deck A works but not the others. I'm not sure > what I'm doing wrong but I get the error: > Run-time Error (Line 490) > -990: Factor Error: > No such attribute "varwin2" > > I have attached the relevant section of the script below. I'm not sure > how to attach the .es file here. > > Thank you! > > Kathy > > '-------------------------------------------------------------------------- > ' Instance Declarations > '-------------------------------------------------------------------------- > Dim Display As DisplayDevice > Dim Sound As SoundDevice > Dim Keyboard As KeyboardDevice > Dim Mouse As MouseDevice > Dim SessionProc As Procedure > > Dim BlockList As List > > Dim BlockProc As Procedure > > Dim TrialProc As Procedure > > Dim Instructions As TextDisplay > Dim InstructionsEchoClients As EchoClientCollection > > Dim DesignList As List > > Dim DeckA As List > > Dim DeckB As List > > Dim DeckC As List > > Dim DeckD As List > > Dim FB As Slide > Dim FB_State As SlideState > Dim FB_SlideText As SlideText > Dim FB_SlideImage As SlideImage > > Dim Goodbye As TextDisplay > > Dim Game As Slide > Dim GameEchoClients As EchoClientCollection > Dim Game_State As SlideState > Dim Game_SlideText As SlideText > Dim Game_SlideImage As SlideImage > > Dim Final As Slide > Dim Final_State As SlideState > Dim Final_SlideText As SlideText > > '-------------------------------------------------------------------------- > ' Package Declare Script > '-------------------------------------------------------------------------- > > '-------------------------------------------------------------------------- > ' User Script > '-------------------------------------------------------------------------- > Dim totalsum As integer > Dim var As integer > Dim win As integer, loss As integer > Dim totalsumD1 As integer > Dim totalsumD2 As integer > Dim totalsumD3 As integer > Dim totalsumD4 As integer > Dim winD1 As integer, winD2 As integer, winD3 As integer, winD4 As > integer, lossD1 As integer, lossD2 As integer, lossD3 As integer, > lossD4 As integer > Dim EndTotal As integer > Dim EndTotal2 As integer > Dim DeckChoice As integer > Dim Deck1, Deck2, Deck3, Deck4 As Integer > Dim BarTotalwin As Integer > Dim TotalGain As Integer > Dim TotalLoss As Integer > Dim i As Integer, y as Integer, j as Integer > > '-------------------------------------------------------------------------- > ' Package Global Script > '-------------------------------------------------------------------------- > > '-------------------------------------------------------------------------- > ' Package Routines > '-------------------------------------------------------------------------- > > '-------------------------------------------------------------------------- > ' Implementation > '-------------------------------------------------------------------------- > Sub SessionProc_Run(c as Context) > >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - Initializevariable BEGIN >         ''''''''''''''''''''''''''''''''''''''''''''' >         Totalsum = 0 > TotalsumD1 = 0 > TotalsumD2 = 0 > TotalsumD3 = 0 > TotalsumD4 = 0 > EndTotal = 0 > EndTotal2 = 0 > BarTotalWin = 0 > TotalGain = 0 > TotalLoss = 0 >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - Initializevariable END >         ''''''''''''''''''''''''''''''''''''''''''''' > >         Instructions.InputMasks.Reset > >         If Keyboard.GetState() = ebStateOpen Then >                 InstructionsEchoClients.RemoveAll >                 Instructions.InputMasks.Add Keyboard.CreateInputMask("{SPACE}", "", > CLng(Instructions.Duration), CLng("1"), ebEndResponseActionTerminate, > CLogical("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") > >         End If > >         Instructions.Run >         BlockList.Run c > >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - GainOrLose BEGIN >         ''''''''''''''''''''''''''''''''''''''''''''' >         if totalsum > 0 then >         Final.ActiveState = "EndWin" >         c.setAttrib "Endtotal", totalsum > end if > if totalsum = 0 then >         Final.ActiveState = "EndNull" >         c.setAttrib "EndTotal", totalsum > end if > if totalsum < 0 then >         Final.ActiveState = "EndLoss" >         c.setAttrib "EndTotal", totalsum > end if >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - GainOrLose END >         ''''''''''''''''''''''''''''''''''''''''''''' > >         Select Case Final.ActiveState >                 Case "EndWin" > >                         Set Final_SlideText = CSlideText(Final.States.Item("EndWin").Objects > (1)) >                         Final_SlideText.Text = "Congratulations! You have won a total of $" > &_ >                                 c.GetAttrib("Endtotal") &_ >                                 "." >                         Set Final_SlideText = Nothing >                 Case "EndLoss" > >                         Set Final_SlideText = CSlideText(Final.States.Item > ("EndLoss").Objects(1)) >                         Final_SlideText.Text = "Unfortunately, you lost money!  Your total > loss is $" &_ >                                 c.GetAttrib("EndTotal") &_ >                                 ".\n\n\n\n" >                         Set Final_SlideText = Nothing >                 Case "EndNull" > >                         Set Final_SlideText = CSlideText(Final.States.Item > ("EndNull").Objects(1)) >                         Final_SlideText.Text = "Unfortunately, you did not win anything. > Your final total is $" &_ >                                 c.GetAttrib("EndTotal") &_ >                                 "." >                         Set Final_SlideText = Nothing >         End Select > >         Final.Run > >         Goodbye.Run > > #If RUNTIME_VERSION_MAJOR > 1  Or (RUNTIME_VERSION_MAJOR = 1 And > RUNTIME_VERSION_MINOR >= 2) Then >         ' Log clock timing information >         c.SetAttrib "Clock.Information", Clock.Information > #End If > >         c.Log > End Sub > > Sub BlockProc_Run(c as Context) >         DesignList.Run c > >         c.Log > End Sub > > Sub TrialProc_Run(c as Context) > >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - InLineA BEGIN >         ''''''''''''''''''''''''''''''''''''''''''''' >         c.setAttrib "totalsum", totalsum > c.setAttrib "TotalsumD1", TotalsumD1 > c.setAttrib "TotalsumD2", TotalsumD2 > c.setAttrib "TotalsumD3", TotalsumD3 > c.setAttrib "TotalsumD4", TotalsumD4 > c.setAttrib "TotalGain", TotalGain > c.setAttrib "TotalLoss", TotalLoss > >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - InLineA END >         ''''''''''''''''''''''''''''''''''''''''''''' > >         Select Case Game.ActiveState >                 Case "Default" > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (1)) >                         Game_SlideText.Text = "Current Total:" &_ >                                 c.GetAttrib("totalsum") >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (2)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (3)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (4)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (5)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(6)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(7)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(8)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(9)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (10)) >                         Set Game_SlideText = Nothing >         End Select > >         Game.InputMasks.Reset > >         If Keyboard.GetState() = ebStateOpen Then >                 GameEchoClients.RemoveAll >                 Game.InputMasks.Add Keyboard.CreateInputMask("afjl", "afjl", CLng > (Game.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical > ("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") > >         End If > >         Game.Run > >         c.SetAttrib Game.Name & ".RTTime", Game.RTTime >         c.SetAttrib Game.Name & ".RT", Game.RT >         c.SetAttrib Game.Name & ".RESP", Game.RESP > > ' InLine - InLineA BEGIN >         ''''''''''''''''''''''''''''''''''''''''''''' >         c.setAttrib "totalsum", totalsum > c.setAttrib "TotalsumD1", TotalsumD1 > c.setAttrib "TotalsumD2", TotalsumD2 > c.setAttrib "TotalsumD3", TotalsumD3 > c.setAttrib "TotalsumD4", TotalsumD4 > c.setAttrib "TotalGain", TotalGain > c.setAttrib "TotalLoss", TotalLoss > >         ''''''''''''''''''''''''''''''''''''''''''''' >         ' InLine - InLineA END >         ''''''''''''''''''''''''''''''''''''''''''''' > >         Select Case Game.ActiveState >                 Case "Default" > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (1)) >                         Game_SlideText.Text = "Current Total:" &_ >                                 c.GetAttrib("totalsum") >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (2)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (3)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (4)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (5)) >                         Set Game_SlideText = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(6)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(7)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(8)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(9)) >                         Set Game_SlideImage = Nothing > >                         Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (10)) >                         Set Game_SlideText = Nothing >         End Select > >         Game.InputMasks.Reset > >         If Keyboard.GetState() = ebStateOpen Then >                 GameEchoClients.RemoveAll >                 Game.InputMasks.Add Keyboard.CreateInputMask("afjl", "afjl", CLng > (Game.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical > ("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") > >         End If > >         Game.Run > >         c.SetAttrib Game.Name & > ... > > read more » --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 rochelle.hudson at gmail.com Tue May 26 18:06:14 2009 From: rochelle.hudson at gmail.com (Rochelle) Date: Tue, 26 May 2009 11:06:14 -0700 Subject: Keeping face stimulus while deleting text instructions. Message-ID: I'm working on a project to study the responses of Capgras' patients to familiar and unfamiliar faces. We ask the patients an identical, simple question on each slide, and thought it would be nice to give the patients some feedback after they entered a response (either "1" or "2"). Since the question appears on each slide, I am trying to make the text disappear after the patient responds, but keep the picture stimulus on screen. Each face, then, would be on screen for a total of six seconds, but the question would disappear after the patients entered a response. I've barely programmed before, but explored the E-Basic help and came up with something like this: If FaceText.RT < 6000 Then FaceNoText.Duration = 6000 - FaceText.RT Else FaceText.Duration = 6000 End If I put this between two slides, one with the text instructions and picture, and one with only the picture. This (seems like it?) would toggle between the two slides but keep the overall time at 6 seconds. Obviously, however, this is not working. Does anyone have an idea where I went wrong/what I could try next? Your help is much appreciated! Overall (on the GUI), the duration of both slides are set to 6000, mode to Event, end action (on the first slide) to Terminate. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 justinetimmins at yahoo.com Tue May 26 19:31:41 2009 From: justinetimmins at yahoo.com (justine) Date: Tue, 26 May 2009 12:31:41 -0700 Subject: Incorrect Triggers Codes Message-ID: I am using E-Prime to run an ERP experiment in conjunction with Neuroscan. Currently, Neuroscan is registering incorrect trigger codes for two events. In E-prime I have triggers for the following events in 4 conditions: NP1 (11, 22, 33, 44) Verb (1, 2, 3, 4) NP2 (111, 222, 333, 444) Right now, 333 and 444 are showing up in Neuroscan on the EEG as 118 and 777 respectively. I have no idea why. I was wondering if it was because I copied and pasted the column codes into E-Prime from Excel, and those cells in Excel contained a formula (i.e., I had IF formulas for the respective codes to avoid errors). Has anyone experienced anything similar? Many thanks, Justine VanDyke Ph.D. Candidate University of South Florida --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 justinetimmins at yahoo.com Tue May 26 19:33:46 2009 From: justinetimmins at yahoo.com (justine) Date: Tue, 26 May 2009 12:33:46 -0700 Subject: Incorrect Trigger Codes Message-ID: I am using E-Prime to run an ERP experiment in conjunction with Neuroscan. Currently, Neuroscan is registering incorrect trigger codes for two events. In E-prime I have triggers for the following events in 4 conditions: NP1 (11, 22, 33, 44) Verb (1, 2, 3, 4) NP2 (111, 222, 333, 444) Right now, 333 and 444 are showing up in Neuroscan on the EEG as 118 and 777 respectively. I have no idea why. I was wondering if it was because I copied and pasted the column codes into E-Prime from Excel, and those cells in Excel contained a formula (i.e., I had IF formulas for the respective codes to avoid errors). Has anyone experienced anything similar? Many thanks, Justine VanDyke, University of South Florida --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 pquain at une.edu.au Tue May 26 23:31:52 2009 From: pquain at une.edu.au (Peter Quain) Date: Wed, 27 May 2009 09:31:52 +1000 Subject: Incorrect Trigger Codes In-Reply-To: <1ba2ab9e-1deb-4708-8d38-efe6f0961e9a@r3g2000vbp.googlegrou ps.com> Message-ID: To start with, you can't send value of more than decimal 255 (8 bits, 1 byte) using parallel port, and i think Neuroscan eq is setup to receive pulse values up to 255 (an 8 bit buffer). So when a parallel port device is added to the context, e-prime writeport command (and the send pulse on object onset function) must be geared to parse values (decimal or Hex) into a byte to send to the appropriate pins. The 'odd' values 118 and 777 appearing on the trigger channel probably result from e-prime trying to build a byte from 9 bits, but i can't see how a value of dec 777 can be sent at all, or represented in the neuroscan event channel. Anyway, maybe change event codes within range 0-255 will fix it. At 05:33 AM 27/05/2009, you wrote: >I am using E-Prime to run an ERP experiment in conjunction with >Neuroscan. Currently, Neuroscan is registering incorrect trigger codes >for two events. > >In E-prime I have triggers for the following events in 4 conditions: > >NP1 (11, 22, 33, 44) > >Verb (1, 2, 3, 4) > >NP2 (111, 222, 333, 444) > >Right now, 333 and 444 are showing up in Neuroscan on the EEG as 118 >and 777 respectively. I have no idea why. I was wondering if it was >because I copied and pasted the column codes into E-Prime from Excel, >and those cells in Excel contained a formula (i.e., I had IF formulas >for the respective codes to avoid errors). > >Has anyone experienced anything similar? > >Many thanks, Justine VanDyke, >University of South Florida > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 rochelle.hudson at gmail.com Wed May 27 01:15:55 2009 From: rochelle.hudson at gmail.com (Rochelle) Date: Tue, 26 May 2009 18:15:55 -0700 Subject: Keeping face stimulus while deleting text instructions. In-Reply-To: <39b00f40-86b4-4fe7-915e-9faf26a90313@s20g2000vbp.googlegroups.com> Message-ID: Looking through other E-Prime help forums, I found this (which may be useful to anyone in the future on /this/ forum with the same question): http://support.pstnet.com/forum/Topic1988-12-1.aspx On May 26, 2:06 pm, Rochelle wrote: > I'm working on a project to study the responses of Capgras' patients > to familiar and unfamiliar faces. We ask the patients an identical, > simple question on each slide, and thought it would be nice to give > the patients some feedback after they entered a response (either "1" > or "2"). Since the question appears on each slide, I am trying to make > the text disappear after the patient responds, but keep the picture > stimulus on screen. > > Each face, then, would be on screen for a total of six seconds, but > the question would disappear after the patients entered a response. > > I've barely programmed before, but explored the E-Basic help and came > up with something like this: > > If FaceText.RT < 6000 > > Then > >  FaceNoText.Duration = 6000 - FaceText.RT > > Else > >  FaceText.Duration = 6000 > > End If > > I put this between two slides, one with the text instructions and > picture, and one with only the picture. This (seems like it?) would > toggle between the two slides but keep the overall time at 6 seconds. > Obviously, however, this is not working. Does anyone have an idea > where I went wrong/what I could try next? Your help is much > appreciated! > > Overall (on the GUI), the duration of both slides are set to 6000, > mode to Event, end action (on the first slide) to Terminate. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 mlense at gmail.com Thu May 28 03:08:59 2009 From: mlense at gmail.com (M) Date: Wed, 27 May 2009 20:08:59 -0700 Subject: next trial label? Message-ID: Hello, I'm working on a go/no-go experiment, and I'd like to be able to label the trials that come immediately after the no-go trials (the trials appear randomly). Does anyone have any suggestions on how to write code to add an attribute that labels the subsequent trial (and not the actual no-go trial)? I have not had much luck with anything I've tried so far. Thanks so much! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 meg.andrejczuk at gmail.com Thu May 28 13:47:28 2009 From: meg.andrejczuk at gmail.com (Megan Andrejczuk) Date: Thu, 28 May 2009 09:47:28 -0400 Subject: data collection In-Reply-To: <7d497d1d0905181153w1132fc99pf18a31bf8f6f4ab@mail.gmail.com> Message-ID: Hi all! I have tested the Voice Key and it seems to trip before I speak into the microphone. I am assuming this has to do with the sensitivity but I am not sure how to modify this? The gage on the back of the box seems near impossible to turn. Are there any suggestions? Also, I would like to set up a collection of Voice onset at the presentation of a picture, basically picture naming. I am not sure how this is done in the procedure to include the voice key. I have the experiment set up to display the pictures. But I do not know how to set up the procedure to collect the voice onset. I have made several attempts and have been unsuccessful thus far. I am assuming I have to have a list somehow and include the "6" as the allowable input? Can anyone help or point me in the direction of a tutorial. At this point, I am frustrated and do not have a great sense of e-prime. On Mon, May 18, 2009 at 2:53 PM, Megan Andrejczuk wrote: > Thanks David! > > > On Mon, May 18, 2009 at 2:49 PM, David McFarlane wrote: > >> >> Megan, >> >> Use of the voice key is described on pages 11-12 and 15 of the manual >> that came with the SRBox. If you do not have the manual then you >> really have to contact PST and get one from them ASAP. Also, as >> stated in the manual, the voice key is already set up to work with >> the Utiilites test program that came with the SRBox (also >> downloadable from PST). If your voice key does not work with the >> Utilities program then you have some troubleshooting to do. >> >> -- David McFarlane, Professional Faultfinder >> >> >> >Thanks David! But that is where my confusion comes in. I am not sure >> >how to incorporate the voice key response. I have the experiment >> >set-up so the pictures appear but don't know how to collect the >> >onset time using the voice key. I am extremely new to e-prime so >> >this may be an elementary question. >> > >> >Thanks, >> > >> >Megan >> > >> >On Mon, May 18, 2009 at 2:28 PM, David McFarlane >> ><mcfarla9 at msu.edu> wrote: >> > >> >Megan, >> > >> >As a general E-Prime programming strategy, I would start by >> >forgetting about the SoundIn, and just make a simple program that >> >shows the pictures and gets the response time using the voice key >> >response. Then I would make a second simplified program that just >> >shows pictures and records voice responses with SoundIn, without >> >worrying about the response time. Then I would take everything I >> >learned from those two simplified programs and combine that into one >> >program that gets response times from the voice key plus records the >> >responses. >> > >> >Good luck, >> >-- David McFarlane, Professional Faultfinder >> > >> > >> > >I have tested my Serial Response Box and everything seems to be >> > >functioning properly. I am confused how to add the timing onset to my >> > >experiment. It is a picture naming task, so an image is displayed for >> > >two seconds and the participant is directed to name the object as >> > >quickly as they can. I would like to start timing at voice onset, in >> > >order to know how quickyl they responded. I added the SRBox and then >> > >put a SoundIn in the Procedure but I think it is only recording the >> > >verbalization. How do I have the SRBox only record the onset time? >> > >Also, where will the data be logged? >> > > >> > >Thanks, >> > > >> > >Megan >> > >> >> >> >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 liwenna at gmail.com Thu May 28 15:11:40 2009 From: liwenna at gmail.com (liwenna) Date: Thu, 28 May 2009 08:11:40 -0700 Subject: next trial label? In-Reply-To: <2ac3c16f-94a2-4128-97b8-fb9d6c4cc0e1@c36g2000yqn.googlegroups.com> Message-ID: mmm there's bound to be a better way but first thing that comes to mind here... declare a global variable on the user tab of the script, say something like... 'dim nogolabeler as integer'. Then at the end of a trial add a piece of inline that reads the trialtype (from an attribute somewhere in your lists) and toggles the nogolabeler accordingly. if c.getattrib ("trialtype" ) = 0 then nogolabeler = 0 if c.getattrib ("trialtype") = 1 then nogolabeler = 1 then at the beginning of the trialproc add another inline that reads the nogolabeler and writes an attribute if it is set to 1 (by the previous described inline at the end of the previous trial). if nogolabeler = 0 then c.setattrib "prevtrialwasnogo", 0 if nogolabeler = 1 then c.setattrib "prevtrialwasnogo", 1 I didn't try these lines in e-prime so not sure if they're actually working, but it gives you an idea and it might actually do the thing you need. Good luck! liwenna On May 28, 5:08 am, M wrote: > Hello, > I'm working on a go/no-go experiment, and I'd like to be able to label > the trials that come immediately after the no-go trials (the trials > appear randomly). > Does anyone have any suggestions on how to write code to add an > attribute that labels the subsequent trial (and not the actual no-go > trial)? > I have not had much luck with anything I've tried so far. > Thanks so much! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 adamosth at gmail.com Thu May 28 18:42:46 2009 From: adamosth at gmail.com (Adam Osth) Date: Thu, 28 May 2009 14:42:46 -0400 Subject: quick question about colon notation Message-ID: This is a dumb question, but when using colon notation in attribute referencing, I understand you can use "List:0" to access the first item on a list. Does this mean "List:1" accesses the 2nd, "List:3" accesses the third, and so forth? I'm having some problems with referencing correct values, and I'm concerned whether this might be what's responsible (I'd test it myself right now but I'm away from my computer). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 mlense at gmail.com Thu May 28 21:11:34 2009 From: mlense at gmail.com (M) Date: Thu, 28 May 2009 14:11:34 -0700 Subject: next trial label? In-Reply-To: <63d1f696-7f36-46ce-849d-2e4a85cd2ac7@h28g2000yqd.googlegroups.com> Message-ID: thanks so much! that worked really well! much appreciated! On May 28, 10:11 am, liwenna wrote: > mmm there's bound to be a better way but first thing that comes to > mind here... > > declare a global variable on the user tab of the script, say something > like... 'dim nogolabeler as integer'. > Then at the end of a trial add a piece of inline that reads the > trialtype (from an attribute somewhere in your lists) and toggles the > nogolabeler accordingly. > >  if c.getattrib ("trialtype" ) = 0 then nogolabeler = 0 >  if c.getattrib ("trialtype") = 1 then nogolabeler = 1 > > then at the beginning of the trialproc add another inline that reads > the nogolabeler and writes an attribute if it is set to 1 (by the > previous described inline at the end of the previous trial). > > if nogolabeler = 0 then c.setattrib "prevtrialwasnogo", 0 > if nogolabeler = 1 then c.setattrib "prevtrialwasnogo", 1 > > I didn't try these lines in e-prime so not sure if they're actually > working, but it gives you an idea and it might actually do the thing > you need. > > Good luck! > > liwenna > > On May 28, 5:08 am, M wrote: > > > > > Hello, > > I'm working on a go/no-go experiment, and I'd like to be able to label > > the trials that come immediately after the no-go trials (the trials > > appear randomly). > > Does anyone have any suggestions on how to write code to add an > > attribute that labels the subsequent trial (and not the actual no-go > > trial)? > > I have not had much luck with anything I've tried so far. > > Thanks so much!- 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 adamosth at gmail.com Thu May 28 21:17:56 2009 From: adamosth at gmail.com (Adam Osth) Date: Thu, 28 May 2009 17:17:56 -0400 Subject: quick question about colon notation In-Reply-To: <7ef748980905281142x7367f19fua8185267ebb744b@mail.gmail.com> Message-ID: Scratch that question - not only did I figure it out but that wasn't even my problem with the program. On Thu, May 28, 2009 at 2:42 PM, Adam Osth wrote: > This is a dumb question, but when using colon notation in attribute > referencing, I understand you can use "List:0" to access the first item on a > list. Does this mean "List:1" accesses the 2nd, "List:3" accesses the third, > and so forth? I'm having some problems with referencing correct values, and > I'm concerned whether this might be what's responsible (I'd test it myself > right now but I'm away from my computer). > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 gosenbach at gmail.com Fri May 1 12:28:31 2009 From: gosenbach at gmail.com (Greg Osenbach) Date: Fri, 1 May 2009 08:28:31 -0400 Subject: Accessing NI DAQ card In-Reply-To: <92e95e010904301506o71b7e9cfga7d2772d164a16a9@mail.gmail.com> Message-ID: You can download the latest NI-DAQmx drivers and software from here: http://sine.ni.com/psp/app/doc/p/id/psp-268 You can use the DAQ card via .NET or activeX (VB samples should be included). If you can access the card with e-prime, it would probably be in a similar way to what is in the examples. Sorry I can not give you specific instructions at the moment. I'll cruise around and see if I can find anything more specific. Greg On Thu, Apr 30, 2009 at 6:06 PM, Joana Silva wrote: > No, I think it's just the DAQ card. > > > On Thu, Apr 30, 2009 at 11:04 PM, Greg Osenbach wrote: > >> I am not familiar with that one. I'll have to look up the specs. >> >> Do you have any NI software or just the DAQ card? >> >> >> On Thu, Apr 30, 2009 at 5:50 PM, Joana Silva wrote: >> >>> Hi. >>> >>> The card is pretty old, it's a PCI - 6025E. Additionally the computer in >>> which it is installed only works with drivers from 2002 (version 6.9.3. Is >>> this enough? >>> >>> Thanks. >>> >>> >>> On Thu, Apr 30, 2009 at 9:49 PM, Greg Osenbach wrote: >>> >>>> Hello, >>>> >>>> Which DAQ card do you have? I may be able to help you out but you will >>>> need to give me a few more details about what you have. :) >>>> >>>> Cheers, >>>> Greg >>>> >>>> >>>> On Thu, Apr 30, 2009 at 11:46 AM, student wrote: >>>> >>>>> >>>>> Hello. >>>>> >>>>> Where can I see how E-prime is accessing the NI-card? Is there some >>>>> sort of submenu or tab pertaining to input ports or something similar? >>>>> >>>>> 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 liwenna at gmail.com Fri May 1 14:31:09 2009 From: liwenna at gmail.com (liwenna) Date: Fri, 1 May 2009 07:31:09 -0700 Subject: Display In-Reply-To: <7753d0eb-8b94-4c8c-b216-bfacbb1808c8@b6g2000pre.googlegroups.com> Message-ID: and what would you like to show on the screen instead of the display, then? On Apr 30, 5:47?pm, student wrote: > Hi. > > Does E-prime necessarily have to use a display, or is it possible to > have it running in the background without taking up the computer > screen? > > Tahnks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From mcfarla9 at msu.edu Fri May 1 14:42:33 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 1 May 2009 10:42:33 -0400 Subject: Display In-Reply-To: <92e95e010904301501r4c6bb292u6030885d135190ee@mail.gmail.co m> Message-ID: Joana, Interesting. I will cc this back to the list, since this may be of interest to others and the added detail might help someone else come up with a better answer. As for me, I would avoid such a Rube Golberg setup if at all possible. What software are you using for the task? Is it a canned program, or do you have the source code? If you have the source code I would look harder at finding some way to get the fMRI signals in to the task program itself, and if that were a problem I would then look at porting the entire program to another language/system. But if I had to stick to the Rube Goldberg method, as a last resort I might put in two computers with one to run the task and the other to handle the fMRI input. Just my $0.02, I hope someone here comes up with a better solution. -- David McFarlane, Professional Faultfinder At 4/30/2009 06:01 PM Thursday, you wrote: >Hello. > >It's a pretty convoluted situation. I am not actually using E-prime, >but rather a different software. I am, however, conducting my >experiments in a preexisting fMRI setup which does use E-prime. I >have already installed my program into the computer, but it is >unable to the detect (input) signals from the fMRI. E-prime, >however, is capable of detecting these signals. So the idea was to >use E-prime to receive and register the signals and my program to >run the experiment. But for this, it would have to be possible to >run E-prime without it taking up the display, otherwise my >experiment won't show. Is this clear? Better yet, does this make any sense? > >I really appreaciate the help, since I am at a loss to understand E-prime. > >On Thu, Apr 30, 2009 at 7:29 PM, David McFarlane wrote: > >[REPLYING OFF-LIST, REPLIES WILL COME DIRECTLY TO ME AND *NOT* TO THE LIST] > > >At 4/30/2009 11:47 AM Thursday, student wrote: > >Hi. > >Does E-prime necessarily have to use a display, or is it possible to >have it running in the background without taking up the computer >screen? > >Tahnks. > > >Hmm, I am a little curious why you want to do such a thing, and why >you think E-Prime is the tool to do this instead of some other system. > > >Thanks, > >--------------- >David McFarlane, Systems Designer >Dept. Psychology, Michigan State University --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 josephjaywilliams at gmail.com Fri May 1 20:50:56 2009 From: josephjaywilliams at gmail.com (Joseph Williams) Date: Fri, 1 May 2009 13:50:56 -0700 Subject: Problem with having an item drawn repeatedly from a nested list Message-ID: Hi Everyone, I'm having a problem with an item being drawn twice from a list that is nested in a non-typical way. I had to give two different groups of subjects two different sets of test items, so I had a list with counterbalance selection: the list had list A and list B nested inside along with a variable [listAorlistB]. The first level had list A as a nested list and the variable [listAorlistB] had value "listA", the second had the same for list B. Then a list containing the sub-procedure that displayed the (e.g. 5) test items had the variable ( [listAorlistB] ) as a nested list so that it always choose the relevant set of items. When I look at the data file (and examine the items by running the program) the first 4 items appear to be drawn randomly, but the 5th and last one is a repetition of one of the previous 4: e.g. 4 2 1 2 (instead of drawing item 3). The item numbers which are shown (like in the example) are correctly given by (e.g.) listA[logLevel5], but I don't understand why one is being repeated instead of drawing another one. I looked at multiple subjects and I always get this problem, and I noted is that the final and repeated item is always the item number in listA[SubTrial]. Does anyone have any ideas about what the problem might be? Thank you, Joseph --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 liwenna at gmail.com Mon May 4 14:19:46 2009 From: liwenna at gmail.com (liwenna) Date: Mon, 4 May 2009 07:19:46 -0700 Subject: Problem with having an item drawn repeatedly from a nested list In-Reply-To: <121d07f40905011350x69e64321t59c7e78e60f2aaff@mail.gmail.com> Message-ID: Hi Joseph, At first I thought your problem would be due to having a variable 'listaorlistb' in two consecutive lists... but I built a little testexperiment based on your info and that doesn't seem to be a problem... althoughI did not manage to replicate the last bit of info you give, were you use the variable 'listaorlistb' as a nested list... I could not figure that one out without having e-prime crash. The good news is though, that there is a setup possible, close to what you describe that does exactly what you need (or at least it does for me, and I obviously don't know what other features your task has that might interfere). I found that there is no need to use a variable 'listaorlistb' at all, not in the first 2 level list (as long as you nest listA and listB well, you could use a variable like that for logging though) nor in the actual lista and listb. I hereby post a link to a screenshot of the setup that works for me. I opened the three lists so that you can see all the parameters and randomisation values. I hope it will help you to locate the litle culprit in your own experiment. http://images.redial.net/setuplistaorlistb.bmp Good luck! liw On May 1, 10:50 pm, Joseph Williams wrote: > Hi Everyone, > > I'm having a problem with an item being drawn twice from a list that is > nested in a non-typical way. I had to give two different groups of subjects > two different sets of test items, so I had a list with counterbalance > selection: the list had list A and list B nested inside along with a > variable [listAorlistB]. The first level had list A as a nested list and the > variable [listAorlistB] had value "listA", the second had the same for list > B. > > Then a list containing the sub-procedure that displayed the (e.g. 5) test > items had the variable ( [listAorlistB] ) as a nested list so that it always > choose the relevant set of items. When I look at the data file (and examine > the items by running the program) the first 4 items appear to be drawn > randomly, but the 5th and last one is a repetition of one of the previous 4: > e.g. 4 2 1 2 (instead of drawing item 3). The item numbers which are shown > (like in the example) are correctly given by (e.g.) listA[logLevel5], but I > don't understand why one is being repeated instead of drawing another one. I > looked at multiple subjects and I always get this problem, and I noted is > that the final and repeated item is always the item number in > listA[SubTrial]. > > Does anyone have any ideas about what the problem might be? > > Thank you, > > Joseph --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 rickogorman at gmail.com Mon May 4 20:14:44 2009 From: rickogorman at gmail.com (Rick O'Gorman) Date: Mon, 4 May 2009 21:14:44 +0100 Subject: Textbox bug in E-Prime Message-ID: Out of curiousity, is anyone else besides me finding a serious and regular bug in editing textboxes within slides, such that E-Prime crashes? I'm using 2.0.8.22 RC. It's driving me nuts. It's so bad that I run a second version of E-Prime now ready to go when one crashes, because E-Prime takes so long to open and then open the file I am working with (and no--this is not a cause of the bug; I've only recently started doing this to salvage my sanity!). Rick -- Rick O'Gorman, PhD Psychology, Faculty of Development and Society Collegiate Crescent Campus, Sheffield Hallam University, Sheffield S10 2BP Phone: 0114 225 5788 Fax: 0114 225 2430 http://www.shu.ac.uk/psychology/staff/OGorman.html No passion can survive a woman's seeing her lover hold his fork in the wrong way. ~Edith Wharton --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 maria.hartberg at gmail.com Mon May 4 06:52:34 2009 From: maria.hartberg at gmail.com (Maria) Date: Sun, 3 May 2009 23:52:34 -0700 Subject: experiment over internet Message-ID: Dear all, I have an E-prime experiment that I would like to run over internet, that is participants can be anywhere with internet access. Is there a web module or similar that would enable this? Best wishes Maria --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 ejk4 at pitt.edu Mon May 4 20:54:46 2009 From: ejk4 at pitt.edu (Eliezer Kanal) Date: Mon, 4 May 2009 16:54:46 -0400 Subject: Textbox bug in E-Prime In-Reply-To: <49FF4CB4.6060909@gmail.com> Message-ID: Can you provide the exact minimum steps required to replicate this bug? Eliezer Kanal On May 4, 2009, at 4:14 PM, Rick O'Gorman wrote: > > Out of curiousity, is anyone else besides me finding a serious and > regular bug in editing textboxes within slides, such that E-Prime > crashes? I'm using 2.0.8.22 RC. It's driving me nuts. It's so bad > that I > run a second version of E-Prime now ready to go when one crashes, > because E-Prime takes so long to open and then open the file I am > working with (and no--this is not a cause of the bug; I've only > recently > started doing this to salvage my sanity!). > > Rick > -- > Rick O'Gorman, PhD > Psychology, Faculty of Development and Society > Collegiate Crescent Campus, > Sheffield Hallam University, > Sheffield > S10 2BP > > Phone: 0114 225 5788 Fax: 0114 225 2430 > > http://www.shu.ac.uk/psychology/staff/OGorman.html > > No passion can survive a woman's seeing her lover hold > his fork in the wrong way. > ~Edith Wharton > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 rickogorman at gmail.com Mon May 4 21:04:35 2009 From: rickogorman at gmail.com (Rick O'Gorman) Date: Mon, 4 May 2009 22:04:35 +0100 Subject: Textbox bug in E-Prime In-Reply-To: <962B1BD1-7DAA-4970-9B1C-2A066B533752@pitt.edu> Message-ID: If you suffer it you can't miss it--whenever I double-click to edit text in a textbox, E-Prime will randomly crash. So it doesn't do it every time but will eventually (meaning within a few minutes of editing a textbox). I don't do anything odd--just click into a textbox and start adding text, deleting text or sometimes right when I double-click a textbox it crashes. The odd thing is that I thought this bug went away when I went from 2.0.1 to 2.0.8, but there's been a few months' gap between uses and so I could be wrong. But you don't have to do much fancy to activate the problem on my set-up. I also find that the shortcut keys don't work for textboxes (ctrl-c, ctrl-v) but do work for lists. Unrelated, but I could go on (how about trying to get at the property box for slidestates to change the names--aha, that took me a while to figure out). Rick Eliezer Kanal wrote: > Can you provide the exact minimum steps required to replicate this bug? > > Eliezer Kanal > > > On May 4, 2009, at 4:14 PM, Rick O'Gorman wrote: > >> Out of curiousity, is anyone else besides me finding a serious and >> regular bug in editing textboxes within slides, such that E-Prime >> crashes? I'm using 2.0.8.22 RC. It's driving me nuts. It's so bad >> that I >> run a second version of E-Prime now ready to go when one crashes, >> because E-Prime takes so long to open and then open the file I am >> working with (and no--this is not a cause of the bug; I've only >> recently >> started doing this to salvage my sanity!). >> >> Rick >> -- >> Rick O'Gorman, PhD >> Psychology, Faculty of Development and Society >> Collegiate Crescent Campus, >> Sheffield Hallam University, >> Sheffield >> S10 2BP >> >> Phone: 0114 225 5788 Fax: 0114 225 2430 >> >> http://www.shu.ac.uk/psychology/staff/OGorman.html >> >> No passion can survive a woman's seeing her lover hold >> his fork in the wrong way. >> ~Edith Wharton >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 google at frankbosco.com Mon May 4 21:12:03 2009 From: google at frankbosco.com (frankbosco) Date: Mon, 4 May 2009 14:12:03 -0700 Subject: Textbox bug in E-Prime In-Reply-To: <49FF4CB4.6060909@gmail.com> Message-ID: Rick, ABSOLUTELY! This drives me nuts, as well. For me, it happens especially when adding more that 20-30 characters to a textbox within a slide. What's the deal, E-Prime??? Sometimes, I think that the only feature in E-Prime that works 100% flawlessly is their copyright protection (which, by the way, wastes a great deal of time when working/opening/saving in E-Studio!). Another warning re: E-Prime 2.0: E-Studio randomly deleted an .es2 file on me (after crashing, of course) that I had been working on for several days. I almost lost it. Now, I need to save 2 copies of each .es2 file (huge waste of my time). While I'm complaining about E-Prime 2.0, I would really like to have a set of user's manuals (in print) - I find a 2-year release candidacy to be semi-unacceptable (especially for a software that costs $800 or more!). I think this may be my last E-Prime purchase -- I may look into other options in the future. -Frank On May 4, 3:14?pm, Rick O'Gorman wrote: > Out of curiousity, is anyone else besides me finding a serious and > regular bug in editing textboxes within slides, such that E-Prime > crashes? I'm using 2.0.8.22 RC. It's driving me nuts. It's so bad that I > run a second version of E-Prime now ready to go when one crashes, > because E-Prime takes so long to open and then open the file I am > working with (and no--this is not a cause of the bug; I've only recently > started doing this to salvage my sanity!). > > Rick > -- > Rick O'Gorman, PhD > Psychology, Faculty of Development and Society > Collegiate Crescent Campus, > Sheffield Hallam University, > Sheffield > S10 2BP > > Phone: 0114 225 5788 Fax: 0114 225 2430 > > http://www.shu.ac.uk/psychology/staff/OGorman.html > > No passion can survive a woman's seeing her lover hold > his fork in the wrong way. > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?~Edith Wharton --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From Michiel.Spape at nottingham.ac.uk Tue May 5 08:51:14 2009 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 5 May 2009 09:51:14 +0100 Subject: experiment over internet In-Reply-To: Message-ID: Hi, Not that I know of, but you could - if you don't give anything about timing - theoretically run E-Prime on a remote desktop? If a computer has guest login, remote availability, etc, you could put a link on the internet and, with a bit of script, have it start e-prime on log-on. I think learning Flash or Silverlight may take less time, though (I made a couple of experiments http://www.cognitology.eu/Experiments.htm ). Alternatively, for experiments in which timing is not critical anyway (usually the case if you want to do something on the internet), web-programming (php, javascript, etc) is probably much better and easier than e-prime. Best, Mich -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Maria Sent: 04 May 2009 07:53 To: E-Prime Subject: experiment over internet Dear all, I have an E-prime experiment that I would like to run over internet, that is participants can be anywhere with internet access. Is there a web module or similar that would enable this? Best wishes Maria This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From Michiel.Spape at nottingham.ac.uk Tue May 5 09:02:49 2009 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 5 May 2009 10:02:49 +0100 Subject: Textbox bug in E-Prime In-Reply-To: Message-ID: Hi, The corrupted e-studio files following crashes, although not happening often, are indeed absolutely horrendous - and could easily be avoided if only e-studio would automatically save backups (like office, for example). They happened in E-Prime 1 as well, and I remember one of my students had it near the end of an exam (of my e-prime course). What are you supposed to do if that happens? Considering it was not the student's fault, we decided to have a look at the E-Run file and have her TELL us what she had wanted to do with it before E-Prime went bananas - but that is not a really practical solution. Anyway, all the best with your E-Misery, I think we all know it has certain weaknesses that are about as likely to be fixed as SPSS is to better with version 20 (expected release in 3 months). Best, Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of frankbosco Sent: 04 May 2009 22:12 To: E-Prime Subject: Re: Textbox bug in E-Prime Rick, ABSOLUTELY! This drives me nuts, as well. For me, it happens especially when adding more that 20-30 characters to a textbox within a slide. What's the deal, E-Prime??? Sometimes, I think that the only feature in E-Prime that works 100% flawlessly is their copyright protection (which, by the way, wastes a great deal of time when working/opening/saving in E-Studio!). Another warning re: E-Prime 2.0: E-Studio randomly deleted an .es2 file on me (after crashing, of course) that I had been working on for several days. I almost lost it. Now, I need to save 2 copies of each .es2 file (huge waste of my time). While I'm complaining about E-Prime 2.0, I would really like to have a set of user's manuals (in print) - I find a 2-year release candidacy to be semi-unacceptable (especially for a software that costs $800 or more!). I think this may be my last E-Prime purchase -- I may look into other options in the future. -Frank On May 4, 3:14?pm, Rick O'Gorman wrote: > Out of curiousity, is anyone else besides me finding a serious and > regular bug in editing textboxes within slides, such that E-Prime > crashes? I'm using 2.0.8.22 RC. It's driving me nuts. It's so bad that I > run a second version of E-Prime now ready to go when one crashes, > because E-Prime takes so long to open and then open the file I am > working with (and no--this is not a cause of the bug; I've only recently > started doing this to salvage my sanity!). > > Rick > -- > Rick O'Gorman, PhD > Psychology, Faculty of Development and Society > Collegiate Crescent Campus, > Sheffield Hallam University, > Sheffield > S10 2BP > > Phone: 0114 225 5788 Fax: 0114 225 2430 > > http://www.shu.ac.uk/psychology/staff/OGorman.html > > No passion can survive a woman's seeing her lover hold > his fork in the wrong way. > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?~Edith Wharton This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From mcfarla9 at msu.edu Tue May 5 20:47:55 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 5 May 2009 16:47:55 -0400 Subject: Textbox bug in E-Prime In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF011D7FD3@VUIEXCHC.ad.notti ngham.ac.uk> Message-ID: Miciel, At 5/5/2009 05:02 AM Tuesday, you wrote: >we decided to have a look at the E-Run file and have her TELL us >what she had wanted to do with it before E-Prime went bananas - but >that is not a really practical solution. And of course that solution no longer works with EP2, as discussed at http://support.pstnet.com/forum/Topic696-12-1.aspx . -- David McFarlane, Professional Faultfinder --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From josephjaywilliams at gmail.com Wed May 6 04:25:10 2009 From: josephjaywilliams at gmail.com (Joseph Williams) Date: Tue, 5 May 2009 21:25:10 -0700 Subject: Problem with having an item drawn repeatedly from a nested list In-Reply-To: <3a001b51-d7f2-4880-a2da-4da8845d434c@e20g2000vbc.googlegroups.com> Message-ID: Hi Liw, Thanks a lot! I appreciate you thinking about this for me. I'll try out this more direct approach that you used, there was a reason to have things nested the way I did it the first time, but now on second thought I think I can get around that. All the best, Joseph On Mon, May 4, 2009 at 7:19 AM, liwenna wrote: > > Hi Joseph, > > At first I thought your problem would be due to having a variable > 'listaorlistb' in two consecutive lists... but I built a little > testexperiment based on your info and that doesn't seem to be a > problem... althoughI did not manage to replicate the last bit of info > you give, were you use the variable 'listaorlistb' as a nested list... > I could not figure that one out without having e-prime crash. > > The good news is though, that there is a setup possible, close to what > you describe that does exactly what you need (or at least it does for > me, and I obviously don't know what other features your task has that > might interfere). I found that there is no need to use a variable > 'listaorlistb' at all, not in the first 2 level list (as long as you > nest listA and listB well, you could use a variable like that for > logging though) nor in the actual lista and listb. I hereby post a > link to a screenshot of the setup that works for me. I opened the > three lists so that you can see all the parameters and randomisation > values. I hope it will help you to locate the litle culprit in your > own experiment. > > http://images.redial.net/setuplistaorlistb.bmp > > Good luck! > > liw > > On May 1, 10:50 pm, Joseph Williams > wrote: > > Hi Everyone, > > > > I'm having a problem with an item being drawn twice from a list that is > > nested in a non-typical way. I had to give two different groups of > subjects > > two different sets of test items, so I had a list with counterbalance > > selection: the list had list A and list B nested inside along with a > > variable [listAorlistB]. The first level had list A as a nested list and > the > > variable [listAorlistB] had value "listA", the second had the same for > list > > B. > > > > Then a list containing the sub-procedure that displayed the (e.g. 5) test > > items had the variable ( [listAorlistB] ) as a nested list so that it > always > > choose the relevant set of items. When I look at the data file (and > examine > > the items by running the program) the first 4 items appear to be drawn > > randomly, but the 5th and last one is a repetition of one of the previous > 4: > > e.g. 4 2 1 2 (instead of drawing item 3). The item numbers which are > shown > > (like in the example) are correctly given by (e.g.) listA[logLevel5], but > I > > don't understand why one is being repeated instead of drawing another > one. I > > looked at multiple subjects and I always get this problem, and I noted is > > that the final and repeated item is always the item number in > > listA[SubTrial]. > > > > Does anyone have any ideas about what the problem might be? > > > > Thank you, > > > > Joseph > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 liwenna at gmail.com Wed May 6 11:42:37 2009 From: liwenna at gmail.com (liwenna) Date: Wed, 6 May 2009 04:42:37 -0700 Subject: Problem with having an item drawn repeatedly from a nested list In-Reply-To: <121d07f40905052125m2972c3e9vcfe2c8b1536029f4@mail.gmail.com> Message-ID: No problem... I kinda like playing with e-prime... ;) Let me know if it works out (and also if not). liw On May 6, 6:25 am, Joseph Williams wrote: > Hi Liw, > > Thanks a lot! I appreciate you thinking about this for me. > > I'll try out this more direct approach that you used, there was a reason to > have things nested the way I did it the first time, but now on second > thought I think I can get around that. > > All the best, > > Joseph > > On Mon, May 4, 2009 at 7:19 AM, liwenna wrote: > > > Hi Joseph, > > > At first I thought your problem would be due to having a variable > > 'listaorlistb' in two consecutive lists... but I built a little > > testexperiment based on your info and that doesn't seem to be a > > problem... althoughI did not manage to replicate the last bit of info > > you give, were you use the variable 'listaorlistb' as a nested list... > > I could not figure that one out without having e-prime crash. > > > The good news is though, that there is a setup possible, close to what > > you describe that does exactly what you need (or at least it does for > > me, and I obviously don't know what other features your task has that > > might interfere). I found that there is no need to use a variable > > 'listaorlistb' at all, not in the first 2 level list (as long as you > > nest listA and listB well, you could use a variable like that for > > logging though) nor in the actual lista and listb. I hereby post a > > link to a screenshot of the setup that works for me. I opened the > > three lists so that you can see all the parameters and randomisation > > values. I hope it will help you to locate the litle culprit in your > > own experiment. > > >http://images.redial.net/setuplistaorlistb.bmp > > > Good luck! > > > liw > > > On May 1, 10:50 pm, Joseph Williams > > wrote: > > > Hi Everyone, > > > > I'm having a problem with an item being drawn twice from a list that is > > > nested in a non-typical way. I had to give two different groups of > > subjects > > > two different sets of test items, so I had a list with counterbalance > > > selection: the list had list A and list B nested inside along with a > > > variable [listAorlistB]. The first level had list A as a nested list and > > the > > > variable [listAorlistB] had value "listA", the second had the same for > > list > > > B. > > > > Then a list containing the sub-procedure that displayed the (e.g. 5) test > > > items had the variable ( [listAorlistB] ) as a nested list so that it > > always > > > choose the relevant set of items. When I look at the data file (and > > examine > > > the items by running the program) the first 4 items appear to be drawn > > > randomly, but the 5th and last one is a repetition of one of the previous > > 4: > > > e.g. 4 2 1 2 (instead of drawing item 3). The item numbers which are > > shown > > > (like in the example) are correctly given by (e.g.) listA[logLevel5], but > > I > > > don't understand why one is being repeated instead of drawing another > > one. I > > > looked at multiple subjects and I always get this problem, and I noted is > > > that the final and repeated item is always the item number in > > > listA[SubTrial]. > > > > Does anyone have any ideas about what the problem might be? > > > > Thank you, > > > > Joseph --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 meg.andrejczuk at gmail.com Thu May 7 14:09:30 2009 From: meg.andrejczuk at gmail.com (Megan Andrejczuk) Date: Thu, 7 May 2009 10:09:30 -0400 Subject: Auditory Recording and Onset timing In-Reply-To: <49fa1573.0e0bca0a.0cb5.ffffb5bfSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Hi all! I have another question which I am hoping you can help me with. I am trying to Configure the Serial Response Box in E-Prime, I have downloaded the utilities format and have tried running it in e-prime however, I keep recieving a run-time error which is as follows *This is what the run time errors says* Run-time Error (Line 1541) 11041: ImageDisplay Internal Error has occurred Marker: 2000 *In Line 1* c.SetAttrib "RefreshTime", Format$(1/(c.GetAttrib ("Display.RefreshRate"))*1000, "##.##") /* Dim dblRefreshTime As Double dblRefreshTime = 1/(c.GetAttrib ("Display.RefreshRate"))*1000 c.SetAttrib "RefreshTime", Format$(dblRefreshTime, "##.##") */ *Script* Menu.Guid = "{52C406B8-5D1F-4B60-A564-CF7F7A1FE513}" Menu.Tag = "" Set MenuEchoClients = New EchoClientCollection Menu.LoadProperties Set Hello = New Slide Hello.Name = "Hello" Hello.Guid = "{C3C963DE-3E11-42D4-B9BA-6A3165479C5A}" Hello.Tag = "" Set HelloEchoClients = New EchoClientCollection Hello.LoadProperties I have tried changing the displat but not much seems to be working. I know the box works because the lights are lit and it has been used previously. I tried emailing pstnet support and have heard nothing. I am beyond frustrated! Any thoughts or suggestions you may have would be greatly appreciated! Thanks, Megan On Thu, Apr 30, 2009 at 5:17 PM, David McFarlane wrote: > > First, you will need EP2 to record audio at all. Next, what if you > used any ordinary stim/response object to wait for and capture the > onset of vocalization via, e.g., a SRBox, and follow that with a > SoundIn object that will then record the remainder of the > response? You might even split a single microphone between the SRBox > (for vocalization onset) and the mic input of the computer sound card > (for recording SoundIn). I will be interested to learn how this works out. > > -- David McFarlane, Professional Faultfinder > > >If I want to record the timing of the onset of a vocalization but I > >also want an auditory recording of the verbal response is there any > >combination of e-prime software/hardware that can do this? In looking > >over the response box features, I found that it will time the onset of > >a vocalization but seems like you need a seperate recording system to > >capture the actual verbatim response. Can you pair the e-prime > >software and the response box in anyway to capture both at the same > >time? > > > >I hope this makes sense :) > > > >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 S.Mobini at uea.ac.uk Thu May 7 14:45:46 2009 From: S.Mobini at uea.ac.uk (Sirous) Date: Thu, 7 May 2009 07:45:46 -0700 Subject: Dot-Probe task using E-Prime Message-ID: Hi I wonder if anybody can provide me with some information about how to set up dot-probe task using E-Prime. many thanks for your help Sirous --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 sara.agosta at gmail.com Thu May 7 20:41:47 2009 From: sara.agosta at gmail.com (saraag) Date: Thu, 7 May 2009 13:41:47 -0700 Subject: trigger the response Message-ID: Hi, I'm running an experiment with e prime while I'm recording the EEG (with analyzer), I would like to trigger te response (correct or answer) can you help me? I thought this was the right : If Slide.Acc= 1 then WritePort &H378, c.GetAttrib ("Trigger")+ 100 If Slide.Acc= 0 then WritePort &H378, c.GetAttrib ("Trigger")+ 200 can you help me? Thank you very much! Sara --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From mcfarla9 at msu.edu Fri May 8 14:18:50 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 8 May 2009 10:18:50 -0400 Subject: trigger the response In-Reply-To: <1084572c-f236-4ced-8895-65e193fcbf0f@e20g2000vbc.googlegro ups.com> Message-ID: I don't know about anything else, but the code as written will produce an error because the name "Slide" is reserved. You cannot have a Slide named simply "Slide", you will need to change that to "Slide1" or "StimSlide" or whatever. Also, on a style and efficiency note, there is no need to do two separate If-Then tests on .ACC, you only need to test once for whether it or not it equals 0 and then branch as necessary, thus: If (Slide.Acc = 1) Then WritePort &H378, c.GetAttrib("Trigger") + 100 Else WritePort &H378, c.GetAttrib("Trigger") + 200 End If Knowing that any non-zero value evaluates to "True", you could get rid of the explicit test and further compact this to simply: If Slide.Acc Then WritePort &H378, c.GetAttrib("Trigger") + 100 Else WritePort &H378, c.GetAttrib("Trigger") + 200 End If Finally, let's get rid of the "magic number" and use a constant (and ideally, put the constant in the global User Area): Const LptDataPort as Integer = &H378 If Slide.Acc Then WritePort LptDataPort, c.GetAttrib("Trigger") + 100 Else WritePort LptDataPort, c.GetAttrib("Trigger") + 200 End If But to truly compact and obfuscate this, you could use the venerable Iif() function, thus: Const LptDataPort as Integer = &H378 WritePort LptDataPort, c.GetAttrib("Trigger") + Iif( Slide.Acc, 100, 200 ) -- David McFarlane, Professional Faultfinder At 5/7/2009 04:41 PM Thursday, Sara wrote: >Hi, I'm running an experiment with e prime while I'm recording the EEG >(with analyzer), I would like to trigger te response (correct or >answer) can you help me? > >I thought this was the right : > >If Slide.Acc= 1 then WritePort &H378, c.GetAttrib ("Trigger")+ 100 >If Slide.Acc= 0 then WritePort &H378, c.GetAttrib ("Trigger")+ 200 > >can you help me? >Thank you very much! >Sara --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From mcfarla9 at msu.edu Fri May 8 14:24:07 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 8 May 2009 10:24:07 -0400 Subject: trigger the response In-Reply-To: <4a043f5c.0f0bca0a.75be.67bdSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Oops, in my hasty copy & paste, I myself forgot to change the name of "Slide" in my examples. Please change "Slide" to something like "StimSlide". Sorry. -- David McFarlane, Professional Faultfinder At 5/8/2009 10:18 AM Friday, David McFarlane wrote: >I don't know about anything else, but the code as written will >produce an error because the name "Slide" is reserved. You cannot >have a Slide named simply "Slide", you will need to change that to >"Slide1" or "StimSlide" or whatever. > >Also, on a style and efficiency note, there is no need to do two >separate If-Then tests on .ACC, you only need to test once for >whether it or not it equals 0 and then branch as necessary, thus: > >If (Slide.Acc = 1) Then > WritePort &H378, c.GetAttrib("Trigger") + 100 >Else > WritePort &H378, c.GetAttrib("Trigger") + 200 >End If > >Knowing that any non-zero value evaluates to "True", you could get >rid of the explicit test and further compact this to simply: > >If Slide.Acc Then > WritePort &H378, c.GetAttrib("Trigger") + 100 >Else > WritePort &H378, c.GetAttrib("Trigger") + 200 >End If > >Finally, let's get rid of the "magic number" and use a constant (and >ideally, put the constant in the global User Area): > >Const LptDataPort as Integer = &H378 >If Slide.Acc Then > WritePort LptDataPort, c.GetAttrib("Trigger") + 100 >Else > WritePort LptDataPort, c.GetAttrib("Trigger") + 200 >End If > >But to truly compact and obfuscate this, you could use the venerable >Iif() function, thus: > >Const LptDataPort as Integer = &H378 >WritePort LptDataPort, c.GetAttrib("Trigger") + Iif( Slide.Acc, 100, 200 ) > >-- David McFarlane, Professional Faultfinder > > >At 5/7/2009 04:41 PM Thursday, Sara wrote: > > >Hi, I'm running an experiment with e prime while I'm recording the EEG > >(with analyzer), I would like to trigger te response (correct or > >answer) can you help me? > > > >I thought this was the right : > > > >If Slide.Acc= 1 then WritePort &H378, c.GetAttrib ("Trigger")+ 100 > >If Slide.Acc= 0 then WritePort &H378, c.GetAttrib ("Trigger")+ 200 > > > >can you help me? > >Thank you very much! > >Sara > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 sara.agosta at gmail.com Fri May 8 18:59:08 2009 From: sara.agosta at gmail.com (Sara Agosta) Date: Fri, 8 May 2009 13:59:08 -0500 Subject: trigger the response In-Reply-To: <4a044089.0d0bca0a.0e0e.68c4SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Thank you very much! the term Slide was only an exemple sorry... what I do not understand is the "magic number"? I've never used that script can you help me and explaining what does this mean? Thank you so much for your help! On monday I'll try the new script for the response and I'll let you know! thanks sara 2009/5/8 David McFarlane > > Oops, in my hasty copy & paste, I myself forgot to change the name of > "Slide" in my examples. Please change "Slide" to something like > "StimSlide". Sorry. > > -- David McFarlane, Professional Faultfinder > > > At 5/8/2009 10:18 AM Friday, David McFarlane wrote: > > >I don't know about anything else, but the code as written will > >produce an error because the name "Slide" is reserved. You cannot > >have a Slide named simply "Slide", you will need to change that to > >"Slide1" or "StimSlide" or whatever. > > > >Also, on a style and efficiency note, there is no need to do two > >separate If-Then tests on .ACC, you only need to test once for > >whether it or not it equals 0 and then branch as necessary, thus: > > > >If (Slide.Acc = 1) Then > > WritePort &H378, c.GetAttrib("Trigger") + 100 > >Else > > WritePort &H378, c.GetAttrib("Trigger") + 200 > >End If > > > >Knowing that any non-zero value evaluates to "True", you could get > >rid of the explicit test and further compact this to simply: > > > >If Slide.Acc Then > > WritePort &H378, c.GetAttrib("Trigger") + 100 > >Else > > WritePort &H378, c.GetAttrib("Trigger") + 200 > >End If > > > >Finally, let's get rid of the "magic number" and use a constant (and > >ideally, put the constant in the global User Area): > > > >Const LptDataPort as Integer = &H378 > >If Slide.Acc Then > > WritePort LptDataPort, c.GetAttrib("Trigger") + 100 > >Else > > WritePort LptDataPort, c.GetAttrib("Trigger") + 200 > >End If > > > >But to truly compact and obfuscate this, you could use the venerable > >Iif() function, thus: > > > >Const LptDataPort as Integer = &H378 > >WritePort LptDataPort, c.GetAttrib("Trigger") + Iif( Slide.Acc, 100, 200 ) > > > >-- David McFarlane, Professional Faultfinder > > > > > >At 5/7/2009 04:41 PM Thursday, Sara wrote: > > > > >Hi, I'm running an experiment with e prime while I'm recording the EEG > > >(with analyzer), I would like to trigger te response (correct or > > >answer) can you help me? > > > > > >I thought this was the right : > > > > > >If Slide.Acc= 1 then WritePort &H378, c.GetAttrib ("Trigger")+ 100 > > >If Slide.Acc= 0 then WritePort &H378, c.GetAttrib ("Trigger")+ 200 > > > > > >can you help me? > > >Thank you very much! > > >Sara > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 frosts at haskins.yale.edu Fri May 8 19:08:58 2009 From: frosts at haskins.yale.edu (Steve Frost) Date: Fri, 8 May 2009 12:08:58 -0700 Subject: soundout object - maximum duration Message-ID: i have a WAV file that i need eprime to play that lasts 2:12, but it appears that this exceeds the maximum value that eprime 2.0 will allow. that is, when i opened the soundout object properties page and changed the buffer size, the maximum allowable value was 100000 milliseconds. Can anybody tell me whether there is a way around this limitation (short of chopping up the sound file into shorter segments) and how to go about it? i also have eprime 2.0 professional available in case that version supports longer audio file durations. thanks. steve frost --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From mcfarla9 at msu.edu Fri May 8 19:27:20 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 8 May 2009 15:27:20 -0400 Subject: soundout object - maximum duration In-Reply-To: <229e1372-dea2-4661-b26f-b0d673459cff@s28g2000vbp.googlegro ups.com> Message-ID: Steve, Easy! EP2 adds the "Streaming" buffer mode, and uses that as the default. In streaming mode EP will just refill the buffer as needed, so the buffer size no longer matters in most cases. Might as well start with the default of 5000 and adjust as needed for performance. BTW, I asked PST and learned that "Buffered" mode has been kept just for compatibility with older scripts, in general you should just always use Streaming (see http://support.pstnet.com/forum/Topic2089-12-1.aspx ). I don't think PST has documented this property yet, if anyone knows otherwise then please post a link. Thanks. -- David McFarlane, Professional Faultfinder >i have a WAV file that i need eprime to play that lasts 2:12, but it >appears that this exceeds the maximum value that eprime 2.0 will >allow. that is, when i opened the soundout object properties page and >changed the buffer size, the maximum allowable value was 100000 >milliseconds. Can anybody tell me whether there is a way around this >limitation (short of chopping up the sound file into shorter segments) >and how to go about it? i also have eprime 2.0 professional available >in case that version supports longer audio file durations. thanks. > >steve frost --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From mcfarla9 at msu.edu Fri May 8 19:32:30 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 8 May 2009 15:32:30 -0400 Subject: trigger the response In-Reply-To: <50a51e790905081159w7700162dl1060559cad727439@mail.gmail.co m> Message-ID: Sara, The "magic number" in the script is just the address of the data port for the parallel (aka lpt, or "lineprinter") device. PST has a couple sample programs on their Downloads site to illustrate this, and you may also check the PST Knowledge Base for articles on how to use the parallel port. Finally, you might try a Google search for more info on the parallel port, and then read "Parallel Port Complete" by Jan Axelson (http://www.amazon.com/Parallel-Port-Complete-Programming-Interfacing/dp/0965081915/ref=sr_1_1?ie=UTF8&s=books&qid=1241811038&sr=1-1 ). Enjoy the technical homework, -- David McFarlane, Professional Faultfinder At 5/8/2009 02:59 PM Friday, you wrote: >Thank you very much! >the term Slide was only an exemple sorry... what I do not understand >is the "magic number"? >I've never used that script can you help me and explaining what does >this mean? > >Thank you so much for your help! > >On monday I'll try the new script for the response and I'll let you know! > >thanks >sara --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 Sat May 9 08:30:58 2009 From: liwenna at gmail.com (liwenna) Date: Sat, 9 May 2009 01:30:58 -0700 Subject: Dot-Probe task using E-Prime In-Reply-To: <1dfe5740-cf39-4a50-9989-8d567ad2f64a@l28g2000vba.googlegroups.com> Message-ID: Are your stimuli pictures or words? Do you need fixed stimulus pairs (for instance when using two facial pictures of the same person in each trial) or should stimulus pairs be randomised? Do you need control over the contingency with which the probe appears on the position of either of the stimulus (or should it just be 50% on each type of stimulus?) I'll get back to you on monday with more details when I am on my 'e- prime' computer.. I just happened to have been working on dot probes for the past few weeks. ;) On May 7, 4:45?pm, Sirous wrote: > Hi I wonder if anybody can provide me with some information about how > to set up dot-probe task using E-Prime. many thanks for your help > Sirous --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 S.Mobini at uea.ac.uk Sat May 9 10:48:30 2009 From: S.Mobini at uea.ac.uk (S.Mobini at uea.ac.uk) Date: Sat, 9 May 2009 11:48:30 +0100 Subject: Dot-Probe task using E-Prime In-Reply-To: Message-ID: Hi Many thanks for your message. I am using the word pairs (e.g., shy and rug), one presented above the other (top and bottom position) but I need to counterbalance this, so for some subjects (50%) shy is the top word and for some others (50%) it is the bottom word. Altogether, I have 45 fixed pairs of words as my verbal stimuli, i.e. 15 pairs of POSITIVE words and Neutral (e.g., happy and pivot), 15 pairs of NEGATIVE words and Neutral (e.g., insecure and tortoise), and 15 pairs of BODY SENSATION and Non-body sensation words (e.g., Edgy and Dial). I need to randomise the order of word pair presentations for each subject so that each subject will receive the word pairs in a randomised order. I also need to control the appearance of the probe (50% at the position of the top word and 50% at the position of the bottom word). Thank you very much for your help. Sirous > > Are your stimuli pictures or words? Do you need fixed stimulus pairs > (for instance when using two facial pictures of the same person in > each trial) or should stimulus pairs be randomised? > Do you need control over the contingency with which the probe appears > on the position of either of the stimulus (or should it just be 50% on > each type of stimulus?) > > I'll get back to you on monday with more details when I am on my 'e- > prime' computer.. I just happened to have been working on dot probes > for the past few weeks. ;) > > > > On May 7, 4:45?pm, Sirous wrote: >> Hi I wonder if anybody can provide me with some information about how >> to set up dot-probe task using E-Prime. many thanks for your help >> Sirous > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 wwwelenawww at gmail.com Mon May 11 21:49:26 2009 From: wwwelenawww at gmail.com (Elena) Date: Mon, 11 May 2009 14:49:26 -0700 Subject: Response triggers going crazy!... (ActiViewTwo) Message-ID: Hello everybody! I would be so thankful if someone could direct me at some solution. I've done a lot of variations of my syntax, but the problem hasn't vanished. Close to despair! I only need triggers (for Biosemi) for correct and incorrect responses, and the triggers that I get don't always correspond to the correctness of responses. Even worse, even when there are no responses, the triggers still show up. So, here's the latest version of my script: -- InlineRESPONSE -- (that I placed before the Text element, asking for a response) If Prompt.ACC = 1 then c.setattrib "RespTrig",2 elseif Prompt.ACC = 0 then c.setattrib "RespTrig",4 end if display.waitForVerticalBlank writeport portAddr, cint(c.getattrib("RespTrig")) sleep 10 writeport portAddr, 0 (I also tried a simpler version -- If Prompt.ACC then code 2 else code 4 end if) Before writing this inline, in my general script (User's) I also tried some syntax -- -- General Script, let's call it for a reference -- dim rep as boolean dim temps as double sub attends(limite) rep = true while clock.read"") then if Prompt.ACC then code 2 else code 4 end if rep=false elseif rep and (ProRight.RESP<>"") then if ProRight.ACC then code 2 else code 4 end if rep=false end if wend end sub This script alone (without InlineRESPONSE) didn't give any errors, but the E-Prime didn't send any response triggers at all (and with stimuli triggers all went well). When I added the InlineRESPONSE (and tried both versions that I give above), the triggers started getting sent, and the right numbers, but not correctly!! Then I tried to disactivate completely the response-related general script, but then my stimuli triggers inline started reporting an error. (Here's my InlineSTIMULI, just in case it's interconnected -- if (Cint(c.getAttrib("Gp")))=(Cint(c.getAttrib("Mng"))) then if (Cint(c.getAttrib("gap1")))=1 then code 71 else code 70 end if elseif (Cint(c.getAttrib("Gp")))<>(Cint(c.getAttrib("Mng"))) then if (Cint(c.getAttrib("gap1")))=0 then code 91 else code 90 end if end if temps=clock.read+1000 attends temps ) It was the last line - attends temps - which E-Prime now couldn't interprete, when I disactivated all the response-related general script. So, I tried to disactivate the general response-related script partially, leaving only -- dim temps as double sub attends(limite) rep = true while clock.read(Cint(c.getAttrib("Mng"))) then if (Cint(c.getAttrib("gap1")))=0 then code 91 else code 90 end if end if temps=clock.read+1000 attends temps Please help! would be very thankful! Elena --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From liwenna at gmail.com Tue May 12 09:53:32 2009 From: liwenna at gmail.com (liwenna) Date: Tue, 12 May 2009 02:53:32 -0700 Subject: Dot-Probe task using E-Prime In-Reply-To: <50031.89.240.213.219.1241866110.squirrel@webmail.uea.ac.uk> Message-ID: I sent a complete script to sirous, but for everybody else I post a screenshot and some explanation here too... (I so often found threads that should contain the answer to my question... but do not as people continued in private e-mail). Screenshot: http://images.redial.net/awdpsirous.bmp Explanation: You want to counterbalance the position of the 'type of words', the position of the probe and the identitiy of the probe, as well as randomise the trial order. To do all this we use two lists... the first list contains the stimuluswords (stimword1 and stimword2) and for logging purposes I also included a variable 'trialtype' so you can easily see in your data which trial is which type... you might consider recoding these into 1, 2, 3 right away (simply change that in the list or add another attribute) so that for instance spss will later be able to easy separate the different type of trials. You can add your remaining 42 word-combinations in here. Every trial will start with e-prime choosing one of the word combinations, at random. If you need blocks of the same trials (neg-neut, hap-neut etc), then we'll need an extra list before this one, but I don't think this is the case, right? Now, nested in this list is the 'positions' list (or positions and probe id would be more accurately). It seemed most simple to just make a list with all possible combinations of word-positions, 'probetype', and probepositions in it. The position of the stimwords are given in 'posstim1' and 'posstim2', if you'll look at the properties of the text-displays in the 'stimuli-slide' you'll see that for the y- position of the frame it refers to these attributes: [posstim1] and [posstim2]. This way the text-displays (with the stimwords which it gets trough calling into [stimword1] and [stimword2] ) will be displayed at y-positions 25% and 75% of the screen, ergo, top and bottom. Then the probe, I used eiterh * or ** here, obviously you can change this into any probes you like. The attribute 'cresp' refers to the correct response... for my probes * and ** I will use buttons on a SR-box, but in this version the two mousebuttons are you used... obviously you can change all this in the stimuli-slide properties. Lastly the attribute 'posprobe': this one is called upon by the probe- texdisplay in the prob-slide in the same way as the stimulusdisplays called into this list for their position, and it determines whether the probe will be shown in the position of stimword1 or stimword2. Regards, liwenna On May 9, 12:48 pm, S.Mob... at uea.ac.uk wrote: > Hi Many thanks for your message. I am using the word pairs (e.g., shy and > rug), one presented above the other (top and bottom position) but I need > to counterbalance this, so for some subjects (50%) shy is the top word and > for some others (50%) it is the bottom word. > Altogether, I have 45 fixed pairs of words as my verbal stimuli, i.e. 15 > pairs of POSITIVE words and Neutral (e.g., happy and pivot), 15 pairs of > NEGATIVE words and Neutral (e.g., insecure and tortoise), and 15 pairs of > BODY SENSATION and Non-body sensation words (e.g., Edgy and Dial). > I need to randomise the order of word pair presentations for each subject > so that each subject will receive the word pairs in a randomised order. I > also need to control the appearance of the probe (50% at the position of > the top word and 50% at the position of the bottom word). > Thank you very much for your help. > Sirous > > > > > Are your stimuli pictures or words? Do you need fixed stimulus pairs > > (for instance when using two facial pictures of the same person in > > each trial) or should stimulus pairs be randomised? > > Do you need control over the contingency with which the probe appears > > on the position of either of the stimulus (or should it just be 50% on > > each type of stimulus?) > > > I'll get back to you on monday with more details when I am on my 'e- > > prime' computer.. I just happened to have been working on dot probes > > for the past few weeks. ;) > > > On May 7, 4:45 pm, Sirous wrote: > >> Hi I wonder if anybody can provide me with some information about how > >> to set up dot-probe task using E-Prime. many thanks for your help > >> Sirous --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 ilaria.mega at gmail.com Tue May 12 16:52:02 2009 From: ilaria.mega at gmail.com (Senzali) Date: Tue, 12 May 2009 09:52:02 -0700 Subject: tms pulse during video playing Message-ID: Hello everybody, I have some troubles with movies presentation: I'm trying to give a TMS pulse during the presentation of a video (it lasts 2 seconds so it's pretty short), at very precise timings, for example 767 milliseconds after the stimulus onset, while the video is still ongoing. I already did a similar experiment using images: I sat the stimulus duration time at 0, and it worked, but it doesn't with videos (the program shows just the frame zero). What kind of InLine should I write? And, how can I determine the pre-release time with movies? Thank you all, I really need some help. Ilaria. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 ilaria.mega at gmail.com Tue May 12 20:33:09 2009 From: ilaria.mega at gmail.com (Senzali) Date: Tue, 12 May 2009 13:33:09 -0700 Subject: tms pulse during video playing Message-ID: Hello everybody, I have some troubles with movies presentation: I'm trying to give a TMS pulse during the presentation of a video (it lasts 2 seconds so it's pretty short), at very precise timings, for example 767 milliseconds after the stimulus onset, while the video is still ongoing. I already did a similar experiment using images: I set the stimulus duration time at 0, and it worked, but it doesn't with videos (the program shows just the frame zero). What kind of InLine should I write? And, how can I determine the pre-release time with movies? Thank you all, I really need some help. Ilaria. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 sookhm00 at gmail.com Fri May 15 01:01:09 2009 From: sookhm00 at gmail.com (shm) Date: Thu, 14 May 2009 18:01:09 -0700 Subject: control the space between the letters Message-ID: Is there any funtion of controling the space between the letters? my experiment design is about reading and i want to adjust the space between the letters. the spaces are 0.5, 0.707, 1, 1.141, and 2 times the standard spacing. there are pool of 400 sentences chosen randomly on each trial. also controling the space is random to each trial and the sentence be chosen only one time. i need your help. thanks. sook --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From baltimore.ben at gmail.com Fri May 15 02:01:09 2009 From: baltimore.ben at gmail.com (ben robinson) Date: Thu, 14 May 2009 22:01:09 -0400 Subject: control the space between the letters In-Reply-To: <0d543ca8-a241-47e1-867d-5ab185239bfc@d7g2000prl.googlegroups.com> Message-ID: if each of your 400 sentences are short enough to fit across the screen without wrapping down to a second line of text, even with the desired 2x spacing, i could imagine coding the x-coordinate for lots of little TextObjects within a SlideObject to the desired spacing, depending on the trial, and having each TextObject only present a single letter. it would be a pain to set it up in the first place, but it seems like one of the simpler solutions... hope they're short sentences... ben On Thu, May 14, 2009 at 9:01 PM, shm wrote: > > Is there any funtion of controling the space between the letters? > my experiment design is about reading and i want to adjust the space > between the letters. > > the spaces are 0.5, 0.707, 1, 1.141, and 2 times the standard > spacing. > there are pool of 400 sentences chosen randomly on each trial. > also controling the space is random to each trial and the sentence be > chosen only one time. > > > i need your help. thanks. > > sook > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 pquain at une.edu.au Fri May 15 06:35:44 2009 From: pquain at une.edu.au (Peter Quain) Date: Fri, 15 May 2009 16:35:44 +1000 Subject: control the space between the letters In-Reply-To: <0d543ca8-a241-47e1-867d-5ab185239bfc@d7g2000prl.googlegrou ps.com> Message-ID: my guess is that you'll need to find / create some font sets that use the same letters but vary their spacing .. then just change the font attribute - TimesNewRoman-.5; TimesNewRoman-.707 .. etc. for your conditions At 11:01 AM 15/05/2009, you wrote: >Is there any funtion of controling the space between the letters? >my experiment design is about reading and i want to adjust the space >between the letters. > >the spaces are 0.5, 0.707, 1, 1.141, and 2 times the standard >spacing. >there are pool of 400 sentences chosen randomly on each trial. >also controling the space is random to each trial and the sentence be >chosen only one time. > > >i need your help. thanks. > >sook > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From mcfarla9 at msu.edu Fri May 15 11:26:25 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 15 May 2009 07:26:25 -0400 Subject: control the space between the letters In-Reply-To: <0d543ca8-a241-47e1-867d-5ab185239bfc@d7g2000prl.googlegroups.com> Message-ID: I would go with changing the fonts, as Peter suggested, if at all possible. But here's another thought: Render each of your sentence & spacing displays into an image file, and then use ImageDisplay instead of TextDisplay to show the sentences. This of course would mean making 400 x 5 = 2000 sentence/spacing image files. -- David McFarlane, Professional Faultfinder shm wrote: > Is there any funtion of controling the space between the letters? > my experiment design is about reading and i want to adjust the space > between the letters. > > the spaces are 0.5, 0.707, 1, 1.141, and 2 times the standard > spacing. > there are pool of 400 sentences chosen randomly on each trial. > also controling the space is random to each trial and the sentence be > chosen only one time. > > > i need your help. thanks. > > sook --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 meg.andrejczuk at gmail.com Mon May 18 15:41:50 2009 From: meg.andrejczuk at gmail.com (meg.andrejczuk) Date: Mon, 18 May 2009 08:41:50 -0700 Subject: data collection Message-ID: I have tested my Serial Response Box and everything seems to be functioning properly. I am confused how to add the timing onset to my experiment. It is a picture naming task, so an image is displayed for two seconds and the participant is directed to name the object as quickly as they can. I would like to start timing at voice onset, in order to know how quickyl they responded. I added the SRBox and then put a SoundIn in the Procedure but I think it is only recording the verbalization. How do I have the SRBox only record the onset time? Also, where will the data be logged? Thanks, Megan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 May 18 18:28:34 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 18 May 2009 14:28:34 -0400 Subject: data collection In-Reply-To: Message-ID: Megan, As a general E-Prime programming strategy, I would start by forgetting about the SoundIn, and just make a simple program that shows the pictures and gets the response time using the voice key response. Then I would make a second simplified program that just shows pictures and records voice responses with SoundIn, without worrying about the response time. Then I would take everything I learned from those two simplified programs and combine that into one program that gets response times from the voice key plus records the responses. Good luck, -- David McFarlane, Professional Faultfinder >I have tested my Serial Response Box and everything seems to be >functioning properly. I am confused how to add the timing onset to my >experiment. It is a picture naming task, so an image is displayed for >two seconds and the participant is directed to name the object as >quickly as they can. I would like to start timing at voice onset, in >order to know how quickyl they responded. I added the SRBox and then >put a SoundIn in the Procedure but I think it is only recording the >verbalization. How do I have the SRBox only record the onset time? >Also, where will the data be logged? > >Thanks, > >Megan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 meg.andrejczuk at gmail.com Mon May 18 18:40:12 2009 From: meg.andrejczuk at gmail.com (Megan Andrejczuk) Date: Mon, 18 May 2009 14:40:12 -0400 Subject: data collection In-Reply-To: <4a11a8d6.0f0bca0a.1cfb.3940SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Thanks David! But that is where my confusion comes in. I am not sure how to incorporate the voice key response. I have the experiment set-up so the pictures appear but don't know how to collect the onset time using the voice key. I am extremely new to e-prime so this may be an elementary question. Thanks, Megan On Mon, May 18, 2009 at 2:28 PM, David McFarlane wrote: > > Megan, > > As a general E-Prime programming strategy, I would start by > forgetting about the SoundIn, and just make a simple program that > shows the pictures and gets the response time using the voice key > response. Then I would make a second simplified program that just > shows pictures and records voice responses with SoundIn, without > worrying about the response time. Then I would take everything I > learned from those two simplified programs and combine that into one > program that gets response times from the voice key plus records the > responses. > > Good luck, > -- David McFarlane, Professional Faultfinder > > > >I have tested my Serial Response Box and everything seems to be > >functioning properly. I am confused how to add the timing onset to my > >experiment. It is a picture naming task, so an image is displayed for > >two seconds and the participant is directed to name the object as > >quickly as they can. I would like to start timing at voice onset, in > >order to know how quickyl they responded. I added the SRBox and then > >put a SoundIn in the Procedure but I think it is only recording the > >verbalization. How do I have the SRBox only record the onset time? > >Also, where will the data be logged? > > > >Thanks, > > > >Megan > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 adamosth at gmail.com Mon May 18 18:41:25 2009 From: adamosth at gmail.com (Adam Osth) Date: Mon, 18 May 2009 14:41:25 -0400 Subject: Randomization problem Message-ID: I'm having a little problem with randomization code in Ebasic. I have this code: Dim drawno As Integer drawno = Random(0, 7) ...and yet, drawno is initialized to '0' every time. This code is used for 8 repetitions in the program, and each time "0" comes up. Even with "Randomize" in front, the same thing happens. Is there something I'm doing wrong? Adam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon May 18 18:49:53 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 18 May 2009 14:49:53 -0400 Subject: data collection In-Reply-To: <7d497d1d0905181140g6df90be4g530839db14359acc@mail.gmail.co m> Message-ID: Megan, Use of the voice key is described on pages 11-12 and 15 of the manual that came with the SRBox. If you do not have the manual then you really have to contact PST and get one from them ASAP. Also, as stated in the manual, the voice key is already set up to work with the Utiilites test program that came with the SRBox (also downloadable from PST). If your voice key does not work with the Utilities program then you have some troubleshooting to do. -- David McFarlane, Professional Faultfinder >Thanks David! But that is where my confusion comes in. I am not sure >how to incorporate the voice key response. I have the experiment >set-up so the pictures appear but don't know how to collect the >onset time using the voice key. I am extremely new to e-prime so >this may be an elementary question. > >Thanks, > >Megan > >On Mon, May 18, 2009 at 2:28 PM, David McFarlane ><mcfarla9 at msu.edu> wrote: > >Megan, > >As a general E-Prime programming strategy, I would start by >forgetting about the SoundIn, and just make a simple program that >shows the pictures and gets the response time using the voice key >response. Then I would make a second simplified program that just >shows pictures and records voice responses with SoundIn, without >worrying about the response time. Then I would take everything I >learned from those two simplified programs and combine that into one >program that gets response times from the voice key plus records the >responses. > >Good luck, >-- David McFarlane, Professional Faultfinder > > > >I have tested my Serial Response Box and everything seems to be > >functioning properly. I am confused how to add the timing onset to my > >experiment. It is a picture naming task, so an image is displayed for > >two seconds and the participant is directed to name the object as > >quickly as they can. I would like to start timing at voice onset, in > >order to know how quickyl they responded. I added the SRBox and then > >put a SoundIn in the Procedure but I think it is only recording the > >verbalization. How do I have the SRBox only record the onset time? > >Also, where will the data be logged? > > > >Thanks, > > > >Megan > >> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 adamosth at gmail.com Mon May 18 19:03:08 2009 From: adamosth at gmail.com (Adam Osth) Date: Mon, 18 May 2009 15:03:08 -0400 Subject: Randomization problem In-Reply-To: <4a11b014.100bca0a.36d2.3bb0SMTPIN_ADDED@gmr-mx.google.com> Message-ID: I just realized when you sent this that it might be due to how the random number is applied. I have the randomization code to select a picture for presentation, so I did this: TestList.setAttrib counter, "Item", c.GetAttrib("Picture:drawno") ...in which one of the 8 files in the attribute "Picture" on another list is randomly selected. Is it defaulting to zero because this isn't syntactically valid? Adam On Mon, May 18, 2009 at 2:59 PM, David McFarlane wrote: > > Adam, > > Hmm, that bit of code works perfectly for me. I suspect the problem > lies somewhere else in the script. Just to be clear, try the > following and see what happens: > > Dim drawno As Integer > Dim i as Integer > For i = 1 to 8 > drawno = Random(0, 7) > MsgBox drawno > Next i > > -- David McFarlane, Professional Faultfinder > > > >I'm having a little problem with randomization code in Ebasic. I > >have this code: > > > >Dim drawno As Integer > >drawno = Random(0, 7) > > > >...and yet, drawno is initialized to '0' every time. This code is > >used for 8 repetitions in the program, and each time "0" comes up. > >Even with "Randomize" in front, the same thing happens. > > > >Is there something I'm doing wrong? > > > >Adam > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon May 18 19:17:58 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 18 May 2009 15:17:58 -0400 Subject: Randomization problem In-Reply-To: <7ef748980905181203s4b2c1697u849fe7e7cf3624e7@mail.gmail.co m> Message-ID: Adam, Wow, I don't know offhand if that syntax works. It looks like you are trying to use "colon syntax", and I don't know if you can use that with the Context.GetAttrib() method, that may work only with the List.GetAttrrib() method (e.g., colon syntax has to know which List has the attribute "Picture"). I would have to make some demo programs and look at the generated code to explore this further, but I will leave that to you. -- David McFarlane, Professional Faultfinder >I just realized when you sent this that it might be due to how the >random number is applied. > >I have the randomization code to select a picture for presentation, >so I did this: >TestList.setAttrib counter, "Item", c.GetAttrib("Picture:drawno") > >...in which one of the 8 files in the attribute "Picture" on another >list is randomly selected. > >Is it defaulting to zero because this isn't syntactically valid? > >Adam > >On Mon, May 18, 2009 at 2:59 PM, David McFarlane ><mcfarla9 at msu.edu> wrote: > >Adam, > >Hmm, that bit of code works perfectly for me. I suspect the problem >lies somewhere else in the script. Just to be clear, try the >following and see what happens: > >Dim drawno As Integer >Dim i as Integer >For i = 1 to 8 > drawno = Random(0, 7) > MsgBox drawno >Next i > >-- David McFarlane, Professional Faultfinder > > > >I'm having a little problem with randomization code in Ebasic. I > >have this code: > > > >Dim drawno As Integer > >drawno = Random(0, 7) > > > >...and yet, drawno is initialized to '0' every time. This code is > >used for 8 repetitions in the program, and each time "0" comes up. > >Even with "Randomize" in front, the same thing happens. > > > >Is there something I'm doing wrong? > > > >Adam > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 meg.andrejczuk at gmail.com Mon May 18 18:53:20 2009 From: meg.andrejczuk at gmail.com (Megan Andrejczuk) Date: Mon, 18 May 2009 14:53:20 -0400 Subject: data collection In-Reply-To: <4a11add5.0e0bca0a.6d3a.3ef1SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Thanks David! On Mon, May 18, 2009 at 2:49 PM, David McFarlane wrote: > > Megan, > > Use of the voice key is described on pages 11-12 and 15 of the manual > that came with the SRBox. If you do not have the manual then you > really have to contact PST and get one from them ASAP. Also, as > stated in the manual, the voice key is already set up to work with > the Utiilites test program that came with the SRBox (also > downloadable from PST). If your voice key does not work with the > Utilities program then you have some troubleshooting to do. > > -- David McFarlane, Professional Faultfinder > > > >Thanks David! But that is where my confusion comes in. I am not sure > >how to incorporate the voice key response. I have the experiment > >set-up so the pictures appear but don't know how to collect the > >onset time using the voice key. I am extremely new to e-prime so > >this may be an elementary question. > > > >Thanks, > > > >Megan > > > >On Mon, May 18, 2009 at 2:28 PM, David McFarlane > ><mcfarla9 at msu.edu> wrote: > > > >Megan, > > > >As a general E-Prime programming strategy, I would start by > >forgetting about the SoundIn, and just make a simple program that > >shows the pictures and gets the response time using the voice key > >response. Then I would make a second simplified program that just > >shows pictures and records voice responses with SoundIn, without > >worrying about the response time. Then I would take everything I > >learned from those two simplified programs and combine that into one > >program that gets response times from the voice key plus records the > >responses. > > > >Good luck, > >-- David McFarlane, Professional Faultfinder > > > > > > >I have tested my Serial Response Box and everything seems to be > > >functioning properly. I am confused how to add the timing onset to my > > >experiment. It is a picture naming task, so an image is displayed for > > >two seconds and the participant is directed to name the object as > > >quickly as they can. I would like to start timing at voice onset, in > > >order to know how quickyl they responded. I added the SRBox and then > > >put a SoundIn in the Procedure but I think it is only recording the > > >verbalization. How do I have the SRBox only record the onset time? > > >Also, where will the data be logged? > > > > > >Thanks, > > > > > >Megan > > > >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 adamosth at gmail.com Mon May 18 19:27:14 2009 From: adamosth at gmail.com (Adam Osth) Date: Mon, 18 May 2009 15:27:14 -0400 Subject: Randomization problem In-Reply-To: <4a11b46a.0f0bca0a.1e7a.3da5SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Ah, I had never thought of that. However, I just tested it with fixed defined numbers (ie: c.GetAttrib("Picture:3")) and it seems to index the correct files just fine. It's only when I use a variable in the colon notation that it has problems (ie: c.GetAttrib("Picture:y")) and defaults to zero. Are there other ways of doing this randomization procedure? It's a little bit sophisticated, which is why I'm using inline code. The program needs to randomly select one picture from 8 pictures in a list that are all presented in random sequence, store that filename and write it to another list for later presentation. Adam On Mon, May 18, 2009 at 3:17 PM, David McFarlane wrote: > > Adam, > > Wow, I don't know offhand if that syntax works. It looks like you > are trying to use "colon syntax", and I don't know if you can use > that with the Context.GetAttrib() method, that may work only with the > List.GetAttrrib() method (e.g., colon syntax has to know which List > has the attribute "Picture"). I would have to make some demo > programs and look at the generated code to explore this further, but > I will leave that to you. > > -- David McFarlane, Professional Faultfinder > > > >I just realized when you sent this that it might be due to how the > >random number is applied. > > > >I have the randomization code to select a picture for presentation, > >so I did this: > >TestList.setAttrib counter, "Item", c.GetAttrib("Picture:drawno") > > > >...in which one of the 8 files in the attribute "Picture" on another > >list is randomly selected. > > > >Is it defaulting to zero because this isn't syntactically valid? > > > >Adam > > > >On Mon, May 18, 2009 at 2:59 PM, David McFarlane > ><mcfarla9 at msu.edu> wrote: > > > >Adam, > > > >Hmm, that bit of code works perfectly for me. I suspect the problem > >lies somewhere else in the script. Just to be clear, try the > >following and see what happens: > > > >Dim drawno As Integer > >Dim i as Integer > >For i = 1 to 8 > > drawno = Random(0, 7) > > MsgBox drawno > >Next i > > > >-- David McFarlane, Professional Faultfinder > > > > > > >I'm having a little problem with randomization code in Ebasic. I > > >have this code: > > > > > >Dim drawno As Integer > > >drawno = Random(0, 7) > > > > > >...and yet, drawno is initialized to '0' every time. This code is > > >used for 8 repetitions in the program, and each time "0" comes up. > > >Even with "Randomize" in front, the same thing happens. > > > > > >Is there something I'm doing wrong? > > > > > >Adam > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon May 18 19:40:28 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 18 May 2009 15:40:28 -0400 Subject: tms pulse during video playing In-Reply-To: Message-ID: Hmm, you bring up an interesting limitation of movie presentation in E-Prime. I also find the same limitation with sound presentation. As far as I can tell, E-Prime has no mechanism to perform secondary actions or script during the playback of sound or movie files. With a lower level language (e.g., C or C++) I would write a loop to keep refreshing the output buffer and checking the clock to perform other actions, but I do not know how to do that with E-Prime objects, or if that is even possible. I will be really interested if someone more clever than me can post a solution. -- David McFarlane, Professional Faultfinder At 5/12/2009 12:52 PM Tuesday, you wrote: >Hello everybody, > >I have some troubles with movies presentation: I'm trying to give a >TMS pulse during the presentation of a video (it lasts 2 seconds so >it's pretty short), at very precise timings, for example 767 >milliseconds after the stimulus onset, while the video is still >ongoing. > >I already did a similar experiment using images: I sat the stimulus >duration time at 0, and it worked, but it doesn't with videos (the >program shows just the frame zero). > >What kind of InLine should I write? > >And, how can I determine the pre-release time with movies? > >Thank you all, I really need some help. > >Ilaria. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 May 18 19:46:39 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 18 May 2009 15:46:39 -0400 Subject: Randomization problem In-Reply-To: <7ef748980905181227w5445c453qe37bec6f7ad17321@mail.gmail.co m> Message-ID: D'oh! Of course, why didn't I see that! "Picture:drawno" is treated as a literal string, it does not evaluate the variable. To do that you need to construct a string containing the value of the variable. So please try something like the following: TestList.setAttrib counter, "Item", c.GetAttrib("Picture:" & drawno) -- David McFarlane, Professional Faultfinder At 5/18/2009 03:27 PM Monday, you wrote: >Ah, I had never thought of that. > >However, I just tested it with fixed defined numbers (ie: >c.GetAttrib("Picture:3")) and it seems to index the correct files >just fine. It's only when I use a variable in the colon notation >that it has problems (ie: c.GetAttrib("Picture:y")) and defaults to zero. > >Are there other ways of doing this randomization procedure? It's a >little bit sophisticated, which is why I'm using inline code. The >program needs to randomly select one picture from 8 pictures in a >list that are all presented in random sequence, store that filename >and write it to another list for later presentation. > >Adam > >On Mon, May 18, 2009 at 3:17 PM, David McFarlane ><mcfarla9 at msu.edu> wrote: > >Adam, > >Wow, I don't know offhand if that syntax works. It looks like you >are trying to use "colon syntax", and I don't know if you can use >that with the Context.GetAttrib() method, that may work only with the >List.GetAttrrib() method (e.g., colon syntax has to know which List >has the attribute "Picture"). I would have to make some demo >programs and look at the generated code to explore this further, but >I will leave that to you. > >-- David McFarlane, Professional Faultfinder > > > >I just realized when you sent this that it might be due to how the > >random number is applied. > > > >I have the randomization code to select a picture for presentation, > >so I did this: > >TestList.setAttrib counter, "Item", c.GetAttrib("Picture:drawno") > > > >...in which one of the 8 files in the attribute "Picture" on another > >list is randomly selected. > > > >Is it defaulting to zero because this isn't syntactically valid? > > > >Adam > > > >On Mon, May 18, 2009 at 2:59 PM, David McFarlane > ><mcfarla9 at msu.edu> wrote: > > > >Adam, > > > >Hmm, that bit of code works perfectly for me. I suspect the problem > >lies somewhere else in the script. Just to be clear, try the > >following and see what happens: > > > >Dim drawno As Integer > >Dim i as Integer > >For i = 1 to 8 > > drawno = Random(0, 7) > > MsgBox drawno > >Next i > > > >-- David McFarlane, Professional Faultfinder > > > > > > >I'm having a little problem with randomization code in Ebasic. I > > >have this code: > > > > > >Dim drawno As Integer > > >drawno = Random(0, 7) > > > > > >...and yet, drawno is initialized to '0' every time. This code is > > >used for 8 repetitions in the program, and each time "0" comes up. > > >Even with "Randomize" in front, the same thing happens. > > > > > >Is there something I'm doing wrong? > > > > > >Adam > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 May 18 18:59:28 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 18 May 2009 14:59:28 -0400 Subject: Randomization problem In-Reply-To: <7ef748980905181141w2e5fac6du6fe3f77fb8348e2e@mail.gmail.co m> Message-ID: Adam, Hmm, that bit of code works perfectly for me. I suspect the problem lies somewhere else in the script. Just to be clear, try the following and see what happens: Dim drawno As Integer Dim i as Integer For i = 1 to 8 drawno = Random(0, 7) MsgBox drawno Next i -- David McFarlane, Professional Faultfinder >I'm having a little problem with randomization code in Ebasic. I >have this code: > >Dim drawno As Integer >drawno = Random(0, 7) > >...and yet, drawno is initialized to '0' every time. This code is >used for 8 repetitions in the program, and each time "0" comes up. >Even with "Randomize" in front, the same thing happens. > >Is there something I'm doing wrong? > >Adam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 adamosth at gmail.com Mon May 18 21:09:50 2009 From: adamosth at gmail.com (Adam Osth) Date: Mon, 18 May 2009 17:09:50 -0400 Subject: Randomization problem In-Reply-To: <4a11bb23.100bca0a.36d2.3da6SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Ah! Works perfectly now. Thanks so much for your help! -Adam On Mon, May 18, 2009 at 3:46 PM, David McFarlane wrote: > > D'oh! Of course, why didn't I see that! "Picture:drawno" is treated > as a literal string, it does not evaluate the variable. To do that > you need to construct a string containing the value of the > variable. So please try something like the following: > > TestList.setAttrib counter, "Item", c.GetAttrib("Picture:" & drawno) > > -- David McFarlane, Professional Faultfinder > > > At 5/18/2009 03:27 PM Monday, you wrote: > >Ah, I had never thought of that. > > > >However, I just tested it with fixed defined numbers (ie: > >c.GetAttrib("Picture:3")) and it seems to index the correct files > >just fine. It's only when I use a variable in the colon notation > >that it has problems (ie: c.GetAttrib("Picture:y")) and defaults to zero. > > > >Are there other ways of doing this randomization procedure? It's a > >little bit sophisticated, which is why I'm using inline code. The > >program needs to randomly select one picture from 8 pictures in a > >list that are all presented in random sequence, store that filename > >and write it to another list for later presentation. > > > >Adam > > > >On Mon, May 18, 2009 at 3:17 PM, David McFarlane > ><mcfarla9 at msu.edu> wrote: > > > >Adam, > > > >Wow, I don't know offhand if that syntax works. It looks like you > >are trying to use "colon syntax", and I don't know if you can use > >that with the Context.GetAttrib() method, that may work only with the > >List.GetAttrrib() method (e.g., colon syntax has to know which List > >has the attribute "Picture"). I would have to make some demo > >programs and look at the generated code to explore this further, but > >I will leave that to you. > > > >-- David McFarlane, Professional Faultfinder > > > > > > >I just realized when you sent this that it might be due to how the > > >random number is applied. > > > > > >I have the randomization code to select a picture for presentation, > > >so I did this: > > >TestList.setAttrib counter, "Item", c.GetAttrib("Picture:drawno") > > > > > >...in which one of the 8 files in the attribute "Picture" on another > > >list is randomly selected. > > > > > >Is it defaulting to zero because this isn't syntactically valid? > > > > > >Adam > > > > > >On Mon, May 18, 2009 at 2:59 PM, David McFarlane > > ><mcfarla9 at msu.edu> > wrote: > > > > > >Adam, > > > > > >Hmm, that bit of code works perfectly for me. I suspect the problem > > >lies somewhere else in the script. Just to be clear, try the > > >following and see what happens: > > > > > >Dim drawno As Integer > > >Dim i as Integer > > >For i = 1 to 8 > > > drawno = Random(0, 7) > > > MsgBox drawno > > >Next i > > > > > >-- David McFarlane, Professional Faultfinder > > > > > > > > > >I'm having a little problem with randomization code in Ebasic. I > > > >have this code: > > > > > > > >Dim drawno As Integer > > > >drawno = Random(0, 7) > > > > > > > >...and yet, drawno is initialized to '0' every time. This code is > > > >used for 8 repetitions in the program, and each time "0" comes up. > > > >Even with "Randomize" in front, the same thing happens. > > > > > > > >Is there something I'm doing wrong? > > > > > > > >Adam > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 rickogorman at gmail.com Wed May 20 17:55:50 2009 From: rickogorman at gmail.com (Rick O'Gorman) Date: Wed, 20 May 2009 18:55:50 +0100 Subject: Textbox bug in E-Prime In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF011D7FD3@VUIEXCHC.ad.nottingham.ac.uk> Message-ID: Apologies for the gap since this was last covered--been tied up with marking. :( I haven't had the problem of having a file be corrupted due to a crash--that really puts the frighteners up me! I think everyone appreciates that complex software will have some bugs, but basic things should work well, as should critical things. E-Prime appears to get critical things right (timing, doesn't crash running experiments) but I don't think editing a textbox should crash a program! Apparently this is to be fixed (I took the issue up with PST in their online support) in the final candidate, but that's not out yet. I'm not touching the SPSS topic, except to note that I'm not as locked into E-Prime. :) Rick Michiel Spape wrote: > Hi, > The corrupted e-studio files following crashes, although not happening often, are indeed absolutely horrendous - and could easily be avoided if only e-studio would automatically save backups (like office, for example). They happened in E-Prime 1 as well, and I remember one of my students had it near the end of an exam (of my e-prime course). What are you supposed to do if that happens? Considering it was not the student's fault, we decided to have a look at the E-Run file and have her TELL us what she had wanted to do with it before E-Prime went bananas - but that is not a really practical solution. > > Anyway, all the best with your E-Misery, I think we all know it has certain weaknesses that are about as likely to be fixed as SPSS is to better with version 20 (expected release in 3 months). > Best, > > Michiel Spap? > Research Fellow > Perception & Action group > University of Nottingham > School of Psychology > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of frankbosco > Sent: 04 May 2009 22:12 > To: E-Prime > Subject: Re: Textbox bug in E-Prime > > > Rick, > > ABSOLUTELY! This drives me nuts, as well. For me, it happens > especially when adding more that 20-30 characters to a textbox within > a slide. What's the deal, E-Prime??? Sometimes, I think that the > only feature in E-Prime that works 100% flawlessly is their copyright > protection (which, by the way, wastes a great deal of time when > working/opening/saving in E-Studio!). Another warning re: E-Prime > 2.0: E-Studio randomly deleted an .es2 file on me (after crashing, of > course) that I had been working on for several days. I almost lost > it. Now, I need to save 2 copies of each .es2 file (huge waste of my > time). While I'm complaining about E-Prime 2.0, I would really like > to have a set of user's manuals (in print) - I find a 2-year release > candidacy to be semi-unacceptable (especially for a software that > costs $800 or more!). I think this may be my last E-Prime purchase -- > I may look into other options in the future. > > -Frank > > On May 4, 3:14 pm, Rick O'Gorman wrote: >> Out of curiousity, is anyone else besides me finding a serious and >> regular bug in editing textboxes within slides, such that E-Prime >> crashes? I'm using 2.0.8.22 RC. It's driving me nuts. It's so bad that I >> run a second version of E-Prime now ready to go when one crashes, >> because E-Prime takes so long to open and then open the file I am >> working with (and no--this is not a cause of the bug; I've only recently >> started doing this to salvage my sanity!). >> >> Rick >> -- >> Rick O'Gorman, PhD >> Psychology, Faculty of Development and Society >> Collegiate Crescent Campus, >> Sheffield Hallam University, >> Sheffield >> S10 2BP >> >> Phone: 0114 225 5788 Fax: 0114 225 2430 >> >> http://www.shu.ac.uk/psychology/staff/OGorman.html >> >> No passion can survive a woman's seeing her lover hold >> his fork in the wrong way. >> ~Edith Wharton > > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses, which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. > > > > -- Rick O'Gorman, PhD Psychology, Faculty of Development and Society Collegiate Crescent Campus, Sheffield Hallam University, Sheffield S10 2BP Phone: 0114 225 5788 Fax: 0114 225 2430 http://www.shu.ac.uk/psychology/staff/OGorman.html No passion can survive a woman's seeing her lover hold his fork in the wrong way. ~Edith Wharton --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 rickogorman at gmail.com Wed May 20 18:32:11 2009 From: rickogorman at gmail.com (Rick O'Gorman) Date: Wed, 20 May 2009 19:32:11 +0100 Subject: help--alternating text and image stimuli In-Reply-To: <49fa1896.0d0bca0a.4344.ffffd3c3SMTPIN_ADDED@gmr-mx.google.com> Message-ID: As per an earlier post, sorry to have lagged in my reply to this thread. Thanks to those who suggested ideas--David McF, Paul J, liwenna. On seeing Paul's suggestion, using a substantial bit of inline code, I was inspired to try figuring out the slidestate method, as it seemed simpler. :) David's email confirmed what I had found--that Slidestate was the solution, but I did not need to use inline code to tell E-Prime which slidestate to use. It's simpler than that. After setting up the alternative slidestates and naming them (you get at this by right-clicking on the tab at the bottom, which will default to, err, 'default', then 'default1', etc.), you can tell E-Prime which one to use in the Slide's general property options. Under the General tab, there's a setting for Activestate. Instead of choosing one of the slidestates that you have created, you can instead enter a variable name in here (e.g., [stimtype]) and then set up which slidestate to use in a list elsewhere, using one of the slidestate names (in my case, I had two, one called 'text' and one called 'pic'). So in my relevant list, I had a variable called slidestate that took either a value of 'pic' or 'text' depending on another variable setting (whether I wanted to present an image or text as a stimulus). This then told the relevant slide to use either pic or text, as appropriate. By the way, when creating multiple slidestates that are variations of each other, there is a 'clone state' option, which is a nice labour-saving tool. Maybe E-Prime will keep me loyal yet. :) Rick David McFarlane wrote: > Rick, > > I would use a Slide object with multiple states, as you guessed. One > state would use a Text sub-object, and another state would use an > Image sub-object. You would then have to use a bit of inline script > to set the state before running the slide in your procedure, based > either on the value of the attribute that encodes the stimulus, or > using another attribute just to indicate text vs. image. Might be > worth browsing the PST downloads to see if they show how to handle > Slide states, or just make a demo program with any Slide (or better, > a Feedback object, which is just a special type of Slide) and look at > the generated script, that's how I figure out how to manage Slide states. > > Good luck, > -- David McFarlane, Professiona Faultfinder > > > At 4/28/2009 05:07 PM Tuesday, you wrote: >> I'm guessing this is easy to do if you know how, but I can't figure a >> solution; the manuals are of little help. I am creating an IAT and want >> a mix of images and text as stimuli. I thought I could just put the >> image file names in the relevant LIST but this doesn't work. I then >> realised that slides have either text or image objects, so I figure I'm >> goiung to have to mess around with multiple versions of slides--do I use >> slidestate? Or can I layer a text object and image object on top of each >> other and assume that it is transparent if nothing is called for that >> implementation? If you've got something that does this can can share it, >> that would be welcome. >> >> Cheers, >> >> Rick >> -- >> Rick O'Gorman, PhD >> Psychology, Faculty of Development and Society >> Collegiate Crescent Campus, >> Sheffield Hallam University, >> Sheffield >> S10 2BP > > > > -- Rick O'Gorman, PhD Psychology, Faculty of Development and Society Collegiate Crescent Campus, Sheffield Hallam University, Sheffield S10 2BP Phone: 0114 225 5788 Fax: 0114 225 2430 http://www.shu.ac.uk/psychology/staff/OGorman.html No passion can survive a woman's seeing her lover hold his fork in the wrong way. ~Edith Wharton --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 gabriele.colaianni at gmail.com Wed May 20 18:35:06 2009 From: gabriele.colaianni at gmail.com (gc) Date: Wed, 20 May 2009 11:35:06 -0700 Subject: eprime lesson Message-ID: Hi, I would like to learn using eprime. Is there some eprime experte in Montreal for some private lesson? thank you very much --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 frosts at haskins.yale.edu Wed May 20 18:42:01 2009 From: frosts at haskins.yale.edu (Steve Frost) Date: Wed, 20 May 2009 11:42:01 -0700 Subject: sound duration syntax Message-ID: I have an experiment in which I am playing out WAVs of sentences, either in Spanish or English based on an input dialog at the beginning of the experiment and this part works fine. However, I also want to set the sound duration to be the exact duration of the audio file. I have calculated the durations for the Spanish and English versions and entered them into columns in my list called AEduration and SPduration. I was wondering how best to link the duration field of the sound object to the appropriate column based on the value of the input dialog? That is, is the variable 'language' is set to 'spanish' then I want the duration field to be linked to the values in the SPduration column and linked to the values in the AEduration if language=english. My one thought is to make the event with the audio a slide and create different slide states that would be selected based on the value of the language variable, but I am wondering if there is an easier way? Thanks. Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 May 21 18:54:31 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 21 May 2009 14:54:31 -0400 Subject: help--alternating text and image stimuli In-Reply-To: <4A144CAB.9090103@gmail.com> Message-ID: Rick, Brilliant use of attribute to control slide state, I had missed that, thank you SO much for figuring that out and posting back! Also thanks for hint about cloning slide states. And I too regain respect for E-Prime when I stumble on things like this. -- David McFarlane, Professional Faultfinder At 5/20/2009 02:32 PM Wednesday, you wrote: >As per an earlier post, sorry to have lagged in my reply to this thread. >Thanks to those who suggested ideas--David McF, Paul J, liwenna. On >seeing Paul's suggestion, using a substantial bit of inline code, I was >inspired to try figuring out the slidestate method, as it seemed simpler. :) > >David's email confirmed what I had found--that Slidestate was the >solution, but I did not need to use inline code to tell E-Prime which >slidestate to use. It's simpler than that. > >After setting up the alternative slidestates and naming them (you get at >this by right-clicking on the tab at the bottom, which will default to, >err, 'default', then 'default1', etc.), you can tell E-Prime which one >to use in the Slide's general property options. Under the General tab, >there's a setting for Activestate. Instead of choosing one of the >slidestates that you have created, you can instead enter a variable name >in here (e.g., [stimtype]) and then set up which slidestate to use in a >list elsewhere, using one of the slidestate names (in my case, I had >two, one called 'text' and one called 'pic'). So in my relevant list, I >had a variable called slidestate that took either a value of 'pic' or >'text' depending on another variable setting (whether I wanted to >present an image or text as a stimulus). This then told the relevant >slide to use either pic or text, as appropriate. > >By the way, when creating multiple slidestates that are variations of >each other, there is a 'clone state' option, which is a nice >labour-saving tool. > >Maybe E-Prime will keep me loyal yet. :) > >Rick > >David McFarlane wrote: > > Rick, > > > > I would use a Slide object with multiple states, as you guessed. One > > state would use a Text sub-object, and another state would use an > > Image sub-object. You would then have to use a bit of inline script > > to set the state before running the slide in your procedure, based > > either on the value of the attribute that encodes the stimulus, or > > using another attribute just to indicate text vs. image. Might be > > worth browsing the PST downloads to see if they show how to handle > > Slide states, or just make a demo program with any Slide (or better, > > a Feedback object, which is just a special type of Slide) and look at > > the generated script, that's how I figure out how to manage Slide states. > > > > Good luck, > > -- David McFarlane, Professiona Faultfinder > > > > > > At 4/28/2009 05:07 PM Tuesday, you wrote: > >> I'm guessing this is easy to do if you know how, but I can't figure a > >> solution; the manuals are of little help. I am creating an IAT and want > >> a mix of images and text as stimuli. I thought I could just put the > >> image file names in the relevant LIST but this doesn't work. I then > >> realised that slides have either text or image objects, so I figure I'm > >> goiung to have to mess around with multiple versions of slides--do I use > >> slidestate? Or can I layer a text object and image object on top of each > >> other and assume that it is transparent if nothing is called for that > >> implementation? If you've got something that does this can can share it, > >> that would be welcome. > >> > >> Cheers, > >> > >> Rick > >> -- > >> Rick O'Gorman, PhD > >> Psychology, Faculty of Development and Society > >> Collegiate Crescent Campus, > >> Sheffield Hallam University, > >> Sheffield > >> S10 2BP > > > > > > > > >-- >Rick O'Gorman, PhD >Psychology, Faculty of Development and Society >Collegiate Crescent Campus, >Sheffield Hallam University, >Sheffield >S10 2BP > >Phone: 0114 225 5788 Fax: 0114 225 2430 > >http://www.shu.ac.uk/psychology/staff/OGorman.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 May 21 19:16:48 2009 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 21 May 2009 15:16:48 -0400 Subject: sound duration syntax In-Reply-To: <7d8d317e-57b0-4dac-bc17-10f0c8250df1@r13g2000vbr.googlegro ups.com> Message-ID: Steve, Four thoughts on this for you... 1) I suppose you could use a bit of inline script before the slide to do something like If c.GetAttrib("language") = "spanish" Then c.SetAttrib "SoundDur", c.GetAttrib("SPduration") ElseIf c.GetAttrib("language") = "english" Then c.SetAttrib "SoundDur", c.GetAttrib("AEduration") Else MsgBox "Invalid language!" End If (or something similar using Iif(), etc., I leave that as an exercise), where "SoundDur" is used to set the duration of the Slide object. 2) The Slide State idea will not work because each Slide has one and only one Duration that applies to all of its states. 3) You could put the Spanish and English sentences each in their own nested list that gets selected by the main list. That way each nested list can have a column called, say, "SoundDur", with the correct durations for each sentence in each language, and your presentation object need only know the value of SoundDur no matter what language. 4) Or, just set the Duration of your SoundOut or Slide object to (infinite), and set End Sound Action of your SoundOut object or sub-object to Terminate. That should play each sound to its end, then automatically terminate the presentation object and move on, without your having to measure or know anything about sound durations. If you then still want to know how long each sound played, you can get that from the time auditing log. Good luck, hope this helps a bit, -- David McFarlane, Professional Faultfinder At 5/20/2009 02:42 PM Wednesday, Steve Frost wrote: >I have an experiment in which I am playing out WAVs of sentences, >either in Spanish or English based on an input dialog at the beginning >of the experiment and this part works fine. However, I also want to >set the sound duration to be the exact duration of the audio file. I >have calculated the durations for the Spanish and English versions and >entered them into columns in my list called AEduration and SPduration. >I was wondering how best to link the duration field of the sound >object to the appropriate column based on the value of the input >dialog? That is, is the variable 'language' is set to 'spanish' then I >want the duration field to be linked to the values in the SPduration >column and linked to the values in the AEduration if language=english. >My one thought is to make the event with the audio a slide and create >different slide states that would be selected based on the value of >the language variable, but I am wondering if there is an easier way? >Thanks. > >Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 rickogorman at gmail.com Fri May 22 09:00:33 2009 From: rickogorman at gmail.com (Rick O'Gorman) Date: Fri, 22 May 2009 10:00:33 +0100 Subject: help--alternating text and image stimuli In-Reply-To: <4a15a368.0d0bca0a.291d.6c59SMTPIN_ADDED@gmr-mx.google.com> Message-ID: You're welcome, glad to contribute something back. I made a typo in my previous post--toward the end of the long paragraph, it should read "So in my relevant list, I had a variable called STIMTYPE that took either a value of 'pic' or 'text' depending on another variable setting". Sorry about that, Rick David McFarlane wrote: > Rick, > > Brilliant use of attribute to control slide state, I had missed that, > thank you SO much for figuring that out and posting back! Also > thanks for hint about cloning slide states. > > And I too regain respect for E-Prime when I stumble on things like this. > > -- David McFarlane, Professional Faultfinder > > > At 5/20/2009 02:32 PM Wednesday, you wrote: > >> As per an earlier post, sorry to have lagged in my reply to this thread. >> Thanks to those who suggested ideas--David McF, Paul J, liwenna. On >> seeing Paul's suggestion, using a substantial bit of inline code, I was >> inspired to try figuring out the slidestate method, as it seemed simpler. :) >> >> David's email confirmed what I had found--that Slidestate was the >> solution, but I did not need to use inline code to tell E-Prime which >> slidestate to use. It's simpler than that. >> >> After setting up the alternative slidestates and naming them (you get at >> this by right-clicking on the tab at the bottom, which will default to, >> err, 'default', then 'default1', etc.), you can tell E-Prime which one >> to use in the Slide's general property options. Under the General tab, >> there's a setting for Activestate. Instead of choosing one of the >> slidestates that you have created, you can instead enter a variable name >> in here (e.g., [stimtype]) and then set up which slidestate to use in a >> list elsewhere, using one of the slidestate names (in my case, I had >> two, one called 'text' and one called 'pic'). So in my relevant list, I >> had a variable called slidestate that took either a value of 'pic' or >> 'text' depending on another variable setting (whether I wanted to >> present an image or text as a stimulus). This then told the relevant >> slide to use either pic or text, as appropriate. >> >> By the way, when creating multiple slidestates that are variations of >> each other, there is a 'clone state' option, which is a nice >> labour-saving tool. >> >> Maybe E-Prime will keep me loyal yet. :) >> >> Rick >> >> David McFarlane wrote: >>> Rick, >>> >>> I would use a Slide object with multiple states, as you guessed. One >>> state would use a Text sub-object, and another state would use an >>> Image sub-object. You would then have to use a bit of inline script >>> to set the state before running the slide in your procedure, based >>> either on the value of the attribute that encodes the stimulus, or >>> using another attribute just to indicate text vs. image. Might be >>> worth browsing the PST downloads to see if they show how to handle >>> Slide states, or just make a demo program with any Slide (or better, >>> a Feedback object, which is just a special type of Slide) and look at >>> the generated script, that's how I figure out how to manage Slide states. >>> >>> Good luck, >>> -- David McFarlane, Professiona Faultfinder >>> >>> >>> At 4/28/2009 05:07 PM Tuesday, you wrote: >>>> I'm guessing this is easy to do if you know how, but I can't figure a >>>> solution; the manuals are of little help. I am creating an IAT and want >>>> a mix of images and text as stimuli. I thought I could just put the >>>> image file names in the relevant LIST but this doesn't work. I then >>>> realised that slides have either text or image objects, so I figure I'm >>>> goiung to have to mess around with multiple versions of slides--do I use >>>> slidestate? Or can I layer a text object and image object on top of each >>>> other and assume that it is transparent if nothing is called for that >>>> implementation? If you've got something that does this can can share it, >>>> that would be welcome. >>>> >>>> Cheers, >>>> >>>> Rick >>>> -- >>>> Rick O'Gorman, PhD >>>> Psychology, Faculty of Development and Society >>>> Collegiate Crescent Campus, >>>> Sheffield Hallam University, >>>> Sheffield >>>> S10 2BP >>> >> -- >> Rick O'Gorman, PhD >> Psychology, Faculty of Development and Society >> Collegiate Crescent Campus, >> Sheffield Hallam University, >> Sheffield >> S10 2BP >> >> Phone: 0114 225 5788 Fax: 0114 225 2430 >> >> http://www.shu.ac.uk/psychology/staff/OGorman.html > > > > -- Rick O'Gorman, PhD Psychology, Faculty of Development and Society Collegiate Crescent Campus, Sheffield Hallam University, Sheffield S10 2BP Phone: 0114 225 5788 Fax: 0114 225 2430 http://www.shu.ac.uk/psychology/staff/OGorman.html No passion can survive a woman's seeing her lover hold his fork in the wrong way. ~Edith Wharton --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 cb.lists at gmail.com Sat May 23 05:18:28 2009 From: cb.lists at gmail.com (CB) Date: Fri, 22 May 2009 22:18:28 -0700 Subject: "Thank you" to David McFarlane Message-ID: For the nth time I've just found a potential solution to a problem I'm trying to solve by searching this ng and finding a relevant and detailed post by David. So, David: many thanks for your seemingly tireless efforts to help here. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 bassam.khoury at sympatico.ca Tue May 26 00:49:36 2009 From: bassam.khoury at sympatico.ca (PsycStudent) Date: Mon, 25 May 2009 17:49:36 -0700 Subject: Touch screen and Eprime Message-ID: Hi, We are aiming to buy a touch screen and we want to make sure that it works well with Eprime. Any advices? Specifically I looked into the ?HP TouchSmart IQ800t series? and I liked them specially the 25?, do anyone tried Eprime on HP touch smart monitors? Your help/advice will be highly appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 kathy.smolewska at gmail.com Tue May 26 03:55:38 2009 From: kathy.smolewska at gmail.com (KKat) Date: Mon, 25 May 2009 20:55:38 -0700 Subject: Problem selecting from decks in Gambling Task... Message-ID: Hello, I am currently working on a modified version of the Iowa Gambling Task (or Bechara Gambling Task). I have created a nested design for the 4 decks, hoping that this would allow the program to select values for each deck sequentially. Deck A works but not the others. I'm not sure what I'm doing wrong but I get the error: Run-time Error (Line 490) -990: Factor Error: No such attribute "varwin2" I have attached the relevant section of the script below. I'm not sure how to attach the .es file here. Thank you! Kathy '-------------------------------------------------------------------------- ' Instance Declarations '-------------------------------------------------------------------------- Dim Display As DisplayDevice Dim Sound As SoundDevice Dim Keyboard As KeyboardDevice Dim Mouse As MouseDevice Dim SessionProc As Procedure Dim BlockList As List Dim BlockProc As Procedure Dim TrialProc As Procedure Dim Instructions As TextDisplay Dim InstructionsEchoClients As EchoClientCollection Dim DesignList As List Dim DeckA As List Dim DeckB As List Dim DeckC As List Dim DeckD As List Dim FB As Slide Dim FB_State As SlideState Dim FB_SlideText As SlideText Dim FB_SlideImage As SlideImage Dim Goodbye As TextDisplay Dim Game As Slide Dim GameEchoClients As EchoClientCollection Dim Game_State As SlideState Dim Game_SlideText As SlideText Dim Game_SlideImage As SlideImage Dim Final As Slide Dim Final_State As SlideState Dim Final_SlideText As SlideText '-------------------------------------------------------------------------- ' Package Declare Script '-------------------------------------------------------------------------- '-------------------------------------------------------------------------- ' User Script '-------------------------------------------------------------------------- Dim totalsum As integer Dim var As integer Dim win As integer, loss As integer Dim totalsumD1 As integer Dim totalsumD2 As integer Dim totalsumD3 As integer Dim totalsumD4 As integer Dim winD1 As integer, winD2 As integer, winD3 As integer, winD4 As integer, lossD1 As integer, lossD2 As integer, lossD3 As integer, lossD4 As integer Dim EndTotal As integer Dim EndTotal2 As integer Dim DeckChoice As integer Dim Deck1, Deck2, Deck3, Deck4 As Integer Dim BarTotalwin As Integer Dim TotalGain As Integer Dim TotalLoss As Integer Dim i As Integer, y as Integer, j as Integer '-------------------------------------------------------------------------- ' Package Global Script '-------------------------------------------------------------------------- '-------------------------------------------------------------------------- ' Package Routines '-------------------------------------------------------------------------- '-------------------------------------------------------------------------- ' Implementation '-------------------------------------------------------------------------- Sub SessionProc_Run(c as Context) ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - Initializevariable BEGIN ''''''''''''''''''''''''''''''''''''''''''''' Totalsum = 0 TotalsumD1 = 0 TotalsumD2 = 0 TotalsumD3 = 0 TotalsumD4 = 0 EndTotal = 0 EndTotal2 = 0 BarTotalWin = 0 TotalGain = 0 TotalLoss = 0 ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - Initializevariable END ''''''''''''''''''''''''''''''''''''''''''''' Instructions.InputMasks.Reset If Keyboard.GetState() = ebStateOpen Then InstructionsEchoClients.RemoveAll Instructions.InputMasks.Add Keyboard.CreateInputMask("{SPACE}", "", CLng(Instructions.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") End If Instructions.Run BlockList.Run c ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - GainOrLose BEGIN ''''''''''''''''''''''''''''''''''''''''''''' if totalsum > 0 then Final.ActiveState = "EndWin" c.setAttrib "Endtotal", totalsum end if if totalsum = 0 then Final.ActiveState = "EndNull" c.setAttrib "EndTotal", totalsum end if if totalsum < 0 then Final.ActiveState = "EndLoss" c.setAttrib "EndTotal", totalsum end if ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - GainOrLose END ''''''''''''''''''''''''''''''''''''''''''''' Select Case Final.ActiveState Case "EndWin" Set Final_SlideText = CSlideText(Final.States.Item("EndWin").Objects (1)) Final_SlideText.Text = "Congratulations! You have won a total of $" &_ c.GetAttrib("Endtotal") &_ "." Set Final_SlideText = Nothing Case "EndLoss" Set Final_SlideText = CSlideText(Final.States.Item ("EndLoss").Objects(1)) Final_SlideText.Text = "Unfortunately, you lost money! Your total loss is $" &_ c.GetAttrib("EndTotal") &_ ".\n\n\n\n" Set Final_SlideText = Nothing Case "EndNull" Set Final_SlideText = CSlideText(Final.States.Item ("EndNull").Objects(1)) Final_SlideText.Text = "Unfortunately, you did not win anything. Your final total is $" &_ c.GetAttrib("EndTotal") &_ "." Set Final_SlideText = Nothing End Select Final.Run Goodbye.Run #If RUNTIME_VERSION_MAJOR > 1 Or (RUNTIME_VERSION_MAJOR = 1 And RUNTIME_VERSION_MINOR >= 2) Then ' Log clock timing information c.SetAttrib "Clock.Information", Clock.Information #End If c.Log End Sub Sub BlockProc_Run(c as Context) DesignList.Run c c.Log End Sub Sub TrialProc_Run(c as Context) ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - InLineA BEGIN ''''''''''''''''''''''''''''''''''''''''''''' c.setAttrib "totalsum", totalsum c.setAttrib "TotalsumD1", TotalsumD1 c.setAttrib "TotalsumD2", TotalsumD2 c.setAttrib "TotalsumD3", TotalsumD3 c.setAttrib "TotalsumD4", TotalsumD4 c.setAttrib "TotalGain", TotalGain c.setAttrib "TotalLoss", TotalLoss ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - InLineA END ''''''''''''''''''''''''''''''''''''''''''''' Select Case Game.ActiveState Case "Default" Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (1)) Game_SlideText.Text = "Current Total:" &_ c.GetAttrib("totalsum") Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (2)) Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (3)) Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (4)) Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (5)) Set Game_SlideText = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(6)) Set Game_SlideImage = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(7)) Set Game_SlideImage = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(8)) Set Game_SlideImage = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(9)) Set Game_SlideImage = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (10)) Set Game_SlideText = Nothing End Select Game.InputMasks.Reset If Keyboard.GetState() = ebStateOpen Then GameEchoClients.RemoveAll Game.InputMasks.Add Keyboard.CreateInputMask("afjl", "afjl", CLng (Game.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical ("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") End If Game.Run c.SetAttrib Game.Name & ".RTTime", Game.RTTime c.SetAttrib Game.Name & ".RT", Game.RT c.SetAttrib Game.Name & ".RESP", Game.RESP ' InLine - InLineA BEGIN ''''''''''''''''''''''''''''''''''''''''''''' c.setAttrib "totalsum", totalsum c.setAttrib "TotalsumD1", TotalsumD1 c.setAttrib "TotalsumD2", TotalsumD2 c.setAttrib "TotalsumD3", TotalsumD3 c.setAttrib "TotalsumD4", TotalsumD4 c.setAttrib "TotalGain", TotalGain c.setAttrib "TotalLoss", TotalLoss ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - InLineA END ''''''''''''''''''''''''''''''''''''''''''''' Select Case Game.ActiveState Case "Default" Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (1)) Game_SlideText.Text = "Current Total:" &_ c.GetAttrib("totalsum") Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (2)) Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (3)) Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (4)) Set Game_SlideText = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (5)) Set Game_SlideText = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(6)) Set Game_SlideImage = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(7)) Set Game_SlideImage = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(8)) Set Game_SlideImage = Nothing Set Game_SlideImage = CSlideImage(Game.States.Item ("Default").Objects(9)) Set Game_SlideImage = Nothing Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects (10)) Set Game_SlideText = Nothing End Select Game.InputMasks.Reset If Keyboard.GetState() = ebStateOpen Then GameEchoClients.RemoveAll Game.InputMasks.Add Keyboard.CreateInputMask("afjl", "afjl", CLng (Game.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical ("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") End If Game.Run c.SetAttrib Game.Name & ".RTTime", Game.RTTime c.SetAttrib Game.Name & ".RT", Game.RT c.SetAttrib Game.Name & ".RESP", Game.RESP ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - Choose1234 BEGIN ''''''''''''''''''''''''''''''''''''''''''''' If game.RESP = "a" then FB.ActiveState = "f1" win = c.getAttrib("varwin1") loss = c.getAttrib("varloss1") totalsum = totalsum + win + loss TotalGain = TotalGain + win TotalLoss = TotalLoss + loss c.setAttrib "Totalsum", Totalsum c.setAttrib "AmountWon", win c.setAttrib "AmountLost", loss c.setAttrib "TotalGain", TotalGain c.setAttrib "TotalLoss", TotalLoss c.setAttrib "DeckChoice", 1 winD1 = c.getAttrib("varwin1") lossD1 = c.getAttrib("varloss1") TotalsumD1 = totalsumD1 + winD1 + lossD1 c.setAttrib "TotalsumD1", TotalsumD1 i = Abs(TotalGain) y = c.GetAttrib("TotalLoss") j = Abs(y) BarTotalWin = TotalGain/(i+j)*100 c.setAttrib "BarTotalWin", BarTotalWin If BarTotalWin = 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin < 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then c.setAttrib "BarImage", "Bar13-87.bmp" ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then c.setAttrib "BarImage", "Bar25-75.bmp" ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then c.setAttrib "BarImage", "Bar37-63.bmp" ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then c.setAttrib "BarImage", "Bar50-50.bmp" ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then c.setAttrib "BarImage", "Bar63-37.bmp" ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then c.setAttrib "BarImage", "Bar75-25.bmp" ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then c.setAttrib "BarImage", "Bar87-13.bmp" ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin = 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin > 100 then c.setAttrib "BarImage", "Bar100-0.bmp" End If elseif game.RESP = "f" then FB.ActiveState = "f2" win = c.getAttrib("varwin2") loss = c.getAttrib("varloss2") totalsum = totalsum + win + loss TotalGain = TotalGain + win TotalLoss = TotalLoss + loss c.setAttrib "Totalsum", Totalsum c.setAttrib "AmountWon", win c.setAttrib "AmountLost", loss c.setAttrib "TotalGain", TotalGain c.setAttrib "TotalLoss", TotalLoss c.setAttrib "DeckChoice", 2 winD2 = c.getAttrib("varwin2") lossD2 = c.getAttrib("varloss2") TotalsumD2 = totalsumD2 + winD2 + lossD2 c.setAttrib "TotalsumD2", TotalsumD2 i = Abs(TotalGain) y = c.GetAttrib("TotalLoss") j = Abs(y) BarTotalWin = TotalGain/(i+j)*100 'BarTotalWin = TotalGain/(TotalGain-TotalLoss)*100 c.setAttrib "BarTotalWin", BarTotalWin If BarTotalWin = 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin < 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then c.setAttrib "BarImage", "Bar13-87.bmp" ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then c.setAttrib "BarImage", "Bar25-75.bmp" ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then c.setAttrib "BarImage", "Bar37-63.bmp" ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then c.setAttrib "BarImage", "Bar50-50.bmp" ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then c.setAttrib "BarImage", "Bar63-37.bmp" ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then c.setAttrib "BarImage", "Bar75-25.bmp" ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then c.setAttrib "BarImage", "Bar87-13.bmp" ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin = 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin > 100 then c.setAttrib "BarImage", "Bar100-0.bmp" End If elseif game.RESP = "j" then FB.ActiveState = "f3" win = c.getAttrib("varwin3") loss = c.getAttrib("varloss3") totalsum = totalsum + win + loss TotalGain = TotalGain + win TotalLoss = TotalLoss + loss c.setAttrib "Totalsum", Totalsum c.setAttrib "AmountWon", win c.setAttrib "AmountLost", loss c.setAttrib "TotalGain", TotalGain c.setAttrib "TotalLoss", TotalLoss c.setAttrib "DeckChoice", 3 winD3 = c.getAttrib("varwin3") lossD3 = c.getAttrib("varloss3") TotalsumD3 = totalsumD3 + winD3 + lossD3 c.setAttrib "TotalsumD3", TotalsumD3 i = Abs(TotalGain) y = c.GetAttrib("TotalLoss") j = Abs(y) BarTotalWin = TotalGain/(i+j)*100 'BarTotalWin = TotalGain/(TotalGain-TotalLoss)*100 c.setAttrib "BarTotalWin", BarTotalWin If BarTotalWin = 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin < 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then c.setAttrib "BarImage", "Bar13-87.bmp" ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then c.setAttrib "BarImage", "Bar25-75.bmp" ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then c.setAttrib "BarImage", "Bar37-63.bmp" ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then c.setAttrib "BarImage", "Bar50-50.bmp" ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then c.setAttrib "BarImage", "Bar63-37.bmp" ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then c.setAttrib "BarImage", "Bar75-25.bmp" ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then c.setAttrib "BarImage", "Bar87-13.bmp" ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin = 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin > 100 then c.setAttrib "BarImage", "Bar100-0.bmp" End If elseif game.RESP = "l" then FB.ActiveState = "f4" win = c.getAttrib("varwin4") loss = c.getAttrib("varloss4") totalsum = totalsum + win + loss TotalGain = TotalGain + win TotalLoss = TotalLoss + loss c.setAttrib "Totalsum", Totalsum c.setAttrib "AmountWon", win c.setAttrib "AmountLost", loss c.setAttrib "TotalGain", TotalGain c.setAttrib "TotalLoss", TotalLoss c.setAttrib "DeckChoice", 4 winD4 = c.getAttrib("varwin4") lossD4 = c.getAttrib("varloss4") TotalsumD4 = totalsumD4 + winD4 + lossD4 c.setAttrib "TotalsumD4", TotalsumD4 i = Abs(TotalGain) y = c.GetAttrib("TotalLoss") j = Abs(y) BarTotalWin = TotalGain/(i+j)*100 'BarTotalWin = TotalGain/(TotalGain-TotalLoss)*100 c.setAttrib "BarTotalWin", BarTotalWin If BarTotalWin = 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin < 0 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then c.setAttrib "BarImage", "Bar0-100.bmp" ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then c.setAttrib "BarImage", "Bar13-87.bmp" ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then c.setAttrib "BarImage", "Bar25-75.bmp" ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then c.setAttrib "BarImage", "Bar37-63.bmp" ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then c.setAttrib "BarImage", "Bar50-50.bmp" ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then c.setAttrib "BarImage", "Bar63-37.bmp" ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then c.setAttrib "BarImage", "Bar75-25.bmp" ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then c.setAttrib "BarImage", "Bar87-13.bmp" ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin = 100 then c.setAttrib "BarImage", "Bar100-0.bmp" ElseIf BarTotalWin > 100 then c.setAttrib "BarImage", "Bar100-0.bmp" End If End If ''''''''''''''''''''''''''''''''''''''''''''' ' InLine - Choose1234 END ''''''''''''''''''''''''''''''''''''''''''''' Select Case FB.ActiveState Case "f1" Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(1)) Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(2)) FB_SlideText.Text = "Previous Total: $" &_ c.GetAttrib("totalsum") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(3)) FB_SlideText.Text = "\nLoss:" &_ c.GetAttrib("varloss1") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(4)) FB_SlideText.Text = "Gain:" &_ c.GetAttrib("varwin1") Set FB_SlideText = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(5)) FB_SlideImage.Filename = c.GetAttrib("BarImage") FB_SlideImage.Load Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(6)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(7)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(8)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(9)) Set FB_SlideImage = Nothing Case "f2" Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(1)) Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(2)) FB_SlideText.Text = "Loss:" &_ c.GetAttrib("varloss2") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(3)) FB_SlideText.Text = "Gain:" &_ c.GetAttrib("varwin2") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(4)) FB_SlideText.Text = "Previous Total:$" &_ c.GetAttrib("totalsum") Set FB_SlideText = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(5)) FB_SlideImage.Filename = c.GetAttrib("BarImage") FB_SlideImage.Load Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(6)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(7)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(8)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(9)) Set FB_SlideImage = Nothing Case "f3" Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(1)) FB_SlideText.Text = "Loss:" &_ c.GetAttrib("varloss3") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(2)) FB_SlideText.Text = "Gain:" &_ c.GetAttrib("varwin3") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(3)) Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(4)) FB_SlideText.Text = "Previous Total:$" &_ c.GetAttrib("totalsum") Set FB_SlideText = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(5)) FB_SlideImage.Filename = c.GetAttrib("BarImage") FB_SlideImage.Load Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(6)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(7)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(8)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(9)) Set FB_SlideImage = Nothing Case "f4" Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(1)) FB_SlideText.Text = "Loss:" &_ c.GetAttrib("varloss4") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(2)) FB_SlideText.Text = "Gain:" &_ c.GetAttrib("varwin4") Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(3)) Set FB_SlideText = Nothing Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(4)) FB_SlideText.Text = "Previous Total:$" &_ c.GetAttrib("totalsum") Set FB_SlideText = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(5)) FB_SlideImage.Filename = c.GetAttrib("BarImage") FB_SlideImage.Load Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(6)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(7)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(8)) Set FB_SlideImage = Nothing Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(9)) Set FB_SlideImage = Nothing End Select FB.Run c.SetAttrib Game.Name & ".RTTime", Game.RTTime c.SetAttrib Game.Name & ".RT", Game.RT c.SetAttrib Game.Name & ".RESP", Game.RESP c.Log End Sub --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/e-prime?hl=en -~----------~----~----~----~------~----~------~--~--- From liwenna at gmail.com Tue May 26 11:16:13 2009 From: liwenna at gmail.com (liwenna) Date: Tue, 26 May 2009 04:16:13 -0700 Subject: Problem selecting from decks in Gambling Task... In-Reply-To: Message-ID: Leaving the script aside... the error states that the program can't find an attribute called "varwin2" . In my experience this error often arises from typoes... check the list that contains 'varwin2' or if it is a declared variable check it's declaration for typing errors. Good luck! On May 26, 5:55?am, KKat wrote: > Hello, > > I am currently working on a modified version of the Iowa Gambling Task > (or Bechara Gambling Task). I have created a nested design for the 4 > decks, hoping that this would allow the program to select values for > each deck sequentially. Deck A works but not the others. I'm not sure > what I'm doing wrong but I get the error: > Run-time Error (Line 490) > -990: Factor Error: > No such attribute "varwin2" > > I have attached the relevant section of the script below. I'm not sure > how to attach the .es file here. > > Thank you! > > Kathy > > '-------------------------------------------------------------------------- > ' Instance Declarations > '-------------------------------------------------------------------------- > Dim Display As DisplayDevice > Dim Sound As SoundDevice > Dim Keyboard As KeyboardDevice > Dim Mouse As MouseDevice > Dim SessionProc As Procedure > > Dim BlockList As List > > Dim BlockProc As Procedure > > Dim TrialProc As Procedure > > Dim Instructions As TextDisplay > Dim InstructionsEchoClients As EchoClientCollection > > Dim DesignList As List > > Dim DeckA As List > > Dim DeckB As List > > Dim DeckC As List > > Dim DeckD As List > > Dim FB As Slide > Dim FB_State As SlideState > Dim FB_SlideText As SlideText > Dim FB_SlideImage As SlideImage > > Dim Goodbye As TextDisplay > > Dim Game As Slide > Dim GameEchoClients As EchoClientCollection > Dim Game_State As SlideState > Dim Game_SlideText As SlideText > Dim Game_SlideImage As SlideImage > > Dim Final As Slide > Dim Final_State As SlideState > Dim Final_SlideText As SlideText > > '-------------------------------------------------------------------------- > ' Package Declare Script > '-------------------------------------------------------------------------- > > '-------------------------------------------------------------------------- > ' User Script > '-------------------------------------------------------------------------- > Dim totalsum As integer > Dim var As integer > Dim win As integer, loss As integer > Dim totalsumD1 As integer > Dim totalsumD2 As integer > Dim totalsumD3 As integer > Dim totalsumD4 As integer > Dim winD1 As integer, winD2 As integer, winD3 As integer, winD4 As > integer, lossD1 As integer, lossD2 As integer, lossD3 As integer, > lossD4 As integer > Dim EndTotal As integer > Dim EndTotal2 As integer > Dim DeckChoice As integer > Dim Deck1, Deck2, Deck3, Deck4 As Integer > Dim BarTotalwin As Integer > Dim TotalGain As Integer > Dim TotalLoss As Integer > Dim i As Integer, y as Integer, j as Integer > > '-------------------------------------------------------------------------- > ' Package Global Script > '-------------------------------------------------------------------------- > > '-------------------------------------------------------------------------- > ' Package Routines > '-------------------------------------------------------------------------- > > '-------------------------------------------------------------------------- > ' Implementation > '-------------------------------------------------------------------------- > Sub SessionProc_Run(c as Context) > > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - Initializevariable BEGIN > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? Totalsum = 0 > TotalsumD1 = 0 > TotalsumD2 = 0 > TotalsumD3 = 0 > TotalsumD4 = 0 > EndTotal = 0 > EndTotal2 = 0 > BarTotalWin = 0 > TotalGain = 0 > TotalLoss = 0 > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - Initializevariable END > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > > ? ? ? ? Instructions.InputMasks.Reset > > ? ? ? ? If Keyboard.GetState() = ebStateOpen Then > ? ? ? ? ? ? ? ? InstructionsEchoClients.RemoveAll > ? ? ? ? ? ? ? ? Instructions.InputMasks.Add Keyboard.CreateInputMask("{SPACE}", "", > CLng(Instructions.Duration), CLng("1"), ebEndResponseActionTerminate, > CLogical("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") > > ? ? ? ? End If > > ? ? ? ? Instructions.Run > ? ? ? ? BlockList.Run c > > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - GainOrLose BEGIN > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? if totalsum > 0 then > ? ? ? ? Final.ActiveState = "EndWin" > ? ? ? ? c.setAttrib "Endtotal", totalsum > end if > if totalsum = 0 then > ? ? ? ? Final.ActiveState = "EndNull" > ? ? ? ? c.setAttrib "EndTotal", totalsum > end if > if totalsum < 0 then > ? ? ? ? Final.ActiveState = "EndLoss" > ? ? ? ? c.setAttrib "EndTotal", totalsum > end if > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - GainOrLose END > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > > ? ? ? ? Select Case Final.ActiveState > ? ? ? ? ? ? ? ? Case "EndWin" > > ? ? ? ? ? ? ? ? ? ? ? ? Set Final_SlideText = CSlideText(Final.States.Item("EndWin").Objects > (1)) > ? ? ? ? ? ? ? ? ? ? ? ? Final_SlideText.Text = "Congratulations! You have won a total of $" > &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("Endtotal") &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "." > ? ? ? ? ? ? ? ? ? ? ? ? Set Final_SlideText = Nothing > ? ? ? ? ? ? ? ? Case "EndLoss" > > ? ? ? ? ? ? ? ? ? ? ? ? Set Final_SlideText = CSlideText(Final.States.Item > ("EndLoss").Objects(1)) > ? ? ? ? ? ? ? ? ? ? ? ? Final_SlideText.Text = "Unfortunately, you lost money! ?Your total > loss is $" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("EndTotal") &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ".\n\n\n\n" > ? ? ? ? ? ? ? ? ? ? ? ? Set Final_SlideText = Nothing > ? ? ? ? ? ? ? ? Case "EndNull" > > ? ? ? ? ? ? ? ? ? ? ? ? Set Final_SlideText = CSlideText(Final.States.Item > ("EndNull").Objects(1)) > ? ? ? ? ? ? ? ? ? ? ? ? Final_SlideText.Text = "Unfortunately, you did not win anything. > Your final total is $" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("EndTotal") &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "." > ? ? ? ? ? ? ? ? ? ? ? ? Set Final_SlideText = Nothing > ? ? ? ? End Select > > ? ? ? ? Final.Run > > ? ? ? ? Goodbye.Run > > #If RUNTIME_VERSION_MAJOR > 1 ?Or (RUNTIME_VERSION_MAJOR = 1 And > RUNTIME_VERSION_MINOR >= 2) Then > ? ? ? ? ' Log clock timing information > ? ? ? ? c.SetAttrib "Clock.Information", Clock.Information > #End If > > ? ? ? ? c.Log > End Sub > > Sub BlockProc_Run(c as Context) > ? ? ? ? DesignList.Run c > > ? ? ? ? c.Log > End Sub > > Sub TrialProc_Run(c as Context) > > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - InLineA BEGIN > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? c.setAttrib "totalsum", totalsum > c.setAttrib "TotalsumD1", TotalsumD1 > c.setAttrib "TotalsumD2", TotalsumD2 > c.setAttrib "TotalsumD3", TotalsumD3 > c.setAttrib "TotalsumD4", TotalsumD4 > c.setAttrib "TotalGain", TotalGain > c.setAttrib "TotalLoss", TotalLoss > > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - InLineA END > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > > ? ? ? ? Select Case Game.ActiveState > ? ? ? ? ? ? ? ? Case "Default" > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (1)) > ? ? ? ? ? ? ? ? ? ? ? ? Game_SlideText.Text = "Current Total:" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("totalsum") > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (2)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (3)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (4)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (5)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(6)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(7)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(8)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(9)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (10)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > ? ? ? ? End Select > > ? ? ? ? Game.InputMasks.Reset > > ? ? ? ? If Keyboard.GetState() = ebStateOpen Then > ? ? ? ? ? ? ? ? GameEchoClients.RemoveAll > ? ? ? ? ? ? ? ? Game.InputMasks.Add Keyboard.CreateInputMask("afjl", "afjl", CLng > (Game.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical > ("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") > > ? ? ? ? End If > > ? ? ? ? Game.Run > > ? ? ? ? c.SetAttrib Game.Name & ".RTTime", Game.RTTime > ? ? ? ? c.SetAttrib Game.Name & ".RT", Game.RT > ? ? ? ? c.SetAttrib Game.Name & ".RESP", Game.RESP > > ' InLine - InLineA BEGIN > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? c.setAttrib "totalsum", totalsum > c.setAttrib "TotalsumD1", TotalsumD1 > c.setAttrib "TotalsumD2", TotalsumD2 > c.setAttrib "TotalsumD3", TotalsumD3 > c.setAttrib "TotalsumD4", TotalsumD4 > c.setAttrib "TotalGain", TotalGain > c.setAttrib "TotalLoss", TotalLoss > > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - InLineA END > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > > ? ? ? ? Select Case Game.ActiveState > ? ? ? ? ? ? ? ? Case "Default" > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (1)) > ? ? ? ? ? ? ? ? ? ? ? ? Game_SlideText.Text = "Current Total:" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("totalsum") > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (2)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (3)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (4)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (5)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(6)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(7)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(8)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(9)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (10)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > ? ? ? ? End Select > > ? ? ? ? Game.InputMasks.Reset > > ? ? ? ? If Keyboard.GetState() = ebStateOpen Then > ? ? ? ? ? ? ? ? GameEchoClients.RemoveAll > ? ? ? ? ? ? ? ? Game.InputMasks.Add Keyboard.CreateInputMask("afjl", "afjl", CLng > (Game.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical > ("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") > > ? ? ? ? End If > > ? ? ? ? Game.Run > > ? ? ? ? c.SetAttrib Game.Name & ".RTTime", Game.RTTime > ? ? ? ? c.SetAttrib Game.Name & ".RT", Game.RT > ? ? ? ? c.SetAttrib Game.Name & ".RESP", Game.RESP > > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - Choose1234 BEGIN > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? If game.RESP = "a" then > ? ? ? ? FB.ActiveState = "f1" > ? ? ? ? win = c.getAttrib("varwin1") > ? ? ? ? loss = c.getAttrib("varloss1") > ? ? ? ? totalsum = totalsum + win + loss > ? ? ? ? TotalGain = TotalGain + win > ? ? ? ? TotalLoss = TotalLoss + loss > ? ? ? ? c.setAttrib "Totalsum", Totalsum > ? ? ? ? c.setAttrib "AmountWon", win > ? ? ? ? c.setAttrib "AmountLost", loss > ? ? ? ? c.setAttrib "TotalGain", TotalGain > ? ? ? ? c.setAttrib "TotalLoss", TotalLoss > ? ? ? ? c.setAttrib "DeckChoice", 1 > ? ? ? ? winD1 = c.getAttrib("varwin1") > ? ? ? ? lossD1 = c.getAttrib("varloss1") > ? ? ? ? TotalsumD1 = totalsumD1 + winD1 + lossD1 > ? ? ? ? c.setAttrib "TotalsumD1", TotalsumD1 > ? ? ? ? i = Abs(TotalGain) > ? ? ? ? y = c.GetAttrib("TotalLoss") > ? ? ? ? j = Abs(y) > > ? ? ? ? BarTotalWin = TotalGain/(i+j)*100 > ? ? ? ? c.setAttrib "BarTotalWin", BarTotalWin > ? ? ? ? If BarTotalWin = 0 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar0-100.bmp" > ? ? ? ? ElseIf BarTotalWin < 0 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar0-100.bmp" > ? ? ? ? ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar0-100.bmp" > ? ? ? ? ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar13-87.bmp" > ? ? ? ? ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar25-75.bmp" > ? ? ? ? ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar37-63.bmp" > ? ? ? ? ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar50-50.bmp" > ? ? ? ? ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar63-37.bmp" > ? ? ? ? ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar75-25.bmp" > ? ? ? ? ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar87-13.bmp" > ? ? ? ? ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar100-0.bmp" > ? ? ? ? ElseIf BarTotalWin = 100 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar100-0.bmp" > ? ? ? ? ElseIf BarTotalWin > 100 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar100-0.bmp" > ? ? ? ? End If > elseif game.RESP = "f" then > ? ? ? ? FB.ActiveState = "f2" > ? ? win = c.getAttrib("varwin2") > ? ? ? ? loss = c.getAttrib("varloss2") > ? ? ? ? totalsum = totalsum + win + loss > ? ? ? ? TotalGain = TotalGain + win > ? ? ? ? TotalLoss = TotalLoss + loss > ? ? ? ? c.setAttrib "Totalsum", Totalsum > ? ? ? ? c.setAttrib "AmountWon", win > ? ? ? ? c.setAttrib "AmountLost", loss > ? ? ? ? c.setAttrib "TotalGain", TotalGain > ? ? ? ? c.setAttrib "TotalLoss", TotalLoss > ? ? ? ? c.setAttrib "DeckChoice", 2 > ? ? ? ? winD2 = c.getAttrib("varwin2") > ? ? ? ? lossD2 = c.getAttrib("varloss2") > ? ? ? ? TotalsumD2 = totalsumD2 + winD2 + lossD2 > ? ? ? ? c.setAttrib "TotalsumD2", TotalsumD2 > ? ? ? ? i = Abs(TotalGain) > ? ? ? ? y = c.GetAttrib("TotalLoss") > ? ? ? ? j = Abs(y) > ? ? ? ? BarTotalWin = TotalGain/(i+j)*100 > ? ? ? ? 'BarTotalWin = TotalGain/(TotalGain-TotalLoss)*100 > ? ? ? ? c.setAttrib "BarTotalWin", BarTotalWin > ? ? ? ? If BarTotalWin = 0 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar0-100.bmp" > ? ? ? ? ElseIf BarTotalWin < 0 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar0-100.bmp" > ? ? ? ? ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar0-100.bmp" > ? ? ? ? ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar13-87.bmp" > ? ? ? ? ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar25-75.bmp" > ? ? ? ? ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar37-63.bmp" > ? ? ? ? ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar50-50.bmp" > ? ? ? ? ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar63-37.bmp" > ? ? ? ? ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar75-25.bmp" > ? ? ? ? ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar87-13.bmp" > ? ? ? ? ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar100-0.bmp" > ? ? ? ? ElseIf BarTotalWin = 100 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar100-0.bmp" > ? ? ? ? ElseIf BarTotalWin > 100 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar100-0.bmp" > ? ? ? ? End If > elseif game.RESP = "j" then > ? ? ? ? FB.ActiveState = "f3" > ? ? win = c.getAttrib("varwin3") > ? ? ? ? loss = c.getAttrib("varloss3") > ? ? ? ? totalsum = totalsum + win + loss > ? ? ? ? TotalGain = TotalGain + win > ? ? ? ? TotalLoss = TotalLoss + loss > ? ? ? ? c.setAttrib "Totalsum", Totalsum > ? ? ? ? c.setAttrib "AmountWon", win > ? ? ? ? c.setAttrib "AmountLost", loss > ? ? ? ? c.setAttrib "TotalGain", TotalGain > ? ? ? ? c.setAttrib "TotalLoss", TotalLoss > ? ? ? ? c.setAttrib "DeckChoice", 3 > ? ? ? ? winD3 = c.getAttrib("varwin3") > ? ? ? ? lossD3 = c.getAttrib("varloss3") > ? ? ? ? TotalsumD3 = totalsumD3 + winD3 + lossD3 > ? ? ? ? c.setAttrib "TotalsumD3", TotalsumD3 > ? ? ? ? i = Abs(TotalGain) > ? ? ? ? y = c.GetAttrib("TotalLoss") > ? ? ? ? j = Abs(y) > ? ? ? ? BarTotalWin = TotalGain/(i+j)*100 > ? ? ? ? 'BarTotalWin = TotalGain/(TotalGain-TotalLoss)*100 > ? ? ? ? c.setAttrib "BarTotalWin", BarTotalWin > ? ? ? ? If BarTotalWin = 0 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar0-100.bmp" > ? ? ? ? ElseIf BarTotalWin < 0 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar0-100.bmp" > ? ? ? ? ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar0-100.bmp" > ? ? ? ? ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar13-87.bmp" > ? ? ? ? ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar25-75.bmp" > ? ? ? ? ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar37-63.bmp" > ? ? ? ? ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar50-50.bmp" > ? ? ? ? ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar63-37.bmp" > ? ? ? ? ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar75-25.bmp" > ? ? ? ? ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar87-13.bmp" > ? ? ? ? ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar100-0.bmp" > ? ? ? ? ElseIf BarTotalWin = 100 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar100-0.bmp" > ? ? ? ? ElseIf BarTotalWin > 100 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar100-0.bmp" > ? ? ? ? End If > elseif game.RESP = "l" then > ? ? ? ? FB.ActiveState = "f4" > ? ? ? ? win = c.getAttrib("varwin4") > ? ? ? ? loss = c.getAttrib("varloss4") > ? ? ? ? totalsum = totalsum + win + loss > ? ? ? ? TotalGain = TotalGain + win > ? ? ? ? TotalLoss = TotalLoss + loss > ? ? ? ? c.setAttrib "Totalsum", Totalsum > ? ? ? ? c.setAttrib "AmountWon", win > ? ? ? ? c.setAttrib "AmountLost", loss > ? ? ? ? c.setAttrib "TotalGain", TotalGain > ? ? ? ? c.setAttrib "TotalLoss", TotalLoss > ? ? ? ? c.setAttrib "DeckChoice", 4 > ? ? ? ? winD4 = c.getAttrib("varwin4") > ? ? ? ? lossD4 = c.getAttrib("varloss4") > ? ? ? ? TotalsumD4 = totalsumD4 + winD4 + lossD4 > ? ? ? ? c.setAttrib "TotalsumD4", TotalsumD4 > ? ? ? ? i = Abs(TotalGain) > ? ? ? ? y = c.GetAttrib("TotalLoss") > ? ? ? ? j = Abs(y) > ? ? ? ? BarTotalWin = TotalGain/(i+j)*100 > ? ? ? ? 'BarTotalWin = TotalGain/(TotalGain-TotalLoss)*100 > ? ? ? ? c.setAttrib "BarTotalWin", BarTotalWin > ? ? ? ? If BarTotalWin = 0 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar0-100.bmp" > ? ? ? ? ElseIf BarTotalWin < 0 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar0-100.bmp" > ? ? ? ? ElseIf BarTotalWin > 0 AND BarTotalWin <= 6 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar0-100.bmp" > ? ? ? ? ElseIf BarTotalWin > 6 AND BarTotalWin <= 19 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar13-87.bmp" > ? ? ? ? ElseIf BarTotalWin > 19 AND BarTotalWin <= 31 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar25-75.bmp" > ? ? ? ? ElseIf BarTotalWin > 31 AND BarTotalWin <= 43 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar37-63.bmp" > ? ? ? ? ElseIf BarTotalWin > 43 AND BarTotalWin <= 56 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar50-50.bmp" > ? ? ? ? ElseIf BarTotalWin > 56 AND BarTotalWin <= 69 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar63-37.bmp" > ? ? ? ? ElseIf BarTotalWin > 69 AND BarTotalWin <= 81 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar75-25.bmp" > ? ? ? ? ElseIf BarTotalWin > 81 AND BarTotalWin <= 93 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar87-13.bmp" > ? ? ? ? ElseIf BarTotalWin > 93 AND BarTotalWin < 100 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar100-0.bmp" > ? ? ? ? ElseIf BarTotalWin = 100 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar100-0.bmp" > ? ? ? ? ElseIf BarTotalWin > 100 then > ? ? ? ? ? ? ? ? c.setAttrib "BarImage", "Bar100-0.bmp" > ? ? ? ? End If > End If > > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - Choose1234 END > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > > ? ? ? ? Select Case FB.ActiveState > ? ? ? ? ? ? ? ? Case "f1" > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(1)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(2)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideText.Text = "Previous Total: $" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("totalsum") > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(3)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideText.Text = "\nLoss:" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("varloss1") > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f1").Objects(4)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideText.Text = "Gain:" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("varwin1") > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(5)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideImage.Filename = c.GetAttrib("BarImage") > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideImage.Load > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(6)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(7)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(8)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f1").Objects(9)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > ? ? ? ? ? ? ? ? Case "f2" > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(1)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(2)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideText.Text = "Loss:" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("varloss2") > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(3)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideText.Text = "Gain:" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("varwin2") > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f2").Objects(4)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideText.Text = "Previous Total:$" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("totalsum") > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(5)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideImage.Filename = c.GetAttrib("BarImage") > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideImage.Load > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(6)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(7)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(8)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f2").Objects(9)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > ? ? ? ? ? ? ? ? Case "f3" > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(1)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideText.Text = "Loss:" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("varloss3") > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(2)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideText.Text = "Gain:" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("varwin3") > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(3)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f3").Objects(4)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideText.Text = "Previous Total:$" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("totalsum") > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(5)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideImage.Filename = c.GetAttrib("BarImage") > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideImage.Load > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(6)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(7)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(8)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f3").Objects(9)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > ? ? ? ? ? ? ? ? Case "f4" > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(1)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideText.Text = "Loss:" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("varloss4") > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(2)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideText.Text = "Gain:" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("varwin4") > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(3)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = CSlideText(FB.States.Item("f4").Objects(4)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideText.Text = "Previous Total:$" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("totalsum") > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(5)) > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideImage.Filename = c.GetAttrib("BarImage") > ? ? ? ? ? ? ? ? ? ? ? ? FB_SlideImage.Load > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(6)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(7)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(8)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = CSlideImage(FB.States.Item("f4").Objects(9)) > ? ? ? ? ? ? ? ? ? ? ? ? Set FB_SlideImage = Nothing > ? ? ? ? End Select > > ? ? ? ? FB.Run > > ? ? ? ? c.SetAttrib Game.Name & ".RTTime", Game.RTTime > ? ? ? ? c.SetAttrib Game.Name & ".RT", Game.RT > ? ? ? ? c.SetAttrib Game.Name & ".RESP", Game.RESP > > ? ? ? ? c.Log > End Sub --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 kathy.smolewska at gmail.com Tue May 26 12:33:59 2009 From: kathy.smolewska at gmail.com (KKat) Date: Tue, 26 May 2009 05:33:59 -0700 Subject: Problem selecting from decks in Gambling Task... In-Reply-To: Message-ID: Hello :) Thank you for your response. I have double- and triple-checked this and the attribute names match. I think it may have to do with how I've programmed it to find Decks B, C, D. The Decks A, B, C, D are nested under a general "Design List." Deck A appears first, at the top of the list, and seems to work fine. It's not until I press "f", "j", or "l" (i.e., the responses for selecting Decks B to D) that the program fails. Thank you for your help :) Kathy On May 25, 11:55?pm, KKat wrote: > Hello, > > I am currently working on a modified version of the Iowa Gambling Task > (or Bechara Gambling Task). I have created a nested design for the 4 > decks, hoping that this would allow the program to select values for > each deck sequentially. Deck A works but not the others. I'm not sure > what I'm doing wrong but I get the error: > Run-time Error (Line 490) > -990: Factor Error: > No such attribute "varwin2" > > I have attached the relevant section of the script below. I'm not sure > how to attach the .es file here. > > Thank you! > > Kathy > > '-------------------------------------------------------------------------- > ' Instance Declarations > '-------------------------------------------------------------------------- > Dim Display As DisplayDevice > Dim Sound As SoundDevice > Dim Keyboard As KeyboardDevice > Dim Mouse As MouseDevice > Dim SessionProc As Procedure > > Dim BlockList As List > > Dim BlockProc As Procedure > > Dim TrialProc As Procedure > > Dim Instructions As TextDisplay > Dim InstructionsEchoClients As EchoClientCollection > > Dim DesignList As List > > Dim DeckA As List > > Dim DeckB As List > > Dim DeckC As List > > Dim DeckD As List > > Dim FB As Slide > Dim FB_State As SlideState > Dim FB_SlideText As SlideText > Dim FB_SlideImage As SlideImage > > Dim Goodbye As TextDisplay > > Dim Game As Slide > Dim GameEchoClients As EchoClientCollection > Dim Game_State As SlideState > Dim Game_SlideText As SlideText > Dim Game_SlideImage As SlideImage > > Dim Final As Slide > Dim Final_State As SlideState > Dim Final_SlideText As SlideText > > '-------------------------------------------------------------------------- > ' Package Declare Script > '-------------------------------------------------------------------------- > > '-------------------------------------------------------------------------- > ' User Script > '-------------------------------------------------------------------------- > Dim totalsum As integer > Dim var As integer > Dim win As integer, loss As integer > Dim totalsumD1 As integer > Dim totalsumD2 As integer > Dim totalsumD3 As integer > Dim totalsumD4 As integer > Dim winD1 As integer, winD2 As integer, winD3 As integer, winD4 As > integer, lossD1 As integer, lossD2 As integer, lossD3 As integer, > lossD4 As integer > Dim EndTotal As integer > Dim EndTotal2 As integer > Dim DeckChoice As integer > Dim Deck1, Deck2, Deck3, Deck4 As Integer > Dim BarTotalwin As Integer > Dim TotalGain As Integer > Dim TotalLoss As Integer > Dim i As Integer, y as Integer, j as Integer > > '-------------------------------------------------------------------------- > ' Package Global Script > '-------------------------------------------------------------------------- > > '-------------------------------------------------------------------------- > ' Package Routines > '-------------------------------------------------------------------------- > > '-------------------------------------------------------------------------- > ' Implementation > '-------------------------------------------------------------------------- > Sub SessionProc_Run(c as Context) > > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - Initializevariable BEGIN > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? Totalsum = 0 > TotalsumD1 = 0 > TotalsumD2 = 0 > TotalsumD3 = 0 > TotalsumD4 = 0 > EndTotal = 0 > EndTotal2 = 0 > BarTotalWin = 0 > TotalGain = 0 > TotalLoss = 0 > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - Initializevariable END > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > > ? ? ? ? Instructions.InputMasks.Reset > > ? ? ? ? If Keyboard.GetState() = ebStateOpen Then > ? ? ? ? ? ? ? ? InstructionsEchoClients.RemoveAll > ? ? ? ? ? ? ? ? Instructions.InputMasks.Add Keyboard.CreateInputMask("{SPACE}", "", > CLng(Instructions.Duration), CLng("1"), ebEndResponseActionTerminate, > CLogical("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") > > ? ? ? ? End If > > ? ? ? ? Instructions.Run > ? ? ? ? BlockList.Run c > > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - GainOrLose BEGIN > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? if totalsum > 0 then > ? ? ? ? Final.ActiveState = "EndWin" > ? ? ? ? c.setAttrib "Endtotal", totalsum > end if > if totalsum = 0 then > ? ? ? ? Final.ActiveState = "EndNull" > ? ? ? ? c.setAttrib "EndTotal", totalsum > end if > if totalsum < 0 then > ? ? ? ? Final.ActiveState = "EndLoss" > ? ? ? ? c.setAttrib "EndTotal", totalsum > end if > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - GainOrLose END > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > > ? ? ? ? Select Case Final.ActiveState > ? ? ? ? ? ? ? ? Case "EndWin" > > ? ? ? ? ? ? ? ? ? ? ? ? Set Final_SlideText = CSlideText(Final.States.Item("EndWin").Objects > (1)) > ? ? ? ? ? ? ? ? ? ? ? ? Final_SlideText.Text = "Congratulations! You have won a total of $" > &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("Endtotal") &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "." > ? ? ? ? ? ? ? ? ? ? ? ? Set Final_SlideText = Nothing > ? ? ? ? ? ? ? ? Case "EndLoss" > > ? ? ? ? ? ? ? ? ? ? ? ? Set Final_SlideText = CSlideText(Final.States.Item > ("EndLoss").Objects(1)) > ? ? ? ? ? ? ? ? ? ? ? ? Final_SlideText.Text = "Unfortunately, you lost money! ?Your total > loss is $" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("EndTotal") &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ".\n\n\n\n" > ? ? ? ? ? ? ? ? ? ? ? ? Set Final_SlideText = Nothing > ? ? ? ? ? ? ? ? Case "EndNull" > > ? ? ? ? ? ? ? ? ? ? ? ? Set Final_SlideText = CSlideText(Final.States.Item > ("EndNull").Objects(1)) > ? ? ? ? ? ? ? ? ? ? ? ? Final_SlideText.Text = "Unfortunately, you did not win anything. > Your final total is $" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("EndTotal") &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "." > ? ? ? ? ? ? ? ? ? ? ? ? Set Final_SlideText = Nothing > ? ? ? ? End Select > > ? ? ? ? Final.Run > > ? ? ? ? Goodbye.Run > > #If RUNTIME_VERSION_MAJOR > 1 ?Or (RUNTIME_VERSION_MAJOR = 1 And > RUNTIME_VERSION_MINOR >= 2) Then > ? ? ? ? ' Log clock timing information > ? ? ? ? c.SetAttrib "Clock.Information", Clock.Information > #End If > > ? ? ? ? c.Log > End Sub > > Sub BlockProc_Run(c as Context) > ? ? ? ? DesignList.Run c > > ? ? ? ? c.Log > End Sub > > Sub TrialProc_Run(c as Context) > > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - InLineA BEGIN > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? c.setAttrib "totalsum", totalsum > c.setAttrib "TotalsumD1", TotalsumD1 > c.setAttrib "TotalsumD2", TotalsumD2 > c.setAttrib "TotalsumD3", TotalsumD3 > c.setAttrib "TotalsumD4", TotalsumD4 > c.setAttrib "TotalGain", TotalGain > c.setAttrib "TotalLoss", TotalLoss > > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - InLineA END > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > > ? ? ? ? Select Case Game.ActiveState > ? ? ? ? ? ? ? ? Case "Default" > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (1)) > ? ? ? ? ? ? ? ? ? ? ? ? Game_SlideText.Text = "Current Total:" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("totalsum") > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (2)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (3)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (4)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (5)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(6)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(7)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(8)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(9)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (10)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > ? ? ? ? End Select > > ? ? ? ? Game.InputMasks.Reset > > ? ? ? ? If Keyboard.GetState() = ebStateOpen Then > ? ? ? ? ? ? ? ? GameEchoClients.RemoveAll > ? ? ? ? ? ? ? ? Game.InputMasks.Add Keyboard.CreateInputMask("afjl", "afjl", CLng > (Game.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical > ("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") > > ? ? ? ? End If > > ? ? ? ? Game.Run > > ? ? ? ? c.SetAttrib Game.Name & ".RTTime", Game.RTTime > ? ? ? ? c.SetAttrib Game.Name & ".RT", Game.RT > ? ? ? ? c.SetAttrib Game.Name & ".RESP", Game.RESP > > ' InLine - InLineA BEGIN > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? c.setAttrib "totalsum", totalsum > c.setAttrib "TotalsumD1", TotalsumD1 > c.setAttrib "TotalsumD2", TotalsumD2 > c.setAttrib "TotalsumD3", TotalsumD3 > c.setAttrib "TotalsumD4", TotalsumD4 > c.setAttrib "TotalGain", TotalGain > c.setAttrib "TotalLoss", TotalLoss > > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > ? ? ? ? ' InLine - InLineA END > ? ? ? ? ''''''''''''''''''''''''''''''''''''''''''''' > > ? ? ? ? Select Case Game.ActiveState > ? ? ? ? ? ? ? ? Case "Default" > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (1)) > ? ? ? ? ? ? ? ? ? ? ? ? Game_SlideText.Text = "Current Total:" &_ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? c.GetAttrib("totalsum") > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (2)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (3)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (4)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (5)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(6)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(7)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(8)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = CSlideImage(Game.States.Item > ("Default").Objects(9)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideImage = Nothing > > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = CSlideText(Game.States.Item("Default").Objects > (10)) > ? ? ? ? ? ? ? ? ? ? ? ? Set Game_SlideText = Nothing > ? ? ? ? End Select > > ? ? ? ? Game.InputMasks.Reset > > ? ? ? ? If Keyboard.GetState() = ebStateOpen Then > ? ? ? ? ? ? ? ? GameEchoClients.RemoveAll > ? ? ? ? ? ? ? ? Game.InputMasks.Add Keyboard.CreateInputMask("afjl", "afjl", CLng > (Game.Duration), CLng("1"), ebEndResponseActionTerminate, CLogical > ("Yes"), "", "", "ResponseMode:All ProcessBackspace:Yes") > > ? ? ? ? End If > > ? ? ? ? Game.Run > > ? ? ? ? c.SetAttrib Game.Name & > ... > > read more ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 rochelle.hudson at gmail.com Tue May 26 18:06:14 2009 From: rochelle.hudson at gmail.com (Rochelle) Date: Tue, 26 May 2009 11:06:14 -0700 Subject: Keeping face stimulus while deleting text instructions. Message-ID: I'm working on a project to study the responses of Capgras' patients to familiar and unfamiliar faces. We ask the patients an identical, simple question on each slide, and thought it would be nice to give the patients some feedback after they entered a response (either "1" or "2"). Since the question appears on each slide, I am trying to make the text disappear after the patient responds, but keep the picture stimulus on screen. Each face, then, would be on screen for a total of six seconds, but the question would disappear after the patients entered a response. I've barely programmed before, but explored the E-Basic help and came up with something like this: If FaceText.RT < 6000 Then FaceNoText.Duration = 6000 - FaceText.RT Else FaceText.Duration = 6000 End If I put this between two slides, one with the text instructions and picture, and one with only the picture. This (seems like it?) would toggle between the two slides but keep the overall time at 6 seconds. Obviously, however, this is not working. Does anyone have an idea where I went wrong/what I could try next? Your help is much appreciated! Overall (on the GUI), the duration of both slides are set to 6000, mode to Event, end action (on the first slide) to Terminate. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 justinetimmins at yahoo.com Tue May 26 19:31:41 2009 From: justinetimmins at yahoo.com (justine) Date: Tue, 26 May 2009 12:31:41 -0700 Subject: Incorrect Triggers Codes Message-ID: I am using E-Prime to run an ERP experiment in conjunction with Neuroscan. Currently, Neuroscan is registering incorrect trigger codes for two events. In E-prime I have triggers for the following events in 4 conditions: NP1 (11, 22, 33, 44) Verb (1, 2, 3, 4) NP2 (111, 222, 333, 444) Right now, 333 and 444 are showing up in Neuroscan on the EEG as 118 and 777 respectively. I have no idea why. I was wondering if it was because I copied and pasted the column codes into E-Prime from Excel, and those cells in Excel contained a formula (i.e., I had IF formulas for the respective codes to avoid errors). Has anyone experienced anything similar? Many thanks, Justine VanDyke Ph.D. Candidate University of South Florida --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 justinetimmins at yahoo.com Tue May 26 19:33:46 2009 From: justinetimmins at yahoo.com (justine) Date: Tue, 26 May 2009 12:33:46 -0700 Subject: Incorrect Trigger Codes Message-ID: I am using E-Prime to run an ERP experiment in conjunction with Neuroscan. Currently, Neuroscan is registering incorrect trigger codes for two events. In E-prime I have triggers for the following events in 4 conditions: NP1 (11, 22, 33, 44) Verb (1, 2, 3, 4) NP2 (111, 222, 333, 444) Right now, 333 and 444 are showing up in Neuroscan on the EEG as 118 and 777 respectively. I have no idea why. I was wondering if it was because I copied and pasted the column codes into E-Prime from Excel, and those cells in Excel contained a formula (i.e., I had IF formulas for the respective codes to avoid errors). Has anyone experienced anything similar? Many thanks, Justine VanDyke, University of South Florida --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 pquain at une.edu.au Tue May 26 23:31:52 2009 From: pquain at une.edu.au (Peter Quain) Date: Wed, 27 May 2009 09:31:52 +1000 Subject: Incorrect Trigger Codes In-Reply-To: <1ba2ab9e-1deb-4708-8d38-efe6f0961e9a@r3g2000vbp.googlegrou ps.com> Message-ID: To start with, you can't send value of more than decimal 255 (8 bits, 1 byte) using parallel port, and i think Neuroscan eq is setup to receive pulse values up to 255 (an 8 bit buffer). So when a parallel port device is added to the context, e-prime writeport command (and the send pulse on object onset function) must be geared to parse values (decimal or Hex) into a byte to send to the appropriate pins. The 'odd' values 118 and 777 appearing on the trigger channel probably result from e-prime trying to build a byte from 9 bits, but i can't see how a value of dec 777 can be sent at all, or represented in the neuroscan event channel. Anyway, maybe change event codes within range 0-255 will fix it. At 05:33 AM 27/05/2009, you wrote: >I am using E-Prime to run an ERP experiment in conjunction with >Neuroscan. Currently, Neuroscan is registering incorrect trigger codes >for two events. > >In E-prime I have triggers for the following events in 4 conditions: > >NP1 (11, 22, 33, 44) > >Verb (1, 2, 3, 4) > >NP2 (111, 222, 333, 444) > >Right now, 333 and 444 are showing up in Neuroscan on the EEG as 118 >and 777 respectively. I have no idea why. I was wondering if it was >because I copied and pasted the column codes into E-Prime from Excel, >and those cells in Excel contained a formula (i.e., I had IF formulas >for the respective codes to avoid errors). > >Has anyone experienced anything similar? > >Many thanks, Justine VanDyke, >University of South Florida > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 rochelle.hudson at gmail.com Wed May 27 01:15:55 2009 From: rochelle.hudson at gmail.com (Rochelle) Date: Tue, 26 May 2009 18:15:55 -0700 Subject: Keeping face stimulus while deleting text instructions. In-Reply-To: <39b00f40-86b4-4fe7-915e-9faf26a90313@s20g2000vbp.googlegroups.com> Message-ID: Looking through other E-Prime help forums, I found this (which may be useful to anyone in the future on /this/ forum with the same question): http://support.pstnet.com/forum/Topic1988-12-1.aspx On May 26, 2:06?pm, Rochelle wrote: > I'm working on a project to study the responses of Capgras' patients > to familiar and unfamiliar faces. We ask the patients an identical, > simple question on each slide, and thought it would be nice to give > the patients some feedback after they entered a response (either "1" > or "2"). Since the question appears on each slide, I am trying to make > the text disappear after the patient responds, but keep the picture > stimulus on screen. > > Each face, then, would be on screen for a total of six seconds, but > the question would disappear after the patients entered a response. > > I've barely programmed before, but explored the E-Basic help and came > up with something like this: > > If FaceText.RT < 6000 > > Then > > ?FaceNoText.Duration = 6000 - FaceText.RT > > Else > > ?FaceText.Duration = 6000 > > End If > > I put this between two slides, one with the text instructions and > picture, and one with only the picture. This (seems like it?) would > toggle between the two slides but keep the overall time at 6 seconds. > Obviously, however, this is not working. Does anyone have an idea > where I went wrong/what I could try next? Your help is much > appreciated! > > Overall (on the GUI), the duration of both slides are set to 6000, > mode to Event, end action (on the first slide) to Terminate. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 mlense at gmail.com Thu May 28 03:08:59 2009 From: mlense at gmail.com (M) Date: Wed, 27 May 2009 20:08:59 -0700 Subject: next trial label? Message-ID: Hello, I'm working on a go/no-go experiment, and I'd like to be able to label the trials that come immediately after the no-go trials (the trials appear randomly). Does anyone have any suggestions on how to write code to add an attribute that labels the subsequent trial (and not the actual no-go trial)? I have not had much luck with anything I've tried so far. Thanks so much! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 meg.andrejczuk at gmail.com Thu May 28 13:47:28 2009 From: meg.andrejczuk at gmail.com (Megan Andrejczuk) Date: Thu, 28 May 2009 09:47:28 -0400 Subject: data collection In-Reply-To: <7d497d1d0905181153w1132fc99pf18a31bf8f6f4ab@mail.gmail.com> Message-ID: Hi all! I have tested the Voice Key and it seems to trip before I speak into the microphone. I am assuming this has to do with the sensitivity but I am not sure how to modify this? The gage on the back of the box seems near impossible to turn. Are there any suggestions? Also, I would like to set up a collection of Voice onset at the presentation of a picture, basically picture naming. I am not sure how this is done in the procedure to include the voice key. I have the experiment set up to display the pictures. But I do not know how to set up the procedure to collect the voice onset. I have made several attempts and have been unsuccessful thus far. I am assuming I have to have a list somehow and include the "6" as the allowable input? Can anyone help or point me in the direction of a tutorial. At this point, I am frustrated and do not have a great sense of e-prime. On Mon, May 18, 2009 at 2:53 PM, Megan Andrejczuk wrote: > Thanks David! > > > On Mon, May 18, 2009 at 2:49 PM, David McFarlane wrote: > >> >> Megan, >> >> Use of the voice key is described on pages 11-12 and 15 of the manual >> that came with the SRBox. If you do not have the manual then you >> really have to contact PST and get one from them ASAP. Also, as >> stated in the manual, the voice key is already set up to work with >> the Utiilites test program that came with the SRBox (also >> downloadable from PST). If your voice key does not work with the >> Utilities program then you have some troubleshooting to do. >> >> -- David McFarlane, Professional Faultfinder >> >> >> >Thanks David! But that is where my confusion comes in. I am not sure >> >how to incorporate the voice key response. I have the experiment >> >set-up so the pictures appear but don't know how to collect the >> >onset time using the voice key. I am extremely new to e-prime so >> >this may be an elementary question. >> > >> >Thanks, >> > >> >Megan >> > >> >On Mon, May 18, 2009 at 2:28 PM, David McFarlane >> ><mcfarla9 at msu.edu> wrote: >> > >> >Megan, >> > >> >As a general E-Prime programming strategy, I would start by >> >forgetting about the SoundIn, and just make a simple program that >> >shows the pictures and gets the response time using the voice key >> >response. Then I would make a second simplified program that just >> >shows pictures and records voice responses with SoundIn, without >> >worrying about the response time. Then I would take everything I >> >learned from those two simplified programs and combine that into one >> >program that gets response times from the voice key plus records the >> >responses. >> > >> >Good luck, >> >-- David McFarlane, Professional Faultfinder >> > >> > >> > >I have tested my Serial Response Box and everything seems to be >> > >functioning properly. I am confused how to add the timing onset to my >> > >experiment. It is a picture naming task, so an image is displayed for >> > >two seconds and the participant is directed to name the object as >> > >quickly as they can. I would like to start timing at voice onset, in >> > >order to know how quickyl they responded. I added the SRBox and then >> > >put a SoundIn in the Procedure but I think it is only recording the >> > >verbalization. How do I have the SRBox only record the onset time? >> > >Also, where will the data be logged? >> > > >> > >Thanks, >> > > >> > >Megan >> > >> >> >> >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 liwenna at gmail.com Thu May 28 15:11:40 2009 From: liwenna at gmail.com (liwenna) Date: Thu, 28 May 2009 08:11:40 -0700 Subject: next trial label? In-Reply-To: <2ac3c16f-94a2-4128-97b8-fb9d6c4cc0e1@c36g2000yqn.googlegroups.com> Message-ID: mmm there's bound to be a better way but first thing that comes to mind here... declare a global variable on the user tab of the script, say something like... 'dim nogolabeler as integer'. Then at the end of a trial add a piece of inline that reads the trialtype (from an attribute somewhere in your lists) and toggles the nogolabeler accordingly. if c.getattrib ("trialtype" ) = 0 then nogolabeler = 0 if c.getattrib ("trialtype") = 1 then nogolabeler = 1 then at the beginning of the trialproc add another inline that reads the nogolabeler and writes an attribute if it is set to 1 (by the previous described inline at the end of the previous trial). if nogolabeler = 0 then c.setattrib "prevtrialwasnogo", 0 if nogolabeler = 1 then c.setattrib "prevtrialwasnogo", 1 I didn't try these lines in e-prime so not sure if they're actually working, but it gives you an idea and it might actually do the thing you need. Good luck! liwenna On May 28, 5:08 am, M wrote: > Hello, > I'm working on a go/no-go experiment, and I'd like to be able to label > the trials that come immediately after the no-go trials (the trials > appear randomly). > Does anyone have any suggestions on how to write code to add an > attribute that labels the subsequent trial (and not the actual no-go > trial)? > I have not had much luck with anything I've tried so far. > Thanks so much! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 adamosth at gmail.com Thu May 28 18:42:46 2009 From: adamosth at gmail.com (Adam Osth) Date: Thu, 28 May 2009 14:42:46 -0400 Subject: quick question about colon notation Message-ID: This is a dumb question, but when using colon notation in attribute referencing, I understand you can use "List:0" to access the first item on a list. Does this mean "List:1" accesses the 2nd, "List:3" accesses the third, and so forth? I'm having some problems with referencing correct values, and I'm concerned whether this might be what's responsible (I'd test it myself right now but I'm away from my computer). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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 mlense at gmail.com Thu May 28 21:11:34 2009 From: mlense at gmail.com (M) Date: Thu, 28 May 2009 14:11:34 -0700 Subject: next trial label? In-Reply-To: <63d1f696-7f36-46ce-849d-2e4a85cd2ac7@h28g2000yqd.googlegroups.com> Message-ID: thanks so much! that worked really well! much appreciated! On May 28, 10:11?am, liwenna wrote: > mmm there's bound to be a better way but first thing that comes to > mind here... > > declare a global variable on the user tab of the script, say something > like... 'dim nogolabeler as integer'. > Then at the end of a trial add a piece of inline that reads the > trialtype (from an attribute somewhere in your lists) and toggles the > nogolabeler accordingly. > > ?if c.getattrib ("trialtype" ) = 0 then nogolabeler = 0 > ?if c.getattrib ("trialtype") = 1 then nogolabeler = 1 > > then at the beginning of the trialproc add another inline that reads > the nogolabeler and writes an attribute if it is set to 1 (by the > previous described inline at the end of the previous trial). > > if nogolabeler = 0 then c.setattrib "prevtrialwasnogo", 0 > if nogolabeler = 1 then c.setattrib "prevtrialwasnogo", 1 > > I didn't try these lines in e-prime so not sure if they're actually > working, but it gives you an idea and it might actually do the thing > you need. > > Good luck! > > liwenna > > On May 28, 5:08 am, M wrote: > > > > > Hello, > > I'm working on a go/no-go experiment, and I'd like to be able to label > > the trials that come immediately after the no-go trials (the trials > > appear randomly). > > Does anyone have any suggestions on how to write code to add an > > attribute that labels the subsequent trial (and not the actual no-go > > trial)? > > I have not had much luck with anything I've tried so far. > > Thanks so much!- 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 adamosth at gmail.com Thu May 28 21:17:56 2009 From: adamosth at gmail.com (Adam Osth) Date: Thu, 28 May 2009 17:17:56 -0400 Subject: quick question about colon notation In-Reply-To: <7ef748980905281142x7367f19fua8185267ebb744b@mail.gmail.com> Message-ID: Scratch that question - not only did I figure it out but that wasn't even my problem with the program. On Thu, May 28, 2009 at 2:42 PM, Adam Osth wrote: > This is a dumb question, but when using colon notation in attribute > referencing, I understand you can use "List:0" to access the first item on a > list. Does this mean "List:1" accesses the 2nd, "List:3" accesses the third, > and so forth? I'm having some problems with referencing correct values, and > I'm concerned whether this might be what's responsible (I'd test it myself > right now but I'm away from my computer). > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com To unsubscribe from this group, send 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: