From emidvf at gmail.com Tue Oct 1 11:36:09 2013 From: emidvf at gmail.com (=?UTF-8?Q?Emiliano_D=C3=ADez?=) Date: Tue, 1 Oct 2013 04:36:09 -0700 Subject: assign a preloaded soundbuffer to the soundbuffer of a SoundOut object? Message-ID: Hi all, I need to assign a soundbuffer that has been preloaded into memory to the soundbuffer of a SoundOut object in a procedure. Can this be done??? The point is that my procedure needs to play a video playing and at the same time to present several sounds (sentences in this case) and record reaction times to these sounds. If I use mybuffer.load while the video is playing a small pause of the video can be seen. So my solution was to make an array of soundbuffers and play them with inline code. But in this way I lost the possibility to record the key responses in the way I need (need to know if the keypress, that starts with the onset of each sound, has been ocurred before or after the sound ends). I have found a way to do this, but need to have a soundobject and a wait object. So the question: is it possible to assign a preloaded soundbuffer to the sound buffer of a soundobject? Thanks all -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/24bc73ee-9f5e-4a87-af09-cdb2369df233%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Oct 1 13:32:16 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 1 Oct 2013 09:32:16 -0400 Subject: assign a preloaded soundbuffer to the soundbuffer of a SoundOut object? In-Reply-To: <24bc73ee-9f5e-4a87-af09-cdb2369df233@googlegroups.com> Message-ID: I do not have an answer to your question as posed, but I would like to pose the following. What version of E-Prime do you use? If you use EP2.0.10.x or later, try setting GeneratePreRun on your Procedure to TopOfProcedure, then use a separate SoundOut object for each of your sounds during the movie. With TopOfProcedure, all the SoundBuffer.Load operations will take place at the beginning of the Procedure, not during your movie playback, and perhaps that would solve your problem. It would also eliminate the need for messy inline code. And if you do not use EP2.0.10.x, well, maybe this is your reason to upgrade. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/1/2013 07:36 AM Tuesday, Emiliano Díez wrote: >I need to assign a soundbuffer that has been >preloaded into memory to the soundbuffer of a >SoundOut object in a procedure. Can this be done??? > >The point is that my procedure needs to play a >video playing and at the same time to present >several sounds (sentences in this case) and >record reaction times to these sounds. If I use >mybuffer.load while the video is playing a small >pause of the video can be seen. So my solution >was to make an array of soundbuffers and play >them with inline code. But in this way I lost >the possibility to record the key responses in >the way I need (need to know if the keypress, >that starts with the onset of each sound, has >been ocurred before or after the sound ends). I >have found a way to do this, but need to have >a soundobject and a wait object. So the >question: is it possible to assign a preloaded >soundbuffer to the sound buffer of a soundobject? > >Thanks all -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/524acf07.3306320a.420c.1699SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From deinskilli at gmail.com Thu Oct 3 16:01:34 2013 From: deinskilli at gmail.com (Deiniol Skillicorn) Date: Thu, 3 Oct 2013 09:01:34 -0700 Subject: Specify key press before proceding to the next trial Message-ID: Hello fellow eprimers, I have a task where participants are presented with cues and they must rate them on a 1-9 scale. They then get feedback. I want participants to enter a digit and then move onto the next slide by pressing another button. Also, I only want them to be able to move on if they have entered a digit from 1 to 9. I am using the echoclient (on the Stage1word slide) so that participants can see the digit they are entering. I have read around and the mouse seems to be a good method to move onto the next slide. I have set up a text box at the bottom of the stage1word slide to act as a button and called the text box "result" Participants are able to enter a digit and proceed to the next trials unsing the mouse. However, they can also proceed to the next trial by NOT entering a reponse or by entering a response outside the specified range (i.e. 1-9). Here is the inline code I am using. I think I need to specifiy an if..then rule for numebrs thta have been logged but I have no idea how. Any suggestions would be appreciated Deiniol 'Designate "theState" as the Default Slide State, which is the 'current, ActiveState on the Slide object "Stimulus" Dim theState as SlideState Set theState = Stage1Word.States("Default") Dim strHit As String Dim theMouseResponseData As MouseResponseData Dim nResponseCount As Long Do While Stage1Word.InputMasks.IsPending() 'If the counts do not match, there are responses to process. If nResponseCount <> Stage1Word.InputMasks(2).Responses.Count Then nResponseCount = nResponseCount + 1 'Get the mouse response Set theMouseResponseData = CMouseResponseData(Stage1Word.InputMasks(2).Responses(nResponseCount)) 'Determine string name of SlideImage or SlideText object at 'mouse click coordinates. Assign that value to strHit strHit = theState.HitTest(theMouseResponseData.CursorX, theMouseResponseData.CursorY) 'Compare string name where mouse click occurred to CorrectAnswer 'attribute on each trial, and score response 'NOTE: This comparison is case sensitive If strHit = "Result" Then 'Goto label2 Stage1Word.InputMasks(1).Timeout Stage1Word.InputMasks(2).Timeout End If End If 'Give some time back (required) Sleep 10 DoEvents Loop -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/04212348-6dac-4e50-b890-6f60a0301a53%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu Oct 3 17:40:54 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 3 Oct 2013 13:40:54 -0400 Subject: Specify key press before proceding to the next trial In-Reply-To: <04212348-6dac-4e50-b890-6f60a0301a53@googlegroups.com> Message-ID: Just off the top of my head... First, to limit keyboard responses to 1-9, just set Allowable to "123456789", or to "{NUMBER}", for your keyboard input mask -- see the tutorial in the Getting Started Guide that came with E-Prime (and while you are at it, work through *all* the tutorials in the User's Guide), and see the "{key} nomenclature" topic in the E-Basic Help facility. Then for your loop exit, in place of 'If strHit = "Result" Then' you could use something like If ((Stage1Word.InputMasks(1).RESP <> "") and (strHit = "Result")) Then this assumes that InputMask(1) is your keyboard input mask, and InputMask(2) is your mouse input mask, which from your code seems to apply here. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/3/2013 12:01 PM Thursday, Deiniol Skillicorn wrote: >Hello fellow eprimers, >I have a task where participants are presented with cues and they >must rate them on a 1-9 scale. They then get feedback. > > >I want participants to enter a digit and then move onto the next >slide by pressing another button. Also, I only want them to be able >to move on if they have entered a digit from 1 to 9. >I am using the echoclient (on the Stage1word slide) so that >participants can see the digit they are entering. I have read around >and the mouse seems to be a good method to move onto the next slide. >I have set up a text box at the bottom of the stage1word slide to >act as a button and called the text box "result" >Participants are able to enter a digit and proceed to the next >trials unsing the mouse. However, they can also proceed to the next >trial by NOT entering a reponse or by entering a response outside >the specified range (i.e. 1-9). > Here is the inline code I am using. I think I need to specifiy an > if..then rule for numebrs thta have been logged but I have no idea how. >Any suggestions would be appreciated > >Deiniol > > 'Designate "theState" as the Default Slide State, which is the > 'current, ActiveState on the Slide object "Stimulus" > Dim theState as SlideState > Set theState = Stage1Word.States("Default") > Dim strHit As String > Dim theMouseResponseData As MouseResponseData > Dim nResponseCount As Long > >Do While Stage1Word.InputMasks.IsPending() > 'If the counts do not match, there are responses to process. > If nResponseCount <> Stage1Word.InputMasks(2).Responses.Count Then > nResponseCount = nResponseCount + 1 > 'Get the mouse response > Set theMouseResponseData = > CMouseResponseData(Stage1Word.InputMasks(2).Responses(nResponseCount)) > 'Determine string name of SlideImage or SlideText object at > 'mouse click coordinates. Assign that value to strHit > strHit = theState.HitTest(theMouseResponseData.CursorX, > theMouseResponseData.CursorY) > 'Compare string name where mouse click occurred to CorrectAnswer > 'attribute on each trial, and score response > 'NOTE: This comparison is case sensitive > If strHit = "Result" Then > 'Goto label2 > Stage1Word.InputMasks(1).Timeout > Stage1Word.InputMasks(2).Timeout > End If > End If > > > > 'Give some time back (required) >Sleep 10 >DoEvents >Loop -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/524dac7a.3306320a.0eb7.09d5SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From deinskilli at gmail.com Fri Oct 4 10:26:53 2013 From: deinskilli at gmail.com (Deiniol Skillicorn) Date: Fri, 4 Oct 2013 03:26:53 -0700 Subject: Specify key press before proceding to the next trial In-Reply-To: <04212348-6dac-4e50-b890-6f60a0301a53@googlegroups.com> Message-ID: David McFarlane, Thank you for a quck response. I have read many of your eprime google group reponses. I have specified key presses using the follwign code If ((Stage1Word.InputMasks(1).RESP < "9")) or ((Stage1Word.InputMasks(1).RESP = "9")) and (strHit = "Result") Then 'Goto label2 Stage1Word.InputMasks(1).Timeout Stage1Word.InputMasks(2).Timeout End If This works! However, it will still allow multiple digit responses (e.g. 55 or 76 or 879). I have tried ((Stage1Word.InputMasks(1).RESP < "10")) but this only allows responses of 1. Presumably it doesn't recognise the second digit 0. Any hints would be appreciated Regards Deiniol Deiniol -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/a16dcf51-205c-4c0f-903d-8684a9136a12%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Fri Oct 4 14:08:59 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 4 Oct 2013 10:08:59 -0400 Subject: Specify key press before proceding to the next trial In-Reply-To: Message-ID: Deiniol, How about If ( (CInt(Stage1Word.InputMasks(1).RESP) <= 9) and _ (strHit = "Result") ) Then ... ? Explanation: Convert RESP to an integer first so you do a numeric comparison instead of a string comparison (and use the number 9 instead of the string "9"). And while you are at it, use a single "<=" comparison operator instead of separate "<" and "=" operators. Alternatively, you might limit the *length* of the response to one character (which means, if Allowable allows only numberic characters, limiting to one digit). Thus, If ( (Len(Stage1Word.InputMasks(1).RESP) = 1) and _ (strHit = "Result") ) Then ... So there's more than one way to skin this cat. Hope this helps, I may have missed some complication, but I'm sure you will come up with something. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/4/2013 06:26 AM Friday, Deiniol Skillicorn wrote: >David McFarlane, > >Thank you for a quck response. I have read many of your eprime >google group reponses. > >I have specified key presses using the follwign code > >If ((Stage1Word.InputMasks(1).RESP < "9")) or >((Stage1Word.InputMasks(1).RESP = "9")) and (strHit = "Result") Then >'Goto label2 > Stage1Word.InputMasks(1).Timeout > Stage1Word.InputMasks(2).Timeout > End If > >This works! However, it will still allow multiple digit responses >(e.g. 55 or 76 or 879). I have >tried ((Stage1Word.InputMasks(1).RESP < "10")) but this only >allows responses of 1. Presumably it doesn't recognise the second digit 0. > >Any hints would be appreciated > >Regards > >Deiniol -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/524ecbfe.48e1320a.1374.42a4SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From emidvf at gmail.com Fri Oct 4 16:04:58 2013 From: emidvf at gmail.com (=?UTF-8?Q?Emiliano_D=C3=ADez?=) Date: Fri, 4 Oct 2013 09:04:58 -0700 Subject: assign a preloaded soundbuffer to the soundbuffer of a SoundOut object? In-Reply-To: <524acf07.3306320a.420c.1699SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks David I am using EP2.0.10.242. Your solution sure will work for the "video/sound part" of the problem. But also I have to record reaction time to the sounds and to know if that reaction times occur before or after the end each sound. That is the point where I needed the sound object. But think I have found a solution using a Do While-Loop and a wait object of 0 duration just after the inline that plays the cached sound. Also, I prefer not to have several objects for the same funcionality if not totally necessary (in this case I prefer messy inline code). Thanks again for your suggestion El martes, 1 de octubre de 2013 15:32:16 UTC+2, McFarlane, David escribió: > > I do not have an answer to your question as > posed, but I would like to pose the > following. What version of E-Prime do you > use? If you use EP2.0.10.x or later, try setting > GeneratePreRun on your Procedure to > TopOfProcedure, then use a separate SoundOut > object for each of your sounds during the > movie. With TopOfProcedure, all the > SoundBuffer.Load operations will take place at > the beginning of the Procedure, not during your > movie playback, and perhaps that would solve your > problem. It would also eliminate the need for messy inline code. > > And if you do not use EP2.0.10.x, well, maybe this is your reason to > upgrade. > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) > > /---- > Stock reminder: 1) I do not work for PST. 2) > PST's trained staff take any and all questions at > http://support.pstnet.com/e%2Dprime/support/login.asp > , and they strive to respond to all requests in > 24-48 hours, so make full use of it. 3) In > addition, PST offers several instructional videos > on their YouTube channel > (http://www.youtube.com/user/PSTNET ). 4) If you > do get an answer from PST staff, please extend > the courtesy of posting their reply back here for the sake of others. > \---- > > > At 10/1/2013 07:36 AM Tuesday, Emiliano Díez wrote: > >I need to assign a soundbuffer that has been > >preloaded into memory to the soundbuffer of a > >SoundOut object in a procedure. Can this be done??? > > > >The point is that my procedure needs to play a > >video playing and at the same time to present > >several sounds (sentences in this case) and > >record reaction times to these sounds. If I use > >mybuffer.load while the video is playing a small > >pause of the video can be seen. So my solution > >was to make an array of soundbuffers and play > >them with inline code. But in this way I lost > >the possibility to record the key responses in > >the way I need (need to know if the keypress, > >that starts with the onset of each sound, has > >been ocurred before or after the sound ends). I > >have found a way to do this, but need to have > >a soundobject and a wait object. So the > >question: is it possible to assign a preloaded > >soundbuffer to the sound buffer of a soundobject? > > > >Thanks all > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/2e651971-5013-41e4-823b-84ec8a35dc80%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tudor3 at gmail.com Mon Oct 7 20:27:26 2013 From: tudor3 at gmail.com (tudor) Date: Mon, 7 Oct 2013 13:27:26 -0700 Subject: Removing within-subject & within-session outliers in EdataAid Message-ID: Hi everyone, I have a merged .emrg2 (EdataAid) file containing reaction time data from several subjects, across several sessions done by each. I would like to eliminate RT outliers within each subject individually, and if possible also within session rather than across all sessions of a single subject. By 'outlier' I would mean RTs that are more than 2.5 standard deviations away from the mean, although if that's hard to do, it would also be fine to just eliminate all RTs greater than a certain fixed value (e.g. 3,000 ms). I have not found a way to do this with the Analyze window, and because I have many such merged files, I would prefer to not have to do this 'the hard way', i.e. by exporting all the data to Excel and doing the outlier-removal and the averaging (which is otherwise done easily in Analyze) over there. Can anyone help? Many thanks in advance! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/6b5309f5-9325-4f07-b77f-082815f39ea7%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon Oct 7 23:10:38 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 7 Oct 2013 19:10:38 -0400 Subject: Removing within-subject & within-session outliers in EdataAid In-Reply-To: <6b5309f5-9325-4f07-b77f-082815f39ea7@googlegroups.com> Message-ID: To eliminate all RTs greater than a certain fixed value, just use a filter in E-DataAid, or in the Analyze tool of E-DataAid -- I am pretty sure that this is covered in the tutorial Guides that came with E-Prime (and I also cover this in my online course). If you want custom filters for individual subjects or for individual sessions of each subject, or if you want the filter criterion to be derived from some computation based on the data, then I think you will have to use another tool, as far as I know those sorts of analyses go beyond what E-DataAid can do and what it is meant to do. As you already know, E-DataAid will easily reveal mean RTs for each subject, or for each session of each subject, but from there you have to explort data and do the rest in Excel, SPSS, Systat, or what have you. I do like E-DataAid and its Analyze feature a lot for initial data preparation (e.g., filtering rows and selecting columns to export) and for initial exploration of descriptive statistics, and I devote one lesson in my online course to covering these uses, but after that I would export the data for further analysis (e.g., hypothesis testing, ANOVA, etc.). Just my $.02, curious to hear from others. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/7/2013 04:27 PM Monday, tudor wrote: >I have a merged .emrg2 (EdataAid) file containing reaction time data >from several subjects, across several sessions done by each. I would >like to eliminate RT outliers within each subject individually, and >if possible also within session rather than across all sessions of a >single subject. > >By 'outlier' I would mean RTs that are more than 2.5 standard >deviations away from the mean, although if that's hard to do, it >would also be fine to just eliminate all RTs greater than a certain >fixed value (e.g. 3,000 ms). > >I have not found a way to do this with the Analyze window, and >because I have many such merged files, I would prefer to not have to >do this 'the hard way', i.e. by exporting all the data to Excel and >doing the outlier-removal and the averaging (which is otherwise done >easily in Analyze) over there. > >Can anyone help? Many thanks in advance! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52533f75.2e43320a.559f.06deSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From btomoschuk at gmail.com Tue Oct 8 13:32:05 2013 From: btomoschuk at gmail.com (Brendan T) Date: Tue, 8 Oct 2013 06:32:05 -0700 Subject: Centering by Word in Canvas Message-ID: Hello all, I have a small problem in my experiment design I was hoping you guys could shed some light on. My project uses the canvas function to display both words and circles around the word (big enough to be in the periphery) but the problem is that canvas doesn't allow you to align words to the center. It produces words on the canvas as such: cnvs.Text Display.XRes/2, Displaly.YRes/2, c. getattrib("WordList1") 'This pulls a word from wordList1 and puts it in the center of the screen such that the first letter is centered at XRes/2, YRes/2 This centers the image based on the number of pixels on the screen, which is fine (and necessary) for my circle but aligns the words such that the first letter of the word is at the center. Words can be easily aligned in the display feature, but canvas is necessary for my other stimuli. Does anybody know how this might be fixed such that the word is centered in canvas, regardless of word length? Is it possible to overlay a regular display with canvas? Or perhaps a way to factor word length in and subtract half of it from XRes/2? I appreciate any feedback and I hope the issue is clear. Thank you!! Brendan -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/15c47ed7-1d3f-4f5b-9fab-4ea08e6eebe7%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Oct 8 14:32:35 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 8 Oct 2013 10:32:35 -0400 Subject: Centering by Word in Canvas In-Reply-To: <15c47ed7-1d3f-4f5b-9fab-4ea08e6eebe7@googlegroups.com> Message-ID: Brendan, Look at the Canvas.CalculateTextSize topic in the E-Basic Help facility. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/8/2013 09:32 AM Tuesday, Brendan T wrote: >I have a small problem in my experiment design I was hoping you guys >could shed some light on. > >My project uses the canvas function to display both words and >circles around the word (big enough to be in the periphery) but the >problem is that canvas doesn't allow you to align words to the >center. It produces words on the canvas as such: > >cnvs.Text Display.XRes/2, Displaly.YRes/2, c. getattrib("WordList1") >'This pulls a word from wordList1 and puts it in the center of the >screen such that the first letter is centered at XRes/2, YRes/2 > > >This centers the image based on the number of pixels on the screen, >which is fine (and necessary) for my circle but aligns the words >such that the first letter of the word is at the center. Words can >be easily aligned in the display feature, but canvas is necessary >for my other stimuli. > >Does anybody know how this might be fixed such that the word is >centered in canvas, regardless of word length? Is it possible to >overlay a regular display with canvas? Or perhaps a way to factor >word length in and subtract half of it from XRes/2? > >I appreciate any feedback and I hope the issue is clear. > >Thank you!! >Brendan -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52541789.6801320a.10b1.184cSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From olayak at gmail.com Tue Oct 8 19:11:10 2013 From: olayak at gmail.com (olayak) Date: Tue, 8 Oct 2013 12:11:10 -0700 Subject: no go for incorrect response? Message-ID: Hi, I'm new to eprime and I'm having a little difficulty. I am trying to set it a training procedure so that the subject cannot move forward to the next stimulus unless they press the correct response. So, for example, if the correct response is "S" and they press "L", the same stimulus will still be up until they finally press "S". I'm clearly doing something wrong because in my experiment when I press the incorrect key it moves on to the next slide. Please help! I have it set to [correctanswer] and then I have a specific correctanswer list in the trial list and the correct key answer ("S" or "L") for each condition. Thanks! Kathy -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/958f1798-278d-4e00-969d-d8f0fb982f27%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From olayak at gmail.com Tue Oct 8 19:13:31 2013 From: olayak at gmail.com (olayak) Date: Tue, 8 Oct 2013 12:13:31 -0700 Subject: brightness level Message-ID: Hi, Is there a way to change the level of brightness in eprime? I am running a perception experiment and I need 4 levels of brightness of the same image. Thanks! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5c7cb8ae-19d0-4345-b876-d9c042d39321%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Oct 8 19:32:14 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 8 Oct 2013 15:32:14 -0400 Subject: no go for incorrect response? In-Reply-To: <958f1798-278d-4e00-969d-d8f0fb982f27@googlegroups.com> Message-ID: Kathy, Did you first work through the tutorials in the Getting Started Guide and User's Guide that came with E-Prime? I think you do not understand the concept of a "Correct" response in this context. After working through the tutorials, you might look at the "Criterion Based Exit" example that you may download from the PST website (registration & login required). ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/8/2013 03:11 PM Tuesday, olayak wrote: >I'm new to eprime and I'm having a little difficulty. I am trying to >set it a training procedure so that the subject cannot move forward >to the next stimulus unless they press the correct response. So, for >example, if the correct response is "S" and they press "L", the same >stimulus will still be up until they finally press "S". I'm clearly >doing something wrong because in my experiment when I press the >incorrect key it moves on to the next slide. > >Please help! > >I have it set to [correctanswer] and then I have a specific >correctanswer list in the trial list and the correct key answer ("S" >or "L") for each condition. > >Thanks! > >Kathy -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52545dc5.0452320a.249f.23f6SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Tue Oct 8 19:37:04 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 8 Oct 2013 15:37:04 -0400 Subject: brightness level In-Reply-To: <5c7cb8ae-19d0-4345-b876-d9c042d39321@googlegroups.com> Message-ID: In E-Prime, as in many experiment programming systems, you change the brightness of a stimulus by generating and storing copies of your stimulus at different brightness levels outside of E-Prime, and then having E-Prime merely load the appropriate file as needed. If you really want your program to manipulate stimulus brightness levels in realtime, look into MATLAB or PsychoPy. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/8/2013 03:13 PM Tuesday, olayak wrote: >Is there a way to change the level of brightness in eprime? I am >running a perception experiment and I need 4 levels of brightness of >the same image. > >Thanks! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52545ee7.629a320a.54ea.2415SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From olayak at gmail.com Tue Oct 8 19:43:25 2013 From: olayak at gmail.com (olayak) Date: Tue, 8 Oct 2013 12:43:25 -0700 Subject: brightness level In-Reply-To: <5c7cb8ae-19d0-4345-b876-d9c042d39321@googlegroups.com> Message-ID: Thank you! Will do in photoshop. :) On Tuesday, October 8, 2013 3:13:31 PM UTC-4, olayak wrote: > > Hi, > > Is there a way to change the level of brightness in eprime? I am running > a perception experiment and I need 4 levels of brightness of the same image. > > Thanks! > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/f2492e63-9381-4c32-bdaa-7031d5498e28%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From olayak at gmail.com Tue Oct 8 19:44:38 2013 From: olayak at gmail.com (olayak) Date: Tue, 8 Oct 2013 12:44:38 -0700 Subject: no go for incorrect response? In-Reply-To: <52545dc5.0452320a.249f.23f6SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thank you! I don't want to exit the whole experiment when a correct response is given, I just want to remain on the image when an incorrect response is given until the correct response is given and then move to the next image in the series. Thanks! On Tuesday, October 8, 2013 3:32:14 PM UTC-4, McFarlane, David wrote: > > Kathy, > > Did you first work through the tutorials in the Getting Started Guide > and User's Guide that came with E-Prime? I think you do not > understand the concept of a "Correct" response in this context. > > After working through the tutorials, you might look at the "Criterion > Based Exit" example that you may download from the PST website > (registration & login required). > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/8/2013 03:11 PM Tuesday, olayak wrote: > >I'm new to eprime and I'm having a little difficulty. I am trying to > >set it a training procedure so that the subject cannot move forward > >to the next stimulus unless they press the correct response. So, for > >example, if the correct response is "S" and they press "L", the same > >stimulus will still be up until they finally press "S". I'm clearly > >doing something wrong because in my experiment when I press the > >incorrect key it moves on to the next slide. > > > >Please help! > > > >I have it set to [correctanswer] and then I have a specific > >correctanswer list in the trial list and the correct key answer ("S" > >or "L") for each condition. > > > >Thanks! > > > >Kathy > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/997f8444-eb9c-4aec-a305-ade6405f8e76%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kgoodyea at gmail.com Wed Oct 9 02:00:20 2013 From: kgoodyea at gmail.com (Kim Goodyear) Date: Tue, 8 Oct 2013 19:00:20 -0700 Subject: 2 slides equal to one time duration Message-ID: I am trying to have two sequential slides that are equal to one time duration of 2500 ms. The first slide and the second slide are completely identical, except in the second slide the text color changes to red so that the participant can see their selection, I want the first slide to terminate and then have the second slide come up so that they both equal the same 2500 ms. Since the response time will vary I don't know how to make both slides equal to the same 2500. I don't know why, but if the buttons aren't selected right away, the total duration is around 5000, or if there is a delay in the response, the total duration is around 4200. I am not sure how to fix this issue, any advice would be great. Here is my inline script: Dim ResetSlide as integer Dim x as integer ResetSlide = StimDisplay.Duration + StimDisplay2.Duration ResetSlide = x x = 2500 -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/0b27fe82-4622-4701-a21d-4c6a6e6ff199%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tabuwalda at gmail.com Wed Oct 9 08:52:24 2013 From: tabuwalda at gmail.com (Trudy) Date: Wed, 9 Oct 2013 01:52:24 -0700 Subject: Invalid Attribute Message-ID: I get the error that my filename contains an invalid attribute, I've tried going down to the 3 basic attributes (Weight, Nested, Procedure) and tried different options, but it still throws the error. There is no trailing whitespace and the attributes conform to the naming conventions (for as far as I can tell). Any help is appreciated :) - Trudy -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/fd37bc86-e240-4687-b906-5872536cfe92%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3Attributes_RowNames.zip Type: application/zip Size: 7301 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3Attributes_NoRowNames.zip Type: application/zip Size: 2671 bytes Desc: not available URL: From iskebakker at gmail.com Wed Oct 9 09:09:32 2013 From: iskebakker at gmail.com (iskebakker at gmail.com) Date: Wed, 9 Oct 2013 02:09:32 -0700 Subject: Autoit scripts for running multiple tasks Message-ID: Hi all, I found this conversation about scripts that people have created to run multiple tasks (something that suprised me very much to find e-prime doesn't do!): https://groups.google.com/forum/?hl=en-US#!searchin/e-prime/autoit$20/e-prime/yxViXrIuOfM/aF1IeVUJw5MJ. However, the links are not working anymore. Does anyone perhaps still have this script (or another that does the same, of course)? Many thanks! Iske -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/dad0da06-0a94-43b5-8253-e907c7929bed%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From d.vinson at ucl.ac.uk Wed Oct 9 09:31:20 2013 From: d.vinson at ucl.ac.uk (David Vinson) Date: Wed, 9 Oct 2013 10:31:20 +0100 Subject: Invalid Attribute In-Reply-To: Message-ID: Hi Trudy, If you are loading these text as Lists (LoadMethod = file) your attributes and contents need to be in plaintext rather than delimited by quotes as in the tab-delimited text files you attached. So get rid of all your double quotes and see if that works > "Weight" "Nested" "Procedure" > 1 "" "TrialProc".... should become > Weight Nested Procedure > 1 TrialProc See http://www.pstnet.com/support/kb.asp?TopicID=2707 hope this helps, DavidV On 09/10/2013 09:52, Trudy wrote: > I get the error that my filename contains an invalid attribute, I've > tried going down to the 3 basic attributes (Weight, Nested, Procedure) > and tried different options, but it still throws the error. There is > no trailing whitespace and the attributes conform to the naming > conventions (for as far as I can tell). > > Any help is appreciated :) > - Trudy > -- > You received this message because you are subscribed to the Google > Groups "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/fd37bc86-e240-4687-b906-5872536cfe92%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- David Vinson, Ph.D. ESRC Research Fellow Cognitive, Perceptual and Brain Sciences Research Department University College London 26 Bedford Way, London WC1H 0AP Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52552268.4060703%40ucl.ac.uk. For more options, visit https://groups.google.com/groups/opt_out. From tabuwalda at gmail.com Wed Oct 9 10:17:34 2013 From: tabuwalda at gmail.com (Trudy Buwalda) Date: Wed, 9 Oct 2013 12:17:34 +0200 Subject: Invalid Attribute In-Reply-To: <52552268.4060703@ucl.ac.uk> Message-ID: Thanks, that solved it :) On Oct 9, 2013, at 11:31 AM, David Vinson wrote: > Hi Trudy, > > If you are loading these text as Lists (LoadMethod = file) your attributes and contents need to be in plaintext rather than delimited by quotes as in the tab-delimited text files you attached. > > So get rid of all your double quotes and see if that works > >> "Weight" "Nested" "Procedure" >> 1 "" "TrialProc".... > should become > >> Weight Nested Procedure >> 1 TrialProc > See http://www.pstnet.com/support/kb.asp?TopicID=2707 > > hope this helps, > DavidV > > On 09/10/2013 09:52, Trudy wrote: >> I get the error that my filename contains an invalid attribute, I've tried going down to the 3 basic attributes (Weight, Nested, Procedure) and tried different options, but it still throws the error. There is no trailing whitespace and the attributes conform to the naming conventions (for as far as I can tell). >> >> Any help is appreciated :) >> - Trudy >> -- >> You received this message because you are subscribed to the Google Groups "E-Prime" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. >> To post to this group, send email to e-prime at googlegroups.com. >> To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/fd37bc86-e240-4687-b906-5872536cfe92%40googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. > > -- > David Vinson, Ph.D. > ESRC Research Fellow > Cognitive, Perceptual and Brain Sciences Research Department > University College London > 26 Bedford Way, London WC1H 0AP > Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) > > > -- > You received this message because you are subscribed to a topic in the Google Groups "E-Prime" group. > To unsubscribe from this topic, visit https://groups.google.com/d/topic/e-prime/JqraejM7_6w/unsubscribe. > To unsubscribe from this group and all its topics, send an email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52552268.4060703%40ucl.ac.uk. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/DD2A6AD6-79EB-4A40-B817-AA0E8CA0874A%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out. From liwenna at gmail.com Wed Oct 9 10:32:32 2013 From: liwenna at gmail.com (Anne-Wil) Date: Wed, 9 Oct 2013 03:32:32 -0700 Subject: Autoit scripts for running multiple tasks In-Reply-To: Message-ID: Hoi Iske, Please, find the scripts attached. A bit of warning though: I have used them once or twice, but soon abandoned them again: they are not very 'intelligent' scripts: they just fetch keyboard strokes and feed them to 'the computer'. If at any point the computer is not waiting (not yet ready for instance) for the specific input that the script provides, mayhem will occur and the script will start opening all the files one after another. Therefore the testleader needs to be careful only to touch the right buttons at the right time, the participants instructed to not touch any buttons while the program switches from one ebs2 file to the next, neither should be frightened if the computer starts doing all sorts of things at once (after closing all the programs one can then opt to open 'the normal manual way'), and your experiment should allow for such a thing to happen. I generally would advice against using them.... especially with student testleaders, but also with FMRI experiments (given your affiliation :) ), where you don't want to expose your participant to a (testleader frightened of the) computer doing 'things on his own' ;) Nowadays I just undertake the boring job of merging experiments. Although for some reason it doesn't work here at Leiden university, the newer e-prime versions allegedly allow for pasting between experiments, which should make that job a tad more easy.... Groet, Anne-Wil On Wednesday, 9 October 2013 11:09:32 UTC+2, iskeb... at gmail.com wrote: > > Hi all, > I found this conversation about scripts that people have created to run > multiple tasks (something that suprised me very much to find e-prime > doesn't do!): > https://groups.google.com/forum/?hl=en-US#!searchin/e-prime/autoit$20/e-prime/yxViXrIuOfM/aF1IeVUJw5MJ. > However, the links are not working anymore. Does anyone perhaps still have > this script (or another that does the same, of course)? > Many thanks! > Iske > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/a2e1ad79-4a56-4dc2-b174-92375a7a2467%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: scritp to call .ebs2 files in fixed order and autofill startup info.au3 Type: application/octet-stream Size: 14870 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: scritp to call .ebs2 files in random order and autofill startup info.au3 Type: application/octet-stream Size: 10914 bytes Desc: not available URL: From tudor3 at gmail.com Wed Oct 9 11:43:04 2013 From: tudor3 at gmail.com (tudor) Date: Wed, 9 Oct 2013 04:43:04 -0700 Subject: Removing within-subject & within-session outliers in EdataAid In-Reply-To: <52533f75.2e43320a.559f.06deSMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks David. PST support have suggested the same thing, i.e. removing outliers based on an arbitrary threshold. However, I think I'd nevertheless like to try removing them by using a number of std devs away from the mean. I'm not sure this could be done in Excel or SPSS (at least without a macro, which I don't personally know much about), given that what you export there are just raw RTs (one trial per row, for all sessions and for all subjects). To eliminate outliers within each subject's session, it seems to me that you'd really have to write a Matlab script to use on the exported Excel file. Since eliminating RTs this way is such a basic (and commonly done) operation, it is regrettable that it is not included in Edataaid's Analyze window. Perhaps in a future version... On Tuesday, 8 October 2013 00:10:38 UTC+1, McFarlane, David wrote: > > To eliminate all RTs greater than a certain fixed value, just use a > filter in E-DataAid, or in the Analyze tool of E-DataAid -- I am > pretty sure that this is covered in the tutorial Guides that came > with E-Prime (and I also cover this in my online course). > > If you want custom filters for individual subjects or for individual > sessions of each subject, or if you want the filter criterion to be > derived from some computation based on the data, then I think you > will have to use another tool, as far as I know those sorts of > analyses go beyond what E-DataAid can do and what it is meant to > do. As you already know, E-DataAid will easily reveal mean RTs for > each subject, or for each session of each subject, but from there you > have to explort data and do the rest in Excel, SPSS, Systat, or what have > you. > > I do like E-DataAid and its Analyze feature a lot for initial data > preparation (e.g., filtering rows and selecting columns to export) > and for initial exploration of descriptive statistics, and I devote > one lesson in my online course to covering these uses, but after that > I would export the data for further analysis (e.g., hypothesis > testing, ANOVA, etc.). > > Just my $.02, curious to hear from others. > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/7/2013 04:27 PM Monday, tudor wrote: > >I have a merged .emrg2 (EdataAid) file containing reaction time data > >from several subjects, across several sessions done by each. I would > >like to eliminate RT outliers within each subject individually, and > >if possible also within session rather than across all sessions of a > >single subject. > > > >By 'outlier' I would mean RTs that are more than 2.5 standard > >deviations away from the mean, although if that's hard to do, it > >would also be fine to just eliminate all RTs greater than a certain > >fixed value (e.g. 3,000 ms). > > > >I have not found a way to do this with the Analyze window, and > >because I have many such merged files, I would prefer to not have to > >do this 'the hard way', i.e. by exporting all the data to Excel and > >doing the outlier-removal and the averaging (which is otherwise done > >easily in Analyze) over there. > > > >Can anyone help? Many thanks in advance! > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/2d83b3af-964a-422c-b7d9-95c7e2e85436%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacanterbury at gmail.com Wed Oct 9 11:48:28 2013 From: jacanterbury at gmail.com (JACanterbury) Date: Wed, 9 Oct 2013 04:48:28 -0700 Subject: problem with brain vision events after upgrade to 2.0.10 Message-ID: Hi, Having upgraded from E-Prime 2.08 to 2.0.10 I'm having problems with events to Brain Vision either : - not being sent at all - sent sometimes - sent at the 'wrong' time Early investigations seem to indicate that this only happens with scripts written from scratch in 2.0.10. Scripts written in 2.0.8 and then imported and updated for 2.0.10 still seem to work fine. Any ideas? Has some default setting I don't know about changed? Many thanks, John -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/2f4a5393-9a4e-4419-b5cc-f493df0b5304%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vecchio.dani at gmail.com Wed Oct 9 13:47:00 2013 From: vecchio.dani at gmail.com (Daniela Vecchio) Date: Wed, 9 Oct 2013 06:47:00 -0700 Subject: memory sequence of the beads task Message-ID: hi everyone, i'm trying to build a task in which a series of beads are extracted .What I need is that the sequence of extractions is stored, updated and shown at the bottom of the same slide that shows the extractions. The same slide, therefore, should contain the current extraction image at the top while the memory sequence of the beads previously extracted at the bottom. could you help me with that? thanks a lot Daniela -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/286df64c-ec59-4852-be73-ee22e55ecc90%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From haslinger.hans11 at gmail.com Wed Oct 9 14:23:03 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Wed, 9 Oct 2013 07:23:03 -0700 Subject: changing border color of a slide image after clicking on it Message-ID: Hallo everybody At the moment I am programming a multiple choice test. In this test, there is a Stimulus (a slide image) and 4 possible answers (slide images) given. The subjects have to choose one of the 4 answers by clicking on it. At the same time there is a sound-file presented, which is a little story describing the stimulus-image. The subjects can answer until the complete story is presented. So far it was no huge problem for me. But now i want to highlight the given answer by changing the border color of the slide image that has been clicked. By now I could only accomplish, that the border color changes in the following slide state but not in the current one. I also didn't accomplish, that the border color changes back to the original color in the next slide states. I hope you understand what my Problem is and could give me a hand. Best regards Hans Here is the inline code I produced so far (the green part is what i've tried by myself to solve my problem. The rest of the code works fine so far): Dim theState as SlideState Set theState = ExternalCausesSlide.States("Default") Dim next_mX as Long, next_mY as Long Dim strHit As String Dim theMouseResponseData As MouseResponseData 'Was there a response? If ExternalCausesSlide.InputMasks.Responses.Count > 0 Then 'Get the mouse response Set theMouseResponseData = CMouseResponseData(ExternalCausesSlide.InputMasks.Responses(1)) 'Determine string name of SlideImage or SlideText object at 'mouse click coordinates. Assign that value to strHit strHit = theState.HitTest(theMouseResponseData.CursorX, theMouseResponseData.CursorY) 'if strHit equals the two buttons, then strHit will be logged, game will move onto next trial. If strHit = ("Image1") or strHit = ("Image2") or strHit = ("Image3")or strHit = ("Image4") Then c.SetAttrib "response", strHit 'if click is off, then restart slide 2 so nothing changes on the screen. no data will be logged in this case. Else Goto restart2 End If 'Compare string name where mouse click occurred to CorrectAnswer 'attribute on each trial, and score response 'NOTE: This comparison is case sensitive If strHit = c.GetAttrib("CorrectEmotion") Then ExternalCausesSlide.ACC = 1 Else ExternalCausesSlide.ACC = 0 End If If strHit = ("Image1") Then Dim Image1 As SlideImage Set Image1 = CSlideImage(ExternalCausesSlide.States("Default").Objects("Image1")) Image1.BorderColor = CColor("cyan") End If End if -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/11000327-bee5-4ad7-a9d8-156efbb73846%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Wed Oct 9 14:25:23 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Wed, 9 Oct 2013 10:25:23 -0400 Subject: problem with brain vision events after upgrade to 2.0.10 In-Reply-To: <2f4a5393-9a4e-4419-b5cc-f493df0b5304@googlegroups.com> Message-ID: John, The default setting for PreRelease has changed from 0 to "(same as duration)". IMO this is mostly a good thing, but it does create some havoc for those following the older habit. EP2.0.10 also introduces Generate PreRun, which again is mostly a good thing but can create some havoc... You might find some of this explained in the latest New Features Guide, the "Critical Timing" chapter of the latest User's Guide, and various Knowledge Base articles online. Note that, when updating older experiment programs, EP2.0.10 mostly preserves the settings in the program rather than imposing the new defaults. This may explain why older, converted programs still work, while newer ones built from scratch in EP2.0.10 do not. Start by comparing the PreRelease values in your old (converted) files to those in your new ones. Then consider that the old files in effect used a Generate PreRun of "BeforeObjectRun", and compare that behavior to the new default "TopOfProcedure". Best regards, ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (twitter.com/EPrimeMaster ) /----------- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at http://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) PST also offers several instructional videos there on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \----------- JACanterbury wrote: > Having upgraded from E-Prime 2.08 to 2.0.10 I'm having problems with > events to Brain Vision either : > - not being sent at all > - sent sometimes > - sent at the 'wrong' time > > Early investigations seem to indicate that this only happens with > scripts written from scratch in 2.0.10. > > Scripts written in 2.0.8 and then imported and updated for 2.0.10 still > seem to work fine. > > Any ideas? Has some default setting I don't know about changed? > > Many thanks, > > John -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52556753.3030206%40msu.edu. For more options, visit https://groups.google.com/groups/opt_out. From btomoschuk at gmail.com Wed Oct 9 14:54:45 2013 From: btomoschuk at gmail.com (Brendan T) Date: Wed, 9 Oct 2013 07:54:45 -0700 Subject: Centering by Word in Canvas In-Reply-To: <52541789.6801320a.10b1.184cSMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thank you very much! That is definitely what I'm looking for! On Tuesday, October 8, 2013 10:32:35 AM UTC-4, McFarlane, David wrote: > > Brendan, > > Look at the Canvas.CalculateTextSize topic in the E-Basic Help facility. > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/8/2013 09:32 AM Tuesday, Brendan T wrote: > >I have a small problem in my experiment design I was hoping you guys > >could shed some light on. > > > >My project uses the canvas function to display both words and > >circles around the word (big enough to be in the periphery) but the > >problem is that canvas doesn't allow you to align words to the > >center. It produces words on the canvas as such: > > > >cnvs.Text Display.XRes/2, Displaly.YRes/2, c. getattrib("WordList1") > >'This pulls a word from wordList1 and puts it in the center of the > >screen such that the first letter is centered at XRes/2, YRes/2 > > > > > >This centers the image based on the number of pixels on the screen, > >which is fine (and necessary) for my circle but aligns the words > >such that the first letter of the word is at the center. Words can > >be easily aligned in the display feature, but canvas is necessary > >for my other stimuli. > > > >Does anybody know how this might be fixed such that the word is > >centered in canvas, regardless of word length? Is it possible to > >overlay a regular display with canvas? Or perhaps a way to factor > >word length in and subtract half of it from XRes/2? > > > >I appreciate any feedback and I hope the issue is clear. > > > >Thank you!! > >Brendan > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/4b29cb0d-3aa3-4d28-a897-675dda036897%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mspape at cognitology.eu Thu Oct 10 13:20:36 2013 From: mspape at cognitology.eu (Cognitology) Date: Thu, 10 Oct 2013 16:20:36 +0300 Subject: E-Prime Stability Message-ID: Hi, Given that E-Prime 2 is now pretty much a final release, I was wondering how many of you feel it remains *particularly* instable? I mean, E-Studio (2, pro), latest version, and I don’t stupid crashes (say, recursively calling the sessionproc from a list within sessionproc). Just things like · Writing inline: Try typing: /* Hoppa */. Works! Automatically becomes ‘/* ‘Hoppa ‘*/. Now commented out. However, type in an inline (not the user part) ‘/* Hoppa */....CRASH! · Just dragging objects around, adding attributes, all sorts of randomness. Sometimes, there are nice big red crosses where graphics usually are. The latter is the more annoying part. In general, when I’m developing something, on both my laptop and home pc (both win7prox64), this happens. In my experience, in fact, most people, even if they are very experienced, have random stability issues with e-studio. My question then is: does the list have similar issues? Say, if you’ve been doing some development, what is the chance that e-prime will crash within 60 minutes? I’m estimating it at 80% here. Cheers, Michiel Michiel Sovijärvi-Spapé Helsinki Institute for Information Technology Aalto & Helsingin Yliopisto, Finland -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/035401cec5bb%2482669440%248733bcc0%24%40eu. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From d.vinson at ucl.ac.uk Thu Oct 10 14:59:07 2013 From: d.vinson at ucl.ac.uk (David Vinson) Date: Thu, 10 Oct 2013 15:59:07 +0100 Subject: E-Prime Stability In-Reply-To: <035401cec5bb$82669440$8733bcc0$@eu> Message-ID: Hi Michiel, I'm still plodding along using an XP box for my main development platform, EP Pro latest version and it seems to be much more stable than you've experienced: P(crash per 1hr) << 5%. Although I haven't done anything particularly unusual or exploratory lately. I have had quite a few crashes on running during development - the usual difficulties getting videos to work; loading nested Lists from file; but none of these are related to e-studio stability. Copy-pasting from multiple open experiments, no problem at all; dragging objects around, ditto. No weird red X's either. Probably your development and mine is comparing apples and oranges, but my rate of crashes within E-Studio 2.x has been pretty constant (and low) for quite some time. Maybe it's more stable on XP? Obviously this isn't much of a long term solution given the impending end of support for XP and perhaps some strong institutional pressure to move on.... I'd be interested to know about others' experiences too. best, DV On 10/10/2013 14:20, Cognitology wrote: > > Hi, > > Given that E-Prime 2 is now pretty much a final release, I was > wondering how many of you feel it remains **particularly** instable? I > mean, E-Studio (2, pro), latest version, and I don’t stupid crashes > (say, recursively calling the sessionproc from a list within > sessionproc). Just things like > > ·Writing inline: > > Try typing: > > /* > > Hoppa > > */. > > Works! Automatically becomes > > ‘/* > > ‘Hoppa > > ‘*/. > > Now commented out. However, type in an inline (not the user part) > > ‘/* > > Hoppa > > */....CRASH! > > ·Just dragging objects around, adding attributes, all sorts of > randomness. Sometimes, there are nice big red crosses where graphics > usually are. > > The latter is the more annoying part. In general, when I’m developing > something, on both my laptop and home pc (both win7prox64), this > happens. In my experience, in fact, most people, even if they are very > experienced, have random stability issues with e-studio. My question > then is: does the list have similar issues? Say, if you’ve been doing > some development, what is the chance that e-prime will crash within 60 > minutes? I’m estimating it at 80% here. > > Cheers, > > Michiel > > Michiel Sovijärvi-Spapé > > Helsinki Institute for Information Technology > > Aalto & Helsingin Yliopisto, > > Finland > > -- > You received this message because you are subscribed to the Google > Groups "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/035401cec5bb%2482669440%248733bcc0%24%40eu. > For more options, visit https://groups.google.com/groups/opt_out. -- David Vinson, Ph.D. ESRC Research Fellow Cognitive, Perceptual and Brain Sciences Research Department University College London 26 Bedford Way, London WC1H 0AP Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5256C0BB.7000800%40ucl.ac.uk. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Thu Oct 10 15:54:09 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Oct 2013 11:54:09 -0400 Subject: E-Prime Stability In-Reply-To: <035401cec5bb$82669440$8733bcc0$@eu> Message-ID: Michiel, Good question, and I am eager to hear from others. I have encouraged users at my location to move up to EP2.0.10, but that's going slowly, and we do run into some troubles because we have to get used to new ways of doing things in EP2.0.10. So I do not have a lot of development experience with it yet, my experience so far is mostly instructional and explorational. Based only on that, I like EP2.0.10 a lot, it introuduces a *lot* of good features, even some of the problems turn out to be features once they are properly understood (Generate PreRun is one of those, and I will mention another below). Now to address a couple points in particular. First, EP2 is not just "pretty much" a final release, it *is* officially a final release since EP2.0.10.242. And your commenting example... Yes, that trippped me up at first too, and it breaks one of the exercises in my video course, and I found it very annoying because I used /* */ a lot to comment things out & in. But try the following: Select some lines of code. Now press Ctrl+' (that's the Ctrl key along with the apostrophe key). See all those lines get commented with a "'" added to the start? Now for the fun part, with those lines still selected, press Ctrl+Shift+' -- see all those lines now become uncommented? Now press Ctrl+' twice -- see it add two "'" at the start of each line? Then press Ctrl+Shift+' once, then twice, to see it remove each leading "'" in turn. Pretty cool, huh? I sure thought so once I figured it out. So much easier than "/* */"! Now I just use "''" (double "'") to mark provisional lines during development, I can easily search for "''" throughout the program later to fix up those lines before final release of a program. Etc. So this is one of those "problems" that is really a feature. Once again, PST makes a pretty good product, but utterly fails to explain it well enough to customers. Just business as usual for them, but opening opportunities for people like me. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/10/2013 09:20 AM Thursday, Cognitology wrote: >Given that E-Prime 2 is now pretty much a final >release, I was wondering how many of you feel it >remains *particularly* instable? I mean, >E-Studio (2, pro), latest version, and I don’t >stupid crashes (say, recursively calling the >sessionproc from a list within sessionproc). Just things like >· Writing inline: >Try typing: >/* >Hoppa >*/. > >Works! Automatically becomes >‘/* >‘Hoppa >‘*/. > >Now commented out. However, type in an inline (not the user part) >‘/* >Hoppa >*/....CRASH! > >· Just dragging objects around, adding >attributes, all sorts of randomness. Sometimes, >there are nice big red crosses where graphics usually are. > >The latter is the more annoying part. In >general, when I’m developing something, on both >my laptop and home pc (both win7prox64), this >happens. In my experience, in fact, most people, >even if they are very experienced, have random >stability issues with e-studio. My question then >is: does the list have similar issues? Say, if >you’ve been doing some development, what is the >chance that e-prime will crash within 60 >minutes? I’m estimating it at 80% here. > >Cheers, >Michiel > >Michiel Sovijärvi-Spapé >Helsinki Institute for Information Technology >Aalto & Helsingin Yliopisto, >Finland -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5256cda9.893d320a.34a6.68c9SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From pfc.groot at gmail.com Thu Oct 10 16:02:06 2013 From: pfc.groot at gmail.com (Paul Groot) Date: Thu, 10 Oct 2013 18:02:06 +0200 Subject: E-Prime Stability In-Reply-To: <5256cda9.893d320a.34a6.68c9SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: I also worked on several scripts that had stability issues when editing in EStudio (XP and W7). I think some of those problems only occur under specific circumstances or in specific scripts. However, in most cases it seems hard to reproduce the crashes. So, pressing the save button every now and then has become standard practice for me. However, here is another nice (reproducible) demonstration of a problem in EStudio, which took me some time to isolate from a larger script. This case is related to a bug in the ScriptSense option: - open estudio and start with an empty script - open windows task manager to monitor cpu usage of estudio - add an inline script object to SessionProc and enter the following code: Dim n As Integer While False n = 1 Wend Note that an empty line at the top of the script seems to be essential. Although this problem is not very apparent, the high CPU-load could cause time accuracy issues when running a script directly from EStudio. Best Paul On 10 October 2013 16:59, David Vinson wrote: > Hi Michiel, > > I'm still plodding along using an XP box for my main development platform, > EP Pro latest version and it seems to be much more stable than you've > experienced: P(crash per 1hr) << 5%. Although I haven't done anything > particularly unusual or exploratory lately. > > I have had quite a few crashes on running during development - the usual > difficulties getting videos to work; loading nested Lists from file; but > none of these are related to e-studio stability. > > Copy-pasting from multiple open experiments, no problem at all; dragging > objects around, ditto. No weird red X's either. Probably your development > and mine is comparing apples and oranges, but my rate of crashes within > E-Studio 2.x has been pretty constant (and low) for quite some time. Maybe > it's more stable on XP? > > Obviously this isn't much of a long term solution given the impending end > of support for XP and perhaps some strong institutional pressure to move > on.... I'd be interested to know about others' experiences too. > > best, > DV > > > > On 10/10/2013 14:20, Cognitology wrote: > >> >> Hi, >> >> Given that E-Prime 2 is now pretty much a final release, I was wondering >> how many of you feel it remains **particularly** instable? I mean, E-Studio >> (2, pro), latest version, and I don’t stupid crashes (say, recursively >> calling the sessionproc from a list within sessionproc). Just things like >> >> >> ·Writing inline: >> >> Try typing: >> >> /* >> >> Hoppa >> >> */. >> >> Works! Automatically becomes >> >> ‘/* >> >> ‘Hoppa >> >> ‘*/. >> >> Now commented out. However, type in an inline (not the user part) >> >> ‘/* >> >> Hoppa >> >> */....CRASH! >> >> ·Just dragging objects around, adding attributes, all sorts of >> randomness. Sometimes, there are nice big red crosses where graphics >> usually are. >> >> The latter is the more annoying part. In general, when I’m developing >> something, on both my laptop and home pc (both win7prox64), this happens. >> In my experience, in fact, most people, even if they are very experienced, >> have random stability issues with e-studio. My question then is: does the >> list have similar issues? Say, if you’ve been doing some development, what >> is the chance that e-prime will crash within 60 minutes? I’m estimating it >> at 80% here. >> >> Cheers, >> >> Michiel >> >> Michiel Sovijärvi-Spapé >> >> Helsinki Institute for Information Technology >> >> Aalto & Helsingin Yliopisto, >> >> Finland >> >> -- >> You received this message because you are subscribed to the Google Groups >> "E-Prime" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to e-prime+unsubscribe at googlegroups.com. >> To post to this group, send email to e-prime at googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/e-prime/035401cec5bb%2482669440%248733bcc0%24%40eu >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- > David Vinson, Ph.D. > ESRC Research Fellow > Cognitive, Perceptual and Brain Sciences Research Department > University College London > 26 Bedford Way, London WC1H 0AP > Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) > > > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/5256C0BB.7000800%40ucl.ac.uk. > > For more options, visit https://groups.google.com/groups/opt_out. > On 10 October 2013 17:54, David McFarlane wrote: > Michiel, > > Good question, and I am eager to hear from others. I have encouraged > users at my location to move up to EP2.0.10, but that's going slowly, and > we do run into some troubles because we have to get used to new ways of > doing things in EP2.0.10. So I do not have a lot of development experience > with it yet, my experience so far is mostly instructional and > explorational. Based only on that, I like EP2.0.10 a lot, it introuduces a > *lot* of good features, even some of the problems turn out to be features > once they are properly understood (Generate PreRun is one of those, and I > will mention another below). > > Now to address a couple points in particular. > > First, EP2 is not just "pretty much" a final release, it *is* officially a > final release since EP2.0.10.242. > > And your commenting example... Yes, that trippped me up at first too, and > it breaks one of the exercises in my video course, and I found it very > annoying because I used /* */ a lot to comment things out & in. But try > the following: Select some lines of code. Now press Ctrl+' (that's the > Ctrl key along with the apostrophe key). See all those lines get commented > with a "'" added to the start? Now for the fun part, with those lines > still selected, press Ctrl+Shift+' -- see all those lines now become > uncommented? Now press Ctrl+' twice -- see it add two "'" at the start of > each line? Then press Ctrl+Shift+' once, then twice, to see it remove each > leading "'" in turn. Pretty cool, huh? I sure thought so once I figured > it out. So much easier than "/* */"! Now I just use "''" (double "'") to > mark provisional lines during development, I can easily search for "''" > throughout the program later to fix up those lines before final release of > a program. Etc. So this is one of those "problems" that is really a > feature. > > Once again, PST makes a pretty good product, but utterly fails to explain > it well enough to customers. Just business as usual for them, but opening > opportunities for people like me. > > ----- > David McFarlane > E-Prime training online: http://psychology.msu.edu/** > Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMaster) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > any and all questions at https://support.pstnet.com , and they strive to > respond to all requests in 24-48 hours, so make full use of it. 3) In > addition, PST offers several instructional videos on their YouTube channel ( > http://www.youtube.com/user/**PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy > of posting their reply back here for the sake of others. > \---- > > > > At 10/10/2013 09:20 AM Thursday, Cognitology wrote: > >> Given that E-Prime 2 is now pretty much a final release, I was wondering >> how many of you feel it remains *particularly* instable? I mean, E-Studio >> (2, pro), latest version, and I don’t stupid crashes (say, recursively >> calling the sessionproc from a list within sessionproc). Just things like >> · Writing inline: >> Try typing: >> /* >> Hoppa >> */. >> >> Works! Automatically becomes >> ‘/* >> ‘Hoppa >> ‘*/. >> >> Now commented out. However, type in an inline (not the user part) >> ‘/* >> Hoppa >> */....CRASH! >> >> · Just dragging objects around, adding attributes, all sorts of >> randomness. Sometimes, there are nice big red crosses where graphics >> usually are. >> >> The latter is the more annoying part. In general, when I’m developing >> something, on both my laptop and home pc (both win7prox64), this happens. >> In my experience, in fact, most people, even if they are very experienced, >> have random stability issues with e-studio. My question then is: does the >> list have similar issues? Say, if you’ve been doing some development, what >> is the chance that e-prime will crash within 60 minutes? I’m estimating it >> at 80% here. >> >> Cheers, >> Michiel >> >> Michiel Sovijärvi-Spapé >> Helsinki Institute for Information Technology >> Aalto & Helsingin Yliopisto, >> Finland >> > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe@**googlegroups.com > . > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/** > msgid/e-prime/5256cda9.**893d320a.34a6.68c9SMTPIN_** > ADDED_MISSING%40gmr-mx.google.**com > . > > For more options, visit https://groups.google.com/**groups/opt_out > . > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAKAdR-uTWsW4CdF2Y1SES0P7r_om73Z0t-O-yr6tmM8gQp_ATw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu Oct 10 16:13:52 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Oct 2013 12:13:52 -0400 Subject: E-Prime Stability In-Reply-To: <5256C0BB.7000800@ucl.ac.uk> Message-ID: With regard to XP vs. Vista/Win7... For the longest time I advised EP users to stick with XP 32-bit. PST now certifies EP2.0.10 to work under Vista/Win7, and with both 32- and 64-bit platforms, and I have subsequently reversed my advice. I have been testing and doing some development using a dual-boot XP-32/Win7-64 machine, and EP2.0.10 has worked well for me on the Win7-64 side, maybe even better than on the XP-32 side. E.g., I have been testing sound latencies -- under XP-32, I get sound latencies on the order of 30 ms. Using the *same* machine booted to Win7-64, and using the available CoreAudio API, I can get sound latencies solidly down to around 10 ms. But don't get me started on movies! Movies have been a headache in every release of EP2, but for that matter we have also had trouble with movies in PsychoPy. So I do not think this is the fault of EP, I think this is just the nature of our digital movies, a lot of this attributable to the poor state of our codecs. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) At 10/10/2013 10:59 AM Thursday, David Vinson wrote: >Hi Michiel, > >I'm still plodding along using an XP box for my >main development platform, EP Pro latest version >and it seems to be much more stable than you've >experienced: P(crash per 1hr) << 5%. Although I >haven't done anything particularly unusual or exploratory lately. > >I have had quite a few crashes on running during >development - the usual difficulties getting >videos to work; loading nested Lists from file; >but none of these are related to e-studio stability. > >Copy-pasting from multiple open experiments, no >problem at all; dragging objects around, ditto. >No weird red X's either. Probably your >development and mine is comparing apples and >oranges, but my rate of crashes within E-Studio >2.x has been pretty constant (and low) for quite >some time. Maybe it's more stable on XP? > >Obviously this isn't much of a long term >solution given the impending end of support for >XP and perhaps some strong institutional >pressure to move on.... I'd be interested to >know about others' experiences too. > >best, >DV > > >On 10/10/2013 14:20, Cognitology wrote: >> >>Hi, >> >>Given that E-Prime 2 is now pretty much a final >>release, I was wondering how many of you feel >>it remains **particularly** instable? I mean, >>E-Studio (2, pro), latest version, and I don’t >>stupid crashes (say, recursively calling the >>sessionproc from a list within sessionproc). Just things like >> >>·Writing inline: >> >>Try typing: >> >>/* >> >>Hoppa >> >>*/. >> >>Works! Automatically becomes >> >>‘/* >> >>‘Hoppa >> >>‘*/. >> >>Now commented out. However, type in an inline (not the user part) >> >>‘/* >> >>Hoppa >> >>*/....CRASH! >> >>·Just dragging objects around, adding >>attributes, all sorts of randomness. Sometimes, >>there are nice big red crosses where graphics usually are. >> >>The latter is the more annoying part. In >>general, when I’m developing something, on both >>my laptop and home pc (both win7prox64), this >>happens. In my experience, in fact, most >>people, even if they are very experienced, have >>random stability issues with e-studio. My >>question then is: does the list have similar >>issues? Say, if you’ve been doing some >>development, what is the chance that e-prime >>will crash within 60 minutes? I’m estimating it at 80% here. >> >>Cheers, >> >>Michiel >> >>Michiel Sovijärvi-Spapé >> >>Helsinki Institute for Information Technology >> >>Aalto & Helsingin Yliopisto, >> >>Finland >> >>-- >>You received this message because you are >>subscribed to the Google Groups "E-Prime" group. >>To unsubscribe from this group and stop >>receiving emails from it, send an email to >>e-prime+unsubscribe at googlegroups.com. >>To post to this group, send email to e-prime at googlegroups.com. >>To view this discussion on the web visit >>https://groups.google.com/d/msgid/e-prime/035401cec5bb%2482669440%248733bcc0%24%40eu. >>For more options, visit https://groups.google.com/groups/opt_out. > >-- >David Vinson, Ph.D. >ESRC Research Fellow >Cognitive, Perceptual and Brain Sciences Research Department >University College London >26 Bedford Way, London WC1H 0AP >Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5256d248.c819320a.3116.6397SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Thu Oct 10 16:21:51 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Oct 2013 12:21:51 -0400 Subject: E-Prime Stability In-Reply-To: Message-ID: Paul, But of course, While Wend went out with the Commodore-64 and has been deprecated for a couple decades, and should never have appeared in E-Basic at all (see my comments at https://groups.google.com/d/topic/e-prime/JXcYIfRPWVE and www.pstnet.com/forum/Topic3215-9-1.aspx ). What if you use the more modern Do Loop? E.g., Dim n As Integer Do While False n = 1 Loop I don't have any sympathy for crashes that result from use of While Wend :). Regards, ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) At 10/10/2013 12:02 PM Thursday, Paul Groot wrote: >I also worked on several scripts that had >stability issues when editing in EStudio (XP and >W7). I think some of those problems only occur >under specific circumstances or in specific >scripts. However, in most cases it seems hard to >reproduce the crashes. So, pressing the save >button every now and then has become standard >practice for me. However, here is another nice >(reproducible) demonstration of a problem in >EStudio, which took me some time to isolate from >a larger script. This case is related to a bug in the ScriptSense option: > >- open estudio and start with an empty script >- open windows task manager to monitor cpu usage of estudio >- add an inline script object to SessionProc and enter the following code: > >Dim n As Integer >While False > n = 1 >Wend > >Note that an empty line at the top of the script >seems to be essential. Although this problem is >not very apparent, the high CPU-load could >cause time accuracy issues when running a script directly from EStudio. > >Best >Paul > > >On 10 October 2013 16:59, David Vinson ><d.vinson at ucl.ac.uk> wrote: >Hi Michiel, > >I'm still plodding along using an XP box for my >main development platform, EP Pro latest version >and it seems to be much more stable than you've >experienced: P(crash per 1hr) << 5%. Although I >haven't done anything particularly unusual or exploratory lately. > >I have had quite a few crashes on running during >development - the usual difficulties getting >videos to work; loading nested Lists from file; >but none of these are related to e-studio stability. > >Copy-pasting from multiple open experiments, no >problem at all; dragging objects around, ditto. >No weird red X's either. Probably your >development and mine is comparing apples and >oranges, but my rate of crashes within E-Studio >2.x has been pretty constant (and low) for quite >some time. Maybe it's more stable on XP? > >Obviously this isn't much of a long term >solution given the impending end of support for >XP and perhaps some strong institutional >pressure to move on.... I'd be interested to >know about others' experiences too. > >best, >DV > > > >On 10/10/2013 14:20, Cognitology wrote: > >Hi, > >Given that E-Prime 2 is now pretty much a final >release, I was wondering how many of you feel it >remains **particularly** instable? I mean, >E-Studio (2, pro), latest version, and I don’t >stupid crashes (say, recursively calling the >sessionproc from a list within sessionproc). Just things like > > >·Writing inline: > >Try typing: > >/* > >Hoppa > >*/. > >Works! Automatically becomes > >‘/* > >‘Hoppa > >‘*/. > >Now commented out. However, type in an inline (not the user part) > >‘/* > >Hoppa > >*/....CRASH! > >·Just dragging objects around, adding >attributes, all sorts of randomness. Sometimes, >there are nice big red crosses where graphics usually are. > >The latter is the more annoying part. In >general, when I’m developing something, on both >my laptop and home pc (both win7prox64), this >happens. In my experience, in fact, most people, >even if they are very experienced, have random >stability issues with e-studio. My question then >is: does the list have similar issues? Say, if >you’ve been doing some development, what is the >chance that e-prime will crash within 60 >minutes? I’m estimating it at 80% here. > >Cheers, > >Michiel > >Michiel Sovijärvi-Spapé > >Helsinki Institute for Information Technology > >Aalto & Helsingin Yliopisto, > >Finland > >-- >You received this message because you are >subscribed to the Google Groups "E-Prime" group. >To unsubscribe from this group and stop >receiving emails from it, send an email to >e-prime+unsubscribe at googlegroups.com. >To post to this group, send email to >e-prime at googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/e-prime/035401cec5bb%2482669440%248733bcc0%24%40eu. >For more options, visit >https://groups.google.com/groups/opt_out. > > >-- >David Vinson, Ph.D. >ESRC Research Fellow >Cognitive, Perceptual and Brain Sciences Research Department >University College London >26 Bedford Way, London WC1H 0AP >Tel +44 >(0)20 7679 5311 (UCL internal ext. 25311) > > > >-- >You received this message because you are >subscribed to the Google Groups "E-Prime" group. >To unsubscribe from this group and stop >receiving emails from it, send an email to >e-prime+unsubscribe at googlegroups.com. >To post to this group, send email to >e-prime at googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/e-prime/5256C0BB.7000800%40ucl.ac.uk. > >For more options, visit >https://groups.google.com/groups/opt_out. > > > > >On 10 October 2013 17:54, David McFarlane ><mcfarla9 at msu.edu> wrote: >Michiel, > >Good question, and I am eager to hear from >others. I have encouraged users at my location >to move up to EP2.0.10, but that's going slowly, >and we do run into some troubles because we have >to get used to new ways of doing things in >EP2.0.10. So I do not have a lot of development >experience with it yet, my experience so far is >mostly instructional and explorational. Based >only on that, I like EP2.0.10 a lot, it >introuduces a *lot* of good features, even some >of the problems turn out to be features once >they are properly understood (Generate PreRun is >one of those, and I will mention another below). > >Now to address a couple points in particular. > >First, EP2 is not just "pretty much" a final >release, it *is* officially a final release since EP2.0.10.242. > >And your commenting example... Yes, that >trippped me up at first too, and it breaks one >of the exercises in my video course, and I found >it very annoying because I used /* */ a lot to >comment things out & in. But try the >following: Select some lines of code. Now >press Ctrl+' (that's the Ctrl key along with the >apostrophe key). See all those lines get >commented with a "'" added to the start? Now >for the fun part, with those lines still >selected, press Ctrl+Shift+' -- see all those >lines now become uncommented? Now press Ctrl+' >twice -- see it add two "'" at the start of each >line? Then press Ctrl+Shift+' once, then twice, >to see it remove each leading "'" in >turn. Pretty cool, huh? I sure thought so once >I figured it out. So much easier than "/* >*/"! Now I just use "''" (double "'") to mark >provisional lines during development, I can >easily search for "''" throughout the program >later to fix up those lines before final release >of a program. Etc. So this is one of those >"problems" that is really a feature. > >Once again, PST makes a pretty good product, but >utterly fails to explain it well enough to >customers. Just business as usual for them, but >opening opportunities for people like me. > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) >PST's trained staff take any and all questions >at >https://support.pstnet.com >, and they strive to respond to all requests in >24-48 hours, so make full use of it. 3) In >addition, PST offers several instructional >videos on their YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do get an answer from PST staff, >please extend the courtesy of posting their >reply back here for the sake of others. >\---- > > > >At 10/10/2013 09:20 AM Thursday, Cognitology wrote: >Given that E-Prime 2 is now pretty much a final >release, I was wondering how many of you feel it >remains *particularly* instable? I mean, >E-Studio (2, pro), latest version, and I don’t >stupid crashes (say, recursively calling the >sessionproc from a list within sessionproc). Just things like >· Writing inline: >Try typing: >/* >Hoppa >*/. > >Works! Automatically becomes >‘/* >‘Hoppa >‘*/. > >Now commented out. However, type in an inline (not the user part) >‘/* >Hoppa >*/....CRASH! > >· Just dragging objects around, adding >attributes, all sorts of randomness. Sometimes, >there are nice big red crosses where graphics usually are. > >The latter is the more annoying part. In >general, when I’m developing something, on both >my laptop and home pc (both win7prox64), this >happens. In my experience, in fact, most people, >even if they are very experienced, have random >stability issues with e-studio. My question then >is: does the list have similar issues? Say, if >you’ve been doing some development, what is the >chance that e-prime will crash within 60 >minutes? I’m estimating it at 80% here. > >Cheers, >Michiel > >Michiel Sovijärvi-Spapé >Helsinki Institute for Information Technology >Aalto & Helsingin Yliopisto, >Finland -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5256d426.0452320a.79c4.1664SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From zerorodrigoh at gmail.com Thu Oct 10 16:35:44 2013 From: zerorodrigoh at gmail.com (=?UTF-8?Q?Rodrigo_Henr=C3=ADquez_Chaparro?=) Date: Thu, 10 Oct 2013 09:35:44 -0700 Subject: Generation of procedure based on standard deviation of the previous reaction times of trials. Message-ID: Hi E-prime staff! I have a behavioral task that consists in a presentation of a stream of letters that appear in the center of the screen, where the participants should to respond pressing a button when the "x" letter is present and with other button to any other letter. However, I need to present a "question trial" when the SD of the previous reaction times of trials is more a 2 SD, considering the enough trials, to make the average. So my question is, how to program these trials "question" based on the SD of the previous Reaction times of trials of participants? Looking forward to your precious comments and suggestions Thanks a lot! Best, Rodrigo. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/23d3d46f-87e5-4c6a-8c61-936d6debca32%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu Oct 10 17:51:00 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Oct 2013 13:51:00 -0400 Subject: Generation of procedure based on standard deviation of the previous reaction times of trials. In-Reply-To: <23d3d46f-87e5-4c6a-8c61-936d6debca32@googlegroups.com> Message-ID: At 10/10/2013 12:35 PM Thursday, Rodrigo Henríquez Chaparro wrote: >Hi E-prime staff! Sorry, if you want E-Prime staff then you need to go to https://support.pstnet.com , register, login, and follow the links for Support. This is just a discussion group for ordinary users. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5256e90c.629a320a.54ea.6d33SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mspape at cognitology.eu Thu Oct 10 20:01:35 2013 From: mspape at cognitology.eu (Michiel Sovijarvi-Spape) Date: Thu, 10 Oct 2013 20:01:35 +0000 Subject: E-Prime Stability Message-ID: Hi, Hah, I knew it when the Wend came up! Best, Michiel Sent from Windows Mail From: David McFarlane Sent: Thursday, 10 October 2013 19:22 To: e-prime at googlegroups.com, e-prime at googlegroups.com Paul, But of course, While Wend went out with the Commodore-64 and has been deprecated for a couple decades, and should never have appeared in E-Basic at all (see my comments at https://groups.google.com/d/topic/e-prime/JXcYIfRPWVE and www.pstnet.com/forum/Topic3215-9-1.aspx ). What if you use the more modern Do Loop? E.g., Dim n As Integer Do While False n = 1 Loop I don't have any sympathy for crashes that result from use of While Wend :). Regards, ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) At 10/10/2013 12:02 PM Thursday, Paul Groot wrote: >I also worked on several scripts that had >stability issues when editing in EStudio (XP and >W7). I think some of those problems only occur >under specific circumstances or in specific >scripts. However, in most cases it seems hard to >reproduce the crashes. So, pressing the save >button every now and then has become standard >practice for me. However, here is another nice >(reproducible) demonstration of a problem in >EStudio, which took me some time to isolate from >a larger script. This case is related to a bug in the ScriptSense option: > >- open estudio and start with an empty script >- open windows task manager to monitor cpu usage of estudio >- add an inline script object to SessionProc and enter the following code: > >Dim n As Integer >While False > n = 1 >Wend > >Note that an empty line at the top of the script >seems to be essential. Although this problem is >not very apparent, the high CPU-load could >cause time accuracy issues when running a script directly from EStudio. > >Best >Paul > > >On 10 October 2013 16:59, David Vinson ><d.vinson at ucl.ac.uk> wrote: >Hi Michiel, > >I'm still plodding along using an XP box for my >main development platform, EP Pro latest version >and it seems to be much more stable than you've >experienced: P(crash per 1hr) << 5%. Although I >haven't done anything particularly unusual or exploratory lately. > >I have had quite a few crashes on running during >development - the usual difficulties getting >videos to work; loading nested Lists from file; >but none of these are related to e-studio stability. > >Copy-pasting from multiple open experiments, no >problem at all; dragging objects around, ditto. >No weird red X's either. Probably your >development and mine is comparing apples and >oranges, but my rate of crashes within E-Studio >2.x has been pretty constant (and low) for quite >some time. Maybe it's more stable on XP? > >Obviously this isn't much of a long term >solution given the impending end of support for >XP and perhaps some strong institutional >pressure to move on.... I'd be interested to >know about others' experiences too. > >best, >DV > > > >On 10/10/2013 14:20, Cognitology wrote: > >Hi, > >Given that E-Prime 2 is now pretty much a final >release, I was wondering how many of you feel it >remains **particularly** instable? I mean, >E-Studio (2, pro), latest version, and I don’t >stupid crashes (say, recursively calling the >sessionproc from a list within sessionproc). Just things like > > >·Writing inline: > >Try typing: > >/* > >Hoppa > >*/. > >Works! Automatically becomes > >‘/* > >‘Hoppa > >‘*/. > >Now commented out. However, type in an inline (not the user part) > >‘/* > >Hoppa > >*/....CRASH! > >·Just dragging objects around, adding >attributes, all sorts of randomness. Sometimes, >there are nice big red crosses where graphics usually are. > >The latter is the more annoying part. In >general, when I’m developing something, on both >my laptop and home pc (both win7prox64), this >happens. In my experience, in fact, most people, >even if they are very experienced, have random >stability issues with e-studio. My question then >is: does the list have similar issues? Say, if >you’ve been doing some development, what is the >chance that e-prime will crash within 60 >minutes? I’m estimating it at 80% here. > >Cheers, > >Michiel > >Michiel Sovijärvi-Spapé > >Helsinki Institute for Information Technology > >Aalto & Helsingin Yliopisto, > >Finland > >-- >You received this message because you are >subscribed to the Google Groups "E-Prime" group. >To unsubscribe from this group and stop >receiving emails from it, send an email to >e-prime+unsubscribe at googlegroups.com. >To post to this group, send email to >e-prime at googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/e-prime/035401cec5bb%2482669440%248733bcc0%24%40eu. >For more options, visit >https://groups.google.com/groups/opt_out. > > >-- >David Vinson, Ph.D. >ESRC Research Fellow >Cognitive, Perceptual and Brain Sciences Research Department >University College London >26 Bedford Way, London WC1H 0AP >Tel +44 >(0)20 7679 5311 (UCL internal ext. 25311) > > > >-- >You received this message because you are >subscribed to the Google Groups "E-Prime" group. >To unsubscribe from this group and stop >receiving emails from it, send an email to >e-prime+unsubscribe at googlegroups.com. >To post to this group, send email to >e-prime at googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/e-prime/5256C0BB.7000800%40ucl.ac.uk. > >For more options, visit >https://groups.google.com/groups/opt_out. > > > > >On 10 October 2013 17:54, David McFarlane ><mcfarla9 at msu.edu> wrote: >Michiel, > >Good question, and I am eager to hear from >others. I have encouraged users at my location >to move up to EP2.0.10, but that's going slowly, >and we do run into some troubles because we have >to get used to new ways of doing things in >EP2.0.10. So I do not have a lot of development >experience with it yet, my experience so far is >mostly instructional and explorational. Based >only on that, I like EP2.0.10 a lot, it >introuduces a *lot* of good features, even some >of the problems turn out to be features once >they are properly understood (Generate PreRun is >one of those, and I will mention another below). > >Now to address a couple points in particular. > >First, EP2 is not just "pretty much" a final >release, it *is* officially a final release since EP2.0.10.242. > >And your commenting example... Yes, that >trippped me up at first too, and it breaks one >of the exercises in my video course, and I found >it very annoying because I used /* */ a lot to >comment things out & in. But try the >following: Select some lines of code. Now >press Ctrl+' (that's the Ctrl key along with the >apostrophe key). See all those lines get >commented with a "'" added to the start? Now >for the fun part, with those lines still >selected, press Ctrl+Shift+' -- see all those >lines now become uncommented? Now press Ctrl+' >twice -- see it add two "'" at the start of each >line? Then press Ctrl+Shift+' once, then twice, >to see it remove each leading "'" in >turn. Pretty cool, huh? I sure thought so once >I figured it out. So much easier than "/* >*/"! Now I just use "''" (double "'") to mark >provisional lines during development, I can >easily search for "''" throughout the program >later to fix up those lines before final release >of a program. Etc. So this is one of those >"problems" that is really a feature. > >Once again, PST makes a pretty good product, but >utterly fails to explain it well enough to >customers. Just business as usual for them, but >opening opportunities for people like me. > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) >PST's trained staff take any and all questions >at >https://support.pstnet.com >, and they strive to respond to all requests in >24-48 hours, so make full use of it. 3) In >addition, PST offers several instructional >videos on their YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do get an answer from PST staff, >please extend the courtesy of posting their >reply back here for the sake of others. >\---- > > > >At 10/10/2013 09:20 AM Thursday, Cognitology wrote: >Given that E-Prime 2 is now pretty much a final >release, I was wondering how many of you feel it >remains *particularly* instable? I mean, >E-Studio (2, pro), latest version, and I don’t >stupid crashes (say, recursively calling the >sessionproc from a list within sessionproc). Just things like >· Writing inline: >Try typing: >/* >Hoppa >*/. > >Works! Automatically becomes >‘/* >‘Hoppa >‘*/. > >Now commented out. However, type in an inline (not the user part) >‘/* >Hoppa >*/....CRASH! > >· Just dragging objects around, adding >attributes, all sorts of randomness. Sometimes, >there are nice big red crosses where graphics usually are. > >The latter is the more annoying part. In >general, when I’m developing something, on both >my laptop and home pc (both win7prox64), this >happens. In my experience, in fact, most people, >even if they are very experienced, have random >stability issues with e-studio. My question then >is: does the list have similar issues? Say, if >you’ve been doing some development, what is the >chance that e-prime will crash within 60 >minutes? I’m estimating it at 80% here. > >Cheers, >Michiel > >Michiel Sovijärvi-Spapé >Helsinki Institute for Information Technology >Aalto & Helsingin Yliopisto, >Finland -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5256d426.0452320a.79c4.1664SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/DUB403-EAS2839CE39E1D5EE16C85A860AD1E0%40phx.gbl. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mspape at cognitology.eu Thu Oct 10 20:13:01 2013 From: mspape at cognitology.eu (Michiel Sovijarvi-Spape) Date: Thu, 10 Oct 2013 20:13:01 +0000 Subject: E-Prime Stability Message-ID: Hi, Well, I know it is a billed as a final release, but until the documentation is done well, and in place, as was the case for e1.2, I think it cannot be considered such. Scattering the documentation around in the old helpfile, new features guide and several knowledge base articles does not lead to a solid workflow. We will hope for the long promised new user-guide + ebasic guide that is complete and coherent to come along with E-Prime 2 final final version 😊. The top-of-procedure vs before-object-run, I found particularly annoying, actually. While I agree this is a good feature, it is similar to textdisplays and slides being set to 75% by default and prerelease == duration by default: good features but they will lead to interesting results if you are used to the old way. A bit like charms and the start menu of Windows 8: here’s the new way, we think it is better, cope. I’m also hoping, by the way, that some of the promised features will be implemented soonish… Global variables (or something of the sort, I forgot the name), more extended use of task events, etc. In other news, we completed our new E-Primer and it should be out soon! I put you in the acknowledgements as well, but I think this is the more appropriate venue, given I don’t know how many years. Best, Michiel Sent from Windows Mail From: David McFarlane Sent: ‎Thursday‎, ‎10‎ ‎October‎ ‎2013 ‎18‎:‎54 To: e-prime at googlegroups.com Michiel, Good question, and I am eager to hear from others. I have encouraged users at my location to move up to EP2.0.10, but that's going slowly, and we do run into some troubles because we have to get used to new ways of doing things in EP2.0.10. So I do not have a lot of development experience with it yet, my experience so far is mostly instructional and explorational. Based only on that, I like EP2.0.10 a lot, it introuduces a *lot* of good features, even some of the problems turn out to be features once they are properly understood (Generate PreRun is one of those, and I will mention another below). Now to address a couple points in particular. First, EP2 is not just "pretty much" a final release, it *is* officially a final release since EP2.0.10.242. And your commenting example... Yes, that trippped me up at first too, and it breaks one of the exercises in my video course, and I found it very annoying because I used /* */ a lot to comment things out & in. But try the following: Select some lines of code. Now press Ctrl+' (that's the Ctrl key along with the apostrophe key). See all those lines get commented with a "'" added to the start? Now for the fun part, with those lines still selected, press Ctrl+Shift+' -- see all those lines now become uncommented? Now press Ctrl+' twice -- see it add two "'" at the start of each line? Then press Ctrl+Shift+' once, then twice, to see it remove each leading "'" in turn. Pretty cool, huh? I sure thought so once I figured it out. So much easier than "/* */"! Now I just use "''" (double "'") to mark provisional lines during development, I can easily search for "''" throughout the program later to fix up those lines before final release of a program. Etc. So this is one of those "problems" that is really a feature. Once again, PST makes a pretty good product, but utterly fails to explain it well enough to customers. Just business as usual for them, but opening opportunities for people like me. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/10/2013 09:20 AM Thursday, Cognitology wrote: >Given that E-Prime 2 is now pretty much a final >release, I was wondering how many of you feel it >remains *particularly* instable? I mean, >E-Studio (2, pro), latest version, and I don’t >stupid crashes (say, recursively calling the >sessionproc from a list within sessionproc). Just things like >· Writing inline: >Try typing: >/* >Hoppa >*/. > >Works! Automatically becomes >‘/* >‘Hoppa >‘*/. > >Now commented out. However, type in an inline (not the user part) >‘/* >Hoppa >*/....CRASH! > >· Just dragging objects around, adding >attributes, all sorts of randomness. Sometimes, >there are nice big red crosses where graphics usually are. > >The latter is the more annoying part. In >general, when I’m developing something, on both >my laptop and home pc (both win7prox64), this >happens. In my experience, in fact, most people, >even if they are very experienced, have random >stability issues with e-studio. My question then >is: does the list have similar issues? Say, if >you’ve been doing some development, what is the >chance that e-prime will crash within 60 >minutes? I’m estimating it at 80% here. > >Cheers, >Michiel > >Michiel Sovijärvi-Spapé >Helsinki Institute for Information Technology >Aalto & Helsingin Yliopisto, >Finland -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5256cda9.893d320a.34a6.68c9SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/DUB403-EAS455B3B62120372241CD42EAD1E0%40phx.gbl. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From haslinger.hans11 at gmail.com Mon Oct 14 09:17:13 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Mon, 14 Oct 2013 02:17:13 -0700 Subject: changing border color of a slide image after clicking on it In-Reply-To: <11000327-bee5-4ad7-a9d8-156efbb73846@googlegroups.com> Message-ID: Does anyone have an idea? I'm a bit lost. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/7cc9d089-484d-454b-9a91-e29930d81c98%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From haslinger.hans11 at gmail.com Mon Oct 14 13:39:09 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Mon, 14 Oct 2013 06:39:09 -0700 Subject: changing border color of a slide image after clicking on it In-Reply-To: <7cc9d089-484d-454b-9a91-e29930d81c98@googlegroups.com> Message-ID: > > Ok. > I've tried another piece of code for changing the border color of the chosen slide image: Dim hitObject As SlideImage Set hitObject = CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) hitObject.BorderColor = CColor("cyan") hitObject.Draw Sleep 5000 hitObject.BorderColor = CColor("black") The problem is, that the new border color only appears when the sound file is over. How can i accomplish, that the border color changes immediately after cklicking? Is there a way of programming, that the subjects can correct there given answer so long as the sound file is running, if they are changing their minds? Best regards Hans -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/e1936f8b-f931-43f3-80c1-6a61686db924%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From balshan.bashlan at gmail.com Mon Oct 14 14:00:26 2013 From: balshan.bashlan at gmail.com (Chen G) Date: Mon, 14 Oct 2013 07:00:26 -0700 Subject: randomizing blocks Message-ID: Hello, I'm trying to design an experiment that consists of several blocks of stimuli, such that the order of stimuli within each block is fixed, but the order of the blocks is random. For some reason I can't get it to work - when I run the experiment stimuli belonging to different blocks are getting mixed. I used a main List object under the SessionProc with references to the different blocks in the Nested column. Each block is itself a List object which contains the relevant stimuli for that block. I tried defining one procedure for all the blocks and I also tried defining a separate procedure for each block. None seem to produce the desired results. Any idea what I did wrong? Thanks, Chen -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5a1d1ff7-47ab-486a-9802-01094940c3e9%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vecchio.dani at gmail.com Mon Oct 14 14:39:42 2013 From: vecchio.dani at gmail.com (Daniela Vecchio) Date: Mon, 14 Oct 2013 07:39:42 -0700 Subject: beads task Message-ID: Hi everyone, I'm trying to build a task in which a series of beads are extracted from a box who contains different percentage of blue or red beads .What I need is that the sequence of extractions is stored, updated and then show at the bottom of the same slide that shows the current extractions. The same slide, therefore, should contain the current extraction image at the top of the screen, while the memory sequence of the beads previously extracted is at the bottom. could you help me with that? thanks a lot Daniela -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/e1f00799-20d2-4dc2-a648-cac28779c5d1%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon Oct 14 18:22:55 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 14 Oct 2013 14:22:55 -0400 Subject: 2 slides equal to one time duration In-Reply-To: <0b27fe82-4622-4701-a21d-4c6a6e6ff199@googlegroups.com> Message-ID: Not sure I follow your description of the problem. But let's suppose you have two Slides in your Procedure, let's call them ASlide and BSlide. ASlide takes a response, and the Procedure moves on to present BSlide whenever ASlide gets a response, or 2000 ms, whichever comes first. And you want the total duration for ASlide & BSlide to be 2500 ms, i.e., BSlide should last for 2500 - (ASlide_actual_duration). There are many ways to skin this cat. My favorite method goes as follows. Set the Duration of BSlide to 2500, and in an Inline between ASlide and BSlide, do the following: SetNextTargetOnsetTime ASlide.OnsetTime That's all! Understanding how this works takes some deeper understanding of E-Prime timing models & mechanisms, more than I can go into here, but look at the SetNextTargetOnsetTime topic in the E-Basic Help facility. But in short, with that bit of code, BSlide will use the actual OnsetTime from ASlide in order to compute its own ending time, and so will end at 2500 ms from the OnsetTime of ASlide, whithout you having to do anything more. Presto! ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/8/2013 10:00 PM Tuesday, Kim Goodyear wrote: >I am trying to have two sequential slides that are equal to one time >duration of 2500 ms. The first slide and the second slide are >completely identical, except in the second slide the text color >changes to red so that the participant can see their selection, I >want the first slide to terminate and then have the second slide >come up so that they both equal the same 2500 ms. Since the >response time will vary I don't know how to make both slides equal >to the same 2500. I don't know why, but if the buttons aren't >selected right away, the total duration is around 5000, or if there >is a delay in the response, the total duration is around 4200. I am >not sure how to fix this issue, any advice would be great. Here is >my inline script: > >Dim ResetSlide as integer >Dim x as integer > >ResetSlide = StimDisplay.Duration + StimDisplay2.Duration >ResetSlide = x >x = 2500 -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/525c3688.2cdd320a.3305.55f9SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Mon Oct 14 18:31:42 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 14 Oct 2013 14:31:42 -0400 Subject: changing border color of a slide image after clicking on it In-Reply-To: <11000327-bee5-4ad7-a9d8-156efbb73846@googlegroups.com> Message-ID: So, the line Image1.BorderColor = CColor("cyan") tells E-Prime to use that border color the next time that it draws your SlideImage, but of course, that will not happen until you tell E-Prime to redraw it. Try something like the following: Image1.BorderColor = CColor("cyan") Image1.Draw and see the SlideImage and SlideImage.Draw topics in the E-Basic Help facility. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/9/2013 10:23 AM Wednesday, haslinger.hans11 at gmail.com wrote: >At the moment I am programming a multiple choice test. >In this test, there is a Stimulus (a slide image) and 4 possible >answers (slide images) given. >The subjects have to choose one of the 4 answers by clicking on it. > >At the same time there is a sound-file presented, which is a little >story describing the stimulus-image. >The subjects can answer until the complete story is presented. >So far it was no huge problem for me. > >But now i want to highlight the given answer by changing the border >color of the slide image that has been clicked. > >By now I could only accomplish, that the border color changes in the >following slide state but not in the current one. >I also didn't accomplish, that the border color changes back to the >original color in the next slide states. > >I hope you understand what my Problem is and could give me a hand. > >Best regards >Hans > > > >Here is the inline code I produced so far (the green part is what >i've tried by myself to solve my problem. The rest of the code works >fine so far): > > > Dim theState as SlideState > Set theState = ExternalCausesSlide.States("Default") > Dim next_mX as Long, next_mY as Long > Dim strHit As String > Dim theMouseResponseData As MouseResponseData > > 'Was there a response? > If ExternalCausesSlide.InputMasks.Responses.Count > 0 Then > 'Get the mouse response > Set theMouseResponseData = > CMouseResponseData(ExternalCausesSlide.InputMasks.Responses(1)) > > 'Determine string name of SlideImage or SlideText object at > 'mouse click coordinates. Assign that value to strHit > strHit = > theState.HitTest(theMouseResponseData.CursorX, theMouseResponseData.CursorY) > > 'if strHit equals the two buttons, then strHit will > be logged, game will move onto next trial. > > If strHit = ("Image1") or strHit = ("Image2") > or strHit = ("Image3")or strHit = ("Image4") Then > c.SetAttrib "response", strHit > 'if click is off, then restart slide 2 so nothing > changes on the screen. no data will be logged in this case. > Else > Goto restart2 > End If > >'Compare string name where mouse click occurred to CorrectAnswer >'attribute on each trial, and score response >'NOTE: This comparison is case sensitive >If strHit = c.GetAttrib("CorrectEmotion") Then >ExternalCausesSlide.ACC = 1 >Else >ExternalCausesSlide.ACC = 0 >End If > > >If strHit = ("Image1") Then >Dim Image1 As SlideImage >Set Image1 = >CSlideImage(ExternalCausesSlide.States("Default").Objects("Image1")) >Image1.BorderColor = CColor("cyan") >End If > End if -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/525c3897.8570320a.7abf.7f24SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Mon Oct 14 18:42:52 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 14 Oct 2013 14:42:52 -0400 Subject: randomizing blocks In-Reply-To: <5a1d1ff7-47ab-486a-9802-01094940c3e9@googlegroups.com> Message-ID: Chen, I must be missing something, because I cannot see what's wrong here. I imagine that you have a structure like SessionProc BlockList BlockAProc BlockATrialList BlockBProc BlockBTrialLIst ... (there are actually better ways to structure this (e.g., using a single BlockProc, and using an attribute to select the trial List), but this is how most beginners would do it). In that case, if you set Order of BlockList to Random, and Order of each BlockXTrialList to Sequential, then E-Prime will present your blocks in random order, but trials within each block in sequential order (I have students practice this in my online course). What am I missing? ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/14/2013 10:00 AM Monday, Chen G wrote: >I'm trying to design an experiment that consists of several blocks >of stimuli, such that the order of stimuli within each block is >fixed, but the order of the blocks is random. For some reason I >can't get it to work - when I run the experiment stimuli belonging >to different blocks are getting mixed. >I used a main List object under the SessionProc with references to >the different blocks in the Nested column. Each block is itself a >List object which contains the relevant stimuli for that block. I >tried defining one procedure for all the blocks and I also tried >defining a separate procedure for each block. None seem to produce >the desired results. >Any idea what I did wrong? > >Thanks, > >Chen -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/525c3b35.893d320a.61b5.ffff8050SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From kgoodyea at gmail.com Mon Oct 14 18:51:04 2013 From: kgoodyea at gmail.com (Kim Goodyear) Date: Mon, 14 Oct 2013 11:51:04 -0700 Subject: 2 slides equal to one time duration In-Reply-To: <0b27fe82-4622-4701-a21d-4c6a6e6ff199@googlegroups.com> Message-ID: Hi David, Thank you for your feedback. This was very informative! The only issue that I have is that this works when there is a response to "ASlide," if there is no response then the total duration of the 2 slides is different. Should I make the duration of "ASlide" something different than 2500? On Tuesday, October 8, 2013 10:00:20 PM UTC-4, Kim Goodyear wrote: > > I am trying to have two sequential slides that are equal to one time > duration of 2500 ms. The first slide and the second slide are completely > identical, except in the second slide the text color changes to red so that > the participant can see their selection, I want the first slide to > terminate and then have the second slide come up so that they both equal > the same 2500 ms. Since the response time will vary I don't know how to > make both slides equal to the same 2500. I don't know why, but if the > buttons aren't selected right away, the total duration is around 5000, or > if there is a delay in the response, the total duration is around 4200. I > am not sure how to fix this issue, any advice would be great. Here is my > inline script: > > Dim ResetSlide as integer > Dim x as integer > > ResetSlide = StimDisplay.Duration + StimDisplay2.Duration > ResetSlide = x > x = 2500 > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/aed0db7d-7347-4b73-bfee-5adff36d01ef%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon Oct 14 19:07:57 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 14 Oct 2013 15:07:57 -0400 Subject: 2 slides equal to one time duration In-Reply-To: Message-ID: First, PLEASE PLEASE folks, when you reply, include the previous discussion! I don't mean to pick on you personally, Kim, but others keep doing this and we have to get a firm message out. A week or so might easily go by between posts, and by then I forgot what I or others have already contributed. In this case I do recall, but it is a great courtesy to spare others the trouble by including *all* of the relevant previous discussion in your followups. Now, as I said before, I had to make some guesses because you did not put all the specifications into your original post. I had to guess that the Duration of your "ASlide" was less than 2500, now we have that clarified, thanks. So first, did you try my suggestion? If you did, then you should find that, when ASlide runs the full 2500 ms (or even longer), BSlide will show for exactly one video frame. To avoid this you need to add just a bit more inline code and one more thing to your Procedure, which I will tell you as soon as you perform the exercise that I suggested and can tell whether or not I know what I am talking about (or perhaps with that hint you will just figure it out on your own). Oh, and what Duration *do* you use for your "ASlide"? Best, -- David McFarlane At 10/14/2013 02:51 PM Monday, Kim Goodyear wrote: >Hi David, > >Thank you for your feedback. This was very informative! The only >issue that I have is that this works when there is a response to >"ASlide," if there is no response then the total duration of the 2 >slides is different. Should I make the duration of "ASlide" >something different than 2500? > >On Tuesday, October 8, 2013 10:00:20 PM UTC-4, Kim Goodyear wrote: >I am trying to have two sequential slides that are equal to one time >duration of 2500 ms. The first slide and the second slide are >completely identical, except in the second slide the text color >changes to red so that the participant can see their selection, I >want the first slide to terminate and then have the second slide >come up so that they both equal the same 2500 ms. Since the >response time will vary I don't know how to make both slides equal >to the same 2500. I don't know why, but if the buttons aren't >selected right away, the total duration is around 5000, or if there >is a delay in the response, the total duration is around 4200. I am >not sure how to fix this issue, any advice would be great. Here is >my inline script: > >Dim ResetSlide as integer >Dim x as integer > >ResetSlide = StimDisplay.Duration + StimDisplay2.Duration >ResetSlide = x >x = 2500 -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/525c4117.6801320a.4296.7fcdSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From balshan.bashlan at gmail.com Mon Oct 14 21:26:30 2013 From: balshan.bashlan at gmail.com (Chen G) Date: Mon, 14 Oct 2013 14:26:30 -0700 Subject: randomizing blocks In-Reply-To: <525c3b35.893d320a.61b5.ffff8050SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks, David. The structure I have is a bit different, it looks either like this: SessionProc BlockList BlockATrialList BlockAProc BlockBTrialLIst BlockBProc or if I try using one BlockProc for both lists and specify it only at the BlockList level, then it looks like: SessionProc BlockList BlockATrialList BlockBTrialLIst BlockBProc I don't seem to be able to "nest" a List object under BlockProc as in your outline. Any suggestions? Thanks, Chen On Monday, October 14, 2013 9:42:52 PM UTC+3, McFarlane, David wrote: > > Chen, > > I must be missing something, because I cannot see what's wrong > here. I imagine that you have a structure like > > SessionProc > BlockList > BlockAProc > BlockATrialList > BlockBProc > BlockBTrialLIst > ... > > (there are actually better ways to structure this (e.g., using a > single BlockProc, and using an attribute to select the trial List), > but this is how most beginners would do it). > > In that case, if you set Order of BlockList to Random, and Order of > each BlockXTrialList to Sequential, then E-Prime will present your > blocks in random order, but trials within each block in sequential > order (I have students practice this in my online course). > > What am I missing? > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/14/2013 10:00 AM Monday, Chen G wrote: > >I'm trying to design an experiment that consists of several blocks > >of stimuli, such that the order of stimuli within each block is > >fixed, but the order of the blocks is random. For some reason I > >can't get it to work - when I run the experiment stimuli belonging > >to different blocks are getting mixed. > >I used a main List object under the SessionProc with references to > >the different blocks in the Nested column. Each block is itself a > >List object which contains the relevant stimuli for that block. I > >tried defining one procedure for all the blocks and I also tried > >defining a separate procedure for each block. None seem to produce > >the desired results. > >Any idea what I did wrong? > > > >Thanks, > > > >Chen > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/415018b9-e112-40c3-86d5-beb607a921ec%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon Oct 14 22:07:09 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 14 Oct 2013 18:07:09 -0400 Subject: randomizing blocks In-Reply-To: <415018b9-e112-40c3-86d5-beb607a921ec@googlegroups.com> Message-ID: Chen, >I don't seem to be able to "nest" a List object under BlockProc as >in your outline. >Any suggestions? This is basic, introductory knowledge that you should get from working through the Guides that came with E-Prime, and/or by taking a training course, and you need to do that first. Regards, -- David McFarlane At 10/14/2013 05:26 PM Monday, Chen G wrote: >Thanks, David. >The structure I have is a bit different, it looks either like this: > >SessionProc > BlockList >BlockATrialList >BlockAProc >BlockBTrialLIst >BlockBProc > >or if I try using one BlockProc for both lists and specify it only >at the BlockList level, then it looks like: > >SessionProc > BlockList >BlockATrialList >BlockBTrialLIst >BlockBProc > >I don't seem to be able to "nest" a List object under BlockProc as >in your outline. >Any suggestions? > >Thanks, >Chen > > >On Monday, October 14, 2013 9:42:52 PM UTC+3, McFarlane, David wrote: >Chen, > >I must be missing something, because I cannot see what's wrong >here. I imagine that you have a structure like > >SessionProc > BlockList > BlockAProc > BlockATrialList > BlockBProc > BlockBTrialLIst > ... > >(there are actually better ways to structure this (e.g., using a >single BlockProc, and using an attribute to select the trial List), >but this is how most beginners would do it). > >In that case, if you set Order of BlockList to Random, and Order of >each BlockXTrialList to Sequential, then E-Prime will present your >blocks in random order, but trials within each block in sequential >order (I have students practice this in my online course). > >What am I missing? > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx > >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at >https://support.pstnet.com , and they >strive to respond to all requests in 24-48 hours, so make full use of >it. 3) In addition, PST offers several instructional videos on their >YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do >get an answer from PST staff, please extend the courtesy of posting >their reply back here for the sake of others. >\---- > > >At 10/14/2013 10:00 AM Monday, Chen G wrote: > >I'm trying to design an experiment that consists of several blocks > >of stimuli, such that the order of stimuli within each block is > >fixed, but the order of the blocks is random. For some reason I > >can't get it to work - when I run the experiment stimuli belonging > >to different blocks are getting mixed. > >I used a main List object under the SessionProc with references to > >the different blocks in the Nested column. Each block is itself a > >List object which contains the relevant stimuli for that block. I > >tried defining one procedure for all the blocks and I also tried > >defining a separate procedure for each block. None seem to produce > >the desired results. > >Any idea what I did wrong? > > > >Thanks, > > > >Chen -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/525c6b17.629a320a.6156.0043SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From haslinger.hans11 at gmail.com Tue Oct 15 08:56:50 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Tue, 15 Oct 2013 01:56:50 -0700 Subject: changing border color of a slide image after clicking on it In-Reply-To: <525c3897.8570320a.7abf.7f24SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: > > Hallo David I've tried another code for the changing border color part: Dim hitObject As SlideImage Set hitObject = CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) hitObject.BorderColor = CColor("cyan") hitObject.Draw Sleep 5000 hitObject.BorderColor = CColor("black") If I understood this code right, that means the color of the image,which was clicked, changes to "cyan "and after 5 sec it changes back to "black". But now I have some problems timing the change of color and the sound file. At first I set "End Action" in the Slide Properties to "(none)" and "End Sound Action" in the Slide Sound Out Properties to "Terminate". Then the color was only changing after the soundfile was over. Then I changed the settings to "End Action" -> Terminate and added "Sleep 5000" in the inline code. Now the color changes immediately after clicking and stays for the 5sec before changing back to black But if the Sleep Time after clicking is longer then the remaining time of the SoundOut, the SoundOut of the next Slide State isn't starting. Is there any command which sets the Sleep time to something like "remaining time of SoundOut"? Best regards Hans -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/3a01dd5d-8d54-4518-9b79-b2145f89cdbb%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Oct 15 14:37:46 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 15 Oct 2013 10:37:46 -0400 Subject: changing border color of a slide image after clicking on it In-Reply-To: <3a01dd5d-8d54-4518-9b79-b2145f89cdbb@googlegroups.com> Message-ID: Hans, I am afraid that I do not quite follow all of this. You refer to a Slide, a SoundOut, and an Inline, and I do not know how they all interrelate (in particular, I do not recall the complication of a SoundOut in your first post). At this point I would need you to draw out a very clear diagram of your Procedure structure, along with clear specifications of what you want it to do. That said, first, you do not understand your code correctly. As written, it means the color of the image, which was clicked, changes to "cyan" and would later change to "black" at whatever time your hitObject gets redrawn, and goodness knows when that will happen. If you want your inline code to make the BorderColor black, then you must also follow that line with another hitObject.Draw command, which is missing from your code without comment. If you left that out on purpose (e.g., because the redraw will be taken care of by a later object), then you must add a comment to your code to explain that. As far as settting the Sleep time to something like "remaining time of SoundOut", I suppose you might use some combination of Clock.Read, SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I think that a sloppy way to do things. I would generally rather let the SoundOut handle the timing, and then follow that with more inline code to do whatever needs doing. Again, we need a better look at your Procedure structure, you may need to revise it. As a general strategy, I prefer to do as much as possible through the program structure & object properties, and to leave less to inline code. Regards, -- David McFarlane At 10/15/2013 04:56 AM Tuesday, haslinger.hans11 at gmail.com wrote: >Hallo David > > >I've tried another code for the changing border color part: > >Dim hitObject As SlideImage >Set hitObject = >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > hitObject.BorderColor = CColor("cyan") > hitObject.Draw > Sleep 5000 > hitObject.BorderColor = CColor("black") > > >If I understood this code right, that means the color of the >image,which was clicked, changes to "cyan "and after 5 sec it >changes back to "black". > >But now I have some problems timing the change of color and the sound file. > >At first I set "End Action" in the Slide Properties to "(none)" and >"End Sound Action" in the Slide Sound Out Properties to "Terminate". >Then the color was only changing after the soundfile was over. > >Then I changed the settings to "End Action" -> Terminate and added >"Sleep 5000" in the inline code. >Now the color changes immediately after clicking and stays for the >5sec before changing back to black >But if the Sleep Time after clicking is longer then the remaining >time of the SoundOut, the SoundOut of the next Slide State isn't starting. > >Is there any command which sets the Sleep time to something like >"remaining time of SoundOut"? > > >Best regards >Hans -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/525d5346.c819320a.0983.1c54SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From haslinger.hans11 at gmail.com Wed Oct 16 09:20:31 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Wed, 16 Oct 2013 02:20:31 -0700 Subject: changing border color of a slide image after clicking on it In-Reply-To: <525d5346.c819320a.0983.1c54SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Hallo David Thank you for your help. > At this point I would need you to draw out a very clear diagram of your Procedure structure, along with clear > specifications of what you want it to do The Procedure looks like this: ... ... ExternalCausesProc ExternalCausesList ExternalCausesTrialProc Instruction (TextBox) restart2 (Label) ExternalCausesSlide (Slide) InLine2 (InLineCode) ... ... After a short Instruction, there is an Image presented on the ExternalCausesSlide as a Stimulus (e.g. child is getting a birthday present). There is also a SoundOut on the ExternalCausesSlide which describes the scene in the Image. Additionaly there are 4 smaller Images as possible answers for the Stimulus Image. I've made an attribute for every Image and the SoundOut in my ExternalCausesList. Subjects should have time to click on one of the 4 target Images until the SoundOut was played completely. I want to highlight the Image a subject chooses by changing the border color of that Image to "cyan" (black is my default border color) so the subject knows that its answer was registered and it can change the current answer (this is another thing i could need some help with). I tried to implement the following code (which i've found somewhere in this google group) for changing the border color to "cyan" and back to "black" (default setting) before a new Stimulus is presented: Dim hitObject As SlideImage Set hitObject = CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) hitObject.BorderColor = CColor("cyan") hitObject.Draw Sleep 5000 hitObject.BorderColor = CColor("black") The current slide should be terminated after the Sound is played so I've set "End Sound Action" to "Terminate" and "End Action" (in the ExternalCausesSlide Properties) to "none". Now the color changed to "cyan" after the Sound was played and not immediately after the click. So i've changed the Settings to "End Action" -> "Terminate" and "EndSoundAction" -> "Terminate". Now the color changed immediately after the click occured and remained "Cyan" for 5sec before changing back to "black". But if the click occured at the end of the SoundOut with less than 5sec remaining, there was an interference with the Sound of the following Stimulus. Then I've tried "End Action" -> "Terminate" and "End Sound Action" -> "none". Now the Color changes immediately after the click and remains for the 5 sec no matter if the Sound is completely played or not. But if no click occurs, there is no termination. Now I thought I could use the "Terminate/Terminate"-setting and a Sleep time which is equal to the remaining duration of the sound file after the click occured, (something like Sleep "Duration Sound - RT (Time until click?)). This way, the slide would terminate after the click + Sleep time or if the sound file was played completely (if there was no click). There would also not be any interference with the following Sound file, because the Sleep time is never longer than the Sound file itself. > That said, first, you do not understand your code correctly. As > written, it means the color of the image, which was clicked, changes > to "cyan" and would later change to "black" at whatever time your > hitObject gets redrawn, and goodness knows when that will happen. Actually, it changes back to "black". But maybe that is just because "black" ist my default border color and the settings are just reset to the default settings after Sleep. > As a general strategy, I prefer to do as much as possible through the > program structure & object properties, and to leave less to inline code. Actually this was the prefered strategy for my project and it worked fine except for strHitTest for collecting Mouse Responses and logging the correct answer. Basically my program is completed, but i would like to add some little improvements, like this highlighting thing, to make it look better I hope my remarks are not too confusing. Best regards Hans Am Dienstag, 15. Oktober 2013 16:37:46 UTC+2 schrieb McFarlane, David: > Hans, > > I am afraid that I do not quite follow all of this. You refer to a > Slide, a SoundOut, and an Inline, and I do not know how they all > interrelate (in particular, I do not recall the complication of a > SoundOut in your first post). At this point I would need you to draw > out a very clear diagram of your Procedure structure, along with > clear specifications of what you want it to do. > > That said, first, you do not understand your code correctly. As > written, it means the color of the image, which was clicked, changes > to "cyan" and would later change to "black" at whatever time your > hitObject gets redrawn, and goodness knows when that will happen. If > you want your inline code to make the BorderColor black, then you > must also follow that line with another hitObject.Draw command, which > is missing from your code without comment. If you left that out on > purpose (e.g., because the redraw will be taken care of by a later > object), then you must add a comment to your code to explain that. > > As far as settting the Sleep time to something like "remaining time > of SoundOut", I suppose you might use some combination of Clock.Read, > SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I think > that a sloppy way to do things. I would generally rather let the > SoundOut handle the timing, and then follow that with more inline > code to do whatever needs doing. Again, we need a better look at > your Procedure structure, you may need to revise it. > > As a general strategy, I prefer to do as much as possible through the > program structure & object properties, and to leave less to inline code. > > Regards, > -- David McFarlane > > > At 10/15/2013 04:56 AM Tuesday, haslinge... at gmail.com wrote: > >Hallo David > > > > > >I've tried another code for the changing border color part: > > > >Dim hitObject As SlideImage > >Set hitObject = > >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > hitObject.BorderColor = CColor("cyan") > > hitObject.Draw > > Sleep 5000 > > hitObject.BorderColor = CColor("black") > > > > > >If I understood this code right, that means the color of the > >image,which was clicked, changes to "cyan "and after 5 sec it > >changes back to "black". > > > >But now I have some problems timing the change of color and the sound > file. > > > >At first I set "End Action" in the Slide Properties to "(none)" and > >"End Sound Action" in the Slide Sound Out Properties to "Terminate". > >Then the color was only changing after the soundfile was over. > > > >Then I changed the settings to "End Action" -> Terminate and added > >"Sleep 5000" in the inline code. > >Now the color changes immediately after clicking and stays for the > >5sec before changing back to black > >But if the Sleep Time after clicking is longer then the remaining > >time of the SoundOut, the SoundOut of the next Slide State isn't > starting. > > > >Is there any command which sets the Sleep time to something like > >"remaining time of SoundOut"? > > > > > >Best regards > >Hans > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/ef0333ba-998a-4ca5-a96a-83063ad5707e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hftibboel at gmail.com Wed Oct 16 15:30:51 2013 From: hftibboel at gmail.com (hftibboel at gmail.com) Date: Wed, 16 Oct 2013 08:30:51 -0700 Subject: IsPending help...? Message-ID: Dear all, I was wondering if anyone has a script using the IsPending method (the one on the Eprime website doesn't seem to work...) or if anyone can explain how to record multiple responses using this method, and to send triggers for both responses as well? The idea is that we want to present a Stimulus1 for 150 ms, that requires Response1 (or not), followed by a fixation screen for 1350 ms, followed by a Stimulus2 that appears for 250 ms, that requires Response2 (or not), followed by another fixation screen for 1350 ms. The difficulty is that participants should be able to perform Response1 anytime after the presentation of Stimulus1 (so participants should still be able to respond to stimulusS even when Stimulus2 is presented) and they should be able to perform Response2 anytime after the presentation of Stimulus2. In other words, when Stimulus2 is presented, it should be possible to record both Response1 and Response2. Another difficulty is that we would like to send triggers directly after a response is given (not at the termination of the slide, and not affecting the duration of the stimuli or the fixation screen). We would appreciate it if anyone could give us a few pointers... Thank you and kind regards! Helen Tibboel -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/e6cf9bdc-a89e-4ed9-b70c-52c1b582f6f8%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Wed Oct 16 16:31:11 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Wed, 16 Oct 2013 12:31:11 -0400 Subject: changing border color of a slide image after clicking on it In-Reply-To: Message-ID: Hans, Ah, there's the confusion -- you referred to "SoundOut" when you meant "SlideSound". SoundOut and SlideSound share a lot of properties, but they are two different things that are used in different ways. You do not have a SoundOut in your Procedure, just a SlideSound as a sub-object of your Slide. Now here is my restatement of your specifications: - E-Prime simultaneously presents a visual stimulus (containing a number of target areas) and starts playing a sound. - The visual stimulus remains until, and only until, the sound the finishes playing. - The subject uses the mouse to respond by clicking target areas on the display, and when the subject clicks on a target area, the border of that area changes color. Now you are just stuck accomplishing that second objective. For that, I think you need to use SoundBuffer.Status -- see that topic in the E-Basic Help facility. You will also have to get access to the SoundBuffer object that plays your sound -- for that, just browse the related topics in the E-Basic Help facility, and/or look at sound-related code generated for you by E-Studio (that's how I figure all this stuff out, if I can do that then so can you :) ). And of course, you may also always contact PST Support for help, see below. Best, ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (twitter.com/EPrimeMaster) /----------- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours -- this is pretty much their substitute for proper documentation, so make full use of it. 3) In addition, PST takes questions at their Facebook page (http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 ), and offers several instructional videos there and on their YouTube channel (http://www.youtube.com/user/PSTNET ) (no Twitter feed yet, though). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \----------- haslinger.hans11 at gmail.com wrote: > Hallo David > > Thank you for your help. > > > At this point I would need you to draw > > out a very clear diagram of your Procedure structure, along > with clear specifications of what you want it to do > > > The Procedure looks like this: > > > ... > ... > > ExternalCausesProc > ExternalCausesList > ExternalCausesTrialProc > Instruction (TextBox) > restart2 (Label) > ExternalCausesSlide (Slide) > InLine2 (InLineCode) > ... > ... > > > After a short Instruction, there is an Image presented on the > ExternalCausesSlide as a Stimulus (e.g. child is getting a birthday > present). > There is also a SoundOut on the ExternalCausesSlide which describes the > scene in the Image. > Additionaly there are 4 smaller Images as possible answers for the > Stimulus Image. > I've made an attribute for every Image and the SoundOut in my > ExternalCausesList. > > Subjects should have time to click on one of the 4 target Images until > the SoundOut was played completely. > I want to highlight the Image a subject chooses by changing the border > color of that Image to "cyan" (black is my default border color) so the > subject knows that its answer was registered and it can change the > current answer (this is another thing i could need some help with). > > I tried to implement the following code (which i've found somewhere in > this google group) for changing the border color to "cyan" and back to > "black" (default setting) before a new Stimulus is presented: > > Dim hitObject As SlideImage > Set hitObject = > CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > hitObject.BorderColor = CColor("cyan") > hitObject.Draw > Sleep 5000 > > hitObject.BorderColor = CColor("black") > > > > The current slide should be terminated after the Sound is played so I've > set "End Sound Action" to "Terminate" and "End Action" (in the > ExternalCausesSlide Properties) to "none". > Now the color changed to "cyan" after the Sound was played and not > immediately after the click. > > So i've changed the Settings to "End Action" -> "Terminate" and > "EndSoundAction" -> "Terminate". > Now the color changed immediately after the click occured and remained > "Cyan" for 5sec before changing back to "black". > But if the click occured at the end of the SoundOut with less than 5sec > remaining, there was an interference with the Sound of the following > Stimulus. > > Then I've tried "End Action" -> "Terminate" and "End Sound Action" -> > "none". > Now the Color changes immediately after the click and remains for the 5 > sec no matter if the Sound is completely played or not. > But if no click occurs, there is no termination. > > > Now I thought I could use the "Terminate/Terminate"-setting and a Sleep > time which is equal to the remaining duration of the sound file after > the click occured, (something like Sleep "Duration Sound - RT (Time > until click?)). > This way, the slide would terminate after the click + Sleep time or if > the sound file was played completely (if there was no click). > There would also not be any interference with the following Sound file, > because the Sleep time is never longer than the Sound file itself. > > > > > That said, first, you do not understand your code correctly. As > written, it means the color of the image, which was clicked, changes > to "cyan" and would later change to "black" at whatever time your > hitObject gets redrawn, and goodness knows when that will happen. > > > > Actually, it changes back to "black". > But maybe that is just because "black" ist my default border color and > the settings are just reset to the default settings after Sleep. > > > > As a general strategy, I prefer to do as much as possible through the > program structure & object properties, and to leave less to inline code. > > > > Actually this was the prefered strategy for my project and it worked > fine except for strHitTest for collecting Mouse Responses and logging > the correct answer. > Basically my program is completed, but i would like to add some little > improvements, like this highlighting thing, to make it look better > > I hope my remarks are not too confusing. > > > Best regards > Hans > > > > Am Dienstag, 15. Oktober 2013 16:37:46 UTC+2 schrieb McFarlane, David: > > Hans, > > I am afraid that I do not quite follow all of this. You refer to a > Slide, a SoundOut, and an Inline, and I do not know how they all > interrelate (in particular, I do not recall the complication of a > SoundOut in your first post). At this point I would need you to draw > out a very clear diagram of your Procedure structure, along with > clear specifications of what you want it to do. > > That said, first, you do not understand your code correctly. As > written, it means the color of the image, which was clicked, changes > to "cyan" and would later change to "black" at whatever time your > hitObject gets redrawn, and goodness knows when that will happen. If > you want your inline code to make the BorderColor black, then you > must also follow that line with another hitObject.Draw command, which > is missing from your code without comment. If you left that out on > purpose (e.g., because the redraw will be taken care of by a later > object), then you must add a comment to your code to explain that. > > As far as settting the Sleep time to something like "remaining time > of SoundOut", I suppose you might use some combination of Clock.Read, > SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I think > that a sloppy way to do things. I would generally rather let the > SoundOut handle the timing, and then follow that with more inline > code to do whatever needs doing. Again, we need a better look at > your Procedure structure, you may need to revise it. > > As a general strategy, I prefer to do as much as possible through the > program structure & object properties, and to leave less to inline > code. > > Regards, > -- David McFarlane > > > At 10/15/2013 04:56 AM Tuesday, haslinge... at gmail.com > wrote: > >Hallo David > > > > > >I've tried another code for the changing border color part: > > > >Dim hitObject As SlideImage > >Set hitObject = > >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > hitObject.BorderColor = CColor("cyan") > > hitObject.Draw > > Sleep 5000 > > hitObject.BorderColor = CColor("black") > > > > > >If I understood this code right, that means the color of the > >image,which was clicked, changes to "cyan "and after 5 sec it > >changes back to "black". > > > >But now I have some problems timing the change of color and the > sound file. > > > >At first I set "End Action" in the Slide Properties to "(none)" and > >"End Sound Action" in the Slide Sound Out Properties to "Terminate". > >Then the color was only changing after the soundfile was over. > > > >Then I changed the settings to "End Action" -> Terminate and added > >"Sleep 5000" in the inline code. > >Now the color changes immediately after clicking and stays for the > >5sec before changing back to black > >But if the Sleep Time after clicking is longer then the remaining > >time of the SoundOut, the SoundOut of the next Slide State isn't > starting. > > > >Is there any command which sets the Sleep time to something like > >"remaining time of SoundOut"? > > > > > >Best regards > >Hans -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/525EBF4F.7070300%40msu.edu. For more options, visit https://groups.google.com/groups/opt_out. From haslinger.hans11 at gmail.com Thu Oct 17 10:29:29 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Thu, 17 Oct 2013 03:29:29 -0700 Subject: changing border color of a slide image after clicking on it In-Reply-To: <525EBF4F.7070300@msu.edu> Message-ID: Hallo David Thank you for the advice with SoundBuffer.Status. > Now here is my restatement of your specifications: > - E-Prime simultaneously presents a visual stimulus (containing a number > of target areas) and starts playing a sound. > - The visual stimulus remains until, and only until, the sound the > finishes playing. > - The subject uses the mouse to respond by clicking target areas on the > display, and when the subject clicks on a target area, the border of > that area changes Color Yes, that is correct. I've tried to create a code with SoundBuffer.Status. But I am not sure if it is correct that way: Dim ExternalCausesSound As SlideSoundOut Set ExternalCausesSound = CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) Dim NewBuffer As SoundBuffer Set NewBuffer = ExternalCausesSound.Buffers(1) Then i would try something like: If NewBuffer.Status = 0 Then ..... ,so if the Buffer.Status is "Stopped", the Sleep Timer would be stopped or the current SlideState would skip to the following State. (I've set the Sleep to something longer then the Duration of the Sound) So basically I would need a command which I could insert after "Then" to stop the Sleep time. Could I use "hitObject.Clear" for that? Best regards Hans I Am Mittwoch, 16. Oktober 2013 18:31:11 UTC+2 schrieb McFarlane, David: > Hans, > > Ah, there's the confusion -- you referred to "SoundOut" when you meant > "SlideSound". SoundOut and SlideSound share a lot of properties, but > they are two different things that are used in different ways. You do > not have a SoundOut in your Procedure, just a SlideSound as a sub-object > of your Slide. > > Now here is my restatement of your specifications: > - E-Prime simultaneously presents a visual stimulus (containing a number > of target areas) and starts playing a sound. > - The visual stimulus remains until, and only until, the sound the > finishes playing. > - The subject uses the mouse to respond by clicking target areas on the > display, and when the subject clicks on a target area, the border of > that area changes color. > > Now you are just stuck accomplishing that second objective. For that, I > think you need to use SoundBuffer.Status -- see that topic in the > E-Basic Help facility. You will also have to get access to the > SoundBuffer object that plays your sound -- for that, just browse the > related topics in the E-Basic Help facility, and/or look at > sound-related code generated for you by E-Studio (that's how I figure > all this stuff out, if I can do that then so can you :) ). And of > course, you may also always contact PST Support for help, see below. > > Best, > ----- > David McFarlane > E-Prime training online: > http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (twitter.com/EPrimeMaster) > > /----------- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > any and all questions at > http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive > to respond to all requests in 24-48 hours -- this is pretty much their > substitute for proper documentation, so make full use of it. 3) In > addition, PST takes questions at their Facebook page > (http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 > ), and offers several instructional videos there and on their YouTube > channel (http://www.youtube.com/user/PSTNET ) (no Twitter feed yet, > though). 4) If you do get an answer from PST staff, please extend the > courtesy of posting their reply back here for the sake of others. > \----------- > > > haslinge... at gmail.com wrote: > > Hallo David > > > > Thank you for your help. > > > > > > At this point I would need you to draw > > > > out a very clear diagram of your Procedure structure, along > > with clear specifications of what you want it to do > > > > > > The Procedure looks like this: > > > > > > ... > > ... > > > > ExternalCausesProc > > ExternalCausesList > > ExternalCausesTrialProc > > Instruction (TextBox) > > restart2 (Label) > > ExternalCausesSlide (Slide) > > InLine2 (InLineCode) > > ... > > ... > > > > > > After a short Instruction, there is an Image presented on the > > ExternalCausesSlide as a Stimulus (e.g. child is getting a birthday > > present). > > There is also a SoundOut on the ExternalCausesSlide which describes the > > scene in the Image. > > Additionaly there are 4 smaller Images as possible answers for the > > Stimulus Image. > > I've made an attribute for every Image and the SoundOut in my > > ExternalCausesList. > > > > Subjects should have time to click on one of the 4 target Images until > > the SoundOut was played completely. > > I want to highlight the Image a subject chooses by changing the border > > color of that Image to "cyan" (black is my default border color) so the > > subject knows that its answer was registered and it can change the > > current answer (this is another thing i could need some help with). > > > > I tried to implement the following code (which i've found somewhere in > > this google group) for changing the border color to "cyan" and back to > > "black" (default setting) before a new Stimulus is presented: > > > > Dim hitObject As SlideImage > > Set hitObject = > > CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > hitObject.BorderColor = CColor("cyan") > > hitObject.Draw > > Sleep 5000 > > > > hitObject.BorderColor = CColor("black") > > > > > > > > The current slide should be terminated after the Sound is played so I've > > set "End Sound Action" to "Terminate" and "End Action" (in the > > ExternalCausesSlide Properties) to "none". > > Now the color changed to "cyan" after the Sound was played and not > > immediately after the click. > > > > So i've changed the Settings to "End Action" -> "Terminate" and > > "EndSoundAction" -> "Terminate". > > Now the color changed immediately after the click occured and remained > > "Cyan" for 5sec before changing back to "black". > > But if the click occured at the end of the SoundOut with less than 5sec > > remaining, there was an interference with the Sound of the following > > Stimulus. > > > > Then I've tried "End Action" -> "Terminate" and "End Sound Action" -> > > "none". > > Now the Color changes immediately after the click and remains for the 5 > > sec no matter if the Sound is completely played or not. > > But if no click occurs, there is no termination. > > > > > > Now I thought I could use the "Terminate/Terminate"-setting and a Sleep > > time which is equal to the remaining duration of the sound file after > > the click occured, (something like Sleep "Duration Sound - RT (Time > > until click?)). > > This way, the slide would terminate after the click + Sleep time or if > > the sound file was played completely (if there was no click). > > There would also not be any interference with the following Sound file, > > because the Sleep time is never longer than the Sound file itself. > > > > > > > > > > That said, first, you do not understand your code correctly. As > > written, it means the color of the image, which was clicked, changes > > to "cyan" and would later change to "black" at whatever time your > > hitObject gets redrawn, and goodness knows when that will happen. > > > > > > > > Actually, it changes back to "black". > > But maybe that is just because "black" ist my default border color and > > the settings are just reset to the default settings after Sleep. > > > > > > > > As a general strategy, I prefer to do as much as possible through > the > > program structure & object properties, and to leave less to inline > code. > > > > > > > > Actually this was the prefered strategy for my project and it worked > > fine except for strHitTest for collecting Mouse Responses and logging > > the correct answer. > > Basically my program is completed, but i would like to add some little > > improvements, like this highlighting thing, to make it look better > > > > I hope my remarks are not too confusing. > > > > > > Best regards > > Hans > > > > > > > > Am Dienstag, 15. Oktober 2013 16:37:46 UTC+2 schrieb McFarlane, David: > > > > Hans, > > > > I am afraid that I do not quite follow all of this. You refer to a > > Slide, a SoundOut, and an Inline, and I do not know how they all > > interrelate (in particular, I do not recall the complication of a > > SoundOut in your first post). At this point I would need you to > draw > > out a very clear diagram of your Procedure structure, along with > > clear specifications of what you want it to do. > > > > That said, first, you do not understand your code correctly. As > > written, it means the color of the image, which was clicked, changes > > to "cyan" and would later change to "black" at whatever time your > > hitObject gets redrawn, and goodness knows when that will happen. > If > > you want your inline code to make the BorderColor black, then you > > must also follow that line with another hitObject.Draw command, > which > > is missing from your code without comment. If you left that out on > > purpose (e.g., because the redraw will be taken care of by a later > > object), then you must add a comment to your code to explain that. > > > > As far as settting the Sleep time to something like "remaining time > > of SoundOut", I suppose you might use some combination of > Clock.Read, > > SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I think > > that a sloppy way to do things. I would generally rather let the > > SoundOut handle the timing, and then follow that with more inline > > code to do whatever needs doing. Again, we need a better look at > > your Procedure structure, you may need to revise it. > > > > As a general strategy, I prefer to do as much as possible through > the > > program structure & object properties, and to leave less to inline > > code. > > > > Regards, > > -- David McFarlane > > > > > > At 10/15/2013 04:56 AM Tuesday, haslinge... at gmail.com > > wrote: > > >Hallo David > > > > > > > > >I've tried another code for the changing border color part: > > > > > >Dim hitObject As SlideImage > > >Set hitObject = > > >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > hitObject.BorderColor = CColor("cyan") > > > hitObject.Draw > > > Sleep 5000 > > > hitObject.BorderColor = CColor("black") > > > > > > > > >If I understood this code right, that means the color of the > > >image,which was clicked, changes to "cyan "and after 5 sec it > > >changes back to "black". > > > > > >But now I have some problems timing the change of color and the > > sound file. > > > > > >At first I set "End Action" in the Slide Properties to "(none)" > and > > >"End Sound Action" in the Slide Sound Out Properties to > "Terminate". > > >Then the color was only changing after the soundfile was over. > > > > > >Then I changed the settings to "End Action" -> Terminate and added > > >"Sleep 5000" in the inline code. > > >Now the color changes immediately after clicking and stays for the > > >5sec before changing back to black > > >But if the Sleep Time after clicking is longer then the remaining > > >time of the SoundOut, the SoundOut of the next Slide State isn't > > starting. > > > > > >Is there any command which sets the Sleep time to something like > > >"remaining time of SoundOut"? > > > > > > > > >Best regards > > >Hans > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mengyinj at gmail.com Thu Oct 17 13:26:02 2013 From: mengyinj at gmail.com (Maggie) Date: Thu, 17 Oct 2013 06:26:02 -0700 Subject: stimulus size in degrees of visual angle Message-ID: Hello, I'm just starting to learn how to use eprime and I've run into some trouble with the stimulus size. I need to place a geometric shape (i.e. triangle or square) above the fixation point, and it needs to be 3.8*°* x 3.8*° *in size. How to I convert this into pixels exactly? I'm assuming the size (height and width) in properties are in pixels too, right? Many thanks, Maggie -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/431e3b8b-57b3-4eb1-9904-9d60c3bddce8%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu Oct 17 15:37:14 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 17 Oct 2013 11:37:14 -0400 Subject: stimulus size in degrees of visual angle In-Reply-To: <431e3b8b-57b3-4eb1-9904-9d60c3bddce8@googlegroups.com> Message-ID: Maggie, E-Prime displays work in units of pixels, or %. You will have to convert that to visual angle. To do that you will have to know the physical dimensions of your screen, and the distance from the observer to the screen. From there it is just a little bit of math, which you can find in the Wikipedia article on "Visual angle". You should be able to take it from there. (Aside to PsychoPy users: Yes, PsychoPy, unlike E-Prime, will work directly in units of visual angle, after you tell it the measurements mentioned above.) ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/17/2013 09:26 AM Thursday, Maggie wrote: >Hello, > >I'm just starting to learn how to use eprime and >I've run into some trouble with the stimulus >size. I need to place a geometric shape (i.e. >triangle or square) above the fixation point, >and it needs to be 3.8° x 3.8° in size. How to I >convert this into pixels exactly? I'm assuming >the size (height and width) in properties are in pixels too, right? > >Many thanks, >Maggie -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52600435.0286320a.39d7.5850SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Thu Oct 17 15:41:34 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 17 Oct 2013 11:41:34 -0400 Subject: changing border color of a slide image after clicking on it In-Reply-To: Message-ID: Hans, I'm afraid you have lost me again. But now you should have all the pieces you need in order to do what you want, and you should be able to puzzle it out yourself from here. Best, -- David McFarlane At 10/17/2013 06:29 AM Thursday, haslinger.hans11 at gmail.com wrote: >Hallo David > >Thank you for the advice with SoundBuffer.Status. > > >Now here is my restatement of your specifications: >- E-Prime simultaneously presents a visual stimulus (containing a number >of target areas) and starts playing a sound. >- The visual stimulus remains until, and only until, the sound the >finishes playing. >- The subject uses the mouse to respond by clicking target areas on the >display, and when the subject clicks on a target area, the border of >that area changes Color > > >Yes, that is correct. > > >I've tried to create a code with SoundBuffer.Status. But I am not >sure if it is correct that way: > > >Dim ExternalCausesSound As SlideSoundOut > Set ExternalCausesSound = > CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) > > >Dim NewBuffer As SoundBuffer > Set NewBuffer = ExternalCausesSound.Buffers(1) > > >Then i would try something like: > >If NewBuffer.Status = 0 Then ..... > >,so if the Buffer.Status is "Stopped", the Sleep Timer would be >stopped or the current SlideState would skip to the following State. >(I've set the Sleep to something longer then the Duration of the Sound) >So basically I would need a command which I could insert after >"Then" to stop the Sleep time. > >Could I use "hitObject.Clear" for that? > > >Best regards >Hans > > > >I > > >Am Mittwoch, 16. Oktober 2013 18:31:11 UTC+2 schrieb McFarlane, David: >Hans, > >Ah, there's the confusion -- you referred to "SoundOut" when you meant >"SlideSound". SoundOut and SlideSound share a lot of properties, but >they are two different things that are used in different ways. You do >not have a SoundOut in your Procedure, just a SlideSound as a sub-object >of your Slide. > >Now here is my restatement of your specifications: >- E-Prime simultaneously presents a visual stimulus (containing a number >of target areas) and starts playing a sound. >- The visual stimulus remains until, and only until, the sound the >finishes playing. >- The subject uses the mouse to respond by clicking target areas on the >display, and when the subject clicks on a target area, the border of >that area changes color. > >Now you are just stuck accomplishing that second objective. For that, I >think you need to use SoundBuffer.Status -- see that topic in the >E-Basic Help facility. You will also have to get access to the >SoundBuffer object that plays your sound -- for that, just browse the >related topics in the E-Basic Help facility, and/or look at >sound-related code generated for you by E-Studio (that's how I figure >all this stuff out, if I can do that then so can you :) ). And of >course, you may also always contact PST Support for help, see below. > >Best, >----- >David McFarlane >E-Prime training online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx > >Twitter: @EPrimeMaster >(twitter.com/EPrimeMaster) > >/----------- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff take >any and all questions at >http://support.pstnet.com/e%2Dprime/support/login.asp >, and they strive >to respond to all requests in 24-48 hours -- this is pretty much their >substitute for proper documentation, so make full use of it. 3) In >addition, PST takes questions at their Facebook page >(http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 > >), and offers several instructional videos there and on their YouTube >channel >(http://www.youtube.com/user/PSTNET >) (no Twitter feed yet, >though). 4) If you do get an answer from PST staff, please extend the >courtesy of posting their reply back here for the sake of others. >\----------- > > >haslinge... at gmail.com wrote: > > Hallo David > > > > Thank you for your help. > > > > > > At this point I would need you to draw > > > > out a very clear diagram of your Procedure structure, along > > with clear specifications of what you want it to do > > > > > > The Procedure looks like this: > > > > > > ... > > ... > > > > ExternalCausesProc > > ExternalCausesList > > ExternalCausesTrialProc > > Instruction (TextBox) > > restart2 (Label) > > ExternalCausesSlide (Slide) > > InLine2 (InLineCode) > > ... > > ... > > > > > > After a short Instruction, there is an Image presented on the > > ExternalCausesSlide as a Stimulus (e.g. child is getting a birthday > > present). > > There is also a SoundOut on the ExternalCausesSlide which describes the > > scene in the Image. > > Additionaly there are 4 smaller Images as possible answers for the > > Stimulus Image. > > I've made an attribute for every Image and the SoundOut in my > > ExternalCausesList. > > > > Subjects should have time to click on one of the 4 target Images until > > the SoundOut was played completely. > > I want to highlight the Image a subject chooses by changing the border > > color of that Image to "cyan" (black is my default border color) so the > > subject knows that its answer was registered and it can change the > > current answer (this is another thing i could need some help with). > > > > I tried to implement the following code (which i've found somewhere in > > this google group) for changing the border color to "cyan" and back to > > "black" (default setting) before a new Stimulus is presented: > > > > Dim hitObject As SlideImage > > Set hitObject = > > CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > hitObject.BorderColor = CColor("cyan") > > hitObject.Draw > > Sleep 5000 > > > > hitObject.BorderColor = CColor("black") > > > > > > > > The current slide should be terminated after the Sound is played so I've > > set "End Sound Action" to "Terminate" and "End Action" (in the > > ExternalCausesSlide Properties) to "none". > > Now the color changed to "cyan" after the Sound was played and not > > immediately after the click. > > > > So i've changed the Settings to "End Action" -> "Terminate" and > > "EndSoundAction" -> "Terminate". > > Now the color changed immediately after the click occured and remained > > "Cyan" for 5sec before changing back to "black". > > But if the click occured at the end of the SoundOut with less than 5sec > > remaining, there was an interference with the Sound of the following > > Stimulus. > > > > Then I've tried "End Action" -> "Terminate" and "End Sound Action" -> > > "none". > > Now the Color changes immediately after the click and remains for the 5 > > sec no matter if the Sound is completely played or not. > > But if no click occurs, there is no termination. > > > > > > Now I thought I could use the "Terminate/Terminate"-setting and a Sleep > > time which is equal to the remaining duration of the sound file after > > the click occured, (something like Sleep "Duration Sound - RT (Time > > until click?)). > > This way, the slide would terminate after the click + Sleep time or if > > the sound file was played completely (if there was no click). > > There would also not be any interference with the following Sound file, > > because the Sleep time is never longer than the Sound file itself. > > > > > > > > > > That said, first, you do not understand your code correctly. As > > written, it means the color of the image, which was clicked, changes > > to "cyan" and would later change to "black" at whatever time your > > hitObject gets redrawn, and goodness knows when that will happen. > > > > > > > > Actually, it changes back to "black". > > But maybe that is just because "black" ist my default border color and > > the settings are just reset to the default settings after Sleep. > > > > > > > > As a general strategy, I prefer to do as much as possible through the > > program structure & object properties, and to leave less to > inline code. > > > > > > > > Actually this was the prefered strategy for my project and it worked > > fine except for strHitTest for collecting Mouse Responses and logging > > the correct answer. > > Basically my program is completed, but i would like to add some little > > improvements, like this highlighting thing, to make it look better > > > > I hope my remarks are not too confusing. > > > > > > Best regards > > Hans > > > > > > > > Am Dienstag, 15. Oktober 2013 16:37:46 UTC+2 schrieb McFarlane, David: > > > > Hans, > > > > I am afraid that I do not quite follow all of this. You refer to a > > Slide, a SoundOut, and an Inline, and I do not know how they all > > interrelate (in particular, I do not recall the complication of a > > SoundOut in your first post). At this point I would need you to draw > > out a very clear diagram of your Procedure structure, along with > > clear specifications of what you want it to do. > > > > That said, first, you do not understand your code correctly. As > > written, it means the color of the image, which was clicked, changes > > to "cyan" and would later change to "black" at whatever time your > > hitObject gets redrawn, and goodness knows when that will happen. If > > you want your inline code to make the BorderColor black, then you > > must also follow that line with another hitObject.Draw command, which > > is missing from your code without comment. If you left that out on > > purpose (e.g., because the redraw will be taken care of by a later > > object), then you must add a comment to your code to explain that. > > > > As far as settting the Sleep time to something like "remaining time > > of SoundOut", I suppose you might use some combination of Clock.Read, > > SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I think > > that a sloppy way to do things. I would generally rather let the > > SoundOut handle the timing, and then follow that with more inline > > code to do whatever needs doing. Again, we need a better look at > > your Procedure structure, you may need to revise it. > > > > As a general strategy, I prefer to do as much as possible through the > > program structure & object properties, and to leave less to inline > > code. > > > > Regards, > > -- David McFarlane > > > > > > At 10/15/2013 04:56 AM Tuesday, haslinge... at gmail.com > > wrote: > > >Hallo David > > > > > > > > >I've tried another code for the changing border color part: > > > > > >Dim hitObject As SlideImage > > >Set hitObject = > > >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > hitObject.BorderColor = CColor("cyan") > > > hitObject.Draw > > > Sleep 5000 > > > hitObject.BorderColor = CColor("black") > > > > > > > > >If I understood this code right, that means the color of the > > >image,which was clicked, changes to "cyan "and after 5 sec it > > >changes back to "black". > > > > > >But now I have some problems timing the change of color and the > > sound file. > > > > > >At first I set "End Action" in the Slide Properties to "(none)" and > > >"End Sound Action" in the Slide Sound Out Properties to "Terminate". > > >Then the color was only changing after the soundfile was over. > > > > > >Then I changed the settings to "End Action" -> Terminate and added > > >"Sleep 5000" in the inline code. > > >Now the color changes immediately after clicking and stays for the > > >5sec before changing back to black > > >But if the Sleep Time after clicking is longer then the remaining > > >time of the SoundOut, the SoundOut of the next Slide State isn't > > starting. > > > > > >Is there any command which sets the Sleep time to something like > > >"remaining time of SoundOut"? > > > > > > > > >Best regards > > >Hans > >-- >You received this message because you are subscribed to the Google >Groups "E-Prime" group. >To unsubscribe from this group and stop receiving emails from it, >send an email to e-prime+unsubscribe at googlegroups.com. >To post to this group, send email to e-prime at googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com. >For more options, visit >https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5260053c.48e1320a.68e8.5f87SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From francesco.biondi1 at gmail.com Thu Oct 17 21:58:37 2013 From: francesco.biondi1 at gmail.com (francesco biondi) Date: Thu, 17 Oct 2013 14:58:37 -0700 Subject: Dual Task Message-ID: Hi all, I am designing an experiment using a dual task paradigm. I have two stimuli: s1 and s2, and 2 responses: r1 and r2. After the fixation point, s1 appers on the right side of the screen and, after a given soa, s2 appears on the left side of the screen. I need to record both the responses r1 and r2. Since soas are very short (150 and 300ms), subjects won't be able to produce r1 by the time s2 appears. Nonetheless, I still need s1 to be visible to let subjects to produce r1. My question is: do you know how i can have (after the soa) both the stimuli on the screen and record both r1 and r2? Also, I would like to s1 and s2 to disappear when, respectively, r1 and r2 are produced. After r2 is produced the next trial starts. Thanks Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/55887032-6a2a-4adf-8235-912e59f48805%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From haslinger.hans11 at gmail.com Fri Oct 18 09:15:18 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Fri, 18 Oct 2013 02:15:18 -0700 Subject: changing border color of a slide image after clicking on it In-Reply-To: <5260053c.48e1320a.68e8.5f87SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Hallo again David I just want to be sure if the code: Dim ExternalCausesSound As SlideSoundOut Set ExternalCausesSound = CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) (ExternalCausesSound is the Name of my SlideSound) Dim NewBuffer As SoundBuffer Set NewBuffer = ExternalCausesSound.Buffers(1) ...leads to the correct Sound Buffer before I try something with SoundBuffer.Status. At the Moment I am playing around with: Select Case NewBuffer.Status Case ebBufferStatusStopped ... (some code that stops the "Sleep" or leads to the next Slide State) I just want to know if I am on the right way or about to get lost completely. Best regards Hans Am Donnerstag, 17. Oktober 2013 17:41:34 UTC+2 schrieb McFarlane, David: > Hans, > > I'm afraid you have lost me again. But now you should have all the > pieces you need in order to do what you want, and you should be able > to puzzle it out yourself from here. > > Best, > -- David McFarlane > > > At 10/17/2013 06:29 AM Thursday, haslinge... at gmail.com wrote: > >Hallo David > > > >Thank you for the advice with SoundBuffer.Status. > > > > > >Now here is my restatement of your specifications: > >- E-Prime simultaneously presents a visual stimulus (containing a number > >of target areas) and starts playing a sound. > >- The visual stimulus remains until, and only until, the sound the > >finishes playing. > >- The subject uses the mouse to respond by clicking target areas on the > >display, and when the subject clicks on a target area, the border of > >that area changes Color > > > > > >Yes, that is correct. > > > > > >I've tried to create a code with SoundBuffer.Status. But I am not > >sure if it is correct that way: > > > > > >Dim ExternalCausesSound As SlideSoundOut > > Set ExternalCausesSound = > > > CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) > > > > > > >Dim NewBuffer As SoundBuffer > > Set NewBuffer = ExternalCausesSound.Buffers(1) > > > > > >Then i would try something like: > > > >If NewBuffer.Status = 0 Then ..... > > > >,so if the Buffer.Status is "Stopped", the Sleep Timer would be > >stopped or the current SlideState would skip to the following State. > >(I've set the Sleep to something longer then the Duration of the Sound) > >So basically I would need a command which I could insert after > >"Then" to stop the Sleep time. > > > >Could I use "hitObject.Clear" for that? > > > > > >Best regards > >Hans > > > > > > > >I > > > > > >Am Mittwoch, 16. Oktober 2013 18:31:11 UTC+2 schrieb McFarlane, David: > >Hans, > > > >Ah, there's the confusion -- you referred to "SoundOut" when you meant > >"SlideSound". SoundOut and SlideSound share a lot of properties, but > >they are two different things that are used in different ways. You do > >not have a SoundOut in your Procedure, just a SlideSound as a sub-object > >of your Slide. > > > >Now here is my restatement of your specifications: > >- E-Prime simultaneously presents a visual stimulus (containing a number > >of target areas) and starts playing a sound. > >- The visual stimulus remains until, and only until, the sound the > >finishes playing. > >- The subject uses the mouse to respond by clicking target areas on the > >display, and when the subject clicks on a target area, the border of > >that area changes color. > > > >Now you are just stuck accomplishing that second objective. For that, I > >think you need to use SoundBuffer.Status -- see that topic in the > >E-Basic Help facility. You will also have to get access to the > >SoundBuffer object that plays your sound -- for that, just browse the > >related topics in the E-Basic Help facility, and/or look at > >sound-related code generated for you by E-Studio (that's how I figure > >all this stuff out, if I can do that then so can you :) ). And of > >course, you may also always contact PST Support for help, see below. > > > >Best, > >----- > >David McFarlane > >E-Prime training online: > > > http://psychology.msu.edu/Workshops_Courses/eprime.aspx > > > >Twitter: @EPrimeMaster > >(twitter.com/EPrimeMaster) > > > >/----------- > >Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > >any and all questions at > > > http://support.pstnet.com/e%2Dprime/support/login.asp > >, and they strive > >to respond to all requests in 24-48 hours -- this is pretty much their > >substitute for proper documentation, so make full use of it. 3) In > >addition, PST takes questions at their Facebook page > >(< > http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683> > http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 > > > >), and offers several instructional videos there and on their YouTube > >channel > >(http://www.youtube.com/user/PSTNET > >) (no Twitter feed yet, > >though). 4) If you do get an answer from PST staff, please extend the > >courtesy of posting their reply back here for the sake of others. > >\----------- > > > > > >haslinge... at gmail.com wrote: > > > Hallo David > > > > > > Thank you for your help. > > > > > > > > > At this point I would need you to draw > > > > > > out a very clear diagram of your Procedure structure, along > > > with clear specifications of what you want it to do > > > > > > > > > The Procedure looks like this: > > > > > > > > > ... > > > ... > > > > > > ExternalCausesProc > > > ExternalCausesList > > > ExternalCausesTrialProc > > > Instruction (TextBox) > > > restart2 (Label) > > > ExternalCausesSlide (Slide) > > > InLine2 (InLineCode) > > > ... > > > ... > > > > > > > > > After a short Instruction, there is an Image presented on the > > > ExternalCausesSlide as a Stimulus (e.g. child is getting a birthday > > > present). > > > There is also a SoundOut on the ExternalCausesSlide which describes > the > > > scene in the Image. > > > Additionaly there are 4 smaller Images as possible answers for the > > > Stimulus Image. > > > I've made an attribute for every Image and the SoundOut in my > > > ExternalCausesList. > > > > > > Subjects should have time to click on one of the 4 target Images until > > > the SoundOut was played completely. > > > I want to highlight the Image a subject chooses by changing the border > > > color of that Image to "cyan" (black is my default border color) so > the > > > subject knows that its answer was registered and it can change the > > > current answer (this is another thing i could need some help with). > > > > > > I tried to implement the following code (which i've found somewhere in > > > this google group) for changing the border color to "cyan" and back to > > > "black" (default setting) before a new Stimulus is presented: > > > > > > Dim hitObject As SlideImage > > > Set hitObject = > > > CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > > > hitObject.BorderColor = CColor("cyan") > > > hitObject.Draw > > > Sleep 5000 > > > > > > hitObject.BorderColor = CColor("black") > > > > > > > > > > > > The current slide should be terminated after the Sound is played so > I've > > > set "End Sound Action" to "Terminate" and "End Action" (in the > > > ExternalCausesSlide Properties) to "none". > > > Now the color changed to "cyan" after the Sound was played and not > > > immediately after the click. > > > > > > So i've changed the Settings to "End Action" -> "Terminate" and > > > "EndSoundAction" -> "Terminate". > > > Now the color changed immediately after the click occured and remained > > > "Cyan" for 5sec before changing back to "black". > > > But if the click occured at the end of the SoundOut with less than > 5sec > > > remaining, there was an interference with the Sound of the following > > > Stimulus. > > > > > > Then I've tried "End Action" -> "Terminate" and "End Sound Action" -> > > > "none". > > > Now the Color changes immediately after the click and remains for the > 5 > > > sec no matter if the Sound is completely played or not. > > > But if no click occurs, there is no termination. > > > > > > > > > Now I thought I could use the "Terminate/Terminate"-setting and a > Sleep > > > time which is equal to the remaining duration of the sound file after > > > the click occured, (something like Sleep "Duration Sound - RT (Time > > > until click?)). > > > This way, the slide would terminate after the click + Sleep time or if > > > the sound file was played completely (if there was no click). > > > There would also not be any interference with the following Sound > file, > > > because the Sleep time is never longer than the Sound file itself. > > > > > > > > > > > > > > > That said, first, you do not understand your code correctly. As > > > written, it means the color of the image, which was clicked, > changes > > > to "cyan" and would later change to "black" at whatever time your > > > hitObject gets redrawn, and goodness knows when that will happen. > > > > > > > > > > > > Actually, it changes back to "black". > > > But maybe that is just because "black" ist my default border color and > > > the settings are just reset to the default settings after Sleep. > > > > > > > > > > > > As a general strategy, I prefer to do as much as possible through > the > > > program structure & object properties, and to leave less to > > inline code. > > > > > > > > > > > > Actually this was the prefered strategy for my project and it worked > > > fine except for strHitTest for collecting Mouse Responses and logging > > > the correct answer. > > > Basically my program is completed, but i would like to add some little > > > improvements, like this highlighting thing, to make it look better > > > > > > I hope my remarks are not too confusing. > > > > > > > > > Best regards > > > Hans > > > > > > > > > > > > Am Dienstag, 15. Oktober 2013 16:37:46 UTC+2 schrieb McFarlane, David: > > > > > > Hans, > > > > > > I am afraid that I do not quite follow all of this. You refer to > a > > > Slide, a SoundOut, and an Inline, and I do not know how they all > > > interrelate (in particular, I do not recall the complication of a > > > SoundOut in your first post). At this point I would need you to > draw > > > out a very clear diagram of your Procedure structure, along with > > > clear specifications of what you want it to do. > > > > > > That said, first, you do not understand your code correctly. As > > > written, it means the color of the image, which was clicked, > changes > > > to "cyan" and would later change to "black" at whatever time your > > > hitObject gets redrawn, and goodness knows when that will happen. > If > > > you want your inline code to make the BorderColor black, then you > > > must also follow that line with another hitObject.Draw command, > which > > > is missing from your code without comment. If you left that out > on > > > purpose (e.g., because the redraw will be taken care of by a later > > > object), then you must add a comment to your code to explain that. > > > > > > As far as settting the Sleep time to something like "remaining > time > > > of SoundOut", I suppose you might use some combination of > Clock.Read, > > > SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I think > > > that a sloppy way to do things. I would generally rather let the > > > SoundOut handle the timing, and then follow that with more inline > > > code to do whatever needs doing. Again, we need a better look at > > > your Procedure structure, you may need to revise it. > > > > > > As a general strategy, I prefer to do as much as possible through > the > > > program structure & object properties, and to leave less to inline > > > code. > > > > > > Regards, > > > -- David McFarlane > > > > > > > > > At 10/15/2013 04:56 AM Tuesday, haslinge... at gmail.com > > > wrote: > > > >Hallo David > > > > > > > > > > > >I've tried another code for the changing border color part: > > > > > > > >Dim hitObject As SlideImage > > > >Set hitObject = > > > > >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > hitObject.BorderColor = CColor("cyan") > > > > hitObject.Draw > > > > Sleep 5000 > > > > hitObject.BorderColor = CColor("black") > > > > > > > > > > > >If I understood this code right, that means the color of the > > > >image,which was clicked, changes to "cyan "and after 5 sec it > > > >changes back to "black". > > > > > > > >But now I have some problems timing the change of color and the > > > sound file. > > > > > > > >At first I set "End Action" in the Slide Properties to "(none)" > and > > > >"End Sound Action" in the Slide Sound Out Properties to > "Terminate". > > > >Then the color was only changing after the soundfile was over. > > > > > > > >Then I changed the settings to "End Action" -> Terminate and > added > > > >"Sleep 5000" in the inline code. > > > >Now the color changes immediately after clicking and stays for > the > > > >5sec before changing back to black > > > >But if the Sleep Time after clicking is longer then the > remaining > > > >time of the SoundOut, the SoundOut of the next Slide State isn't > > > starting. > > > > > > > >Is there any command which sets the Sleep time to something like > > > >"remaining time of SoundOut"? > > > > > > > > > > > >Best regards > > > >Hans > > > >-- > >You received this message because you are subscribed to the Google > >Groups "E-Prime" group. > >To unsubscribe from this group and stop receiving emails from it, > >send an email to e-prime+u... at googlegroups.com . > >To post to this group, send email to e-p... at googlegroups.com. > > >To view this discussion on the web visit > >< > https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com > > > https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com. > > >For more options, visit > > > https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/c59eade2-a635-4e48-8b07-f4e272f8222c%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Fri Oct 18 17:23:10 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 18 Oct 2013 13:23:10 -0400 Subject: changing border color of a slide image after clicking on it In-Reply-To: Message-ID: Hans, I have never used SoundBuffer myself, so you are the pioneer here. You should make up some simple demo program to use in testing out your use of SoundBuffer outside of your specific experiment, and try out some things. Use your imagination, be creative, explore, that's what I would do. And then please write back with what you discover. As for the Sleep, I do feel that is the wrong way to go. You cannot stop a Sleep. Get rid of the Sleep. From what I understand of your task, you just want to run some loop until the sound is done playing, and then just move on to the rest of your program. Something roughly like Do While (mySoundBuffer.Status = ebBufferStatusPlaying) ' loop empty on purpose Loop ' sound done playing, proceed with next part of program... or, maybe Do Until (mySoundBuffer.Status = ebBufferStatusStopped) ' loop empty on purpose Loop ' sound done playing, proceed to next part of program... you will have to think about this and play around some. This all assumes that SoundBuffer.Status works as we expect it to, so you just have to explore. And remember, you can also go straight to PST Support to get help from the ultimate experts. Regards, -- David McFarlane At 10/18/2013 05:15 AM Friday, haslinger.hans11 at gmail.com wrote: >Hallo again David > >I just want to be sure if the code: > >Dim ExternalCausesSound As SlideSoundOut > Set ExternalCausesSound = > CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) > (ExternalCausesSound is the Name of my SlideSound) > >Dim NewBuffer As SoundBuffer > Set NewBuffer = ExternalCausesSound.Buffers(1) > >...leads to the correct Sound Buffer before I try something with >SoundBuffer.Status. > > >At the Moment I am playing around with: > >Select Case NewBuffer.Status > Case ebBufferStatusStopped > ... (some code that stops the "Sleep" or leads to the next > Slide State) > > >I just want to know if I am on the right way or about to get lost completely. > >Best regards >Hans > > > >Am Donnerstag, 17. Oktober 2013 17:41:34 UTC+2 schrieb McFarlane, David: >Hans, > >I'm afraid you have lost me again. But now you should have all the >pieces you need in order to do what you want, and you should be able >to puzzle it out yourself from here. > >Best, >-- David McFarlane > > >At 10/17/2013 06:29 AM Thursday, haslinge... at gmail.com wrote: > >Hallo David > > > >Thank you for the advice with SoundBuffer.Status. > > > > > >Now here is my restatement of your specifications: > >- E-Prime simultaneously presents a visual stimulus (containing a number > >of target areas) and starts playing a sound. > >- The visual stimulus remains until, and only until, the sound the > >finishes playing. > >- The subject uses the mouse to respond by clicking target areas on the > >display, and when the subject clicks on a target area, the border of > >that area changes Color > > > > > >Yes, that is correct. > > > > > >I've tried to create a code with SoundBuffer.Status. But I am not > >sure if it is correct that way: > > > > > >Dim ExternalCausesSound As SlideSoundOut > > Set ExternalCausesSound = > > > CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) > > > > > > >Dim NewBuffer As SoundBuffer > > Set NewBuffer = ExternalCausesSound.Buffers(1) > > > > > >Then i would try something like: > > > >If NewBuffer.Status = 0 Then ..... > > > >,so if the Buffer.Status is "Stopped", the Sleep Timer would be > >stopped or the current SlideState would skip to the following State. > >(I've set the Sleep to something longer then the Duration of the Sound) > >So basically I would need a command which I could insert after > >"Then" to stop the Sleep time. > > > >Could I use "hitObject.Clear" for that? > > > > > >Best regards > >Hans > > > > > > > >I > > > > > >Am Mittwoch, 16. Oktober 2013 18:31:11 UTC+2 schrieb McFarlane, David: > >Hans, > > > >Ah, there's the confusion -- you referred to "SoundOut" when you meant > >"SlideSound". SoundOut and SlideSound share a lot of properties, but > >they are two different things that are used in different ways. You do > >not have a SoundOut in your Procedure, just a SlideSound as a sub-object > >of your Slide. > > > >Now here is my restatement of your specifications: > >- E-Prime simultaneously presents a visual stimulus (containing a number > >of target areas) and starts playing a sound. > >- The visual stimulus remains until, and only until, the sound the > >finishes playing. > >- The subject uses the mouse to respond by clicking target areas on the > >display, and when the subject clicks on a target area, the border of > >that area changes color. > > > >Now you are just stuck accomplishing that second objective. For that, I > >think you need to use SoundBuffer.Status -- see that topic in the > >E-Basic Help facility. You will also have to get access to the > >SoundBuffer object that plays your sound -- for that, just browse the > >related topics in the E-Basic Help facility, and/or look at > >sound-related code generated for you by E-Studio (that's how I figure > >all this stuff out, if I can do that then so can you :) ). And of > >course, you may also always contact PST Support for help, see below. > > > >Best, > >----- > >David McFarlane > >E-Prime training online: > ><http://ps > ychology.msu.edu/Workshops_Courses/eprime.aspx>http://psychology.msu.edu/Workshops_Courses/eprime.aspx > > > > >Twitter: @EPrimeMaster > >(<http://twitter.com/EPrimeMaster> > twitter.com/EPrimeMaster) > > > >/----------- > >Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > >any and all questions at > ><http://supp > ort.pstnet.com/e%2Dprime/support/login.asp>http://support.pstnet.com/e%2Dprime/support/login.asp > > >, and they strive > >to respond to all requests in 24-48 hours -- this is pretty much their > >substitute for proper documentation, so make full use of it. 3) In > >addition, PST takes questions at their Facebook page > >(< 02160683>http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683>http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 > > > > >), and offers several instructional videos there and on their YouTube > >channel > >(<http://www.youtube.com/user/P > STNET>http://www.youtube.com/user/PSTNET > >) (no Twitter feed yet, > >though). 4) If you do get an answer from PST staff, please extend the > >courtesy of posting their reply back here for the sake of others. > >\----------- > > > > > >haslinge... at gmail.com wrote: > > > Hallo David > > > > > > Thank you for your help. > > > > > > > > > At this point I would need you to draw > > > > > > out a very clear diagram of your Procedure structure, along > > > with clear specifications of what you want it to do > > > > > > > > > The Procedure looks like this: > > > > > > > > > ... > > > ... > > > > > > ExternalCausesProc > > > ExternalCausesList > > > ExternalCausesTrialProc > > > Instruction (TextBox) > > > restart2 (Label) > > > ExternalCausesSlide (Slide) > > > InLine2 (InLineCode) > > > ... > > > ... > > > > > > > > > After a short Instruction, there is an Image presented on the > > > ExternalCausesSlide as a Stimulus (e.g. child is getting a birthday > > > present). > > > There is also a SoundOut on the ExternalCausesSlide which describes the > > > scene in the Image. > > > Additionaly there are 4 smaller Images as possible answers for the > > > Stimulus Image. > > > I've made an attribute for every Image and the SoundOut in my > > > ExternalCausesList. > > > > > > Subjects should have time to click on one of the 4 target Images until > > > the SoundOut was played completely. > > > I want to highlight the Image a subject chooses by changing the border > > > color of that Image to "cyan" (black is my default border color) so the > > > subject knows that its answer was registered and it can change the > > > current answer (this is another thing i could need some help with). > > > > > > I tried to implement the following code (which i've found somewhere in > > > this google group) for changing the border color to "cyan" and back to > > > "black" (default setting) before a new Stimulus is presented: > > > > > > Dim hitObject As SlideImage > > > Set hitObject = > > > CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > > > hitObject.BorderColor = CColor("cyan") > > > hitObject.Draw > > > Sleep 5000 > > > > > > hitObject.BorderColor = CColor("black") > > > > > > > > > > > > The current slide should be terminated after the Sound is played so I've > > > set "End Sound Action" to "Terminate" and "End Action" (in the > > > ExternalCausesSlide Properties) to "none". > > > Now the color changed to "cyan" after the Sound was played and not > > > immediately after the click. > > > > > > So i've changed the Settings to "End Action" -> "Terminate" and > > > "EndSoundAction" -> "Terminate". > > > Now the color changed immediately after the click occured and remained > > > "Cyan" for 5sec before changing back to "black". > > > But if the click occured at the end of the SoundOut with less than 5sec > > > remaining, there was an interference with the Sound of the following > > > Stimulus. > > > > > > Then I've tried "End Action" -> "Terminate" and "End Sound Action" -> > > > "none". > > > Now the Color changes immediately after the click and remains for the 5 > > > sec no matter if the Sound is completely played or not. > > > But if no click occurs, there is no termination. > > > > > > > > > Now I thought I could use the "Terminate/Terminate"-setting and a Sleep > > > time which is equal to the remaining duration of the sound file after > > > the click occured, (something like Sleep "Duration Sound - RT (Time > > > until click?)). > > > This way, the slide would terminate after the click + Sleep time or if > > > the sound file was played completely (if there was no click). > > > There would also not be any interference with the following Sound file, > > > because the Sleep time is never longer than the Sound file itself. > > > > > > > > > > > > > > > That said, first, you do not understand your code correctly. As > > > written, it means the color of the image, which was clicked, changes > > > to "cyan" and would later change to "black" at whatever time your > > > hitObject gets redrawn, and goodness knows when that will happen. > > > > > > > > > > > > Actually, it changes back to "black". > > > But maybe that is just because "black" ist my default border color and > > > the settings are just reset to the default settings after Sleep. > > > > > > > > > > > > As a general strategy, I prefer to do as much as possible > through the > > > program structure & object properties, and to leave less to > > inline code. > > > > > > > > > > > > Actually this was the prefered strategy for my project and it worked > > > fine except for strHitTest for collecting Mouse Responses and logging > > > the correct answer. > > > Basically my program is completed, but i would like to add some little > > > improvements, like this highlighting thing, to make it look better > > > > > > I hope my remarks are not too confusing. > > > > > > > > > Best regards > > > Hans > > > > > > > > > > > > Am Dienstag, 15. Oktober 2013 16:37:46 UTC+2 schrieb McFarlane, David: > > > > > > Hans, > > > > > > I am afraid that I do not quite follow all of this. You refer to a > > > Slide, a SoundOut, and an Inline, and I do not know how they all > > > interrelate (in particular, I do not recall the complication of a > > > SoundOut in your first post). At this point I would need > you to draw > > > out a very clear diagram of your Procedure structure, along with > > > clear specifications of what you want it to do. > > > > > > That said, first, you do not understand your code correctly. As > > > written, it means the color of the image, which was clicked, changes > > > to "cyan" and would later change to "black" at whatever time your > > > hitObject gets redrawn, and goodness knows when that will > happen. If > > > you want your inline code to make the BorderColor black, then you > > > must also follow that line with another hitObject.Draw > command, which > > > is missing from your code without comment. If you left that out on > > > purpose (e.g., because the redraw will be taken care of by a later > > > object), then you must add a comment to your code to explain that. > > > > > > As far as settting the Sleep time to something like "remaining time > > > of SoundOut", I suppose you might use some combination of > Clock.Read, > > > SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I think > > > that a sloppy way to do things. I would generally rather let the > > > SoundOut handle the timing, and then follow that with more inline > > > code to do whatever needs doing. Again, we need a better look at > > > your Procedure structure, you may need to revise it. > > > > > > As a general strategy, I prefer to do as much as possible > through the > > > program structure & object properties, and to leave less to inline > > > code. > > > > > > Regards, > > > -- David McFarlane > > > > > > > > > At 10/15/2013 04:56 AM Tuesday, haslinge... at gmail.com > > > wrote: > > > >Hallo David > > > > > > > > > > > >I've tried another code for the changing border color part: > > > > > > > >Dim hitObject As SlideImage > > > >Set hitObject = > > > >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > hitObject.BorderColor = CColor("cyan") > > > > hitObject.Draw > > > > Sleep 5000 > > > > hitObject.BorderColor = CColor("black") > > > > > > > > > > > >If I understood this code right, that means the color of the > > > >image,which was clicked, changes to "cyan "and after 5 sec it > > > >changes back to "black". > > > > > > > >But now I have some problems timing the change of color and the > > > sound file. > > > > > > > >At first I set "End Action" in the Slide Properties to > "(none)" and > > > >"End Sound Action" in the Slide Sound Out Properties to > "Terminate". > > > >Then the color was only changing after the soundfile was over. > > > > > > > >Then I changed the settings to "End Action" -> Terminate and added > > > >"Sleep 5000" in the inline code. > > > >Now the color changes immediately after clicking and stays for the > > > >5sec before changing back to black > > > >But if the Sleep Time after clicking is longer then the remaining > > > >time of the SoundOut, the SoundOut of the next Slide State isn't > > > starting. > > > > > > > >Is there any command which sets the Sleep time to something like > > > >"remaining time of SoundOut"? > > > > > > > > > > > >Best regards > > > >Hans > > > >-- > >You received this message because you are subscribed to the Google > >Groups "E-Prime" group. > >To unsubscribe from this group and stop receiving emails from it, > >send an email to e-prime+u... at googlegroups.com. > >To post to this group, send email to e-p... at googlegroups.com. > >To view this discussion on the web visit > >< -433e8d5f994f%40googlegroups.com>https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com>https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com. > > >For more options, visit > ><https://groups.google.co > m/groups/opt_out>https://groups.google.com/groups/opt_out. > >-- >You received this message because you are subscribed to the Google >Groups "E-Prime" group. >To unsubscribe from this group and stop receiving emails from it, >send an email to e-prime+unsubscribe at googlegroups.com. >To post to this group, send email to e-prime at googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/e-prime/c59eade2-a635-4e48-8b07-f4e272f8222c%40googlegroups.com. >For more options, visit >https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52616e80.2cdd320a.4490.ffff9456SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Fri Oct 18 18:10:02 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 18 Oct 2013 14:10:02 -0400 Subject: Dual Task In-Reply-To: <55887032-6a2a-4adf-8235-912e59f48805@googlegroups.com> Message-ID: Francesco, To get responses to both s1 and s2, simply add an input mask with appropriate Time Limit to each of them -- please see the "Extended Input" tutorial in Appendix C of the User's Guide that came with E-Prime (and if you have not already, please first work through *all* of the tutorials in *all* the Guides before you start work with E-Prime, it is well worth the effort!). You can superimpose visual stimuli with creative use of their Frame and BackStyle properties. I have done this myself to make all sorts of interesting effects. To make s1 & s2 disappear upon response... Hmm, well, you might use Clear After to clear s2 (even though Clear After is deprecated, see http://www.pstnet.com/support/kb.asp?TopicID=4946 ), but you still need a bit of inline code to clear s1, so you might as well do them both in code. Something like Do While (s1.InputMasks.IsPending and s2.InputMasks.IsPending) If s1.InputMasks.IsPending Then s1.Clear If s2.InputMasks.IsPending Then s2.Clear Loop ' expect that s1 & s2 both also get cleared by subsequent program... but maybe that gives you enough to start with and you can fix it up as an exercise. (Advanced exercise: Make efficient algorithm to handle general case of multiple stimuli with responses.) ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/17/2013 05:58 PM Thursday, francesco biondi wrote: >I am designing an experiment using a dual task paradigm. >I have two stimuli: s1 and s2, and 2 responses: r1 and r2. > >After the fixation point, s1 appers on the right side of the screen >and, after a given soa, s2 appears on the left side of the screen. >I need to record both the responses r1 and r2. > >Since soas are very short (150 and 300ms), subjects won't be able to >produce r1 by the time s2 appears. >Nonetheless, I still need s1 to be visible to let subjects to produce r1. > >My question is: >do you know how i can have (after the soa) both the stimuli on the >screen and record both r1 and r2? >Also, I would like to s1 and s2 to disappear when, respectively, r1 >and r2 are produced. >After r2 is produced the next trial starts. > >Thanks > >Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5261797c.6801320a.6d94.1d14SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Fri Oct 18 18:17:02 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 18 Oct 2013 14:17:02 -0400 Subject: Dual Task In-Reply-To: <5261797c.6801320a.6d94.1d14SMTPIN_ADDED_MISSING@gmr-mx.goo gle.com> Message-ID: Francesco, Oh, to have that inline code run during s2, you have to set Duration of s2 to 0, or set its PreRelease to "(same as duration)" (which is the new default anyway). -- David McFarlane At 10/18/2013 02:10 PM Friday, David McFarlane wrote: >Francesco, > >To get responses to both s1 and s2, simply add an input mask with >appropriate Time Limit to each of them -- please see the "Extended >Input" tutorial in Appendix C of the User's Guide that came with >E-Prime (and if you have not already, please first work through >*all* of the tutorials in *all* the Guides before you start work >with E-Prime, it is well worth the effort!). > >You can superimpose visual stimuli with creative use of their Frame >and BackStyle properties. I have done this myself to make all sorts >of interesting effects. > >To make s1 & s2 disappear upon response... Hmm, well, you might use >Clear After to clear s2 (even though Clear After is deprecated, see >http://www.pstnet.com/support/kb.asp?TopicID=4946 ), but you still >need a bit of inline code to clear s1, so you might as well do them >both in code. Something like > > Do While (s1.InputMasks.IsPending and s2.InputMasks.IsPending) > If s1.InputMasks.IsPending Then s1.Clear > If s2.InputMasks.IsPending Then s2.Clear > Loop > ' expect that s1 & s2 both also get cleared by subsequent program... > >but maybe that gives you enough to start with and you can fix it up >as an exercise. (Advanced exercise: Make efficient algorithm to >handle general case of multiple stimuli with responses.) > >----- >David McFarlane >E-Prime training >online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at https://support.pstnet.com , and they >strive to respond to all requests in 24-48 hours, so make full use >of it. 3) In addition, PST offers several instructional videos on >their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If >you do get an answer from PST staff, please extend the courtesy of >posting their reply back here for the sake of others. >\---- > > >At 10/17/2013 05:58 PM Thursday, francesco biondi wrote: >>I am designing an experiment using a dual task paradigm. >>I have two stimuli: s1 and s2, and 2 responses: r1 and r2. >> >>After the fixation point, s1 appers on the right side of the screen >>and, after a given soa, s2 appears on the left side of the screen. >>I need to record both the responses r1 and r2. >> >>Since soas are very short (150 and 300ms), subjects won't be able >>to produce r1 by the time s2 appears. >>Nonetheless, I still need s1 to be visible to let subjects to produce r1. >> >>My question is: >>do you know how i can have (after the soa) both the stimuli on the >>screen and record both r1 and r2? >>Also, I would like to s1 and s2 to disappear when, respectively, r1 >>and r2 are produced. >>After r2 is produced the next trial starts. >> >>Thanks >> >>Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52617b21.c819320a.4525.ffff976dSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From francesco.biondi1 at gmail.com Fri Oct 18 18:22:15 2013 From: francesco.biondi1 at gmail.com (francesco biondi) Date: Fri, 18 Oct 2013 11:22:15 -0700 Subject: Dual Task In-Reply-To: <5261797c.6801320a.6d94.1d14SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks David! I tried to solve the issue as follows: - I put a Waitobject (Duration 0, Allowable Correct1, Correct Correct1, TimeLimit 2000, EndAction none) before the Slide1 (it contains s1) - After, Slide1 (Duration SOA, EndAction Terminate) - After, Slide2 (it contains s2) (Duration 2000, Allowable Correct2, Correct Correct2, EndAction Terminate) By doing so, it does not clear Slide1 after the button press. I can use an Inputobject to do so, by following your advise. It seems wotking On Friday, October 18, 2013 12:10:02 PM UTC-6, McFarlane, David wrote: > > Francesco, > > To get responses to both s1 and s2, simply add an input mask with > appropriate Time Limit to each of them -- please see the "Extended > Input" tutorial in Appendix C of the User's Guide that came with > E-Prime (and if you have not already, please first work through *all* > of the tutorials in *all* the Guides before you start work with > E-Prime, it is well worth the effort!). > > You can superimpose visual stimuli with creative use of their Frame > and BackStyle properties. I have done this myself to make all sorts > of interesting effects. > > To make s1 & s2 disappear upon response... Hmm, well, you might use > Clear After to clear s2 (even though Clear After is deprecated, see > http://www.pstnet.com/support/kb.asp?TopicID=4946 ), but you still > need a bit of inline code to clear s1, so you might as well do them > both in code. Something like > > Do While (s1.InputMasks.IsPending and s2.InputMasks.IsPending) > If s1.InputMasks.IsPending Then s1.Clear > If s2.InputMasks.IsPending Then s2.Clear > Loop > ' expect that s1 & s2 both also get cleared by subsequent program... > > but maybe that gives you enough to start with and you can fix it up > as an exercise. (Advanced exercise: Make efficient algorithm to > handle general case of multiple stimuli with responses.) > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/17/2013 05:58 PM Thursday, francesco biondi wrote: > >I am designing an experiment using a dual task paradigm. > >I have two stimuli: s1 and s2, and 2 responses: r1 and r2. > > > >After the fixation point, s1 appers on the right side of the screen > >and, after a given soa, s2 appears on the left side of the screen. > >I need to record both the responses r1 and r2. > > > >Since soas are very short (150 and 300ms), subjects won't be able to > >produce r1 by the time s2 appears. > >Nonetheless, I still need s1 to be visible to let subjects to produce r1. > > > >My question is: > >do you know how i can have (after the soa) both the stimuli on the > >screen and record both r1 and r2? > >Also, I would like to s1 and s2 to disappear when, respectively, r1 > >and r2 are produced. > >After r2 is produced the next trial starts. > > > >Thanks > > > >Francesco > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/e3e142df-825b-4df6-8f1a-b30e7d34f78b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Fri Oct 18 19:14:39 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 18 Oct 2013 15:14:39 -0400 Subject: Dual Task In-Reply-To: Message-ID: Francesco, Great! Glad you got it working, even though my code example was wrong. In case anybody else chances on this thread, here is a corrected code sample Do While (s1.InputMasks.IsPending and s2.InputMasks.IsPending) If Not(s1.InputMasks.IsPending) Then s1.Clear If Not(s2.InputMasks.IsPending) Then s2.Clear Loop ' expect that s1 & s2 both also get cleared by subsequent program... And of course, for more information, one may look at the InputMask.IsPensing and StimDisplay.Clear topices in the E-Basic Help facility. Regards, -- David McFarlane At 10/18/2013 02:22 PM Friday, francesco biondi wrote: >Thanks David! > >I tried to solve the issue as follows: > >- I put a Waitobject (Duration 0, Allowable Correct1, Correct >Correct1, TimeLimit 2000, EndAction none) before the Slide1 (it contains s1) > >- After, Slide1 (Duration SOA, EndAction Terminate) > >- After, Slide2 (it contains s2) (Duration 2000, Allowable Correct2, >Correct Correct2, EndAction Terminate) > >By doing so, it does not clear Slide1 after the button press. I can >use an Inputobject to do so, by following your advise. > >It seems wotking > > > >On Friday, October 18, 2013 12:10:02 PM UTC-6, McFarlane, David wrote: >Francesco, > >To get responses to both s1 and s2, simply add an input mask with >appropriate Time Limit to each of them -- please see the "Extended >Input" tutorial in Appendix C of the User's Guide that came with >E-Prime (and if you have not already, please first work through *all* >of the tutorials in *all* the Guides before you start work with >E-Prime, it is well worth the effort!). > >You can superimpose visual stimuli with creative use of their Frame >and BackStyle properties. I have done this myself to make all sorts >of interesting effects. > >To make s1 & s2 disappear upon response... Hmm, well, you might use >Clear After to clear s2 (even though Clear After is deprecated, see >http://www.pstnet.com/support/kb.asp?TopicID=4946 >), but you still >need a bit of inline code to clear s1, so you might as well do them >both in code. Something like > > Do While (s1.InputMasks.IsPending and s2.InputMasks.IsPending) > If s1.InputMasks.IsPending Then s1.Clear > If s2.InputMasks.IsPending Then s2.Clear > Loop > ' expect that s1 & s2 both also get cleared by subsequent program... > >but maybe that gives you enough to start with and you can fix it up >as an exercise. (Advanced exercise: Make efficient algorithm to >handle general case of multiple stimuli with responses.) > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx > >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at >https://support.pstnet.com , and they >strive to respond to all requests in 24-48 hours, so make full use of >it. 3) In addition, PST offers several instructional videos on their >YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do >get an answer from PST staff, please extend the courtesy of posting >their reply back here for the sake of others. >\---- > > >At 10/17/2013 05:58 PM Thursday, francesco biondi wrote: > >I am designing an experiment using a dual task paradigm. > >I have two stimuli: s1 and s2, and 2 responses: r1 and r2. > > > >After the fixation point, s1 appers on the right side of the screen > >and, after a given soa, s2 appears on the left side of the screen. > >I need to record both the responses r1 and r2. > > > >Since soas are very short (150 and 300ms), subjects won't be able to > >produce r1 by the time s2 appears. > >Nonetheless, I still need s1 to be visible to let subjects to produce r1. > > > >My question is: > >do you know how i can have (after the soa) both the stimuli on the > >screen and record both r1 and r2? > >Also, I would like to s1 and s2 to disappear when, respectively, r1 > >and r2 are produced. > >After r2 is produced the next trial starts. > > > >Thanks > > > >Francesco > >-- >You received this message because you are subscribed to the Google >Groups "E-Prime" group. >To unsubscribe from this group and stop receiving emails from it, >send an email to e-prime+unsubscribe at googlegroups.com. >To post to this group, send email to e-prime at googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/e-prime/e3e142df-825b-4df6-8f1a-b30e7d34f78b%40googlegroups.com. >For more options, visit >https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/526188a2.0452320a.61fd.ffff909cSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From rebecca.lundwall at gmail.com Sat Oct 19 02:21:29 2013 From: rebecca.lundwall at gmail.com (Rebecca Lundwall) Date: Fri, 18 Oct 2013 19:21:29 -0700 Subject: camera recommendations? Message-ID: I am trying to get a new research lab set up. I use EPrime to present stimuli and a camera to collect eye movement data. I am working with the college's computer services and they asked me to contact this group and see if you had recommendations on *camera specs* for the following situation. PSTNET support also suggested that I ask this question here. I do not use eye-tracking equipment because it does not work well with young infants. My question is if anyone knows of a camera or camera set-up that would work without the ForA timer. My key concern is having a time-stamp on the video and that the time-stamp is controlled (started and stopped) by EPrime presenting the stimulus. I will describe how we have done this in the past, but I can no longer find a supported For-A video timer VTG-33 (which reports frames) and we are nervous about buying the one I found on Ebay. In the experiment: 1) E-Prime simultaneously sends an image to a monitor and starts the ForA timer (or it could start the camera's timer) 2) The ForA timer (if used) puts a time stamp on the digital video recording. The timestamp starts and runs until EPrime tells it to stop. Stopping the clock is important so that trials are separated and RAs don't get confused when they go back and code for eye movement latency and direction (left or right). If I used the camera's internal clock, EPrime would need to start and stop it's clock or start and stop the entire camera. 3) the digital video with the time stamp are sent back for storage on the computer 4) the digital files are opened with a video editing software) that can detect scenes based on lighting conditions (the presentation of a new stimulus triggers a new scene); we number the scenes and two RAs code them for eye movement latency and direction. So, does anyone know of a camera that has a timestamp down to the frame level and that can be synced with the presentation of a stimuli by EPrime? Other info or related questions: *the camera must work in low-light conditions *there are approximately 50-60 trials for infants and 200 for children, each is presented for between 67 msec - 4 sec *I care about response differences as small as 10-20 msec (so am thinking about a camera with 60 fps or more) *is 60 Hz sufficient for the CPU? If I get more fps on the camera do I need higher refresh rate as well? Thanks for your help. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/d8fa958a-2575-4ad4-aec1-3bdb25f50b6b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacanterbury at gmail.com Mon Oct 21 06:45:38 2013 From: jacanterbury at gmail.com (john@johnallen.it) Date: Mon, 21 Oct 2013 07:45:38 +0100 Subject: stimulus size in degrees of visual angle In-Reply-To: <431e3b8b-57b3-4eb1-9904-9d60c3bddce8@googlegroups.com> Message-ID: Hi If u want to use eprime then, AFAIK, you will need to do some basic trigonometry to convert angles into mm and then into pixels. You might like to look at PsychoPy instead though. It has the concept of monitor dimensions and viewing angles builtin so this may be a lot simpler. Its free too :) and works across all platforms too. John On 17 Oct 2013 14:26, "Maggie" wrote: > Hello, > > I'm just starting to learn how to use eprime and I've run into some > trouble with the stimulus size. I need to place a geometric shape (i.e. > triangle or square) above the fixation point, and it needs to be 3.8*°* x > 3.8*° *in size. How to I convert this into pixels exactly? I'm assuming > the size (height and width) in properties are in pixels too, right? > > Many thanks, > Maggie > > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/431e3b8b-57b3-4eb1-9904-9d60c3bddce8%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAAT4JdT%3Du2cCCvVL%2BdBvO6Y20YEKON-SxSAabP66V_Oe0J8nRg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From haslinger.hans11 at gmail.com Mon Oct 21 10:00:15 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Mon, 21 Oct 2013 03:00:15 -0700 Subject: changing border color of a slide image after clicking on it In-Reply-To: <52616e80.2cdd320a.4490.ffff9456SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Hallo David Thank you for your endless patience and all your advice. The solution with a Do While... Loop seems to be a good one. I always tried to manage it the other way round. > Use your imagination, be creative, explore, > that's what I would do. And then please write back with what you > discover. > I tried to heed that advice and played around with Sleep (I could not part with that approach). I figured out following code: (I don't know if it is helpful when i color the code for better legibility) Dim hitObject As SlideImage Set hitObject = CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) hitObject.BorderColor = CColor("cyan") hitObject.Draw Dim RemainingSoundDuration as integer RemainingSoundDuration = c.GetAttrib("SoundDuration") - ExternalCausesSlide.RT Sleep RemainingSoundDuration hitObject.BorderColor = CColor("black") hitObject.Draw End if and it works perfectly. I've only tried it with some test sound files so far, because the final sound files aren't recorded yet. I have to check that later with the real sound files. But so far it is looking good. So once again thank ypu for all your advice and patience, David. Maybe I am going to drop in once again if any other problems occur. Best regards Hans Am Freitag, 18. Oktober 2013 19:23:10 UTC+2 schrieb McFarlane, David: > Hans, > > I have never used SoundBuffer myself, so you are the pioneer > here. You should make up some simple demo program to use in testing > out your use of SoundBuffer outside of your specific experiment, and > try out some things. Use your imagination, be creative, explore, > that's what I would do. And then please write back with what you > discover. > > As for the Sleep, I do feel that is the wrong way to go. You cannot > stop a Sleep. Get rid of the Sleep. From what I understand of your > task, you just want to run some loop until the sound is done playing, > and then just move on to the rest of your program. Something roughly like > > Do While (mySoundBuffer.Status = ebBufferStatusPlaying) > ' loop empty on purpose > Loop > ' sound done playing, proceed with next part of program... > > or, maybe > > Do Until (mySoundBuffer.Status = ebBufferStatusStopped) > ' loop empty on purpose > Loop > ' sound done playing, proceed to next part of program... > > you will have to think about this and play around some. This all > assumes that SoundBuffer.Status works as we expect it to, so you just > have to explore. And remember, you can also go straight to PST > Support to get help from the ultimate experts. > > Regards, > -- David McFarlane > > > At 10/18/2013 05:15 AM Friday, haslinge... at gmail.com wrote: > >Hallo again David > > > >I just want to be sure if the code: > > > >Dim ExternalCausesSound As SlideSoundOut > > Set ExternalCausesSound = > > > CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) > > > (ExternalCausesSound is the Name of my SlideSound) > > > >Dim NewBuffer As SoundBuffer > > Set NewBuffer = ExternalCausesSound.Buffers(1) > > > >...leads to the correct Sound Buffer before I try something with > >SoundBuffer.Status. > > > > > >At the Moment I am playing around with: > > > >Select Case NewBuffer.Status > > Case ebBufferStatusStopped > > ... (some code that stops the "Sleep" or leads to the next > > Slide State) > > > > > >I just want to know if I am on the right way or about to get lost > completely. > > > >Best regards > >Hans > > > > > > > >Am Donnerstag, 17. Oktober 2013 17:41:34 UTC+2 schrieb McFarlane, David: > >Hans, > > > >I'm afraid you have lost me again. But now you should have all the > >pieces you need in order to do what you want, and you should be able > >to puzzle it out yourself from here. > > > >Best, > >-- David McFarlane > > > > > >At 10/17/2013 06:29 AM Thursday, haslinge... at gmail.com wrote: > > >Hallo David > > > > > >Thank you for the advice with SoundBuffer.Status. > > > > > > > > >Now here is my restatement of your specifications: > > >- E-Prime simultaneously presents a visual stimulus (containing a > number > > >of target areas) and starts playing a sound. > > >- The visual stimulus remains until, and only until, the sound the > > >finishes playing. > > >- The subject uses the mouse to respond by clicking target areas on the > > >display, and when the subject clicks on a target area, the border of > > >that area changes Color > > > > > > > > >Yes, that is correct. > > > > > > > > >I've tried to create a code with SoundBuffer.Status. But I am not > > >sure if it is correct that way: > > > > > > > > >Dim ExternalCausesSound As SlideSoundOut > > > Set ExternalCausesSound = > > > > > > CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) > > > > > > > > > > > >Dim NewBuffer As SoundBuffer > > > Set NewBuffer = ExternalCausesSound.Buffers(1) > > > > > > > > >Then i would try something like: > > > > > >If NewBuffer.Status = 0 Then ..... > > > > > >,so if the Buffer.Status is "Stopped", the Sleep Timer would be > > >stopped or the current SlideState would skip to the following State. > > >(I've set the Sleep to something longer then the Duration of the Sound) > > >So basically I would need a command which I could insert after > > >"Then" to stop the Sleep time. > > > > > >Could I use "hitObject.Clear" for that? > > > > > > > > >Best regards > > >Hans > > > > > > > > > > > >I > > > > > > > > >Am Mittwoch, 16. Oktober 2013 18:31:11 UTC+2 schrieb McFarlane, David: > > >Hans, > > > > > >Ah, there's the confusion -- you referred to "SoundOut" when you meant > > >"SlideSound". SoundOut and SlideSound share a lot of properties, but > > >they are two different things that are used in different ways. You do > > >not have a SoundOut in your Procedure, just a SlideSound as a > sub-object > > >of your Slide. > > > > > >Now here is my restatement of your specifications: > > >- E-Prime simultaneously presents a visual stimulus (containing a > number > > >of target areas) and starts playing a sound. > > >- The visual stimulus remains until, and only until, the sound the > > >finishes playing. > > >- The subject uses the mouse to respond by clicking target areas on the > > >display, and when the subject clicks on a target area, the border of > > >that area changes color. > > > > > >Now you are just stuck accomplishing that second objective. For that, > I > > >think you need to use SoundBuffer.Status -- see that topic in the > > >E-Basic Help facility. You will also have to get access to the > > >SoundBuffer object that plays your sound -- for that, just browse the > > >related topics in the E-Basic Help facility, and/or look at > > >sound-related code generated for you by E-Studio (that's how I figure > > >all this stuff out, if I can do that then so can you :) ). And of > > >course, you may also always contact PST Support for help, see below. > > > > > >Best, > > >----- > > >David McFarlane > > >E-Prime training online: > > ><http://ps > > ychology.msu.edu/Workshops_Courses/eprime.aspx> > http://psychology.msu.edu/Workshops_Courses/eprime.aspx > > > > > > > >Twitter: @EPrimeMaster > > >(<http://twitter.com/EPrimeMaster> > > twitter.com/EPrimeMaster) > > > > > >/----------- > > >Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > > >any and all questions at > > ><http://supp > > ort.pstnet.com/e%2Dprime/support/login.asp> > http://support.pstnet.com/e%2Dprime/support/login.asp > > > > >, and they strive > > >to respond to all requests in 24-48 hours -- this is pretty much their > > >substitute for proper documentation, so make full use of it. 3) In > > >addition, PST takes questions at their Facebook page > > >(< > 02160683> > http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683> > http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 > > > > > > > >), and offers several instructional videos there and on their YouTube > > >channel > > >(<http://www.youtube.com/user/P > > STNET>http://www.youtube.com/user/PSTNET > > >) (no Twitter feed yet, > > >though). 4) If you do get an answer from PST staff, please extend the > > >courtesy of posting their reply back here for the sake of others. > > >\----------- > > > > > > > > >haslinge... at gmail.com wrote: > > > > Hallo David > > > > > > > > Thank you for your help. > > > > > > > > > > > > At this point I would need you to draw > > > > > > > > out a very clear diagram of your Procedure structure, along > > > > with clear specifications of what you want it to do > > > > > > > > > > > > The Procedure looks like this: > > > > > > > > > > > > ... > > > > ... > > > > > > > > ExternalCausesProc > > > > ExternalCausesList > > > > ExternalCausesTrialProc > > > > Instruction (TextBox) > > > > restart2 (Label) > > > > ExternalCausesSlide (Slide) > > > > InLine2 (InLineCode) > > > > ... > > > > ... > > > > > > > > > > > > After a short Instruction, there is an Image presented on the > > > > ExternalCausesSlide as a Stimulus (e.g. child is getting a birthday > > > > present). > > > > There is also a SoundOut on the ExternalCausesSlide which describes > the > > > > scene in the Image. > > > > Additionaly there are 4 smaller Images as possible answers for the > > > > Stimulus Image. > > > > I've made an attribute for every Image and the SoundOut in my > > > > ExternalCausesList. > > > > > > > > Subjects should have time to click on one of the 4 target Images > until > > > > the SoundOut was played completely. > > > > I want to highlight the Image a subject chooses by changing the > border > > > > color of that Image to "cyan" (black is my default border color) so > the > > > > subject knows that its answer was registered and it can change the > > > > current answer (this is another thing i could need some help with). > > > > > > > > I tried to implement the following code (which i've found somewhere > in > > > > this google group) for changing the border color to "cyan" and back > to > > > > "black" (default setting) before a new Stimulus is presented: > > > > > > > > Dim hitObject As SlideImage > > > > Set hitObject = > > > > CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > > > > > hitObject.BorderColor = CColor("cyan") > > > > hitObject.Draw > > > > Sleep 5000 > > > > > > > > hitObject.BorderColor = CColor("black") > > > > > > > > > > > > > > > > The current slide should be terminated after the Sound is played so > I've > > > > set "End Sound Action" to "Terminate" and "End Action" (in the > > > > ExternalCausesSlide Properties) to "none". > > > > Now the color changed to "cyan" after the Sound was played and not > > > > immediately after the click. > > > > > > > > So i've changed the Settings to "End Action" -> "Terminate" and > > > > "EndSoundAction" -> "Terminate". > > > > Now the color changed immediately after the click occured and > remained > > > > "Cyan" for 5sec before changing back to "black". > > > > But if the click occured at the end of the SoundOut with less than > 5sec > > > > remaining, there was an interference with the Sound of the following > > > > Stimulus. > > > > > > > > Then I've tried "End Action" -> "Terminate" and "End Sound Action" > -> > > > > "none". > > > > Now the Color changes immediately after the click and remains for > the 5 > > > > sec no matter if the Sound is completely played or not. > > > > But if no click occurs, there is no termination. > > > > > > > > > > > > Now I thought I could use the "Terminate/Terminate"-setting and a > Sleep > > > > time which is equal to the remaining duration of the sound file > after > > > > the click occured, (something like Sleep "Duration Sound - RT (Time > > > > until click?)). > > > > This way, the slide would terminate after the click + Sleep time or > if > > > > the sound file was played completely (if there was no click). > > > > There would also not be any interference with the following Sound > file, > > > > because the Sleep time is never longer than the Sound file itself. > > > > > > > > > > > > > > > > > > > > That said, first, you do not understand your code correctly. As > > > > written, it means the color of the image, which was clicked, > changes > > > > to "cyan" and would later change to "black" at whatever time > your > > > > hitObject gets redrawn, and goodness knows when that will > happen. > > > > > > > > > > > > > > > > Actually, it changes back to "black". > > > > But maybe that is just because "black" ist my default border color > and > > > > the settings are just reset to the default settings after Sleep. > > > > > > > > > > > > > > > > As a general strategy, I prefer to do as much as possible > > through the > > > > program structure & object properties, and to leave less to > > > inline code. > > > > > > > > > > > > > > > > Actually this was the prefered strategy for my project and it worked > > > > fine except for strHitTest for collecting Mouse Responses and > logging > > > > the correct answer. > > > > Basically my program is completed, but i would like to add some > little > > > > improvements, like this highlighting thing, to make it look better > > > > > > > > I hope my remarks are not too confusing. > > > > > > > > > > > > Best regards > > > > Hans > > > > > > > > > > > > > > > > Am Dienstag, 15. Oktober 2013 16:37:46 UTC+2 schrieb McFarlane, > David: > > > > > > > > Hans, > > > > > > > > I am afraid that I do not quite follow all of this. You refer > to a > > > > Slide, a SoundOut, and an Inline, and I do not know how they all > > > > interrelate (in particular, I do not recall the complication of > a > > > > SoundOut in your first post). At this point I would need > > you to draw > > > > out a very clear diagram of your Procedure structure, along with > > > > clear specifications of what you want it to do. > > > > > > > > That said, first, you do not understand your code correctly. As > > > > written, it means the color of the image, which was clicked, > changes > > > > to "cyan" and would later change to "black" at whatever time > your > > > > hitObject gets redrawn, and goodness knows when that will > > happen. If > > > > you want your inline code to make the BorderColor black, then > you > > > > must also follow that line with another hitObject.Draw > > command, which > > > > is missing from your code without comment. If you left that out > on > > > > purpose (e.g., because the redraw will be taken care of by a > later > > > > object), then you must add a comment to your code to explain > that. > > > > > > > > As far as settting the Sleep time to something like "remaining > time > > > > of SoundOut", I suppose you might use some combination of > > Clock.Read, > > > > SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I > think > > > > that a sloppy way to do things. I would generally rather let > the > > > > SoundOut handle the timing, and then follow that with more > inline > > > > code to do whatever needs doing. Again, we need a better look > at > > > > your Procedure structure, you may need to revise it. > > > > > > > > As a general strategy, I prefer to do as much as possible > > through the > > > > program structure & object properties, and to leave less to > inline > > > > code. > > > > > > > > Regards, > > > > -- David McFarlane > > > > > > > > > > > > At 10/15/2013 04:56 AM Tuesday, haslinge... at gmail.com > > > > wrote: > > > > >Hallo David > > > > > > > > > > > > > > >I've tried another code for the changing border color part: > > > > > > > > > >Dim hitObject As SlideImage > > > > >Set hitObject = > > > > > >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > > hitObject.BorderColor = CColor("cyan") > > > > > hitObject.Draw > > > > > Sleep 5000 > > > > > hitObject.BorderColor = CColor("black") > > > > > > > > > > > > > > >If I understood this code right, that means the color of the > > > > >image,which was clicked, changes to "cyan "and after 5 sec it > > > > >changes back to "black". > > > > > > > > > >But now I have some problems timing the change of color and > the > > > > sound file. > > > > > > > > > >At first I set "End Action" in the Slide Properties to > > "(none)" and > > > > >"End Sound Action" in the Slide Sound Out Properties to > > "Terminate". > > > > >Then the color was only changing after the soundfile was over. > > > > > > > > > >Then I changed the settings to "End Action" -> Terminate and > added > > > > >"Sleep 5000" in the inline code. > > > > >Now the color changes immediately after clicking and stays for > the > > > > >5sec before changing back to black > > > > >But if the Sleep Time after clicking is longer then the > remaining > > > > >time of the SoundOut, the SoundOut of the next Slide State > isn't > > > > starting. > > > > > > > > > >Is there any command which sets the Sleep time to something > like > > > > >"remaining time of SoundOut"? > > > > > > > > > > > > > > >Best regards > > > > >Hans > > > > > >-- > > >You received this message because you are subscribed to the Google > > >Groups "E-Prime" group. > > >To unsubscribe from this group and stop receiving emails from it, > > >send an email to e-prime+u... at googlegroups.com. > > >To post to this group, send email to e-p... at googlegroups.com. > > >To view this discussion on the web visit > > >< > -433e8d5f994f%40googlegroups.com> > https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com > > > https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com. > > > > > >For more options, visit > > ><https://groups.google.co > > m/groups/opt_out>https://groups.google.com/groups/opt_out. > > > >-- > >You received this message because you are subscribed to the Google > >Groups "E-Prime" group. > >To unsubscribe from this group and stop receiving emails from it, > >send an email to e-prime+u... at googlegroups.com . > >To post to this group, send email to e-p... at googlegroups.com. > > >To view this discussion on the web visit > >< > https://groups.google.com/d/msgid/e-prime/c59eade2-a635-4e48-8b07-f4e272f8222c%40googlegroups.com > > > https://groups.google.com/d/msgid/e-prime/c59eade2-a635-4e48-8b07-f4e272f8222c%40googlegroups.com. > > >For more options, visit > > > https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/c5bf5751-04c2-4b06-a2c8-4e7142d55d3e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From piercarlo.mauri at gmail.com Mon Oct 21 10:43:36 2013 From: piercarlo.mauri at gmail.com (Piercarlo Mauri) Date: Mon, 21 Oct 2013 03:43:36 -0700 Subject: Send Trigger to EEG using E-Prime Professional 2.0 Message-ID: Hi, I need E-Prime to send triggers to my EEG signal recorded with BrainAmp. The trigger cable is connected from the parallel port to the BrainAmp (in windows the resource tab of the LPT1 port says: Interval I/O 0378-037F, Interval I/O 0778-077F). In E-Prime I added the parallel port on LPT1 to the devices used. I need that in a series of numbers (with attribute "Target") that will be shown for 100ms in the slide "Target1", when will appear the number 1, a trigger should be send to my EEG recording... I created an Inline script (the one called Trigger) with this command: ---------------------- If c.GetAttrib("Target")=1 Then Target1.OnsetSignalEnabled=True Target1.OnsetSignalPort=&H378 Target1.OnsetSignalData=128 Target1.OffsetSignalEnabled=True Target1.OffsetSignalPort=&H378 Target1.OffsetSignalData=0 End if --------------------- But it doesn't work, anyone can help me? I attached a screen of the sequence of my exp. Thank you PM -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5e5e05cd-3aaa-4b68-8420-c82e42266408%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 1.png Type: image/png Size: 44781 bytes Desc: not available URL: From mcfarla9 at msu.edu Mon Oct 21 17:37:12 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 21 Oct 2013 13:37:12 -0400 Subject: Send Trigger to EEG using E-Prime Professional 2.0 In-Reply-To: <5e5e05cd-3aaa-4b68-8420-c82e42266408@googlegroups.com> Message-ID: A few questions: - What version of E-Prime do you use? - What value of PreRelease do you use on Target1? - What bit or pin does the BrainAmp need to see change? - What do you use to verify whether or not your parallel port outputs are responding to your E-Prime commands? - What, exactly, does "it doesn't work" mean here? Also, please look at the recent thread at http://www.pstnet.com/forum/Topic7539-8-1.aspx , where some of these same issues got discussed. Regards, ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/21/2013 06:43 AM Monday, Piercarlo Mauri wrote: >I need E-Prime to send triggers to my EEG signal recorded with >BrainAmp. The trigger cable is connected from the parallel port to >the BrainAmp (in windows the resource tab of the LPT1 port says: >Interval I/O 0378-037F, Interval I/O 0778-077F). In E-Prime I added >the parallel port on LPT1 to the devices used. I need that in a >series of numbers (with attribute "Target") that will be shown for >100ms in the slide "Target1", when will appear the number 1, a >trigger should be send to my EEG recording... I created an Inline >script (the one called Trigger) with this command: > >---------------------- >If c.GetAttrib("Target")=1 Then > Target1.OnsetSignalEnabled=True > Target1.OnsetSignalPort=&H378 > Target1.OnsetSignalData=128 > > Target1.OffsetSignalEnabled=True > Target1.OffsetSignalPort=&H378 > Target1.OffsetSignalData=0 > >End if >--------------------- > >But it doesn't work, anyone can help me? I attached a screen of the >sequence of my exp. >Thank you >PM -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5265664f.6801320a.6d94.ffffac64SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From pfc.groot at gmail.com Mon Oct 21 17:37:36 2013 From: pfc.groot at gmail.com (Paul Groot) Date: Mon, 21 Oct 2013 19:37:36 +0200 Subject: Send Trigger to EEG using E-Prime Professional 2.0 In-Reply-To: <5e5e05cd-3aaa-4b68-8420-c82e42266408@googlegroups.com> Message-ID: The script looks fine, but are you sure that c.GetAttrib("Target")=1 evaluates to true? Just add a debug line to check if the if-statements runs as expected: Debug.print "Target" Also notice that value 128 corresponds to the highest bit of the 8 datalines. Also, adding the ParallelPort device is not required when using this trigger mechanism because you directly send data to the data register of the printer port. I'm not sure, but this might even give problems when the the LPT mode is not correctly set. cheers Paul On 21 October 2013 12:43, Piercarlo Mauri wrote: > Hi, > I need E-Prime to send triggers to my EEG signal recorded with BrainAmp. > The trigger cable is connected from the parallel port to the BrainAmp (in > windows the resource tab of the LPT1 port says: Interval I/O 0378-037F, > Interval I/O 0778-077F). In E-Prime I added the parallel port on LPT1 to > the devices used. I need that in a series of numbers (with attribute > "Target") that will be shown for 100ms in the slide "Target1", when will > appear the number 1, a trigger should be send to my EEG recording... I > created an Inline script (the one called Trigger) with this command: > > ---------------------- > If c.GetAttrib("Target")=1 Then > Target1.OnsetSignalEnabled=True > Target1.OnsetSignalPort=&H378 > Target1.OnsetSignalData=128 > > Target1.OffsetSignalEnabled=True > Target1.OffsetSignalPort=&H378 > Target1.OffsetSignalData=0 > > End if > --------------------- > > But it doesn't work, anyone can help me? I attached a screen of the > sequence of my exp. > Thank you > PM > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/5e5e05cd-3aaa-4b68-8420-c82e42266408%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAKAdR-tj083LrKkcRVPNHA8Zvma24De6%3D0yRg6umrpohs22VOw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pfc.groot at gmail.com Mon Oct 21 17:43:49 2013 From: pfc.groot at gmail.com (Paul Groot) Date: Mon, 21 Oct 2013 19:43:49 +0200 Subject: Send Trigger to EEG using E-Prime Professional 2.0 In-Reply-To: Message-ID: PS. The screendump shows that you are using EP2 pro. This version allows you to specify triggers using Task Events on Trigger1 instead of the OnsetSignal-properties. In that case you SHOULD define a ParallelPort device first. PS2: David also pinpoints an annoying issue with EP2: PreRelease is set to 'same as duration', which might result in zero-duration triggers... Paul On 21 October 2013 19:37, Paul Groot wrote: > The script looks fine, but are you sure that c.GetAttrib("Target")=1 > evaluates to true? Just add a debug line to check if the if-statements runs > as expected: > > Debug.print "Target" > > Also notice that value 128 corresponds to the highest bit of the 8 > datalines. Also, adding the ParallelPort device is not required when using > this trigger mechanism because you directly send data to the data register > of the printer port. I'm not sure, but this might even give problems when > the the LPT mode is not correctly set. > > cheers > Paul > > > > > > On 21 October 2013 12:43, Piercarlo Mauri wrote: > >> Hi, >> I need E-Prime to send triggers to my EEG signal recorded with BrainAmp. >> The trigger cable is connected from the parallel port to the BrainAmp (in >> windows the resource tab of the LPT1 port says: Interval I/O 0378-037F, >> Interval I/O 0778-077F). In E-Prime I added the parallel port on LPT1 to >> the devices used. I need that in a series of numbers (with attribute >> "Target") that will be shown for 100ms in the slide "Target1", when will >> appear the number 1, a trigger should be send to my EEG recording... I >> created an Inline script (the one called Trigger) with this command: >> >> ---------------------- >> If c.GetAttrib("Target")=1 Then >> Target1.OnsetSignalEnabled=True >> Target1.OnsetSignalPort=&H378 >> Target1.OnsetSignalData=128 >> >> Target1.OffsetSignalEnabled=True >> Target1.OffsetSignalPort=&H378 >> Target1.OffsetSignalData=0 >> >> End if >> --------------------- >> >> But it doesn't work, anyone can help me? I attached a screen of the >> sequence of my exp. >> Thank you >> PM >> >> -- >> You received this message because you are subscribed to the Google Groups >> "E-Prime" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to e-prime+unsubscribe at googlegroups.com. >> To post to this group, send email to e-prime at googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/e-prime/5e5e05cd-3aaa-4b68-8420-c82e42266408%40googlegroups.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAKAdR-uHeu3sv5%2BoR8i5TW9kc2v3wSEHkKerW4CABK_x%2BTAajQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon Oct 21 18:01:04 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 21 Oct 2013 14:01:04 -0400 Subject: Send Trigger to EEG using E-Prime Professional 2.0 In-Reply-To: Message-ID: Paul, Good catch on the screenshot -- more importantly, it shows they use EP2.0.10 Pro (as you know, Task Events got introduced with that version). Yes, in that case they should use Task Events instead of Onset/OffsetSignal, and the thread linked earlier goes into that a bit. Moreover, if they want to reset the bit based on an offset from the OnsetTime, then they should use an event of .OffSetTime, and an appropriate value for Delay. Good catch on the If..Then line, I completely overlooked that! Finally, I find the new default of "(same as duration)" a great improvement, once properly understood and managed. But there is room for a difference of opinion on that :). Best regards, -- David McFarlane At 10/21/2013 01:43 PM Monday, Paul Groot wrote: >PS. The screendump shows that you are using EP2 pro. This version >allows you to specify triggers using Task Events on Trigger1 instead >of the OnsetSignal-properties. In that case you SHOULD define a >ParallelPort device first. > >PS2: David also pinpoints an annoying issue with EP2: PreRelease is >set to 'same as duration', which might result in zero-duration triggers... > >Paul > > >On 21 October 2013 19:37, Paul Groot ><pfc.groot at gmail.com> wrote: >The script looks fine, but are you sure that c.GetAttrib("Target")=1 >evaluates to true? Just add a debug line to check if the >if-statements runs as expected: > >Debug.print "Target" > >Also notice that value 128 corresponds to the highest bit of the 8 >datalines. Also, adding the ParallelPort device is not required when >using this trigger mechanism because you directly send data to the >data register of the printer port. I'm not sure, but this might even >give problems when the the LPT mode is not correctly set. > >cheers >Paul > > > > > >On 21 October 2013 12:43, Piercarlo Mauri ><piercarlo.mauri at gmail.com> wrote: >Hi, >I need E-Prime to send triggers to my EEG signal recorded with >BrainAmp. The trigger cable is connected from the parallel port to >the BrainAmp (in windows the resource tab of the LPT1 port says: >Interval I/O 0378-037F, Interval I/O 0778-077F). In E-Prime I added >the parallel port on LPT1 to the devices used. I need that in a >series of numbers (with attribute "Target") that will be shown for >100ms in the slide "Target1", when will appear the number 1, a >trigger should be send to my EEG recording... I created an Inline >script (the one called Trigger) with this command: > >---------------------- >If c.GetAttrib("Target")=1 Then > Target1.OnsetSignalEnabled=True > Target1.OnsetSignalPort=&H378 > Target1.OnsetSignalData=128 > > Target1.OffsetSignalEnabled=True > Target1.OffsetSignalPort=&H378 > Target1.OffsetSignalData=0 > >End if >--------------------- > >But it doesn't work, anyone can help me? I attached a screen of the >sequence of my exp. >Thank you >PM -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52656be8.2e43320a.6fd6.ffffaa52SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Mon Oct 21 18:33:55 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 21 Oct 2013 14:33:55 -0400 Subject: 2 slides equal to one time duration In-Reply-To: <525c3688.2cdd320a.3305.55f9SMTPIN_ADDED_MISSING@gmr-mx.goo gle.com> Message-ID: Just for the record, I need to correct a bit of my advice here. Earlier, I said that using SetNextTargetOnsetTime ASlide.OnsetTime between ASlide and BSlide would make the total duration from the start of ASlide to the end of BSlide equal the specified Duration of BSlide (in this case, 2500 ms). But I neglected to say that, for this to work, you must also set BSlide to use Cumulative timing mode. This works because, in Cumulative timing mode, the TargetOnset time for whatever follows BSlide will be based on the TargetOnsetTime of BSlide (instead of actual OnsetTime), and BSlide.TargetOnsetTime will come from the NextTargetOnsetTime implied in the code above. I generally like this approach because it eliminates any errors due to delays in starting BSlide. Furthermore, the line of code above makes the total duration of ASlide + BSlide act like Event timing mode (think it through). If you want that to instead act like Cumulative timing mode, then that line should read SetNextTargetOnsetTime ASlide.TargetOnsetTime i.e., use .TargetOnsetTime instead of just .OnsetTime. If you stubbornly insist on keeping BSlide set to Event timing mode, then the TargetOnset time for whatever follows BSlide will be based on the actual OnsetTime of BSlide, and you have no recourse but to manipulate the Duration of BSlide. In that case, your inline code between ASlide and BSlide should look more like BSlide.Duration = 2500 - (Clock.Read - ASlide.OnsetTime) or if you prefer, c.SetAttrib "BSlideDuration", 2500 - (Clock.Read - ASlide.OnsetTime) and then use "[BSlideDuration]" as an attribute reference for the Duration of BSlide (see comments on assigning object properties directly in code vs. via attribute reference at https://groups.google.com/d/topic/e-prime/dWpfjk-BeLs and https://groups.google.com/d/topic/e-prime/g1Fv2CGaSeg ). Manipulating Duration (instead of NextTargetOnsetTime) also means that the actual duration of BSlide (and ASlide + BSlide) will vary depending on any delays in starting BSlide, but maybe that is what you want. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/14/2013 02:22 PM Monday, David McFarlane wrote: >Not sure I follow your description of the problem. But let's >suppose you have two Slides in your Procedure, let's call them >ASlide and BSlide. ASlide takes a response, and the Procedure moves >on to present BSlide whenever ASlide gets a response, or 2000 ms, >whichever comes first. And you want the total duration for ASlide & >BSlide to be 2500 ms, i.e., BSlide should last for 2500 - >(ASlide_actual_duration). > >There are many ways to skin this cat. My favorite method goes as >follows. Set the Duration of BSlide to 2500, and in an Inline >between ASlide and BSlide, do the following: > > SetNextTargetOnsetTime ASlide.OnsetTime > >That's all! Understanding how this works takes some deeper >understanding of E-Prime timing models & mechanisms, more than I can >go into here, but look at the SetNextTargetOnsetTime topic in the >E-Basic Help facility. But in short, with that bit of code, BSlide >will use the actual OnsetTime from ASlide in order to compute its >own ending time, and so will end at 2500 ms from the OnsetTime of >ASlide, whithout you having to do anything more. Presto! > >----- >David McFarlane >E-Prime training >online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at https://support.pstnet.com , and they >strive to respond to all requests in 24-48 hours, so make full use >of it. 3) In addition, PST offers several instructional videos on >their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If >you do get an answer from PST staff, please extend the courtesy of >posting their reply back here for the sake of others. >\---- > > >At 10/8/2013 10:00 PM Tuesday, Kim Goodyear wrote: >>I am trying to have two sequential slides that are equal to one >>time duration of 2500 ms. The first slide and the second slide are >>completely identical, except in the second slide the text color >>changes to red so that the participant can see their selection, I >>want the first slide to terminate and then have the second slide >>come up so that they both equal the same 2500 ms. Since the >>response time will vary I don't know how to make both slides equal >>to the same 2500. I don't know why, but if the buttons aren't >>selected right away, the total duration is around 5000, or if there >>is a delay in the response, the total duration is around 4200. I >>am not sure how to fix this issue, any advice would be great. Here >>is my inline script: >> >>Dim ResetSlide as integer >>Dim x as integer >> >>ResetSlide = StimDisplay.Duration + StimDisplay2.Duration >>ResetSlide = x >>x = 2500 -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/526573bf.0286320a.39d7.2574SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From pedromrfigueira at gmail.com Tue Oct 22 10:48:31 2013 From: pedromrfigueira at gmail.com (Pedro Figueira) Date: Tue, 22 Oct 2013 03:48:31 -0700 Subject: Press and release a key to start a stop a film Message-ID: Hi, I need help to set up a experiment: I found a script that allows me to make a slide on e-prime and record the time between starting to press a key and release this same key. However, I would like to be able to use this script during a film on e-prime. Speciffically, I´m looking for a way to press the key and start the film simultaneously and then release the key when the participant find in the film a target-stimulus, moving so to the next e-prime slide. Does anyone have an idea about how to do it? Best regards PF -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/92c2e126-5b3a-4449-ab41-0bffd9ca1606%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From francesco.biondi1 at gmail.com Tue Oct 22 20:38:02 2013 From: francesco.biondi1 at gmail.com (francesco biondi) Date: Tue, 22 Oct 2013 13:38:02 -0700 Subject: pedals Message-ID: Hi All, I am about to run an experiment in which I collect foot responses. I have V3 Interact pedals, Windows 7 and no drivers to install the pedals. I could not find any drivers to get the V3 pedals working on my pc. I think I will be purchasing new pedals then. Do you know about / Have any of you already used pedals to run experiments in eprime? If so, can you suggest me a particular brand? Thanks, Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/b17a13b5-27f1-4830-b074-b65d5b9873c6%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Oct 22 22:08:59 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 22 Oct 2013 18:08:59 -0400 Subject: pedals In-Reply-To: Message-ID: Francesco, Years ago we did an experiment using foot pedals, we just used simple on-off foot switch pedals from Radio Shack, they do not seem to carry them anymore but you can get a glimpse of what I mean at http://www.eham.net/reviews/detail/4801 , or see the Casio model at http://www.bestbuy.com/site/casio-sp3-keyboard-sustain-pedal/6733588.p . At that time we just patched them directly into the keyboard so that foot presses looked like a key press, e.g., {F12}. Alternatively, you could just patch these into a PST SRBox and go from there. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/22/2013 04:38 PM Tuesday, francesco biondi wrote: >I am about to run an experiment in which I collect foot responses. >I have V3 Interact pedals, Windows 7 and no drivers to install the pedals. >I could not find any drivers to get the V3 pedals working on my pc. > >I think I will be purchasing new pedals then. > >Do you know about / Have any of you already used pedals to run >experiments in eprime? > >If so, can you suggest me a particular brand? > >Thanks, > >Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5266f783.8570320a.74d1.30b5SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From francesco.biondi1 at gmail.com Tue Oct 22 22:28:50 2013 From: francesco.biondi1 at gmail.com (francesco biondi) Date: Tue, 22 Oct 2013 15:28:50 -0700 Subject: pedals In-Reply-To: <5266f783.8570320a.74d1.30b5SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks David for the quick reply! It seems to me that the Casio option in quite convenient. At that time we just patched them directly into the keyboard so that > foot presses looked like a key press, e.g., {F12}. Can you please give me a more detailed explanation? Since it has a Jack plug, which port should i use? do i need to get an adapter? (apologizes, but I am not familiar with this topic at all) In eprime, which device should i select from AddDevice window? Thanks, and still apologizes whether my questions sound stupid. > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/22/2013 04:38 PM Tuesday, francesco biondi wrote: > >I am about to run an experiment in which I collect foot responses. > >I have V3 Interact pedals, Windows 7 and no drivers to install the > pedals. > >I could not find any drivers to get the V3 pedals working on my pc. > > > >I think I will be purchasing new pedals then. > > > >Do you know about / Have any of you already used pedals to run > >experiments in eprime? > > > >If so, can you suggest me a particular brand? > > > >Thanks, > > > >Francesco > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/17d28975-fdc4-48de-929e-597840b34e80%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulinefavre at live.fr Wed Oct 23 16:55:26 2013 From: paulinefavre at live.fr (Pauline FAVRE) Date: Wed, 23 Oct 2013 09:55:26 -0700 Subject: probabilistic stimuli Message-ID: Dear E-prime users, I try to control the occurrence of the a stimulus, i.e., during the experiment, each trial consist first of a presentation of a stimulus and then I would like that another image appears for only 80% of correct responses on the previous stimulus (and different images for the remaining 20% and the incorrect responses). In summary, I just would like that a specific stimuli appears in 80 % of the cases. Is there an inline script that permit that a stimuli appears only in a determined percentage of trials? Thank you very much for your help! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/38276e68-87ba-4bf9-be0d-57fd91cb8eb2%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ycsgeorge at gmail.com Thu Oct 24 15:34:50 2013 From: ycsgeorge at gmail.com (George Yang) Date: Thu, 24 Oct 2013 08:34:50 -0700 Subject: problem with E-Run Message-ID: Dear E-Prime users I am really new to E prime, with nearly zero prior experience. So please bear with my really dumb question. I only have the E prime evaluation version on my computer (I wish I could have the full package). And, in order to collaborate with another colleague in another institution, I purchased E Prime Run time license. However, when I was running the E prime script written by my coworker, the E run was not working. It showed that "the Demo/evaluation license does not support E-Run". I googled for this problem, was not lucky enough. I should say that. I first installed the evaluation version of E-Prime on my pc, then installed the E-Run. I tried to uninstall the E prime evaluation version and E-run. Then first install E-Run and then E prime evaluation version. After generating the E run script on the evaluation E prime,the same problem occurred when I tried to open E-Run. I guess that some of you may feel this is really a dumb question. However, it has been baffling me for a few days. I emailed PST, but no response so far. My collaborator in another institution could not figure it out either. So I am here now. If any of the group members can help me out, I'd really appreciate it. Thanks a lot. Sincerely, Chunsheng Yang University of Connecticut -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/03ef0ebb-786d-4a8d-95e2-ace0a1ea1302%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu Oct 24 15:42:43 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 24 Oct 2013 11:42:43 -0400 Subject: problem with E-Run In-Reply-To: <03ef0ebb-786d-4a8d-95e2-ace0a1ea1302@googlegroups.com> Message-ID: Chunsheng, You may just have to wait for PST Support to help you out with this, but offhand, I think you will have to use the E-Prime License Manager (LicenseManager.exe) in order to insert the correct license numer for your installation. Again, PST Support should give you instructions on how to do that, see links below for best ways to contact them. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/24/2013 11:34 AM Thursday, George Yang wrote: >Dear E-Prime users > >I am really new to E prime, with nearly zero prior experience. So >please bear with my really dumb question. I only have the E prime >evaluation version on my computer (I wish I could have the full >package). And, in order to collaborate with another colleague in >another institution, I purchased E Prime Run time license. > >However, when I was running the E prime script written by my >coworker, the E run was not working. It showed that "the >Demo/evaluation license does not support E-Run". I googled for this >problem, was not lucky enough. I should say that. I first installed >the evaluation version of E-Prime on my pc, then installed the E-Run. > >I tried to uninstall the E prime evaluation version and E-run. Then >first install E-Run and then E prime evaluation version. After >generating the E run script on the evaluation E prime,the same >problem occurred when I tried to open E-Run. > >I guess that some of you may feel this is really a dumb question. >However, it has been baffling me for a few days. I emailed PST, but >no response so far. My collaborator in another institution could not >figure it out either. So I am here now. > >If any of the group members can help me out, I'd really appreciate it. > >Thanks a lot. > >Sincerely, > >Chunsheng Yang >University of Connecticut -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52694017.629a320a.59d3.ffff8acdSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From ycsgeorge at gmail.com Thu Oct 24 20:55:51 2013 From: ycsgeorge at gmail.com (George Yang) Date: Thu, 24 Oct 2013 13:55:51 -0700 Subject: problem with E-Run In-Reply-To: <52694017.629a320a.59d3.ffff8acdSMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks, David, I will try it. And hopefully PST people will get back to me soon. Have a good one. Chunsheng On Thursday, October 24, 2013 11:42:43 AM UTC-4, McFarlane, David wrote: > > Chunsheng, > > You may just have to wait for PST Support to help you out with this, > but offhand, I think you will have to use the E-Prime License Manager > (LicenseManager.exe) in order to insert the correct license numer for > your installation. Again, PST Support should give you instructions > on how to do that, see links below for best ways to contact them. > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/24/2013 11:34 AM Thursday, George Yang wrote: > >Dear E-Prime users > > > >I am really new to E prime, with nearly zero prior experience. So > >please bear with my really dumb question. I only have the E prime > >evaluation version on my computer (I wish I could have the full > >package). And, in order to collaborate with another colleague in > >another institution, I purchased E Prime Run time license. > > > >However, when I was running the E prime script written by my > >coworker, the E run was not working. It showed that "the > >Demo/evaluation license does not support E-Run". I googled for this > >problem, was not lucky enough. I should say that. I first installed > >the evaluation version of E-Prime on my pc, then installed the E-Run. > > > >I tried to uninstall the E prime evaluation version and E-run. Then > >first install E-Run and then E prime evaluation version. After > >generating the E run script on the evaluation E prime,the same > >problem occurred when I tried to open E-Run. > > > >I guess that some of you may feel this is really a dumb question. > >However, it has been baffling me for a few days. I emailed PST, but > >no response so far. My collaborator in another institution could not > >figure it out either. So I am here now. > > > >If any of the group members can help me out, I'd really appreciate it. > > > >Thanks a lot. > > > >Sincerely, > > > >Chunsheng Yang > >University of Connecticut > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/1db68aa0-d1bc-4c14-a88f-0305608d1790%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Fri Oct 25 17:24:10 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 25 Oct 2013 13:24:10 -0400 Subject: pedals In-Reply-To: <17d28975-fdc4-48de-929e-597840b34e80@googlegroups.com> Message-ID: Francesco, Been working on this repsonse for the past couple days... You will need to get a soldering iron and a multimeter, and have the skills to use them, or find & team up with a local electronics technician, as this is a bit of a do-it-yourself project. The first time I did this in the 1990s, we had keyboards that still had individual mechanical switches for each key, I just opened the keyboard case and soldered a pair of wires (from two-conductor speaker cable) directly to the desired key switch. I left about a foot (~0.5 m) hanging outside the keyboard and added an inline 3.5mm monophone jack to the end. The foot pedal either came with a 3.5mm monophone plug, or I cut off whatever it came with and replaced it with a 3.5mm plug myself. Of course, you will not likely come across those keyboards anymore. But no problem, it just means that you open up the keyboard again and patch directly into the keyboard matrix controller, which is what I did for a later project (and that time, I drilled a hole in the case and mounted a jack right on the keyboard case, very neat). Back then I got some insructions from a web page, but I cannot find that right now so you might have to Google around yourself -- I found the following that introduce some of the principles, http://www.howstuffworks.com/keyboard.htm and http://pcbheaven.com/wikipages/How_Key_Matrices_Works/ -- if you cannot figure out how to do this based on these principles, then you should not try this project. Anyway, once you you have a switch wired into the keyboard, it effectively *is* a keypress, so no need for any drivers or Devices or ports or anything else. But really, you would be better off using a PST SRBox. The SRBox has an expansion connector inside that allows you to easily add external devices that will then act just as if you pressed buttons on the SRBox. In that case, you will only need to connect two wires from the pedal to a mating connector -- the SRBox should come with a manual that explains the priciples involved (I have the manual right here), or you can purchase PST's SRBox Custom Expansion Kit... Well, I just looked this up now, and for a total of US$640, you can get the SRBox (US$450), the Custom Expansion Kit (US$150), *and* a foot pedal (US$40), so there you go! Yes, that is a bit of money, but you will find the SRBox handy for many reasons, including better timing performance (see PST's measurements at http://www.pstnet.com/eprimedevice.cfm ). But if you want to save $150, you can do without the Custom Expansion Kit and just get the interfacing components you need from an electronics supplier. I think that should cover it. -- David McFarlane At 10/22/2013 06:28 PM Tuesday, francesco biondi wrote: >Thanks David for the quick reply! > >It seems to me that the Casio option in quite convenient. > >At that time we just patched them directly into the keyboard so that >foot presses looked like a key press, e.g., {F12}. > > >Can you please give me a more detailed explanation? > >Since it has a Jack plug, which port should i use? do i need to get >an adapter? >(apologizes, but I am not familiar with this topic at all) > >In eprime, which device should i select from AddDevice window? > >Thanks, > >and still apologizes whether my questions sound stupid. > >On Tuesday, October 22, 2013 4:08:59 PM UTC-6, McFarlane, David wrote: >Francesco, > >Years ago we did an experiment using foot pedals, we just used simple >on-off foot switch pedals from Radio Shack, they do not seem to carry >them anymore but you can get a glimpse of what I mean at >http://www.eham.net/reviews/detail/4801 >, or see the Casio model at >http://www.bestbuy.com/site/casio-sp3-keyboard-sustain-pedal/6733588.p >. > >At that time we just patched them directly into the keyboard so that >foot presses looked like a key press, e.g., {F12}. Alternatively, >you could just patch these into a PST SRBox and go from there. > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx > >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at >https://support.pstnet.com , and they >strive to respond to all requests in 24-48 hours, so make full use of >it. 3) In addition, PST offers several instructional videos on their >YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do >get an answer from PST staff, please extend the courtesy of posting >their reply back here for the sake of others. >\---- > > >At 10/22/2013 04:38 PM Tuesday, francesco biondi wrote: > >I am about to run an experiment in which I collect foot responses. > >I have V3 Interact pedals, Windows 7 and no drivers to install the pedals. > >I could not find any drivers to get the V3 pedals working on my pc. > > > >I think I will be purchasing new pedals then. > > > >Do you know about / Have any of you already used pedals to run > >experiments in eprime? > > > >If so, can you suggest me a particular brand? > > > >Thanks, > > > >Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/526aa93d.8570320a.7ddc.3164SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Fri Oct 25 17:53:59 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 25 Oct 2013 13:53:59 -0400 Subject: probabilistic stimuli In-Reply-To: <38276e68-87ba-4bf9-be0d-57fd91cb8eb2@googlegroups.com> Message-ID: One way to do this, maybe some others will come up with alternatives... Suppose your stimulus is named StimText, and you use an attribute reference, "[FollowupImageFile]", for the image file in the following stimulus. Then in inline code after StimText and before your followup stimulus, do something like the following: If (StimText.ACC And (PRNG.GetNext() < 0.8)) Then c.SetAttrib "FollowupImageFile", "CorrectFollowupImageFile" Else c.SetAttrib "FollowupImageFile", "OtherFollowupImageFile" End If See the PRNG and related topics in the E-Basic Help facility. BTW, the comparison "< 0.8" will work for all practical purposes, but you might consider whether "<= 0.8" would be more canonically correct -- I leave that as an exercise to the reader. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/23/2013 12:55 PM Wednesday, Pauline FAVRE wrote: >Dear E-prime users, >I try to control the occurrence of the a stimulus, i.e., during the >experiment, each trial consist first of a presentation of a stimulus >and then I would like that another image appears for only 80% of >correct responses on the previous stimulus (and different images for >the remaining 20% and the incorrect responses). > >In summary, I just would like that a specific stimuli appears in 80 >% of the cases. > >Is there an inline script that permit that a stimuli appears only in >a determined percentage of trials? > >Thank you very much for your help! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/526ab080.0286320a.7189.321eSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From pkhoosh at gmail.com Fri Oct 25 23:40:07 2013 From: pkhoosh at gmail.com (Pete Khooshabeh, PhD) Date: Fri, 25 Oct 2013 16:40:07 -0700 Subject: please help me convert ePrime professional file to standard Message-ID: Hello, Will someone be so kind as to save this file into ePrime standard? I really appreciate it. Here are instructions: http://www.youtube.com/watch?v=bw3HIk3M_7o Peter -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/ccbc8157-d0ce-4787-a9ad-eba0a2f8b319%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambling Task 070409.es2 Type: application/octet-stream Size: 59576 bytes Desc: not available URL: From jacanterbury at gmail.com Sun Oct 27 07:16:09 2013 From: jacanterbury at gmail.com (john@johnallen.it) Date: Sun, 27 Oct 2013 07:16:09 +0000 Subject: pedals In-Reply-To: <526aa93d.8570320a.7ddc.3164SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Francesco David's answers are all great, as slways, however if u dont want to spend good money on a response box snd if you'e happy using USB rather than serial port input, then you might like to consider this http://www.makeymakey.com/ On first appearance it may appear like a toy but I think you should be able to get it to work for your purpose. John On 25 Oct 2013 18:24, "David McFarlane" wrote: > Francesco, > > Been working on this repsonse for the past couple days... > > You will need to get a soldering iron and a multimeter, and have the > skills to use them, or find & team up with a local electronics technician, > as this is a bit of a do-it-yourself project. The first time I did this in > the 1990s, we had keyboards that still had individual mechanical switches > for each key, I just opened the keyboard case and soldered a pair of wires > (from two-conductor speaker cable) directly to the desired key switch. I > left about a foot (~0.5 m) hanging outside the keyboard and added an inline > 3.5mm monophone jack to the end. The foot pedal either came with a 3.5mm > monophone plug, or I cut off whatever it came with and replaced it with a > 3.5mm plug myself. > > Of course, you will not likely come across those keyboards anymore. But > no problem, it just means that you open up the keyboard again and patch > directly into the keyboard matrix controller, which is what I did for a > later project (and that time, I drilled a hole in the case and mounted a > jack right on the keyboard case, very neat). Back then I got some > insructions from a web page, but I cannot find that right now so you might > have to Google around yourself -- I found the following that introduce some > of the principles, http://www.howstuffworks.com/**keyboard.htmand > http://pcbheaven.com/**wikipages/How_Key_Matrices_**Works/-- if you cannot figure out how to do this based on these principles, then > you should not try this project. > > Anyway, once you you have a switch wired into the keyboard, it effectively > *is* a keypress, so no need for any drivers or Devices or ports or anything > else. > > > But really, you would be better off using a PST SRBox. The SRBox has an > expansion connector inside that allows you to easily add external devices > that will then act just as if you pressed buttons on the SRBox. In that > case, you will only need to connect two wires from the pedal to a mating > connector -- the SRBox should come with a manual that explains the > priciples involved (I have the manual right here), or you can purchase > PST's SRBox Custom Expansion Kit... Well, I just looked this up now, and > for a total of US$640, you can get the SRBox (US$450), the Custom Expansion > Kit (US$150), *and* a foot pedal (US$40), so there you go! Yes, that is a > bit of money, but you will find the SRBox handy for many reasons, including > better timing performance (see PST's measurements at > http://www.pstnet.com/**eprimedevice.cfm). But if you want to save $150, you can do without the Custom Expansion > Kit and just get the interfacing components you need from an electronics > supplier. > > I think that should cover it. > > -- David McFarlane > > > At 10/22/2013 06:28 PM Tuesday, francesco biondi wrote: > >> Thanks David for the quick reply! >> >> It seems to me that the Casio option in quite convenient. >> >> At that time we just patched them directly into the keyboard so that >> foot presses looked like a key press, e.g., {F12}. >> >> >> Can you please give me a more detailed explanation? >> >> Since it has a Jack plug, which port should i use? do i need to get an >> adapter? >> (apologizes, but I am not familiar with this topic at all) >> >> In eprime, which device should i select from AddDevice window? >> >> Thanks, >> >> and still apologizes whether my questions sound stupid. >> >> On Tuesday, October 22, 2013 4:08:59 PM UTC-6, McFarlane, David wrote: >> Francesco, >> >> Years ago we did an experiment using foot pedals, we just used simple >> on-off foot switch pedals from Radio Shack, they do not seem to carry >> them anymore but you can get a glimpse of what I mean at >> >> >http://www.eham.**net/reviews/detail/4801, or see the Casio model at >> > pedal/6733588.p >> >http://www.**bestbuy.com/site/casio-sp3-**keyboard-sustain-pedal/** >> 6733588.p. >> >> At that time we just patched them directly into the keyboard so that >> foot presses looked like a key press, e.g., {F12}. Alternatively, >> you could just patch these into a PST SRBox and go from there. >> >> ----- >> David McFarlane >> E-Prime training >> online: >> >**http://psychology.msu.edu/**Workshops_Courses/eprime.aspx >> Twitter: @EPrimeMaster ( >> >https://twitter.**com/EPrimeMaster ) >> >> /---- >> Stock reminder: 1) I do not work for PST. 2) PST's trained staff >> take any and all questions at ht** >> tps://support.pstnet.com , and they >> strive to respond to all requests in 24-48 hours, so make full use of >> it. 3) In addition, PST offers several instructional videos on their >> YouTube channel ( >> >http://www.youtube.com/**user/PSTNET). 4) If you do >> get an answer from PST staff, please extend the courtesy of posting >> their reply back here for the sake of others. >> \---- >> >> >> At 10/22/2013 04:38 PM Tuesday, francesco biondi wrote: >> >I am about to run an experiment in which I collect foot responses. >> >I have V3 Interact pedals, Windows 7 and no drivers to install the >> pedals. >> >I could not find any drivers to get the V3 pedals working on my pc. >> > >> >I think I will be purchasing new pedals then. >> > >> >Do you know about / Have any of you already used pedals to run >> >experiments in eprime? >> > >> >If so, can you suggest me a particular brand? >> > >> >Thanks, >> > >> >Francesco >> > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe@**googlegroups.com > . > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/** > msgid/e-prime/526aa93d.**8570320a.7ddc.3164SMTPIN_** > ADDED_MISSING%40gmr-mx.google.**com > . > For more options, visit https://groups.google.com/**groups/opt_out > . > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAAT4JdQxTyj1GmyE%3DELpVxQnwuNX%2B0gnTaCDOphtstXizynrQA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulinefavre at live.fr Mon Oct 28 17:06:34 2013 From: paulinefavre at live.fr (Pauline FAVRE) Date: Mon, 28 Oct 2013 10:06:34 -0700 Subject: probabilistic stimuli In-Reply-To: <526ab080.0286320a.7189.321eSMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thank you for your response. This seems to be a good solution. Unfortunately, the problem persists, the "correctFollowupImage" continue to be display even if the answer is incorrect (and vice versa)! Perhaps I can use the "Feedback" object but how can I specify the conditional probability for correct responses (i.e. 80% of correct responses with one feedback, nothing for the other 20% and for no responses, and different feedback for incorrect responses)? Again, thank you very much for your help. Sincerely, PF Le vendredi 25 octobre 2013 18:53:59 UTC+1, McFarlane, David a écrit : > > One way to do this, maybe some others will come up with alternatives... > > Suppose your stimulus is named StimText, and you use an attribute > reference, "[FollowupImageFile]", for the image file in the following > stimulus. Then in inline code after StimText and before your > followup stimulus, do something like the following: > > If (StimText.ACC And (PRNG.GetNext() < 0.8)) Then > c.SetAttrib "FollowupImageFile", "CorrectFollowupImageFile" > Else > c.SetAttrib "FollowupImageFile", "OtherFollowupImageFile" > End If > > See the PRNG and related topics in the E-Basic Help facility. > > BTW, the comparison "< 0.8" will work for all practical purposes, but > you might consider whether "<= 0.8" would be more canonically correct > -- I leave that as an exercise to the reader. > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/23/2013 12:55 PM Wednesday, Pauline FAVRE wrote: > >Dear E-prime users, > >I try to control the occurrence of the a stimulus, i.e., during the > >experiment, each trial consist first of a presentation of a stimulus > >and then I would like that another image appears for only 80% of > >correct responses on the previous stimulus (and different images for > >the remaining 20% and the incorrect responses). > > > >In summary, I just would like that a specific stimuli appears in 80 > >% of the cases. > > > >Is there an inline script that permit that a stimuli appears only in > >a determined percentage of trials? > > > >Thank you very much for your help! > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/12681ac9-7018-416f-bde6-ca14c3a9fc62%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Oct 29 19:57:30 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 29 Oct 2013 15:57:30 -0400 Subject: pedals In-Reply-To: Message-ID: John, Very cool! For US$50 (plus US$5 s/h within USA, US$15 elsewhere) the MaKey MaKey gizmo acts like a basic external digital input board through USB, converting any switch closure into an ordinary key press, mouse button press, or mouse movement useable by any software that recognizes a USB keyboard or mouse. I want one of these, could come in handy! Francesco, As it turns out, one of our labs has recently purchased USB foot pedals that act like key presses, and they use that with E-Prime. See http://www.tomtop.com/usb-foot-control-keyboard-mouse-action-three-switch-pedal-hid-c954.html . Cost is US$34 (plus s/h I suppose). Both the MaKey MaKey and USB foot pedals should work fine if you do not need absolute millisecond timing performance (note in particular that the MaKey MaKey page says that they use a moving window averager to lowpass switch noise in software, I imagine that might add a bit of delay; goodness knows how the USB foot pedals behave). Otherwise users should test input timing characteristics for themselves (use an oscilloscope, or a Black Box Toolkit). I would love to know what you end up with, please write back and let us know. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/27/2013 03:16 AM Sunday, john at johnallen.it wrote: >Francesco > >David's answers are all great, as slways, however if u dont want to >spend good money on a response box snd if you'e happy using USB >rather than serial port input, then you might like to consider this >http://www.makeymakey.com/ >On first appearance it may appear like a toy but I think you should >be able to get it to work for your purpose. > >John >On 25 Oct 2013 18:24, "David McFarlane" ><mcfarla9 at msu.edu> wrote: >Francesco, > >Been working on this repsonse for the past couple days... > >You will need to get a soldering iron and a multimeter, and have the >skills to use them, or find & team up with a local electronics >technician, as this is a bit of a do-it-yourself project. The first >time I did this in the 1990s, we had keyboards that still had >individual mechanical switches for each key, I just opened the >keyboard case and soldered a pair of wires (from two-conductor >speaker cable) directly to the desired key switch. I left about a >foot (~0.5 m) hanging outside the keyboard and added an inline 3.5mm >monophone jack to the end. The foot pedal either came with a 3.5mm >monophone plug, or I cut off whatever it came with and replaced it >with a 3.5mm plug myself. > >Of course, you will not likely come across those keyboards >anymore. But no problem, it just means that you open up the >keyboard again and patch directly into the keyboard matrix >controller, which is what I did for a later project (and that time, >I drilled a hole in the case and mounted a jack right on the >keyboard case, very neat). Back then I got some insructions from a >web page, but I cannot find that right now so you might have to >Google around yourself -- I found the following that introduce some >of the principles, >http://www.howstuffworks.com/keyboard.htm >and >http://pcbheaven.com/wikipages/How_Key_Matrices_Works/ >-- if you cannot figure out how to do this based on these >principles, then you should not try this project. > >Anyway, once you you have a switch wired into the keyboard, it >effectively *is* a keypress, so no need for any drivers or Devices >or ports or anything else. > > >But really, you would be better off using a PST SRBox. The SRBox >has an expansion connector inside that allows you to easily add >external devices that will then act just as if you pressed buttons >on the SRBox. In that case, you will only need to connect two wires >from the pedal to a mating connector -- the SRBox should come with a >manual that explains the priciples involved (I have the manual right >here), or you can purchase PST's SRBox Custom Expansion >Kit... Well, I just looked this up now, and for a total of US$640, >you can get the SRBox (US$450), the Custom Expansion Kit (US$150), >*and* a foot pedal (US$40), so there you go! Yes, that is a bit of >money, but you will find the SRBox handy for many reasons, including >better timing performance (see PST's measurements at >http://www.pstnet.com/eprimedevice.cfm >). But if you want to save $150, you can do without the Custom >Expansion Kit and just get the interfacing components you need from >an electronics supplier. > >I think that should cover it. > >-- David McFarlane > > >At 10/22/2013 06:28 PM Tuesday, francesco biondi wrote: >Thanks David for the quick reply! > >It seems to me that the Casio option in quite convenient. > >At that time we just patched them directly into the keyboard so that >foot presses looked like a key press, e.g., {F12}. > > >Can you please give me a more detailed explanation? > >Since it has a Jack plug, which port should i use? do i need to get >an adapter? >(apologizes, but I am not familiar with this topic at all) > >In eprime, which device should i select from AddDevice window? > >Thanks, > >and still apologizes whether my questions sound stupid. > >On Tuesday, October 22, 2013 4:08:59 PM UTC-6, McFarlane, David wrote: >Francesco, > >Years ago we did an experiment using foot pedals, we just used simple >on-off foot switch pedals from Radio Shack, they do not seem to carry >them anymore but you can get a glimpse of what I mean at ><http://www.eham.net/reviews/detail/4801>http://www.eham.net/reviews/detail/4801 >, or see the Casio model at ><http://www.bestbuy.com/site/casio-sp3-keyboard-sustain-pedal/6733588.p>http://www.bestbuy.com/site/casio-sp3-keyboard-sustain-pedal/6733588.p >. > >At that time we just patched them directly into the keyboard so that >foot presses looked like a key press, e.g., {F12}. Alternatively, >you could just patch these into a PST SRBox and go from there. > >----- >David McFarlane >E-Prime training >online: ><http://psychology.msu.edu/Workshops_Courses/eprime.aspx>http://psychology.msu.edu/Workshops_Courses/eprime.aspx > >Twitter: @EPrimeMaster >(<https://twitter.com/EPrimeMaster>https://twitter.com/EPrimeMaster >) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at ><https://support.pstnet.com>https://support.pstnet.com >, and they >strive to respond to all requests in 24-48 hours, so make full use of >it. 3) In addition, PST offers several instructional videos on their >YouTube channel >(<http://www.youtube.com/user/PSTNET>http://www.youtube.com/user/PSTNET >). 4) If you do >get an answer from PST staff, please extend the courtesy of posting >their reply back here for the sake of others. >\---- > > >At 10/22/2013 04:38 PM Tuesday, francesco biondi wrote: > >I am about to run an experiment in which I collect foot responses. > >I have V3 Interact pedals, Windows 7 and no drivers to install the pedals. > >I could not find any drivers to get the V3 pedals working on my pc. > > > >I think I will be purchasing new pedals then. > > > >Do you know about / Have any of you already used pedals to run > >experiments in eprime? > > > >If so, can you suggest me a particular brand? > > > >Thanks, > > > >Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52701330.48e1320a.12cd.2893SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Tue Oct 29 20:04:06 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 29 Oct 2013 16:04:06 -0400 Subject: pedals In-Reply-To: <52701330.48e1320a.12cd.2893SMTPIN_ADDED_MISSING@gmr-mx.goo gle.com> Message-ID: Just to clarify that last point, even patching a foot pedal directly into the keyboard does not give you the best timing performance, because keyboards generally provide only mediocre performance (but see http://www.empirisoft.com/directinkb.aspx ). If you want millisecond-quality performance, you need to incorporate something like an SRBox, or a high-speed I/O device (e.g., old-fashioned parallel port). -- David McFarlane At 10/29/2013 03:57 PM Tuesday, David McFarlane wrote: >John, Very cool! For US$50 (plus US$5 s/h within USA, US$15 >elsewhere) the MaKey MaKey gizmo acts like a basic external digital >input board through USB, converting any switch closure into an >ordinary key press, mouse button press, or mouse movement useable by >any software that recognizes a USB keyboard or mouse. I want one of >these, could come in handy! > >Francesco, As it turns out, one of our labs has recently purchased >USB foot pedals that act like key presses, and they use that with >E-Prime. See >http://www.tomtop.com/usb-foot-control-keyboard-mouse-action-three-switch-pedal-hid-c954.html >. Cost is US$34 (plus s/h I suppose). > >Both the MaKey MaKey and USB foot pedals should work fine if you do >not need absolute millisecond timing performance (note in particular >that the MaKey MaKey page says that they use a moving window >averager to lowpass switch noise in software, I imagine that might >add a bit of delay; goodness knows how the USB foot pedals >behave). Otherwise users should test input timing characteristics >for themselves (use an oscilloscope, or a Black Box Toolkit). > >I would love to know what you end up with, please write back and let us know. > >----- >David McFarlane >E-Prime training >online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at https://support.pstnet.com , and they >strive to respond to all requests in 24-48 hours, so make full use >of it. 3) In addition, PST offers several instructional videos on >their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If >you do get an answer from PST staff, please extend the courtesy of >posting their reply back here for the sake of others. >\---- > > >At 10/27/2013 03:16 AM Sunday, john at johnallen.it wrote: > >>Francesco >> >>David's answers are all great, as slways, however if u dont want to >>spend good money on a response box snd if you'e happy using USB >>rather than serial port input, then you might like to consider this >>http://www.makeymakey.com/ >>On first appearance it may appear like a toy but I think you should >>be able to get it to work for your purpose. >> >>John >>On 25 Oct 2013 18:24, "David McFarlane" >><mcfarla9 at msu.edu> wrote: >>Francesco, >> >>Been working on this repsonse for the past couple days... >> >>You will need to get a soldering iron and a multimeter, and have >>the skills to use them, or find & team up with a local electronics >>technician, as this is a bit of a do-it-yourself project. The >>first time I did this in the 1990s, we had keyboards that still had >>individual mechanical switches for each key, I just opened the >>keyboard case and soldered a pair of wires (from two-conductor >>speaker cable) directly to the desired key switch. I left about a >>foot (~0.5 m) hanging outside the keyboard and added an inline >>3.5mm monophone jack to the end. The foot pedal either came with a >>3.5mm monophone plug, or I cut off whatever it came with and >>replaced it with a 3.5mm plug myself. >> >>Of course, you will not likely come across those keyboards >>anymore. But no problem, it just means that you open up the >>keyboard again and patch directly into the keyboard matrix >>controller, which is what I did for a later project (and that time, >>I drilled a hole in the case and mounted a jack right on the >>keyboard case, very neat). Back then I got some insructions from a >>web page, but I cannot find that right now so you might have to >>Google around yourself -- I found the following that introduce some >>of the principles, >>http://www.howstuffworks.com/keyboard.htm >>and >>http://pcbheaven.com/wikipages/How_Key_Matrices_Works/ >>-- if you cannot figure out how to do this based on these >>principles, then you should not try this project. >> >>Anyway, once you you have a switch wired into the keyboard, it >>effectively *is* a keypress, so no need for any drivers or Devices >>or ports or anything else. >> >> >>But really, you would be better off using a PST SRBox. The SRBox >>has an expansion connector inside that allows you to easily add >>external devices that will then act just as if you pressed buttons >>on the SRBox. In that case, you will only need to connect two >>wires from the pedal to a mating connector -- the SRBox should come >>with a manual that explains the priciples involved (I have the >>manual right here), or you can purchase PST's SRBox Custom >>Expansion Kit... Well, I just looked this up now, and for a total >>of US$640, you can get the SRBox (US$450), the Custom Expansion Kit >>(US$150), *and* a foot pedal (US$40), so there you go! Yes, that >>is a bit of money, but you will find the SRBox handy for many >>reasons, including better timing performance (see PST's >>measurements at >>http://www.pstnet.com/eprimedevice.cfm >>). But if you want to save $150, you can do without the Custom >>Expansion Kit and just get the interfacing components you need from >>an electronics supplier. >> >>I think that should cover it. >> >>-- David McFarlane >> >> >>At 10/22/2013 06:28 PM Tuesday, francesco biondi wrote: >>Thanks David for the quick reply! >> >>It seems to me that the Casio option in quite convenient. >> >>At that time we just patched them directly into the keyboard so that >>foot presses looked like a key press, e.g., {F12}. >> >> >>Can you please give me a more detailed explanation? >> >>Since it has a Jack plug, which port should i use? do i need to get >>an adapter? >>(apologizes, but I am not familiar with this topic at all) >> >>In eprime, which device should i select from AddDevice window? >> >>Thanks, >> >>and still apologizes whether my questions sound stupid. >> >>On Tuesday, October 22, 2013 4:08:59 PM UTC-6, McFarlane, David wrote: >>Francesco, >> >>Years ago we did an experiment using foot pedals, we just used simple >>on-off foot switch pedals from Radio Shack, they do not seem to carry >>them anymore but you can get a glimpse of what I mean at >><http://www.eham.net/reviews/detail/4801>http://www.eham.net/reviews/detail/4801 >>, or see the Casio model at >><http://www.bestbuy.com/site/casio-sp3-keyboard-sustain-pedal/6733588.p>http://www.bestbuy.com/site/casio-sp3-keyboard-sustain-pedal/6733588.p >>. >> >>At that time we just patched them directly into the keyboard so that >>foot presses looked like a key press, e.g., {F12}. Alternatively, >>you could just patch these into a PST SRBox and go from there. >> >>----- >>David McFarlane >>E-Prime training >>online: >><http://psychology.msu.edu/Workshops_Courses/eprime.aspx>http://psychology.msu.edu/Workshops_Courses/eprime.aspx >> >>Twitter: @EPrimeMaster >>(<https://twitter.com/EPrimeMaster>https://twitter.com/EPrimeMaster >>) >> >>/---- >>Stock reminder: 1) I do not work for PST. 2) PST's trained staff >>take any and all questions at >><https://support.pstnet.com>https://support.pstnet.com >>, and they >>strive to respond to all requests in 24-48 hours, so make full use of >>it. 3) In addition, PST offers several instructional videos on their >>YouTube channel >>(<http://www.youtube.com/user/PSTNET>http://www.youtube.com/user/PSTNET >>). 4) If you do >>get an answer from PST staff, please extend the courtesy of posting >>their reply back here for the sake of others. >>\---- >> >> >>At 10/22/2013 04:38 PM Tuesday, francesco biondi wrote: >> >I am about to run an experiment in which I collect foot responses. >> >I have V3 Interact pedals, Windows 7 and no drivers to install the pedals. >> >I could not find any drivers to get the V3 pedals working on my pc. >> > >> >I think I will be purchasing new pedals then. >> > >> >Do you know about / Have any of you already used pedals to run >> >experiments in eprime? >> > >> >If so, can you suggest me a particular brand? >> > >> >Thanks, >> > >> >Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/527014bd.8570320a.4d63.28bbSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From francesco.biondi at ymail.com Tue Oct 29 20:55:56 2013 From: francesco.biondi at ymail.com (francesco.biondi at ymail.com) Date: Tue, 29 Oct 2013 14:55:56 -0600 Subject: pedals In-Reply-To: <527014bd.8570320a.4d63.28bbSMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks David for your precious support. Like you, my main concern about MaKey MaKey is the timing. For my experiment, I think I will ended up using the pedal from PST. It is not cheap, but (hopefully) I won't have problems interfacing it with E-prime through the SRBox. My lab has ordered one today. According to PST, it should take just a few days to be shipped. I will keep you updated on how it works. Thanks! On Tue, Oct 29, 2013 at 2:04 PM, David McFarlane wrote: > Just to clarify that last point, even patching a foot pedal directly into > the keyboard does not give you the best timing performance, because > keyboards generally provide only mediocre performance (but see > http://www.empirisoft.com/**directinkb.aspx). If you want millisecond-quality performance, you need to incorporate > something like an SRBox, or a high-speed I/O device (e.g., old-fashioned > parallel port). > > -- David McFarlane > > > > At 10/29/2013 03:57 PM Tuesday, David McFarlane wrote: > >> John, Very cool! For US$50 (plus US$5 s/h within USA, US$15 elsewhere) >> the MaKey MaKey gizmo acts like a basic external digital input board >> through USB, converting any switch closure into an ordinary key press, >> mouse button press, or mouse movement useable by any software that >> recognizes a USB keyboard or mouse. I want one of these, could come in >> handy! >> >> Francesco, As it turns out, one of our labs has recently purchased USB >> foot pedals that act like key presses, and they use that with E-Prime. See >> http://www.tomtop.com/usb-**foot-control-keyboard-mouse-** >> action-three-switch-pedal-hid-**c954.html. Cost is US$34 (plus s/h I suppose). >> >> Both the MaKey MaKey and USB foot pedals should work fine if you do not >> need absolute millisecond timing performance (note in particular that the >> MaKey MaKey page says that they use a moving window averager to lowpass >> switch noise in software, I imagine that might add a bit of delay; goodness >> knows how the USB foot pedals behave). Otherwise users should test input >> timing characteristics for themselves (use an oscilloscope, or a Black Box >> Toolkit). >> >> I would love to know what you end up with, please write back and let us >> know. >> >> ----- >> David McFarlane >> E-Prime training online: http://psychology.msu.edu/** >> Workshops_Courses/eprime.aspx >> Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMaster) >> >> /---- >> Stock reminder: 1) I do not work for PST. 2) PST's trained staff take >> any and all questions at https://support.pstnet.com , and they strive to >> respond to all requests in 24-48 hours, so make full use of it. 3) In >> addition, PST offers several instructional videos on their YouTube channel ( >> http://www.youtube.com/user/**PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy >> of posting their reply back here for the sake of others. >> \---- >> >> >> At 10/27/2013 03:16 AM Sunday, john at johnallen.it wrote: >> >> Francesco >>> >>> David's answers are all great, as slways, however if u dont want to >>> spend good money on a response box snd if you'e happy using USB rather than >>> serial port input, then you might like to consider this < >>> http://www.makeymakey.com/>ht**tp://www.makeymakey.com/ >>> On first appearance it may appear like a toy but I think you should be >>> able to get it to work for your purpose. >>> >>> John >>> On 25 Oct 2013 18:24, "David McFarlane" <mcfa** >>> rla9 at msu.edu > wrote: >>> Francesco, >>> >>> Been working on this repsonse for the past couple days... >>> >>> You will need to get a soldering iron and a multimeter, and have the >>> skills to use them, or find & team up with a local electronics technician, >>> as this is a bit of a do-it-yourself project. The first time I did this in >>> the 1990s, we had keyboards that still had individual mechanical switches >>> for each key, I just opened the keyboard case and soldered a pair of wires >>> (from two-conductor speaker cable) directly to the desired key switch. I >>> left about a foot (~0.5 m) hanging outside the keyboard and added an inline >>> 3.5mm monophone jack to the end. The foot pedal either came with a 3.5mm >>> monophone plug, or I cut off whatever it came with and replaced it with a >>> 3.5mm plug myself. >>> >>> Of course, you will not likely come across those keyboards anymore. But >>> no problem, it just means that you open up the keyboard again and patch >>> directly into the keyboard matrix controller, which is what I did for a >>> later project (and that time, I drilled a hole in the case and mounted a >>> jack right on the keyboard case, very neat). Back then I got some >>> insructions from a web page, but I cannot find that right now so you might >>> have to Google around yourself -- I found the following that introduce some >>> of the principles, >>> >http://www.**howstuffworks.com/keyboard.htmand >>> >>> >http://pcbheaven.com/**wikipages/How_Key_Matrices_**Works/-- if you cannot figure out how to do this based on these principles, then >>> you should not try this project. >>> >>> Anyway, once you you have a switch wired into the keyboard, it >>> effectively *is* a keypress, so no need for any drivers or Devices or ports >>> or anything else. >>> >>> >>> But really, you would be better off using a PST SRBox. The SRBox has an >>> expansion connector inside that allows you to easily add external devices >>> that will then act just as if you pressed buttons on the SRBox. In that >>> case, you will only need to connect two wires from the pedal to a mating >>> connector -- the SRBox should come with a manual that explains the >>> priciples involved (I have the manual right here), or you can purchase >>> PST's SRBox Custom Expansion Kit... Well, I just looked this up now, and >>> for a total of US$640, you can get the SRBox (US$450), the Custom Expansion >>> Kit (US$150), *and* a foot pedal (US$40), so there you go! Yes, that is a >>> bit of money, but you will find the SRBox handy for many reasons, including >>> better timing performance (see PST's measurements at < >>> http://www.pstnet.com/**eprimedevice.cfm >>> >http://www.**pstnet.com/eprimedevice.cfm). But if you want to save $150, you can do without the Custom Expansion >>> Kit and just get the interfacing components you need from an electronics >>> supplier. >>> >>> I think that should cover it. >>> >>> -- David McFarlane >>> >>> >>> At 10/22/2013 06:28 PM Tuesday, francesco biondi wrote: >>> Thanks David for the quick reply! >>> >>> It seems to me that the Casio option in quite convenient. >>> >>> At that time we just patched them directly into the keyboard so that >>> foot presses looked like a key press, e.g., {F12}. >>> >>> >>> Can you please give me a more detailed explanation? >>> >>> Since it has a Jack plug, which port should i use? do i need to get an >>> adapter? >>> (apologizes, but I am not familiar with this topic at all) >>> >>> In eprime, which device should i select from AddDevice window? >>> >>> Thanks, >>> >>> and still apologizes whether my questions sound stupid. >>> >>> On Tuesday, October 22, 2013 4:08:59 PM UTC-6, McFarlane, David wrote: >>> Francesco, >>> >>> Years ago we did an experiment using foot pedals, we just used simple >>> on-off foot switch pedals from Radio Shack, they do not seem to carry >>> them anymore but you can get a glimpse of what I mean at >>> < >>> >http://www.eham.**net/reviews/detail/4801 >>> >http:/**/www.eham.net/reviews/detail/**4801, or see the Casio model at >>> <>> pedal/6733588.p >>> >http://www.**bestbuy.com/site/casio-sp3-**keyboard-sustain-pedal/** >>> 6733588.p >>> >http://www.bestbuy.**com/site/casio-sp3-keyboard-** >>> sustain-pedal/6733588.p. >>> >>> At that time we just patched them directly into the keyboard so that >>> foot presses looked like a key press, e.g., {F12}. Alternatively, >>> you could just patch these into a PST SRBox and go from there. >>> >>> ----- >>> David McFarlane >>> E-Prime training >>> online: < >>> >**http://psychology.msu.edu/**Workshops_Courses/eprime.aspx >>> >**http://psychology.msu.edu/**Workshops_Courses/eprime.aspx >>> Twitter: @EPrimeMaster (< >>> >https://twitter.**com/EPrimeMaster > >>> https://**twitter.com/EPrimeMaster ) >>> >>> /---- >>> Stock reminder: 1) I do not work for PST. 2) PST's trained staff >>> take any and all questions at <h** >>> ttps://support.pstnet.com >http** >>> s://support.pstnet.com , and they >>> strive to respond to all requests in 24-48 hours, so make full use of >>> it. 3) In addition, PST offers several instructional videos on their >>> YouTube channel (< >>> >http://www.**youtube.com/user/PSTNET >>> >http:/**/www.youtube.com/user/PSTNET). 4) If you do >>> get an answer from PST staff, please extend the courtesy of posting >>> their reply back here for the sake of others. >>> \---- >>> >>> >>> At 10/22/2013 04:38 PM Tuesday, francesco biondi wrote: >>> >I am about to run an experiment in which I collect foot responses. >>> >I have V3 Interact pedals, Windows 7 and no drivers to install the >>> pedals. >>> >I could not find any drivers to get the V3 pedals working on my pc. >>> > >>> >I think I will be purchasing new pedals then. >>> > >>> >Do you know about / Have any of you already used pedals to run >>> >experiments in eprime? >>> > >>> >If so, can you suggest me a particular brand? >>> > >>> >Thanks, >>> > >>> >Francesco >>> >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "E-Prime" group. > To unsubscribe from this topic, visit https://groups.google.com/d/** > topic/e-prime/f7w5T680PZU/**unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > e-prime+unsubscribe@**googlegroups.com > . > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/** > msgid/e-prime/527014bd.**8570320a.4d63.28bbSMTPIN_** > ADDED_MISSING%40gmr-mx.google.**com > . > > For more options, visit https://groups.google.com/**groups/opt_out > . > -- *- - - - - - - - - - - - - - - - - - - - - - - - - - * *Francesco Biondi* *PhD student in Cognitive Science* http://colab.psy.unipd.it/people-detail.php?ID=3650 -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAFNoCas8%3DzEZpU%3D15nqNA9OdokWW2u9X3w5zKySiuFyx%3DC%3D8yg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gusunny1 at gmail.com Thu Oct 31 03:03:47 2013 From: gusunny1 at gmail.com (=?GB2312?B?vKrP6cjn0uI=?=) Date: Thu, 31 Oct 2013 11:03:47 +0800 Subject: 2 slides equal to one time duration In-Reply-To: <526573bf.0286320a.39d7.2574SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Dear David McFarlane, I have tried your suggestion, it really works and it's quite simple compared with what I performed before as : BSlide.Duration=2500-ASlide.RT, and one more question, why you use 2500 - (Clock.Read - ASlide.OnsetTime). Thanks a lot. 2013/10/22 David McFarlane > Just for the record, I need to correct a bit of my advice here. Earlier, > I said that using > > SetNextTargetOnsetTime ASlide.OnsetTime > > between ASlide and BSlide would make the total duration from the start of > ASlide to the end of BSlide equal the specified Duration of BSlide (in this > case, 2500 ms). But I neglected to say that, for this to work, you must > also set BSlide to use Cumulative timing mode. This works because, in > Cumulative timing mode, the TargetOnset time for whatever follows BSlide > will be based on the TargetOnsetTime of BSlide (instead of actual > OnsetTime), and BSlide.TargetOnsetTime will come from the > NextTargetOnsetTime implied in the code above. I generally like this > approach because it eliminates any errors due to delays in starting BSlide. > > Furthermore, the line of code above makes the total duration of ASlide + > BSlide act like Event timing mode (think it through). If you want that to > instead act like Cumulative timing mode, then that line should read > > SetNextTargetOnsetTime ASlide.TargetOnsetTime > > i.e., use .TargetOnsetTime instead of just .OnsetTime. > > > If you stubbornly insist on keeping BSlide set to Event timing mode, then > the TargetOnset time for whatever follows BSlide will be based on the > actual OnsetTime of BSlide, and you have no recourse but to manipulate the > Duration of BSlide. In that case, your inline code between ASlide and > BSlide should look more like > > BSlide.Duration = 2500 - (Clock.Read - ASlide.OnsetTime) > > or if you prefer, > > c.SetAttrib "BSlideDuration", 2500 - (Clock.Read - ASlide.OnsetTime) > > and then use "[BSlideDuration]" as an attribute reference for the Duration > of BSlide (see comments on assigning object properties directly in code vs. > via attribute reference at https://groups.google.com/d/** > topic/e-prime/dWpfjk-BeLsand > https://groups.google.com/d/**topic/e-prime/g1Fv2CGaSeg). > > Manipulating Duration (instead of NextTargetOnsetTime) also means that the > actual duration of BSlide (and ASlide + BSlide) will vary depending on any > delays in starting BSlide, but maybe that is what you want. > > > ----- > David McFarlane > E-Prime training online: http://psychology.msu.edu/** > Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMaster) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > any and all questions at https://support.pstnet.com , and they strive to > respond to all requests in 24-48 hours, so make full use of it. 3) In > addition, PST offers several instructional videos on their YouTube channel ( > http://www.youtube.com/user/**PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy > of posting their reply back here for the sake of others. > \---- > > > At 10/14/2013 02:22 PM Monday, David McFarlane wrote: > >> Not sure I follow your description of the problem. But let's suppose you >> have two Slides in your Procedure, let's call them ASlide and BSlide. >> ASlide takes a response, and the Procedure moves on to present BSlide >> whenever ASlide gets a response, or 2000 ms, whichever comes first. And >> you want the total duration for ASlide & BSlide to be 2500 ms, i.e., BSlide >> should last for 2500 - (ASlide_actual_duration). >> >> There are many ways to skin this cat. My favorite method goes as >> follows. Set the Duration of BSlide to 2500, and in an Inline between >> ASlide and BSlide, do the following: >> >> SetNextTargetOnsetTime ASlide.OnsetTime >> >> That's all! Understanding how this works takes some deeper understanding >> of E-Prime timing models & mechanisms, more than I can go into here, but >> look at the SetNextTargetOnsetTime topic in the E-Basic Help facility. But >> in short, with that bit of code, BSlide will use the actual OnsetTime from >> ASlide in order to compute its own ending time, and so will end at 2500 ms >> from the OnsetTime of ASlide, whithout you having to do anything more. >> Presto! >> >> ----- >> David McFarlane >> E-Prime training online: http://psychology.msu.edu/** >> Workshops_Courses/eprime.aspx >> Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMaster) >> >> /---- >> Stock reminder: 1) I do not work for PST. 2) PST's trained staff take >> any and all questions at https://support.pstnet.com , and they strive to >> respond to all requests in 24-48 hours, so make full use of it. 3) In >> addition, PST offers several instructional videos on their YouTube channel ( >> http://www.youtube.com/user/**PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy >> of posting their reply back here for the sake of others. >> \---- >> >> >> At 10/8/2013 10:00 PM Tuesday, Kim Goodyear wrote: >> >>> I am trying to have two sequential slides that are equal to one time >>> duration of 2500 ms. The first slide and the second slide are completely >>> identical, except in the second slide the text color changes to red so that >>> the participant can see their selection, I want the first slide to >>> terminate and then have the second slide come up so that they both equal >>> the same 2500 ms. Since the response time will vary I don't know how to >>> make both slides equal to the same 2500. I don't know why, but if the >>> buttons aren't selected right away, the total duration is around 5000, or >>> if there is a delay in the response, the total duration is around 4200. I >>> am not sure how to fix this issue, any advice would be great. Here is my >>> inline script: >>> >>> Dim ResetSlide as integer >>> Dim x as integer >>> >>> ResetSlide = StimDisplay.Duration + StimDisplay2.Duration >>> ResetSlide = x >>> x = 2500 >>> >> > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe@**googlegroups.com > . > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/** > msgid/e-prime/526573bf.**0286320a.39d7.2574SMTPIN_** > ADDED_MISSING%40gmr-mx.google.**com > . > > For more options, visit https://groups.google.com/**groups/opt_out > . > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAJO0WNaUW4uf8keCXTtJd375UCg9SpSpntHKDXuEPiWwsUUoZQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nebizzy at gmail.com Thu Oct 31 12:46:08 2013 From: nebizzy at gmail.com (Ieva Zeromskaite) Date: Thu, 31 Oct 2013 05:46:08 -0700 Subject: Unable to play sound files Message-ID: Hello, I am having problems with the loading of sound files. After showing the instructions, neither the Slide Object (with a soundfile inside) nor the SoundOut Object plays when I run the experiment. I checked that the soundfile names are correct, in the same file as the eps file, procedure titles are correct too. There's something wrong with the SoundBuffer, however, Eprime script doesn't say what exactly. Below is the script's copy : **** SoundOut1.ResetLoggingProperties Set SoundOut1SoundBuffer = SoundOut1.Buffers(1) SoundOut1SoundBuffer.Filename = c.GetAttrib(ebUCase_S & ebLCase_o & ebLCase_u & ebLCase_n & ebLCase_d & ebUCase_F & ebLCase_i & ebLCase_l & ebLCase_e) SoundOut1SoundBuffer.Load '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Label - Procedure_Timeline_Start BEGIN '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Procedure_Timeline_Start: If Err.Number = ebInputAccepted Then Err.Clear Resume Procedure_Timeline_StartResume ElseIf Err.Number <> 0 Then *** I would be grateful if anybody could help me with that. Thanks, Ieva -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/9ec58a36-4200-4985-8e1c-a9998203c34c%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu Oct 31 20:01:41 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 31 Oct 2013 16:01:41 -0400 Subject: 2 slides equal to one time duration In-Reply-To: Message-ID: Glad you found that useful. Hope I understand your question... Let's see, we have BSlide.Duration = 2500 - ASlide.RT and since RT = (ASlide.RTTime - ASlide.OnsetTime), that is the same as BSlide.Duration = 2500 - (ASlide.RTTime - ASlide.OnsetTime) which is not all that different from BSlide.Duration = 2500 - (Clock.Read - ASlide.OnsetTime) So the difference is slight. But here's the deal. The goal here is to make BSlide end precisely 2500 ms after the onset of ASlide. Some small time may pass between ASlide.RTTime and the time when BSlide starts, and if that happens then if you base BSlide.Duration on ASlide.RTTime then the Duration will be a little too long and that will make the full time of ASlide + BSlide longer than intended. Using the Clock.Read in code immediately before BSlide should give you a closer estimate of the Duration needed for BSlide, but even here, any delay between the computation of BSlide.Duration and when BSlide actually starts running will result in Duration being just a little too long. May not be enough to matter, but why not be more exact if we can? So I advise *against* doing things this way just because of the complications of all these little delays. Instead, my main advice of using SetNextTargetOnsetTime along with Cumulative timing mode avoids these complications, and used properly, can result in precise timing. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/30/2013 11:03 PM Wednesday, =?GB2312?B?vKrP6cjn0uI=?= wrote: >Dear David McFarlane, > I have tried your suggestion, it really works > and it's quite simple compared with what I > performed before as : > BSlide.Duration=2500-ASlide.RT, and one more > question, why you use 2500 - (Clock.Read - ASlide.OnsetTime). >Thanks a lot. > > >2013/10/22 David McFarlane <mcfarla9 at msu.edu> >Just for the record, I need to correct a bit of >my advice here. Earlier, I said that using > > SetNextTargetOnsetTime ASlide.OnsetTime > >between ASlide and BSlide would make the total >duration from the start of ASlide to the end of >BSlide equal the specified Duration of BSlide >(in this case, 2500 ms). But I neglected to say >that, for this to work, you must also set BSlide >to use Cumulative timing mode. This works >because, in Cumulative timing mode, the >TargetOnset time for whatever follows BSlide >will be based on the TargetOnsetTime of BSlide >(instead of actual OnsetTime), and >BSlide.TargetOnsetTime will come from the >NextTargetOnsetTime implied in the code >above. I generally like this approach because >it eliminates any errors due to delays in starting BSlide. > >Furthermore, the line of code above makes the >total duration of ASlide + BSlide act like Event >timing mode (think it through). If you want >that to instead act like Cumulative timing mode, then that line should read > > SetNextTargetOnsetTime ASlide.TargetOnsetTime > >i.e., use .TargetOnsetTime instead of just .OnsetTime. > > >If you stubbornly insist on keeping BSlide set >to Event timing mode, then the TargetOnset time >for whatever follows BSlide will be based on the >actual OnsetTime of BSlide, and you have no >recourse but to manipulate the Duration of >BSlide. In that case, your inline code between >ASlide and BSlide should look more like > > BSlide.Duration = 2500 - (Clock.Read - ASlide.OnsetTime) > >or if you prefer, > > c.SetAttrib "BSlideDuration", 2500 - (Clock.Read - ASlide.OnsetTime) > >and then use "[BSlideDuration]" as an attribute >reference for the Duration of BSlide (see >comments on assigning object properties directly >in code vs. via attribute reference at >https://groups.google.com/d/topic/e-prime/dWpfjk-BeLs >and >https://groups.google.com/d/topic/e-prime/g1Fv2CGaSeg >). > >Manipulating Duration (instead of >NextTargetOnsetTime) also means that the actual >duration of BSlide (and ASlide + BSlide) will >vary depending on any delays in starting BSlide, >but maybe that is what you want. > > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) >PST's trained staff take any and all questions >at >https://support.pstnet.com >, and they strive to respond to all requests in >24-48 hours, so make full use of it. 3) In >addition, PST offers several instructional >videos on their YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do get an answer from PST staff, >please extend the courtesy of posting their >reply back here for the sake of others. >\---- > > >At 10/14/2013 02:22 PM Monday, David McFarlane wrote: >Not sure I follow your description of the >problem. But let's suppose you have two Slides >in your Procedure, let's call them ASlide and >BSlide. ASlide takes a response, and the >Procedure moves on to present BSlide whenever >ASlide gets a response, or 2000 ms, whichever >comes first. And you want the total duration >for ASlide & BSlide to be 2500 ms, i.e., BSlide >should last for 2500 - (ASlide_actual_duration). > >There are many ways to skin this cat. My >favorite method goes as follows. Set the >Duration of BSlide to 2500, and in an Inline >between ASlide and BSlide, do the following: > > SetNextTargetOnsetTime ASlide.OnsetTime > >That's all! Understanding how this works takes >some deeper understanding of E-Prime timing >models & mechanisms, more than I can go into >here, but look at the SetNextTargetOnsetTime >topic in the E-Basic Help facility. But in >short, with that bit of code, BSlide will use >the actual OnsetTime from ASlide in order to >compute its own ending time, and so will end at >2500 ms from the OnsetTime of ASlide, whithout >you having to do anything more. Presto! > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) >PST's trained staff take any and all questions >at >https://support.pstnet.com >, and they strive to respond to all requests in >24-48 hours, so make full use of it. 3) In >addition, PST offers several instructional >videos on their YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do get an answer from PST staff, >please extend the courtesy of posting their >reply back here for the sake of others. >\---- > > >At 10/8/2013 10:00 PM Tuesday, Kim Goodyear wrote: >I am trying to have two sequential slides that >are equal to one time duration of 2500 ms. The >first slide and the second slide are completely >identical, except in the second slide the text >color changes to red so that the participant can >see their selection, I want the first slide to >terminate and then have the second slide come up >so that they both equal the same 2500 ms. Since >the response time will vary I don't know how to >make both slides equal to the same 2500. I >don't know why, but if the buttons aren't >selected right away, the total duration is >around 5000, or if there is a delay in the >response, the total duration is around 4200. I >am not sure how to fix this issue, any advice >would be great. Here is my inline script: > >Dim ResetSlide as integer >Dim x as integer > >ResetSlide = StimDisplay.Duration + StimDisplay2.Duration >ResetSlide = x >x = 2500 -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5272b74d.2cdd320a.7803.0516SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From emidvf at gmail.com Tue Oct 1 11:36:09 2013 From: emidvf at gmail.com (=?UTF-8?Q?Emiliano_D=C3=ADez?=) Date: Tue, 1 Oct 2013 04:36:09 -0700 Subject: assign a preloaded soundbuffer to the soundbuffer of a SoundOut object? Message-ID: Hi all, I need to assign a soundbuffer that has been preloaded into memory to the soundbuffer of a SoundOut object in a procedure. Can this be done??? The point is that my procedure needs to play a video playing and at the same time to present several sounds (sentences in this case) and record reaction times to these sounds. If I use mybuffer.load while the video is playing a small pause of the video can be seen. So my solution was to make an array of soundbuffers and play them with inline code. But in this way I lost the possibility to record the key responses in the way I need (need to know if the keypress, that starts with the onset of each sound, has been ocurred before or after the sound ends). I have found a way to do this, but need to have a soundobject and a wait object. So the question: is it possible to assign a preloaded soundbuffer to the sound buffer of a soundobject? Thanks all -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/24bc73ee-9f5e-4a87-af09-cdb2369df233%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Oct 1 13:32:16 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 1 Oct 2013 09:32:16 -0400 Subject: assign a preloaded soundbuffer to the soundbuffer of a SoundOut object? In-Reply-To: <24bc73ee-9f5e-4a87-af09-cdb2369df233@googlegroups.com> Message-ID: I do not have an answer to your question as posed, but I would like to pose the following. What version of E-Prime do you use? If you use EP2.0.10.x or later, try setting GeneratePreRun on your Procedure to TopOfProcedure, then use a separate SoundOut object for each of your sounds during the movie. With TopOfProcedure, all the SoundBuffer.Load operations will take place at the beginning of the Procedure, not during your movie playback, and perhaps that would solve your problem. It would also eliminate the need for messy inline code. And if you do not use EP2.0.10.x, well, maybe this is your reason to upgrade. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/1/2013 07:36 AM Tuesday, Emiliano D??ez wrote: >I need to assign a soundbuffer that has been >preloaded into memory to the soundbuffer of a >SoundOut object in a procedure. Can this be done??? > >The point is that my procedure needs to play a >video playing and at the same time to present >several sounds (sentences in this case) and >record reaction times to these sounds. If I use >mybuffer.load while the video is playing a small >pause of the video can be seen. So my solution >was to make an array of soundbuffers and play >them with inline code. But in this way I lost >the possibility to record the key responses in >the way I need (need to know if the keypress, >that starts with the onset of each sound, has >been ocurred before or after the sound ends). I >have found a way to do this, but need to have >a soundobject and a wait object. So the >question: is it possible to assign a preloaded >soundbuffer to the sound buffer of a soundobject? > >Thanks all -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/524acf07.3306320a.420c.1699SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From deinskilli at gmail.com Thu Oct 3 16:01:34 2013 From: deinskilli at gmail.com (Deiniol Skillicorn) Date: Thu, 3 Oct 2013 09:01:34 -0700 Subject: Specify key press before proceding to the next trial Message-ID: Hello fellow eprimers, I have a task where participants are presented with cues and they must rate them on a 1-9 scale. They then get feedback. I want participants to enter a digit and then move onto the next slide by pressing another button. Also, I only want them to be able to move on if they have entered a digit from 1 to 9. I am using the echoclient (on the Stage1word slide) so that participants can see the digit they are entering. I have read around and the mouse seems to be a good method to move onto the next slide. I have set up a text box at the bottom of the stage1word slide to act as a button and called the text box "result" Participants are able to enter a digit and proceed to the next trials unsing the mouse. However, they can also proceed to the next trial by NOT entering a reponse or by entering a response outside the specified range (i.e. 1-9). Here is the inline code I am using. I think I need to specifiy an if..then rule for numebrs thta have been logged but I have no idea how. Any suggestions would be appreciated Deiniol 'Designate "theState" as the Default Slide State, which is the 'current, ActiveState on the Slide object "Stimulus" Dim theState as SlideState Set theState = Stage1Word.States("Default") Dim strHit As String Dim theMouseResponseData As MouseResponseData Dim nResponseCount As Long Do While Stage1Word.InputMasks.IsPending() 'If the counts do not match, there are responses to process. If nResponseCount <> Stage1Word.InputMasks(2).Responses.Count Then nResponseCount = nResponseCount + 1 'Get the mouse response Set theMouseResponseData = CMouseResponseData(Stage1Word.InputMasks(2).Responses(nResponseCount)) 'Determine string name of SlideImage or SlideText object at 'mouse click coordinates. Assign that value to strHit strHit = theState.HitTest(theMouseResponseData.CursorX, theMouseResponseData.CursorY) 'Compare string name where mouse click occurred to CorrectAnswer 'attribute on each trial, and score response 'NOTE: This comparison is case sensitive If strHit = "Result" Then 'Goto label2 Stage1Word.InputMasks(1).Timeout Stage1Word.InputMasks(2).Timeout End If End If 'Give some time back (required) Sleep 10 DoEvents Loop -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/04212348-6dac-4e50-b890-6f60a0301a53%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu Oct 3 17:40:54 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 3 Oct 2013 13:40:54 -0400 Subject: Specify key press before proceding to the next trial In-Reply-To: <04212348-6dac-4e50-b890-6f60a0301a53@googlegroups.com> Message-ID: Just off the top of my head... First, to limit keyboard responses to 1-9, just set Allowable to "123456789", or to "{NUMBER}", for your keyboard input mask -- see the tutorial in the Getting Started Guide that came with E-Prime (and while you are at it, work through *all* the tutorials in the User's Guide), and see the "{key} nomenclature" topic in the E-Basic Help facility. Then for your loop exit, in place of 'If strHit = "Result" Then' you could use something like If ((Stage1Word.InputMasks(1).RESP <> "") and (strHit = "Result")) Then this assumes that InputMask(1) is your keyboard input mask, and InputMask(2) is your mouse input mask, which from your code seems to apply here. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/3/2013 12:01 PM Thursday, Deiniol Skillicorn wrote: >Hello fellow eprimers, >I have a task where participants are presented with cues and they >must rate them on a 1-9 scale. They then get feedback. > > >I want participants to enter a digit and then move onto the next >slide by pressing another button. Also, I only want them to be able >to move on if they have entered a digit from 1 to 9. >I am using the echoclient (on the Stage1word slide) so that >participants can see the digit they are entering. I have read around >and the mouse seems to be a good method to move onto the next slide. >I have set up a text box at the bottom of the stage1word slide to >act as a button and called the text box "result" >Participants are able to enter a digit and proceed to the next >trials unsing the mouse. However, they can also proceed to the next >trial by NOT entering a reponse or by entering a response outside >the specified range (i.e. 1-9). > Here is the inline code I am using. I think I need to specifiy an > if..then rule for numebrs thta have been logged but I have no idea how. >Any suggestions would be appreciated > >Deiniol > > 'Designate "theState" as the Default Slide State, which is the > 'current, ActiveState on the Slide object "Stimulus" > Dim theState as SlideState > Set theState = Stage1Word.States("Default") > Dim strHit As String > Dim theMouseResponseData As MouseResponseData > Dim nResponseCount As Long > >Do While Stage1Word.InputMasks.IsPending() > 'If the counts do not match, there are responses to process. > If nResponseCount <> Stage1Word.InputMasks(2).Responses.Count Then > nResponseCount = nResponseCount + 1 > 'Get the mouse response > Set theMouseResponseData = > CMouseResponseData(Stage1Word.InputMasks(2).Responses(nResponseCount)) > 'Determine string name of SlideImage or SlideText object at > 'mouse click coordinates. Assign that value to strHit > strHit = theState.HitTest(theMouseResponseData.CursorX, > theMouseResponseData.CursorY) > 'Compare string name where mouse click occurred to CorrectAnswer > 'attribute on each trial, and score response > 'NOTE: This comparison is case sensitive > If strHit = "Result" Then > 'Goto label2 > Stage1Word.InputMasks(1).Timeout > Stage1Word.InputMasks(2).Timeout > End If > End If > > > > 'Give some time back (required) >Sleep 10 >DoEvents >Loop -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/524dac7a.3306320a.0eb7.09d5SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From deinskilli at gmail.com Fri Oct 4 10:26:53 2013 From: deinskilli at gmail.com (Deiniol Skillicorn) Date: Fri, 4 Oct 2013 03:26:53 -0700 Subject: Specify key press before proceding to the next trial In-Reply-To: <04212348-6dac-4e50-b890-6f60a0301a53@googlegroups.com> Message-ID: David McFarlane, Thank you for a quck response. I have read many of your eprime google group reponses. I have specified key presses using the follwign code If ((Stage1Word.InputMasks(1).RESP < "9")) or ((Stage1Word.InputMasks(1).RESP = "9")) and (strHit = "Result") Then 'Goto label2 Stage1Word.InputMasks(1).Timeout Stage1Word.InputMasks(2).Timeout End If This works! However, it will still allow multiple digit responses (e.g. 55 or 76 or 879). I have tried ((Stage1Word.InputMasks(1).RESP < "10")) but this only allows responses of 1. Presumably it doesn't recognise the second digit 0. Any hints would be appreciated Regards Deiniol Deiniol -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/a16dcf51-205c-4c0f-903d-8684a9136a12%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Fri Oct 4 14:08:59 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 4 Oct 2013 10:08:59 -0400 Subject: Specify key press before proceding to the next trial In-Reply-To: Message-ID: Deiniol, How about If ( (CInt(Stage1Word.InputMasks(1).RESP) <= 9) and _ (strHit = "Result") ) Then ... ? Explanation: Convert RESP to an integer first so you do a numeric comparison instead of a string comparison (and use the number 9 instead of the string "9"). And while you are at it, use a single "<=" comparison operator instead of separate "<" and "=" operators. Alternatively, you might limit the *length* of the response to one character (which means, if Allowable allows only numberic characters, limiting to one digit). Thus, If ( (Len(Stage1Word.InputMasks(1).RESP) = 1) and _ (strHit = "Result") ) Then ... So there's more than one way to skin this cat. Hope this helps, I may have missed some complication, but I'm sure you will come up with something. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/4/2013 06:26 AM Friday, Deiniol Skillicorn wrote: >David McFarlane, > >Thank you for a quck response. I have read many of your eprime >google group reponses. > >I have specified key presses using the follwign code > >If ((Stage1Word.InputMasks(1).RESP < "9")) or >((Stage1Word.InputMasks(1).RESP = "9")) and (strHit = "Result") Then >'Goto label2 > Stage1Word.InputMasks(1).Timeout > Stage1Word.InputMasks(2).Timeout > End If > >This works! However, it will still allow multiple digit responses >(e.g. 55 or 76 or 879). I have >tried ((Stage1Word.InputMasks(1).RESP < "10")) but this only >allows responses of 1. Presumably it doesn't recognise the second digit 0. > >Any hints would be appreciated > >Regards > >Deiniol -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/524ecbfe.48e1320a.1374.42a4SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From emidvf at gmail.com Fri Oct 4 16:04:58 2013 From: emidvf at gmail.com (=?UTF-8?Q?Emiliano_D=C3=ADez?=) Date: Fri, 4 Oct 2013 09:04:58 -0700 Subject: assign a preloaded soundbuffer to the soundbuffer of a SoundOut object? In-Reply-To: <524acf07.3306320a.420c.1699SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks David I am using EP2.0.10.242. Your solution sure will work for the "video/sound part" of the problem. But also I have to record reaction time to the sounds and to know if that reaction times occur before or after the end each sound. That is the point where I needed the sound object. But think I have found a solution using a Do While-Loop and a wait object of 0 duration just after the inline that plays the cached sound. Also, I prefer not to have several objects for the same funcionality if not totally necessary (in this case I prefer messy inline code). Thanks again for your suggestion El martes, 1 de octubre de 2013 15:32:16 UTC+2, McFarlane, David escribi?: > > I do not have an answer to your question as > posed, but I would like to pose the > following. What version of E-Prime do you > use? If you use EP2.0.10.x or later, try setting > GeneratePreRun on your Procedure to > TopOfProcedure, then use a separate SoundOut > object for each of your sounds during the > movie. With TopOfProcedure, all the > SoundBuffer.Load operations will take place at > the beginning of the Procedure, not during your > movie playback, and perhaps that would solve your > problem. It would also eliminate the need for messy inline code. > > And if you do not use EP2.0.10.x, well, maybe this is your reason to > upgrade. > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) > > /---- > Stock reminder: 1) I do not work for PST. 2) > PST's trained staff take any and all questions at > http://support.pstnet.com/e%2Dprime/support/login.asp > , and they strive to respond to all requests in > 24-48 hours, so make full use of it. 3) In > addition, PST offers several instructional videos > on their YouTube channel > (http://www.youtube.com/user/PSTNET ). 4) If you > do get an answer from PST staff, please extend > the courtesy of posting their reply back here for the sake of others. > \---- > > > At 10/1/2013 07:36 AM Tuesday, Emiliano D??ez wrote: > >I need to assign a soundbuffer that has been > >preloaded into memory to the soundbuffer of a > >SoundOut object in a procedure. Can this be done??? > > > >The point is that my procedure needs to play a > >video playing and at the same time to present > >several sounds (sentences in this case) and > >record reaction times to these sounds. If I use > >mybuffer.load while the video is playing a small > >pause of the video can be seen. So my solution > >was to make an array of soundbuffers and play > >them with inline code. But in this way I lost > >the possibility to record the key responses in > >the way I need (need to know if the keypress, > >that starts with the onset of each sound, has > >been ocurred before or after the sound ends). I > >have found a way to do this, but need to have > >a soundobject and a wait object. So the > >question: is it possible to assign a preloaded > >soundbuffer to the sound buffer of a soundobject? > > > >Thanks all > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/2e651971-5013-41e4-823b-84ec8a35dc80%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tudor3 at gmail.com Mon Oct 7 20:27:26 2013 From: tudor3 at gmail.com (tudor) Date: Mon, 7 Oct 2013 13:27:26 -0700 Subject: Removing within-subject & within-session outliers in EdataAid Message-ID: Hi everyone, I have a merged .emrg2 (EdataAid) file containing reaction time data from several subjects, across several sessions done by each. I would like to eliminate RT outliers within each subject individually, and if possible also within session rather than across all sessions of a single subject. By 'outlier' I would mean RTs that are more than 2.5 standard deviations away from the mean, although if that's hard to do, it would also be fine to just eliminate all RTs greater than a certain fixed value (e.g. 3,000 ms). I have not found a way to do this with the Analyze window, and because I have many such merged files, I would prefer to not have to do this 'the hard way', i.e. by exporting all the data to Excel and doing the outlier-removal and the averaging (which is otherwise done easily in Analyze) over there. Can anyone help? Many thanks in advance! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/6b5309f5-9325-4f07-b77f-082815f39ea7%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon Oct 7 23:10:38 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 7 Oct 2013 19:10:38 -0400 Subject: Removing within-subject & within-session outliers in EdataAid In-Reply-To: <6b5309f5-9325-4f07-b77f-082815f39ea7@googlegroups.com> Message-ID: To eliminate all RTs greater than a certain fixed value, just use a filter in E-DataAid, or in the Analyze tool of E-DataAid -- I am pretty sure that this is covered in the tutorial Guides that came with E-Prime (and I also cover this in my online course). If you want custom filters for individual subjects or for individual sessions of each subject, or if you want the filter criterion to be derived from some computation based on the data, then I think you will have to use another tool, as far as I know those sorts of analyses go beyond what E-DataAid can do and what it is meant to do. As you already know, E-DataAid will easily reveal mean RTs for each subject, or for each session of each subject, but from there you have to explort data and do the rest in Excel, SPSS, Systat, or what have you. I do like E-DataAid and its Analyze feature a lot for initial data preparation (e.g., filtering rows and selecting columns to export) and for initial exploration of descriptive statistics, and I devote one lesson in my online course to covering these uses, but after that I would export the data for further analysis (e.g., hypothesis testing, ANOVA, etc.). Just my $.02, curious to hear from others. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/7/2013 04:27 PM Monday, tudor wrote: >I have a merged .emrg2 (EdataAid) file containing reaction time data >from several subjects, across several sessions done by each. I would >like to eliminate RT outliers within each subject individually, and >if possible also within session rather than across all sessions of a >single subject. > >By 'outlier' I would mean RTs that are more than 2.5 standard >deviations away from the mean, although if that's hard to do, it >would also be fine to just eliminate all RTs greater than a certain >fixed value (e.g. 3,000 ms). > >I have not found a way to do this with the Analyze window, and >because I have many such merged files, I would prefer to not have to >do this 'the hard way', i.e. by exporting all the data to Excel and >doing the outlier-removal and the averaging (which is otherwise done >easily in Analyze) over there. > >Can anyone help? Many thanks in advance! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52533f75.2e43320a.559f.06deSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From btomoschuk at gmail.com Tue Oct 8 13:32:05 2013 From: btomoschuk at gmail.com (Brendan T) Date: Tue, 8 Oct 2013 06:32:05 -0700 Subject: Centering by Word in Canvas Message-ID: Hello all, I have a small problem in my experiment design I was hoping you guys could shed some light on. My project uses the canvas function to display both words and circles around the word (big enough to be in the periphery) but the problem is that canvas doesn't allow you to align words to the center. It produces words on the canvas as such: cnvs.Text Display.XRes/2, Displaly.YRes/2, c. getattrib("WordList1") 'This pulls a word from wordList1 and puts it in the center of the screen such that the first letter is centered at XRes/2, YRes/2 This centers the image based on the number of pixels on the screen, which is fine (and necessary) for my circle but aligns the words such that the first letter of the word is at the center. Words can be easily aligned in the display feature, but canvas is necessary for my other stimuli. Does anybody know how this might be fixed such that the word is centered in canvas, regardless of word length? Is it possible to overlay a regular display with canvas? Or perhaps a way to factor word length in and subtract half of it from XRes/2? I appreciate any feedback and I hope the issue is clear. Thank you!! Brendan -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/15c47ed7-1d3f-4f5b-9fab-4ea08e6eebe7%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Oct 8 14:32:35 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 8 Oct 2013 10:32:35 -0400 Subject: Centering by Word in Canvas In-Reply-To: <15c47ed7-1d3f-4f5b-9fab-4ea08e6eebe7@googlegroups.com> Message-ID: Brendan, Look at the Canvas.CalculateTextSize topic in the E-Basic Help facility. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/8/2013 09:32 AM Tuesday, Brendan T wrote: >I have a small problem in my experiment design I was hoping you guys >could shed some light on. > >My project uses the canvas function to display both words and >circles around the word (big enough to be in the periphery) but the >problem is that canvas doesn't allow you to align words to the >center. It produces words on the canvas as such: > >cnvs.Text Display.XRes/2, Displaly.YRes/2, c. getattrib("WordList1") >'This pulls a word from wordList1 and puts it in the center of the >screen such that the first letter is centered at XRes/2, YRes/2 > > >This centers the image based on the number of pixels on the screen, >which is fine (and necessary) for my circle but aligns the words >such that the first letter of the word is at the center. Words can >be easily aligned in the display feature, but canvas is necessary >for my other stimuli. > >Does anybody know how this might be fixed such that the word is >centered in canvas, regardless of word length? Is it possible to >overlay a regular display with canvas? Or perhaps a way to factor >word length in and subtract half of it from XRes/2? > >I appreciate any feedback and I hope the issue is clear. > >Thank you!! >Brendan -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52541789.6801320a.10b1.184cSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From olayak at gmail.com Tue Oct 8 19:11:10 2013 From: olayak at gmail.com (olayak) Date: Tue, 8 Oct 2013 12:11:10 -0700 Subject: no go for incorrect response? Message-ID: Hi, I'm new to eprime and I'm having a little difficulty. I am trying to set it a training procedure so that the subject cannot move forward to the next stimulus unless they press the correct response. So, for example, if the correct response is "S" and they press "L", the same stimulus will still be up until they finally press "S". I'm clearly doing something wrong because in my experiment when I press the incorrect key it moves on to the next slide. Please help! I have it set to [correctanswer] and then I have a specific correctanswer list in the trial list and the correct key answer ("S" or "L") for each condition. Thanks! Kathy -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/958f1798-278d-4e00-969d-d8f0fb982f27%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From olayak at gmail.com Tue Oct 8 19:13:31 2013 From: olayak at gmail.com (olayak) Date: Tue, 8 Oct 2013 12:13:31 -0700 Subject: brightness level Message-ID: Hi, Is there a way to change the level of brightness in eprime? I am running a perception experiment and I need 4 levels of brightness of the same image. Thanks! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5c7cb8ae-19d0-4345-b876-d9c042d39321%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Oct 8 19:32:14 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 8 Oct 2013 15:32:14 -0400 Subject: no go for incorrect response? In-Reply-To: <958f1798-278d-4e00-969d-d8f0fb982f27@googlegroups.com> Message-ID: Kathy, Did you first work through the tutorials in the Getting Started Guide and User's Guide that came with E-Prime? I think you do not understand the concept of a "Correct" response in this context. After working through the tutorials, you might look at the "Criterion Based Exit" example that you may download from the PST website (registration & login required). ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/8/2013 03:11 PM Tuesday, olayak wrote: >I'm new to eprime and I'm having a little difficulty. I am trying to >set it a training procedure so that the subject cannot move forward >to the next stimulus unless they press the correct response. So, for >example, if the correct response is "S" and they press "L", the same >stimulus will still be up until they finally press "S". I'm clearly >doing something wrong because in my experiment when I press the >incorrect key it moves on to the next slide. > >Please help! > >I have it set to [correctanswer] and then I have a specific >correctanswer list in the trial list and the correct key answer ("S" >or "L") for each condition. > >Thanks! > >Kathy -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52545dc5.0452320a.249f.23f6SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Tue Oct 8 19:37:04 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 8 Oct 2013 15:37:04 -0400 Subject: brightness level In-Reply-To: <5c7cb8ae-19d0-4345-b876-d9c042d39321@googlegroups.com> Message-ID: In E-Prime, as in many experiment programming systems, you change the brightness of a stimulus by generating and storing copies of your stimulus at different brightness levels outside of E-Prime, and then having E-Prime merely load the appropriate file as needed. If you really want your program to manipulate stimulus brightness levels in realtime, look into MATLAB or PsychoPy. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/8/2013 03:13 PM Tuesday, olayak wrote: >Is there a way to change the level of brightness in eprime? I am >running a perception experiment and I need 4 levels of brightness of >the same image. > >Thanks! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52545ee7.629a320a.54ea.2415SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From olayak at gmail.com Tue Oct 8 19:43:25 2013 From: olayak at gmail.com (olayak) Date: Tue, 8 Oct 2013 12:43:25 -0700 Subject: brightness level In-Reply-To: <5c7cb8ae-19d0-4345-b876-d9c042d39321@googlegroups.com> Message-ID: Thank you! Will do in photoshop. :) On Tuesday, October 8, 2013 3:13:31 PM UTC-4, olayak wrote: > > Hi, > > Is there a way to change the level of brightness in eprime? I am running > a perception experiment and I need 4 levels of brightness of the same image. > > Thanks! > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/f2492e63-9381-4c32-bdaa-7031d5498e28%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From olayak at gmail.com Tue Oct 8 19:44:38 2013 From: olayak at gmail.com (olayak) Date: Tue, 8 Oct 2013 12:44:38 -0700 Subject: no go for incorrect response? In-Reply-To: <52545dc5.0452320a.249f.23f6SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thank you! I don't want to exit the whole experiment when a correct response is given, I just want to remain on the image when an incorrect response is given until the correct response is given and then move to the next image in the series. Thanks! On Tuesday, October 8, 2013 3:32:14 PM UTC-4, McFarlane, David wrote: > > Kathy, > > Did you first work through the tutorials in the Getting Started Guide > and User's Guide that came with E-Prime? I think you do not > understand the concept of a "Correct" response in this context. > > After working through the tutorials, you might look at the "Criterion > Based Exit" example that you may download from the PST website > (registration & login required). > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/8/2013 03:11 PM Tuesday, olayak wrote: > >I'm new to eprime and I'm having a little difficulty. I am trying to > >set it a training procedure so that the subject cannot move forward > >to the next stimulus unless they press the correct response. So, for > >example, if the correct response is "S" and they press "L", the same > >stimulus will still be up until they finally press "S". I'm clearly > >doing something wrong because in my experiment when I press the > >incorrect key it moves on to the next slide. > > > >Please help! > > > >I have it set to [correctanswer] and then I have a specific > >correctanswer list in the trial list and the correct key answer ("S" > >or "L") for each condition. > > > >Thanks! > > > >Kathy > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/997f8444-eb9c-4aec-a305-ade6405f8e76%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kgoodyea at gmail.com Wed Oct 9 02:00:20 2013 From: kgoodyea at gmail.com (Kim Goodyear) Date: Tue, 8 Oct 2013 19:00:20 -0700 Subject: 2 slides equal to one time duration Message-ID: I am trying to have two sequential slides that are equal to one time duration of 2500 ms. The first slide and the second slide are completely identical, except in the second slide the text color changes to red so that the participant can see their selection, I want the first slide to terminate and then have the second slide come up so that they both equal the same 2500 ms. Since the response time will vary I don't know how to make both slides equal to the same 2500. I don't know why, but if the buttons aren't selected right away, the total duration is around 5000, or if there is a delay in the response, the total duration is around 4200. I am not sure how to fix this issue, any advice would be great. Here is my inline script: Dim ResetSlide as integer Dim x as integer ResetSlide = StimDisplay.Duration + StimDisplay2.Duration ResetSlide = x x = 2500 -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/0b27fe82-4622-4701-a21d-4c6a6e6ff199%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tabuwalda at gmail.com Wed Oct 9 08:52:24 2013 From: tabuwalda at gmail.com (Trudy) Date: Wed, 9 Oct 2013 01:52:24 -0700 Subject: Invalid Attribute Message-ID: I get the error that my filename contains an invalid attribute, I've tried going down to the 3 basic attributes (Weight, Nested, Procedure) and tried different options, but it still throws the error. There is no trailing whitespace and the attributes conform to the naming conventions (for as far as I can tell). Any help is appreciated :) - Trudy -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/fd37bc86-e240-4687-b906-5872536cfe92%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3Attributes_RowNames.zip Type: application/zip Size: 7301 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3Attributes_NoRowNames.zip Type: application/zip Size: 2671 bytes Desc: not available URL: From iskebakker at gmail.com Wed Oct 9 09:09:32 2013 From: iskebakker at gmail.com (iskebakker at gmail.com) Date: Wed, 9 Oct 2013 02:09:32 -0700 Subject: Autoit scripts for running multiple tasks Message-ID: Hi all, I found this conversation about scripts that people have created to run multiple tasks (something that suprised me very much to find e-prime doesn't do!): https://groups.google.com/forum/?hl=en-US#!searchin/e-prime/autoit$20/e-prime/yxViXrIuOfM/aF1IeVUJw5MJ. However, the links are not working anymore. Does anyone perhaps still have this script (or another that does the same, of course)? Many thanks! Iske -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/dad0da06-0a94-43b5-8253-e907c7929bed%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From d.vinson at ucl.ac.uk Wed Oct 9 09:31:20 2013 From: d.vinson at ucl.ac.uk (David Vinson) Date: Wed, 9 Oct 2013 10:31:20 +0100 Subject: Invalid Attribute In-Reply-To: Message-ID: Hi Trudy, If you are loading these text as Lists (LoadMethod = file) your attributes and contents need to be in plaintext rather than delimited by quotes as in the tab-delimited text files you attached. So get rid of all your double quotes and see if that works > "Weight" "Nested" "Procedure" > 1 "" "TrialProc".... should become > Weight Nested Procedure > 1 TrialProc See http://www.pstnet.com/support/kb.asp?TopicID=2707 hope this helps, DavidV On 09/10/2013 09:52, Trudy wrote: > I get the error that my filename contains an invalid attribute, I've > tried going down to the 3 basic attributes (Weight, Nested, Procedure) > and tried different options, but it still throws the error. There is > no trailing whitespace and the attributes conform to the naming > conventions (for as far as I can tell). > > Any help is appreciated :) > - Trudy > -- > You received this message because you are subscribed to the Google > Groups "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/fd37bc86-e240-4687-b906-5872536cfe92%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- David Vinson, Ph.D. ESRC Research Fellow Cognitive, Perceptual and Brain Sciences Research Department University College London 26 Bedford Way, London WC1H 0AP Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52552268.4060703%40ucl.ac.uk. For more options, visit https://groups.google.com/groups/opt_out. From tabuwalda at gmail.com Wed Oct 9 10:17:34 2013 From: tabuwalda at gmail.com (Trudy Buwalda) Date: Wed, 9 Oct 2013 12:17:34 +0200 Subject: Invalid Attribute In-Reply-To: <52552268.4060703@ucl.ac.uk> Message-ID: Thanks, that solved it :) On Oct 9, 2013, at 11:31 AM, David Vinson wrote: > Hi Trudy, > > If you are loading these text as Lists (LoadMethod = file) your attributes and contents need to be in plaintext rather than delimited by quotes as in the tab-delimited text files you attached. > > So get rid of all your double quotes and see if that works > >> "Weight" "Nested" "Procedure" >> 1 "" "TrialProc".... > should become > >> Weight Nested Procedure >> 1 TrialProc > See http://www.pstnet.com/support/kb.asp?TopicID=2707 > > hope this helps, > DavidV > > On 09/10/2013 09:52, Trudy wrote: >> I get the error that my filename contains an invalid attribute, I've tried going down to the 3 basic attributes (Weight, Nested, Procedure) and tried different options, but it still throws the error. There is no trailing whitespace and the attributes conform to the naming conventions (for as far as I can tell). >> >> Any help is appreciated :) >> - Trudy >> -- >> You received this message because you are subscribed to the Google Groups "E-Prime" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. >> To post to this group, send email to e-prime at googlegroups.com. >> To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/fd37bc86-e240-4687-b906-5872536cfe92%40googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. > > -- > David Vinson, Ph.D. > ESRC Research Fellow > Cognitive, Perceptual and Brain Sciences Research Department > University College London > 26 Bedford Way, London WC1H 0AP > Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) > > > -- > You received this message because you are subscribed to a topic in the Google Groups "E-Prime" group. > To unsubscribe from this topic, visit https://groups.google.com/d/topic/e-prime/JqraejM7_6w/unsubscribe. > To unsubscribe from this group and all its topics, send an email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52552268.4060703%40ucl.ac.uk. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/DD2A6AD6-79EB-4A40-B817-AA0E8CA0874A%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out. From liwenna at gmail.com Wed Oct 9 10:32:32 2013 From: liwenna at gmail.com (Anne-Wil) Date: Wed, 9 Oct 2013 03:32:32 -0700 Subject: Autoit scripts for running multiple tasks In-Reply-To: Message-ID: Hoi Iske, Please, find the scripts attached. A bit of warning though: I have used them once or twice, but soon abandoned them again: they are not very 'intelligent' scripts: they just fetch keyboard strokes and feed them to 'the computer'. If at any point the computer is not waiting (not yet ready for instance) for the specific input that the script provides, mayhem will occur and the script will start opening all the files one after another. Therefore the testleader needs to be careful only to touch the right buttons at the right time, the participants instructed to not touch any buttons while the program switches from one ebs2 file to the next, neither should be frightened if the computer starts doing all sorts of things at once (after closing all the programs one can then opt to open 'the normal manual way'), and your experiment should allow for such a thing to happen. I generally would advice against using them.... especially with student testleaders, but also with FMRI experiments (given your affiliation :) ), where you don't want to expose your participant to a (testleader frightened of the) computer doing 'things on his own' ;) Nowadays I just undertake the boring job of merging experiments. Although for some reason it doesn't work here at Leiden university, the newer e-prime versions allegedly allow for pasting between experiments, which should make that job a tad more easy.... Groet, Anne-Wil On Wednesday, 9 October 2013 11:09:32 UTC+2, iskeb... at gmail.com wrote: > > Hi all, > I found this conversation about scripts that people have created to run > multiple tasks (something that suprised me very much to find e-prime > doesn't do!): > https://groups.google.com/forum/?hl=en-US#!searchin/e-prime/autoit$20/e-prime/yxViXrIuOfM/aF1IeVUJw5MJ. > However, the links are not working anymore. Does anyone perhaps still have > this script (or another that does the same, of course)? > Many thanks! > Iske > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/a2e1ad79-4a56-4dc2-b174-92375a7a2467%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: scritp to call .ebs2 files in fixed order and autofill startup info.au3 Type: application/octet-stream Size: 14870 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: scritp to call .ebs2 files in random order and autofill startup info.au3 Type: application/octet-stream Size: 10914 bytes Desc: not available URL: From tudor3 at gmail.com Wed Oct 9 11:43:04 2013 From: tudor3 at gmail.com (tudor) Date: Wed, 9 Oct 2013 04:43:04 -0700 Subject: Removing within-subject & within-session outliers in EdataAid In-Reply-To: <52533f75.2e43320a.559f.06deSMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks David. PST support have suggested the same thing, i.e. removing outliers based on an arbitrary threshold. However, I think I'd nevertheless like to try removing them by using a number of std devs away from the mean. I'm not sure this could be done in Excel or SPSS (at least without a macro, which I don't personally know much about), given that what you export there are just raw RTs (one trial per row, for all sessions and for all subjects). To eliminate outliers within each subject's session, it seems to me that you'd really have to write a Matlab script to use on the exported Excel file. Since eliminating RTs this way is such a basic (and commonly done) operation, it is regrettable that it is not included in Edataaid's Analyze window. Perhaps in a future version... On Tuesday, 8 October 2013 00:10:38 UTC+1, McFarlane, David wrote: > > To eliminate all RTs greater than a certain fixed value, just use a > filter in E-DataAid, or in the Analyze tool of E-DataAid -- I am > pretty sure that this is covered in the tutorial Guides that came > with E-Prime (and I also cover this in my online course). > > If you want custom filters for individual subjects or for individual > sessions of each subject, or if you want the filter criterion to be > derived from some computation based on the data, then I think you > will have to use another tool, as far as I know those sorts of > analyses go beyond what E-DataAid can do and what it is meant to > do. As you already know, E-DataAid will easily reveal mean RTs for > each subject, or for each session of each subject, but from there you > have to explort data and do the rest in Excel, SPSS, Systat, or what have > you. > > I do like E-DataAid and its Analyze feature a lot for initial data > preparation (e.g., filtering rows and selecting columns to export) > and for initial exploration of descriptive statistics, and I devote > one lesson in my online course to covering these uses, but after that > I would export the data for further analysis (e.g., hypothesis > testing, ANOVA, etc.). > > Just my $.02, curious to hear from others. > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/7/2013 04:27 PM Monday, tudor wrote: > >I have a merged .emrg2 (EdataAid) file containing reaction time data > >from several subjects, across several sessions done by each. I would > >like to eliminate RT outliers within each subject individually, and > >if possible also within session rather than across all sessions of a > >single subject. > > > >By 'outlier' I would mean RTs that are more than 2.5 standard > >deviations away from the mean, although if that's hard to do, it > >would also be fine to just eliminate all RTs greater than a certain > >fixed value (e.g. 3,000 ms). > > > >I have not found a way to do this with the Analyze window, and > >because I have many such merged files, I would prefer to not have to > >do this 'the hard way', i.e. by exporting all the data to Excel and > >doing the outlier-removal and the averaging (which is otherwise done > >easily in Analyze) over there. > > > >Can anyone help? Many thanks in advance! > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/2d83b3af-964a-422c-b7d9-95c7e2e85436%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacanterbury at gmail.com Wed Oct 9 11:48:28 2013 From: jacanterbury at gmail.com (JACanterbury) Date: Wed, 9 Oct 2013 04:48:28 -0700 Subject: problem with brain vision events after upgrade to 2.0.10 Message-ID: Hi, Having upgraded from E-Prime 2.08 to 2.0.10 I'm having problems with events to Brain Vision either : - not being sent at all - sent sometimes - sent at the 'wrong' time Early investigations seem to indicate that this only happens with scripts written from scratch in 2.0.10. Scripts written in 2.0.8 and then imported and updated for 2.0.10 still seem to work fine. Any ideas? Has some default setting I don't know about changed? Many thanks, John -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/2f4a5393-9a4e-4419-b5cc-f493df0b5304%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vecchio.dani at gmail.com Wed Oct 9 13:47:00 2013 From: vecchio.dani at gmail.com (Daniela Vecchio) Date: Wed, 9 Oct 2013 06:47:00 -0700 Subject: memory sequence of the beads task Message-ID: hi everyone, i'm trying to build a task in which a series of beads are extracted .What I need is that the sequence of extractions is stored, updated and shown at the bottom of the same slide that shows the extractions. The same slide, therefore, should contain the current extraction image at the top while the memory sequence of the beads previously extracted at the bottom. could you help me with that? thanks a lot Daniela -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/286df64c-ec59-4852-be73-ee22e55ecc90%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From haslinger.hans11 at gmail.com Wed Oct 9 14:23:03 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Wed, 9 Oct 2013 07:23:03 -0700 Subject: changing border color of a slide image after clicking on it Message-ID: Hallo everybody At the moment I am programming a multiple choice test. In this test, there is a Stimulus (a slide image) and 4 possible answers (slide images) given. The subjects have to choose one of the 4 answers by clicking on it. At the same time there is a sound-file presented, which is a little story describing the stimulus-image. The subjects can answer until the complete story is presented. So far it was no huge problem for me. But now i want to highlight the given answer by changing the border color of the slide image that has been clicked. By now I could only accomplish, that the border color changes in the following slide state but not in the current one. I also didn't accomplish, that the border color changes back to the original color in the next slide states. I hope you understand what my Problem is and could give me a hand. Best regards Hans Here is the inline code I produced so far (the green part is what i've tried by myself to solve my problem. The rest of the code works fine so far): Dim theState as SlideState Set theState = ExternalCausesSlide.States("Default") Dim next_mX as Long, next_mY as Long Dim strHit As String Dim theMouseResponseData As MouseResponseData 'Was there a response? If ExternalCausesSlide.InputMasks.Responses.Count > 0 Then 'Get the mouse response Set theMouseResponseData = CMouseResponseData(ExternalCausesSlide.InputMasks.Responses(1)) 'Determine string name of SlideImage or SlideText object at 'mouse click coordinates. Assign that value to strHit strHit = theState.HitTest(theMouseResponseData.CursorX, theMouseResponseData.CursorY) 'if strHit equals the two buttons, then strHit will be logged, game will move onto next trial. If strHit = ("Image1") or strHit = ("Image2") or strHit = ("Image3")or strHit = ("Image4") Then c.SetAttrib "response", strHit 'if click is off, then restart slide 2 so nothing changes on the screen. no data will be logged in this case. Else Goto restart2 End If 'Compare string name where mouse click occurred to CorrectAnswer 'attribute on each trial, and score response 'NOTE: This comparison is case sensitive If strHit = c.GetAttrib("CorrectEmotion") Then ExternalCausesSlide.ACC = 1 Else ExternalCausesSlide.ACC = 0 End If If strHit = ("Image1") Then Dim Image1 As SlideImage Set Image1 = CSlideImage(ExternalCausesSlide.States("Default").Objects("Image1")) Image1.BorderColor = CColor("cyan") End If End if -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/11000327-bee5-4ad7-a9d8-156efbb73846%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Wed Oct 9 14:25:23 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Wed, 9 Oct 2013 10:25:23 -0400 Subject: problem with brain vision events after upgrade to 2.0.10 In-Reply-To: <2f4a5393-9a4e-4419-b5cc-f493df0b5304@googlegroups.com> Message-ID: John, The default setting for PreRelease has changed from 0 to "(same as duration)". IMO this is mostly a good thing, but it does create some havoc for those following the older habit. EP2.0.10 also introduces Generate PreRun, which again is mostly a good thing but can create some havoc... You might find some of this explained in the latest New Features Guide, the "Critical Timing" chapter of the latest User's Guide, and various Knowledge Base articles online. Note that, when updating older experiment programs, EP2.0.10 mostly preserves the settings in the program rather than imposing the new defaults. This may explain why older, converted programs still work, while newer ones built from scratch in EP2.0.10 do not. Start by comparing the PreRelease values in your old (converted) files to those in your new ones. Then consider that the old files in effect used a Generate PreRun of "BeforeObjectRun", and compare that behavior to the new default "TopOfProcedure". Best regards, ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (twitter.com/EPrimeMaster ) /----------- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at http://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) PST also offers several instructional videos there on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \----------- JACanterbury wrote: > Having upgraded from E-Prime 2.08 to 2.0.10 I'm having problems with > events to Brain Vision either : > - not being sent at all > - sent sometimes > - sent at the 'wrong' time > > Early investigations seem to indicate that this only happens with > scripts written from scratch in 2.0.10. > > Scripts written in 2.0.8 and then imported and updated for 2.0.10 still > seem to work fine. > > Any ideas? Has some default setting I don't know about changed? > > Many thanks, > > John -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52556753.3030206%40msu.edu. For more options, visit https://groups.google.com/groups/opt_out. From btomoschuk at gmail.com Wed Oct 9 14:54:45 2013 From: btomoschuk at gmail.com (Brendan T) Date: Wed, 9 Oct 2013 07:54:45 -0700 Subject: Centering by Word in Canvas In-Reply-To: <52541789.6801320a.10b1.184cSMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thank you very much! That is definitely what I'm looking for! On Tuesday, October 8, 2013 10:32:35 AM UTC-4, McFarlane, David wrote: > > Brendan, > > Look at the Canvas.CalculateTextSize topic in the E-Basic Help facility. > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/8/2013 09:32 AM Tuesday, Brendan T wrote: > >I have a small problem in my experiment design I was hoping you guys > >could shed some light on. > > > >My project uses the canvas function to display both words and > >circles around the word (big enough to be in the periphery) but the > >problem is that canvas doesn't allow you to align words to the > >center. It produces words on the canvas as such: > > > >cnvs.Text Display.XRes/2, Displaly.YRes/2, c. getattrib("WordList1") > >'This pulls a word from wordList1 and puts it in the center of the > >screen such that the first letter is centered at XRes/2, YRes/2 > > > > > >This centers the image based on the number of pixels on the screen, > >which is fine (and necessary) for my circle but aligns the words > >such that the first letter of the word is at the center. Words can > >be easily aligned in the display feature, but canvas is necessary > >for my other stimuli. > > > >Does anybody know how this might be fixed such that the word is > >centered in canvas, regardless of word length? Is it possible to > >overlay a regular display with canvas? Or perhaps a way to factor > >word length in and subtract half of it from XRes/2? > > > >I appreciate any feedback and I hope the issue is clear. > > > >Thank you!! > >Brendan > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/4b29cb0d-3aa3-4d28-a897-675dda036897%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mspape at cognitology.eu Thu Oct 10 13:20:36 2013 From: mspape at cognitology.eu (Cognitology) Date: Thu, 10 Oct 2013 16:20:36 +0300 Subject: E-Prime Stability Message-ID: Hi, Given that E-Prime 2 is now pretty much a final release, I was wondering how many of you feel it remains *particularly* instable? I mean, E-Studio (2, pro), latest version, and I don?t stupid crashes (say, recursively calling the sessionproc from a list within sessionproc). Just things like ? Writing inline: Try typing: /* Hoppa */. Works! Automatically becomes ?/* ?Hoppa ?*/. Now commented out. However, type in an inline (not the user part) ?/* Hoppa */....CRASH! ? Just dragging objects around, adding attributes, all sorts of randomness. Sometimes, there are nice big red crosses where graphics usually are. The latter is the more annoying part. In general, when I?m developing something, on both my laptop and home pc (both win7prox64), this happens. In my experience, in fact, most people, even if they are very experienced, have random stability issues with e-studio. My question then is: does the list have similar issues? Say, if you?ve been doing some development, what is the chance that e-prime will crash within 60 minutes? I?m estimating it at 80% here. Cheers, Michiel Michiel Sovij?rvi-Spap? Helsinki Institute for Information Technology Aalto & Helsingin Yliopisto, Finland -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/035401cec5bb%2482669440%248733bcc0%24%40eu. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From d.vinson at ucl.ac.uk Thu Oct 10 14:59:07 2013 From: d.vinson at ucl.ac.uk (David Vinson) Date: Thu, 10 Oct 2013 15:59:07 +0100 Subject: E-Prime Stability In-Reply-To: <035401cec5bb$82669440$8733bcc0$@eu> Message-ID: Hi Michiel, I'm still plodding along using an XP box for my main development platform, EP Pro latest version and it seems to be much more stable than you've experienced: P(crash per 1hr) << 5%. Although I haven't done anything particularly unusual or exploratory lately. I have had quite a few crashes on running during development - the usual difficulties getting videos to work; loading nested Lists from file; but none of these are related to e-studio stability. Copy-pasting from multiple open experiments, no problem at all; dragging objects around, ditto. No weird red X's either. Probably your development and mine is comparing apples and oranges, but my rate of crashes within E-Studio 2.x has been pretty constant (and low) for quite some time. Maybe it's more stable on XP? Obviously this isn't much of a long term solution given the impending end of support for XP and perhaps some strong institutional pressure to move on.... I'd be interested to know about others' experiences too. best, DV On 10/10/2013 14:20, Cognitology wrote: > > Hi, > > Given that E-Prime 2 is now pretty much a final release, I was > wondering how many of you feel it remains **particularly** instable? I > mean, E-Studio (2, pro), latest version, and I don?t stupid crashes > (say, recursively calling the sessionproc from a list within > sessionproc). Just things like > > ?Writing inline: > > Try typing: > > /* > > Hoppa > > */. > > Works! Automatically becomes > > ?/* > > ?Hoppa > > ?*/. > > Now commented out. However, type in an inline (not the user part) > > ?/* > > Hoppa > > */....CRASH! > > ?Just dragging objects around, adding attributes, all sorts of > randomness. Sometimes, there are nice big red crosses where graphics > usually are. > > The latter is the more annoying part. In general, when I?m developing > something, on both my laptop and home pc (both win7prox64), this > happens. In my experience, in fact, most people, even if they are very > experienced, have random stability issues with e-studio. My question > then is: does the list have similar issues? Say, if you?ve been doing > some development, what is the chance that e-prime will crash within 60 > minutes? I?m estimating it at 80% here. > > Cheers, > > Michiel > > Michiel Sovij?rvi-Spap? > > Helsinki Institute for Information Technology > > Aalto & Helsingin Yliopisto, > > Finland > > -- > You received this message because you are subscribed to the Google > Groups "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/035401cec5bb%2482669440%248733bcc0%24%40eu. > For more options, visit https://groups.google.com/groups/opt_out. -- David Vinson, Ph.D. ESRC Research Fellow Cognitive, Perceptual and Brain Sciences Research Department University College London 26 Bedford Way, London WC1H 0AP Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5256C0BB.7000800%40ucl.ac.uk. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Thu Oct 10 15:54:09 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Oct 2013 11:54:09 -0400 Subject: E-Prime Stability In-Reply-To: <035401cec5bb$82669440$8733bcc0$@eu> Message-ID: Michiel, Good question, and I am eager to hear from others. I have encouraged users at my location to move up to EP2.0.10, but that's going slowly, and we do run into some troubles because we have to get used to new ways of doing things in EP2.0.10. So I do not have a lot of development experience with it yet, my experience so far is mostly instructional and explorational. Based only on that, I like EP2.0.10 a lot, it introuduces a *lot* of good features, even some of the problems turn out to be features once they are properly understood (Generate PreRun is one of those, and I will mention another below). Now to address a couple points in particular. First, EP2 is not just "pretty much" a final release, it *is* officially a final release since EP2.0.10.242. And your commenting example... Yes, that trippped me up at first too, and it breaks one of the exercises in my video course, and I found it very annoying because I used /* */ a lot to comment things out & in. But try the following: Select some lines of code. Now press Ctrl+' (that's the Ctrl key along with the apostrophe key). See all those lines get commented with a "'" added to the start? Now for the fun part, with those lines still selected, press Ctrl+Shift+' -- see all those lines now become uncommented? Now press Ctrl+' twice -- see it add two "'" at the start of each line? Then press Ctrl+Shift+' once, then twice, to see it remove each leading "'" in turn. Pretty cool, huh? I sure thought so once I figured it out. So much easier than "/* */"! Now I just use "''" (double "'") to mark provisional lines during development, I can easily search for "''" throughout the program later to fix up those lines before final release of a program. Etc. So this is one of those "problems" that is really a feature. Once again, PST makes a pretty good product, but utterly fails to explain it well enough to customers. Just business as usual for them, but opening opportunities for people like me. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/10/2013 09:20 AM Thursday, Cognitology wrote: >Given that E-Prime 2 is now pretty much a final >release, I was wondering how many of you feel it >remains *particularly* instable? I mean, >E-Studio (2, pro), latest version, and I don?t >stupid crashes (say, recursively calling the >sessionproc from a list within sessionproc). Just things like >? Writing inline: >Try typing: >/* >Hoppa >*/. > >Works! Automatically becomes >?/* >?Hoppa >?*/. > >Now commented out. However, type in an inline (not the user part) >?/* >Hoppa >*/....CRASH! > >? Just dragging objects around, adding >attributes, all sorts of randomness. Sometimes, >there are nice big red crosses where graphics usually are. > >The latter is the more annoying part. In >general, when I?m developing something, on both >my laptop and home pc (both win7prox64), this >happens. In my experience, in fact, most people, >even if they are very experienced, have random >stability issues with e-studio. My question then >is: does the list have similar issues? Say, if >you?ve been doing some development, what is the >chance that e-prime will crash within 60 >minutes? I?m estimating it at 80% here. > >Cheers, >Michiel > >Michiel Sovij?rvi-Spap? >Helsinki Institute for Information Technology >Aalto & Helsingin Yliopisto, >Finland -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5256cda9.893d320a.34a6.68c9SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From pfc.groot at gmail.com Thu Oct 10 16:02:06 2013 From: pfc.groot at gmail.com (Paul Groot) Date: Thu, 10 Oct 2013 18:02:06 +0200 Subject: E-Prime Stability In-Reply-To: <5256cda9.893d320a.34a6.68c9SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: I also worked on several scripts that had stability issues when editing in EStudio (XP and W7). I think some of those problems only occur under specific circumstances or in specific scripts. However, in most cases it seems hard to reproduce the crashes. So, pressing the save button every now and then has become standard practice for me. However, here is another nice (reproducible) demonstration of a problem in EStudio, which took me some time to isolate from a larger script. This case is related to a bug in the ScriptSense option: - open estudio and start with an empty script - open windows task manager to monitor cpu usage of estudio - add an inline script object to SessionProc and enter the following code: Dim n As Integer While False n = 1 Wend Note that an empty line at the top of the script seems to be essential. Although this problem is not very apparent, the high CPU-load could cause time accuracy issues when running a script directly from EStudio. Best Paul On 10 October 2013 16:59, David Vinson wrote: > Hi Michiel, > > I'm still plodding along using an XP box for my main development platform, > EP Pro latest version and it seems to be much more stable than you've > experienced: P(crash per 1hr) << 5%. Although I haven't done anything > particularly unusual or exploratory lately. > > I have had quite a few crashes on running during development - the usual > difficulties getting videos to work; loading nested Lists from file; but > none of these are related to e-studio stability. > > Copy-pasting from multiple open experiments, no problem at all; dragging > objects around, ditto. No weird red X's either. Probably your development > and mine is comparing apples and oranges, but my rate of crashes within > E-Studio 2.x has been pretty constant (and low) for quite some time. Maybe > it's more stable on XP? > > Obviously this isn't much of a long term solution given the impending end > of support for XP and perhaps some strong institutional pressure to move > on.... I'd be interested to know about others' experiences too. > > best, > DV > > > > On 10/10/2013 14:20, Cognitology wrote: > >> >> Hi, >> >> Given that E-Prime 2 is now pretty much a final release, I was wondering >> how many of you feel it remains **particularly** instable? I mean, E-Studio >> (2, pro), latest version, and I don?t stupid crashes (say, recursively >> calling the sessionproc from a list within sessionproc). Just things like >> >> >> ?Writing inline: >> >> Try typing: >> >> /* >> >> Hoppa >> >> */. >> >> Works! Automatically becomes >> >> ?/* >> >> ?Hoppa >> >> ?*/. >> >> Now commented out. However, type in an inline (not the user part) >> >> ?/* >> >> Hoppa >> >> */....CRASH! >> >> ?Just dragging objects around, adding attributes, all sorts of >> randomness. Sometimes, there are nice big red crosses where graphics >> usually are. >> >> The latter is the more annoying part. In general, when I?m developing >> something, on both my laptop and home pc (both win7prox64), this happens. >> In my experience, in fact, most people, even if they are very experienced, >> have random stability issues with e-studio. My question then is: does the >> list have similar issues? Say, if you?ve been doing some development, what >> is the chance that e-prime will crash within 60 minutes? I?m estimating it >> at 80% here. >> >> Cheers, >> >> Michiel >> >> Michiel Sovij?rvi-Spap? >> >> Helsinki Institute for Information Technology >> >> Aalto & Helsingin Yliopisto, >> >> Finland >> >> -- >> You received this message because you are subscribed to the Google Groups >> "E-Prime" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to e-prime+unsubscribe at googlegroups.com. >> To post to this group, send email to e-prime at googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/e-prime/035401cec5bb%2482669440%248733bcc0%24%40eu >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- > David Vinson, Ph.D. > ESRC Research Fellow > Cognitive, Perceptual and Brain Sciences Research Department > University College London > 26 Bedford Way, London WC1H 0AP > Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) > > > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/5256C0BB.7000800%40ucl.ac.uk. > > For more options, visit https://groups.google.com/groups/opt_out. > On 10 October 2013 17:54, David McFarlane wrote: > Michiel, > > Good question, and I am eager to hear from others. I have encouraged > users at my location to move up to EP2.0.10, but that's going slowly, and > we do run into some troubles because we have to get used to new ways of > doing things in EP2.0.10. So I do not have a lot of development experience > with it yet, my experience so far is mostly instructional and > explorational. Based only on that, I like EP2.0.10 a lot, it introuduces a > *lot* of good features, even some of the problems turn out to be features > once they are properly understood (Generate PreRun is one of those, and I > will mention another below). > > Now to address a couple points in particular. > > First, EP2 is not just "pretty much" a final release, it *is* officially a > final release since EP2.0.10.242. > > And your commenting example... Yes, that trippped me up at first too, and > it breaks one of the exercises in my video course, and I found it very > annoying because I used /* */ a lot to comment things out & in. But try > the following: Select some lines of code. Now press Ctrl+' (that's the > Ctrl key along with the apostrophe key). See all those lines get commented > with a "'" added to the start? Now for the fun part, with those lines > still selected, press Ctrl+Shift+' -- see all those lines now become > uncommented? Now press Ctrl+' twice -- see it add two "'" at the start of > each line? Then press Ctrl+Shift+' once, then twice, to see it remove each > leading "'" in turn. Pretty cool, huh? I sure thought so once I figured > it out. So much easier than "/* */"! Now I just use "''" (double "'") to > mark provisional lines during development, I can easily search for "''" > throughout the program later to fix up those lines before final release of > a program. Etc. So this is one of those "problems" that is really a > feature. > > Once again, PST makes a pretty good product, but utterly fails to explain > it well enough to customers. Just business as usual for them, but opening > opportunities for people like me. > > ----- > David McFarlane > E-Prime training online: http://psychology.msu.edu/** > Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMaster) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > any and all questions at https://support.pstnet.com , and they strive to > respond to all requests in 24-48 hours, so make full use of it. 3) In > addition, PST offers several instructional videos on their YouTube channel ( > http://www.youtube.com/user/**PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy > of posting their reply back here for the sake of others. > \---- > > > > At 10/10/2013 09:20 AM Thursday, Cognitology wrote: > >> Given that E-Prime 2 is now pretty much a final release, I was wondering >> how many of you feel it remains *particularly* instable? I mean, E-Studio >> (2, pro), latest version, and I don?t stupid crashes (say, recursively >> calling the sessionproc from a list within sessionproc). Just things like >> ? Writing inline: >> Try typing: >> /* >> Hoppa >> */. >> >> Works! Automatically becomes >> ?/* >> ?Hoppa >> ?*/. >> >> Now commented out. However, type in an inline (not the user part) >> ?/* >> Hoppa >> */....CRASH! >> >> ? Just dragging objects around, adding attributes, all sorts of >> randomness. Sometimes, there are nice big red crosses where graphics >> usually are. >> >> The latter is the more annoying part. In general, when I?m developing >> something, on both my laptop and home pc (both win7prox64), this happens. >> In my experience, in fact, most people, even if they are very experienced, >> have random stability issues with e-studio. My question then is: does the >> list have similar issues? Say, if you?ve been doing some development, what >> is the chance that e-prime will crash within 60 minutes? I?m estimating it >> at 80% here. >> >> Cheers, >> Michiel >> >> Michiel Sovij?rvi-Spap? >> Helsinki Institute for Information Technology >> Aalto & Helsingin Yliopisto, >> Finland >> > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe@**googlegroups.com > . > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/** > msgid/e-prime/5256cda9.**893d320a.34a6.68c9SMTPIN_** > ADDED_MISSING%40gmr-mx.google.**com > . > > For more options, visit https://groups.google.com/**groups/opt_out > . > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAKAdR-uTWsW4CdF2Y1SES0P7r_om73Z0t-O-yr6tmM8gQp_ATw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu Oct 10 16:13:52 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Oct 2013 12:13:52 -0400 Subject: E-Prime Stability In-Reply-To: <5256C0BB.7000800@ucl.ac.uk> Message-ID: With regard to XP vs. Vista/Win7... For the longest time I advised EP users to stick with XP 32-bit. PST now certifies EP2.0.10 to work under Vista/Win7, and with both 32- and 64-bit platforms, and I have subsequently reversed my advice. I have been testing and doing some development using a dual-boot XP-32/Win7-64 machine, and EP2.0.10 has worked well for me on the Win7-64 side, maybe even better than on the XP-32 side. E.g., I have been testing sound latencies -- under XP-32, I get sound latencies on the order of 30 ms. Using the *same* machine booted to Win7-64, and using the available CoreAudio API, I can get sound latencies solidly down to around 10 ms. But don't get me started on movies! Movies have been a headache in every release of EP2, but for that matter we have also had trouble with movies in PsychoPy. So I do not think this is the fault of EP, I think this is just the nature of our digital movies, a lot of this attributable to the poor state of our codecs. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) At 10/10/2013 10:59 AM Thursday, David Vinson wrote: >Hi Michiel, > >I'm still plodding along using an XP box for my >main development platform, EP Pro latest version >and it seems to be much more stable than you've >experienced: P(crash per 1hr) << 5%. Although I >haven't done anything particularly unusual or exploratory lately. > >I have had quite a few crashes on running during >development - the usual difficulties getting >videos to work; loading nested Lists from file; >but none of these are related to e-studio stability. > >Copy-pasting from multiple open experiments, no >problem at all; dragging objects around, ditto. >No weird red X's either. Probably your >development and mine is comparing apples and >oranges, but my rate of crashes within E-Studio >2.x has been pretty constant (and low) for quite >some time. Maybe it's more stable on XP? > >Obviously this isn't much of a long term >solution given the impending end of support for >XP and perhaps some strong institutional >pressure to move on.... I'd be interested to >know about others' experiences too. > >best, >DV > > >On 10/10/2013 14:20, Cognitology wrote: >> >>Hi, >> >>Given that E-Prime 2 is now pretty much a final >>release, I was wondering how many of you feel >>it remains **particularly** instable? I mean, >>E-Studio (2, pro), latest version, and I don?t >>stupid crashes (say, recursively calling the >>sessionproc from a list within sessionproc). Just things like >> >>?Writing inline: >> >>Try typing: >> >>/* >> >>Hoppa >> >>*/. >> >>Works! Automatically becomes >> >>?/* >> >>?Hoppa >> >>?*/. >> >>Now commented out. However, type in an inline (not the user part) >> >>?/* >> >>Hoppa >> >>*/....CRASH! >> >>?Just dragging objects around, adding >>attributes, all sorts of randomness. Sometimes, >>there are nice big red crosses where graphics usually are. >> >>The latter is the more annoying part. In >>general, when I?m developing something, on both >>my laptop and home pc (both win7prox64), this >>happens. In my experience, in fact, most >>people, even if they are very experienced, have >>random stability issues with e-studio. My >>question then is: does the list have similar >>issues? Say, if you?ve been doing some >>development, what is the chance that e-prime >>will crash within 60 minutes? I?m estimating it at 80% here. >> >>Cheers, >> >>Michiel >> >>Michiel Sovij?rvi-Spap? >> >>Helsinki Institute for Information Technology >> >>Aalto & Helsingin Yliopisto, >> >>Finland >> >>-- >>You received this message because you are >>subscribed to the Google Groups "E-Prime" group. >>To unsubscribe from this group and stop >>receiving emails from it, send an email to >>e-prime+unsubscribe at googlegroups.com. >>To post to this group, send email to e-prime at googlegroups.com. >>To view this discussion on the web visit >>https://groups.google.com/d/msgid/e-prime/035401cec5bb%2482669440%248733bcc0%24%40eu. >>For more options, visit https://groups.google.com/groups/opt_out. > >-- >David Vinson, Ph.D. >ESRC Research Fellow >Cognitive, Perceptual and Brain Sciences Research Department >University College London >26 Bedford Way, London WC1H 0AP >Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5256d248.c819320a.3116.6397SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Thu Oct 10 16:21:51 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Oct 2013 12:21:51 -0400 Subject: E-Prime Stability In-Reply-To: Message-ID: Paul, But of course, While Wend went out with the Commodore-64 and has been deprecated for a couple decades, and should never have appeared in E-Basic at all (see my comments at https://groups.google.com/d/topic/e-prime/JXcYIfRPWVE and www.pstnet.com/forum/Topic3215-9-1.aspx ). What if you use the more modern Do Loop? E.g., Dim n As Integer Do While False n = 1 Loop I don't have any sympathy for crashes that result from use of While Wend :). Regards, ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) At 10/10/2013 12:02 PM Thursday, Paul Groot wrote: >I also worked on several scripts that had >stability issues when editing in EStudio (XP and >W7). I think some of those problems only occur >under specific circumstances or in specific >scripts. However, in most cases it seems hard to >reproduce the crashes. So, pressing the save >button every now and then has become standard >practice for me. However, here is another nice >(reproducible) demonstration of a problem in >EStudio, which took me some time to isolate from >a larger script. This case is related to a bug in the ScriptSense option: > >- open estudio and start with an empty script >- open windows task manager to monitor cpu usage of estudio >- add an inline script object to SessionProc and enter the following code: > >Dim n As Integer >While False > n = 1 >Wend > >Note that an empty line at the top of the script >seems to be essential. Although this problem is >not very apparent, the high CPU-load could >cause time accuracy issues when running a script directly from EStudio. > >Best >Paul > > >On 10 October 2013 16:59, David Vinson ><d.vinson at ucl.ac.uk> wrote: >Hi Michiel, > >I'm still plodding along using an XP box for my >main development platform, EP Pro latest version >and it seems to be much more stable than you've >experienced: P(crash per 1hr) << 5%. Although I >haven't done anything particularly unusual or exploratory lately. > >I have had quite a few crashes on running during >development - the usual difficulties getting >videos to work; loading nested Lists from file; >but none of these are related to e-studio stability. > >Copy-pasting from multiple open experiments, no >problem at all; dragging objects around, ditto. >No weird red X's either. Probably your >development and mine is comparing apples and >oranges, but my rate of crashes within E-Studio >2.x has been pretty constant (and low) for quite >some time. Maybe it's more stable on XP? > >Obviously this isn't much of a long term >solution given the impending end of support for >XP and perhaps some strong institutional >pressure to move on.... I'd be interested to >know about others' experiences too. > >best, >DV > > > >On 10/10/2013 14:20, Cognitology wrote: > >Hi, > >Given that E-Prime 2 is now pretty much a final >release, I was wondering how many of you feel it >remains **particularly** instable? I mean, >E-Studio (2, pro), latest version, and I don?t >stupid crashes (say, recursively calling the >sessionproc from a list within sessionproc). Just things like > > >?Writing inline: > >Try typing: > >/* > >Hoppa > >*/. > >Works! Automatically becomes > >?/* > >?Hoppa > >?*/. > >Now commented out. However, type in an inline (not the user part) > >?/* > >Hoppa > >*/....CRASH! > >?Just dragging objects around, adding >attributes, all sorts of randomness. Sometimes, >there are nice big red crosses where graphics usually are. > >The latter is the more annoying part. In >general, when I?m developing something, on both >my laptop and home pc (both win7prox64), this >happens. In my experience, in fact, most people, >even if they are very experienced, have random >stability issues with e-studio. My question then >is: does the list have similar issues? Say, if >you?ve been doing some development, what is the >chance that e-prime will crash within 60 >minutes? I?m estimating it at 80% here. > >Cheers, > >Michiel > >Michiel Sovij?rvi-Spap? > >Helsinki Institute for Information Technology > >Aalto & Helsingin Yliopisto, > >Finland > >-- >You received this message because you are >subscribed to the Google Groups "E-Prime" group. >To unsubscribe from this group and stop >receiving emails from it, send an email to >e-prime+unsubscribe at googlegroups.com. >To post to this group, send email to >e-prime at googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/e-prime/035401cec5bb%2482669440%248733bcc0%24%40eu. >For more options, visit >https://groups.google.com/groups/opt_out. > > >-- >David Vinson, Ph.D. >ESRC Research Fellow >Cognitive, Perceptual and Brain Sciences Research Department >University College London >26 Bedford Way, London WC1H 0AP >Tel +44 >(0)20 7679 5311 (UCL internal ext. 25311) > > > >-- >You received this message because you are >subscribed to the Google Groups "E-Prime" group. >To unsubscribe from this group and stop >receiving emails from it, send an email to >e-prime+unsubscribe at googlegroups.com. >To post to this group, send email to >e-prime at googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/e-prime/5256C0BB.7000800%40ucl.ac.uk. > >For more options, visit >https://groups.google.com/groups/opt_out. > > > > >On 10 October 2013 17:54, David McFarlane ><mcfarla9 at msu.edu> wrote: >Michiel, > >Good question, and I am eager to hear from >others. I have encouraged users at my location >to move up to EP2.0.10, but that's going slowly, >and we do run into some troubles because we have >to get used to new ways of doing things in >EP2.0.10. So I do not have a lot of development >experience with it yet, my experience so far is >mostly instructional and explorational. Based >only on that, I like EP2.0.10 a lot, it >introuduces a *lot* of good features, even some >of the problems turn out to be features once >they are properly understood (Generate PreRun is >one of those, and I will mention another below). > >Now to address a couple points in particular. > >First, EP2 is not just "pretty much" a final >release, it *is* officially a final release since EP2.0.10.242. > >And your commenting example... Yes, that >trippped me up at first too, and it breaks one >of the exercises in my video course, and I found >it very annoying because I used /* */ a lot to >comment things out & in. But try the >following: Select some lines of code. Now >press Ctrl+' (that's the Ctrl key along with the >apostrophe key). See all those lines get >commented with a "'" added to the start? Now >for the fun part, with those lines still >selected, press Ctrl+Shift+' -- see all those >lines now become uncommented? Now press Ctrl+' >twice -- see it add two "'" at the start of each >line? Then press Ctrl+Shift+' once, then twice, >to see it remove each leading "'" in >turn. Pretty cool, huh? I sure thought so once >I figured it out. So much easier than "/* >*/"! Now I just use "''" (double "'") to mark >provisional lines during development, I can >easily search for "''" throughout the program >later to fix up those lines before final release >of a program. Etc. So this is one of those >"problems" that is really a feature. > >Once again, PST makes a pretty good product, but >utterly fails to explain it well enough to >customers. Just business as usual for them, but >opening opportunities for people like me. > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) >PST's trained staff take any and all questions >at >https://support.pstnet.com >, and they strive to respond to all requests in >24-48 hours, so make full use of it. 3) In >addition, PST offers several instructional >videos on their YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do get an answer from PST staff, >please extend the courtesy of posting their >reply back here for the sake of others. >\---- > > > >At 10/10/2013 09:20 AM Thursday, Cognitology wrote: >Given that E-Prime 2 is now pretty much a final >release, I was wondering how many of you feel it >remains *particularly* instable? I mean, >E-Studio (2, pro), latest version, and I don?t >stupid crashes (say, recursively calling the >sessionproc from a list within sessionproc). Just things like >? Writing inline: >Try typing: >/* >Hoppa >*/. > >Works! Automatically becomes >?/* >?Hoppa >?*/. > >Now commented out. However, type in an inline (not the user part) >?/* >Hoppa >*/....CRASH! > >? Just dragging objects around, adding >attributes, all sorts of randomness. Sometimes, >there are nice big red crosses where graphics usually are. > >The latter is the more annoying part. In >general, when I?m developing something, on both >my laptop and home pc (both win7prox64), this >happens. In my experience, in fact, most people, >even if they are very experienced, have random >stability issues with e-studio. My question then >is: does the list have similar issues? Say, if >you?ve been doing some development, what is the >chance that e-prime will crash within 60 >minutes? I?m estimating it at 80% here. > >Cheers, >Michiel > >Michiel Sovij?rvi-Spap? >Helsinki Institute for Information Technology >Aalto & Helsingin Yliopisto, >Finland -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5256d426.0452320a.79c4.1664SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From zerorodrigoh at gmail.com Thu Oct 10 16:35:44 2013 From: zerorodrigoh at gmail.com (=?UTF-8?Q?Rodrigo_Henr=C3=ADquez_Chaparro?=) Date: Thu, 10 Oct 2013 09:35:44 -0700 Subject: Generation of procedure based on standard deviation of the previous reaction times of trials. Message-ID: Hi E-prime staff! I have a behavioral task that consists in a presentation of a stream of letters that appear in the center of the screen, where the participants should to respond pressing a button when the "x" letter is present and with other button to any other letter. However, I need to present a "question trial" when the SD of the previous reaction times of trials is more a 2 SD, considering the enough trials, to make the average. So my question is, how to program these trials "question" based on the SD of the previous Reaction times of trials of participants? Looking forward to your precious comments and suggestions Thanks a lot! Best, Rodrigo. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/23d3d46f-87e5-4c6a-8c61-936d6debca32%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu Oct 10 17:51:00 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Oct 2013 13:51:00 -0400 Subject: Generation of procedure based on standard deviation of the previous reaction times of trials. In-Reply-To: <23d3d46f-87e5-4c6a-8c61-936d6debca32@googlegroups.com> Message-ID: At 10/10/2013 12:35 PM Thursday, Rodrigo Henr??quez Chaparro wrote: >Hi E-prime staff! Sorry, if you want E-Prime staff then you need to go to https://support.pstnet.com , register, login, and follow the links for Support. This is just a discussion group for ordinary users. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5256e90c.629a320a.54ea.6d33SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mspape at cognitology.eu Thu Oct 10 20:01:35 2013 From: mspape at cognitology.eu (Michiel Sovijarvi-Spape) Date: Thu, 10 Oct 2013 20:01:35 +0000 Subject: E-Prime Stability Message-ID: Hi, Hah, I knew it when the Wend came up! Best, Michiel Sent from Windows Mail From: David McFarlane Sent: Thursday, 10 October 2013 19:22 To: e-prime at googlegroups.com, e-prime at googlegroups.com Paul, But of course, While Wend went out with the Commodore-64 and has been deprecated for a couple decades, and should never have appeared in E-Basic at all (see my comments at https://groups.google.com/d/topic/e-prime/JXcYIfRPWVE and www.pstnet.com/forum/Topic3215-9-1.aspx ). What if you use the more modern Do Loop? E.g., Dim n As Integer Do While False n = 1 Loop I don't have any sympathy for crashes that result from use of While Wend :). Regards, ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) At 10/10/2013 12:02 PM Thursday, Paul Groot wrote: >I also worked on several scripts that had >stability issues when editing in EStudio (XP and >W7). I think some of those problems only occur >under specific circumstances or in specific >scripts. However, in most cases it seems hard to >reproduce the crashes. So, pressing the save >button every now and then has become standard >practice for me. However, here is another nice >(reproducible) demonstration of a problem in >EStudio, which took me some time to isolate from >a larger script. This case is related to a bug in the ScriptSense option: > >- open estudio and start with an empty script >- open windows task manager to monitor cpu usage of estudio >- add an inline script object to SessionProc and enter the following code: > >Dim n As Integer >While False > n = 1 >Wend > >Note that an empty line at the top of the script >seems to be essential. Although this problem is >not very apparent, the high CPU-load could >cause time accuracy issues when running a script directly from EStudio. > >Best >Paul > > >On 10 October 2013 16:59, David Vinson ><d.vinson at ucl.ac.uk> wrote: >Hi Michiel, > >I'm still plodding along using an XP box for my >main development platform, EP Pro latest version >and it seems to be much more stable than you've >experienced: P(crash per 1hr) << 5%. Although I >haven't done anything particularly unusual or exploratory lately. > >I have had quite a few crashes on running during >development - the usual difficulties getting >videos to work; loading nested Lists from file; >but none of these are related to e-studio stability. > >Copy-pasting from multiple open experiments, no >problem at all; dragging objects around, ditto. >No weird red X's either. Probably your >development and mine is comparing apples and >oranges, but my rate of crashes within E-Studio >2.x has been pretty constant (and low) for quite >some time. Maybe it's more stable on XP? > >Obviously this isn't much of a long term >solution given the impending end of support for >XP and perhaps some strong institutional >pressure to move on.... I'd be interested to >know about others' experiences too. > >best, >DV > > > >On 10/10/2013 14:20, Cognitology wrote: > >Hi, > >Given that E-Prime 2 is now pretty much a final >release, I was wondering how many of you feel it >remains **particularly** instable? I mean, >E-Studio (2, pro), latest version, and I don?t >stupid crashes (say, recursively calling the >sessionproc from a list within sessionproc). Just things like > > >?Writing inline: > >Try typing: > >/* > >Hoppa > >*/. > >Works! Automatically becomes > >?/* > >?Hoppa > >?*/. > >Now commented out. However, type in an inline (not the user part) > >?/* > >Hoppa > >*/....CRASH! > >?Just dragging objects around, adding >attributes, all sorts of randomness. Sometimes, >there are nice big red crosses where graphics usually are. > >The latter is the more annoying part. In >general, when I?m developing something, on both >my laptop and home pc (both win7prox64), this >happens. In my experience, in fact, most people, >even if they are very experienced, have random >stability issues with e-studio. My question then >is: does the list have similar issues? Say, if >you?ve been doing some development, what is the >chance that e-prime will crash within 60 >minutes? I?m estimating it at 80% here. > >Cheers, > >Michiel > >Michiel Sovij?rvi-Spap? > >Helsinki Institute for Information Technology > >Aalto & Helsingin Yliopisto, > >Finland > >-- >You received this message because you are >subscribed to the Google Groups "E-Prime" group. >To unsubscribe from this group and stop >receiving emails from it, send an email to >e-prime+unsubscribe at googlegroups.com. >To post to this group, send email to >e-prime at googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/e-prime/035401cec5bb%2482669440%248733bcc0%24%40eu. >For more options, visit >https://groups.google.com/groups/opt_out. > > >-- >David Vinson, Ph.D. >ESRC Research Fellow >Cognitive, Perceptual and Brain Sciences Research Department >University College London >26 Bedford Way, London WC1H 0AP >Tel +44 >(0)20 7679 5311 (UCL internal ext. 25311) > > > >-- >You received this message because you are >subscribed to the Google Groups "E-Prime" group. >To unsubscribe from this group and stop >receiving emails from it, send an email to >e-prime+unsubscribe at googlegroups.com. >To post to this group, send email to >e-prime at googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/e-prime/5256C0BB.7000800%40ucl.ac.uk. > >For more options, visit >https://groups.google.com/groups/opt_out. > > > > >On 10 October 2013 17:54, David McFarlane ><mcfarla9 at msu.edu> wrote: >Michiel, > >Good question, and I am eager to hear from >others. I have encouraged users at my location >to move up to EP2.0.10, but that's going slowly, >and we do run into some troubles because we have >to get used to new ways of doing things in >EP2.0.10. So I do not have a lot of development >experience with it yet, my experience so far is >mostly instructional and explorational. Based >only on that, I like EP2.0.10 a lot, it >introuduces a *lot* of good features, even some >of the problems turn out to be features once >they are properly understood (Generate PreRun is >one of those, and I will mention another below). > >Now to address a couple points in particular. > >First, EP2 is not just "pretty much" a final >release, it *is* officially a final release since EP2.0.10.242. > >And your commenting example... Yes, that >trippped me up at first too, and it breaks one >of the exercises in my video course, and I found >it very annoying because I used /* */ a lot to >comment things out & in. But try the >following: Select some lines of code. Now >press Ctrl+' (that's the Ctrl key along with the >apostrophe key). See all those lines get >commented with a "'" added to the start? Now >for the fun part, with those lines still >selected, press Ctrl+Shift+' -- see all those >lines now become uncommented? Now press Ctrl+' >twice -- see it add two "'" at the start of each >line? Then press Ctrl+Shift+' once, then twice, >to see it remove each leading "'" in >turn. Pretty cool, huh? I sure thought so once >I figured it out. So much easier than "/* >*/"! Now I just use "''" (double "'") to mark >provisional lines during development, I can >easily search for "''" throughout the program >later to fix up those lines before final release >of a program. Etc. So this is one of those >"problems" that is really a feature. > >Once again, PST makes a pretty good product, but >utterly fails to explain it well enough to >customers. Just business as usual for them, but >opening opportunities for people like me. > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) >PST's trained staff take any and all questions >at >https://support.pstnet.com >, and they strive to respond to all requests in >24-48 hours, so make full use of it. 3) In >addition, PST offers several instructional >videos on their YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do get an answer from PST staff, >please extend the courtesy of posting their >reply back here for the sake of others. >\---- > > > >At 10/10/2013 09:20 AM Thursday, Cognitology wrote: >Given that E-Prime 2 is now pretty much a final >release, I was wondering how many of you feel it >remains *particularly* instable? I mean, >E-Studio (2, pro), latest version, and I don?t >stupid crashes (say, recursively calling the >sessionproc from a list within sessionproc). Just things like >? Writing inline: >Try typing: >/* >Hoppa >*/. > >Works! Automatically becomes >?/* >?Hoppa >?*/. > >Now commented out. However, type in an inline (not the user part) >?/* >Hoppa >*/....CRASH! > >? Just dragging objects around, adding >attributes, all sorts of randomness. Sometimes, >there are nice big red crosses where graphics usually are. > >The latter is the more annoying part. In >general, when I?m developing something, on both >my laptop and home pc (both win7prox64), this >happens. In my experience, in fact, most people, >even if they are very experienced, have random >stability issues with e-studio. My question then >is: does the list have similar issues? Say, if >you?ve been doing some development, what is the >chance that e-prime will crash within 60 >minutes? I?m estimating it at 80% here. > >Cheers, >Michiel > >Michiel Sovij?rvi-Spap? >Helsinki Institute for Information Technology >Aalto & Helsingin Yliopisto, >Finland -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5256d426.0452320a.79c4.1664SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/DUB403-EAS2839CE39E1D5EE16C85A860AD1E0%40phx.gbl. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mspape at cognitology.eu Thu Oct 10 20:13:01 2013 From: mspape at cognitology.eu (Michiel Sovijarvi-Spape) Date: Thu, 10 Oct 2013 20:13:01 +0000 Subject: E-Prime Stability Message-ID: Hi, Well, I know it is a billed as a final release, but until the documentation is done well, and in place, as was the case for e1.2, I think it cannot be considered such. Scattering the documentation around in the old helpfile, new features guide and several knowledge base articles does not lead to a solid workflow. We will hope for the long promised new user-guide + ebasic guide that is complete and coherent to come along with E-Prime 2 final final version ?. The top-of-procedure vs before-object-run, I found particularly annoying, actually. While I agree this is a good feature, it is similar to textdisplays and slides being set to 75% by default and prerelease == duration by default: good features but they will lead to interesting results if you are used to the old way. A bit like charms and the start menu of Windows 8: here?s the new way, we think it is better, cope. I?m also hoping, by the way, that some of the promised features will be implemented soonish? Global variables (or something of the sort, I forgot the name), more extended use of task events, etc. In other news, we completed our new E-Primer and it should be out soon! I put you in the acknowledgements as well, but I think this is the more appropriate venue, given I don?t know how many years. Best, Michiel Sent from Windows Mail From: David McFarlane Sent: ?Thursday?, ?10? ?October? ?2013 ?18?:?54 To: e-prime at googlegroups.com Michiel, Good question, and I am eager to hear from others. I have encouraged users at my location to move up to EP2.0.10, but that's going slowly, and we do run into some troubles because we have to get used to new ways of doing things in EP2.0.10. So I do not have a lot of development experience with it yet, my experience so far is mostly instructional and explorational. Based only on that, I like EP2.0.10 a lot, it introuduces a *lot* of good features, even some of the problems turn out to be features once they are properly understood (Generate PreRun is one of those, and I will mention another below). Now to address a couple points in particular. First, EP2 is not just "pretty much" a final release, it *is* officially a final release since EP2.0.10.242. And your commenting example... Yes, that trippped me up at first too, and it breaks one of the exercises in my video course, and I found it very annoying because I used /* */ a lot to comment things out & in. But try the following: Select some lines of code. Now press Ctrl+' (that's the Ctrl key along with the apostrophe key). See all those lines get commented with a "'" added to the start? Now for the fun part, with those lines still selected, press Ctrl+Shift+' -- see all those lines now become uncommented? Now press Ctrl+' twice -- see it add two "'" at the start of each line? Then press Ctrl+Shift+' once, then twice, to see it remove each leading "'" in turn. Pretty cool, huh? I sure thought so once I figured it out. So much easier than "/* */"! Now I just use "''" (double "'") to mark provisional lines during development, I can easily search for "''" throughout the program later to fix up those lines before final release of a program. Etc. So this is one of those "problems" that is really a feature. Once again, PST makes a pretty good product, but utterly fails to explain it well enough to customers. Just business as usual for them, but opening opportunities for people like me. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/10/2013 09:20 AM Thursday, Cognitology wrote: >Given that E-Prime 2 is now pretty much a final >release, I was wondering how many of you feel it >remains *particularly* instable? I mean, >E-Studio (2, pro), latest version, and I don?t >stupid crashes (say, recursively calling the >sessionproc from a list within sessionproc). Just things like >? Writing inline: >Try typing: >/* >Hoppa >*/. > >Works! Automatically becomes >?/* >?Hoppa >?*/. > >Now commented out. However, type in an inline (not the user part) >?/* >Hoppa >*/....CRASH! > >? Just dragging objects around, adding >attributes, all sorts of randomness. Sometimes, >there are nice big red crosses where graphics usually are. > >The latter is the more annoying part. In >general, when I?m developing something, on both >my laptop and home pc (both win7prox64), this >happens. In my experience, in fact, most people, >even if they are very experienced, have random >stability issues with e-studio. My question then >is: does the list have similar issues? Say, if >you?ve been doing some development, what is the >chance that e-prime will crash within 60 >minutes? I?m estimating it at 80% here. > >Cheers, >Michiel > >Michiel Sovij?rvi-Spap? >Helsinki Institute for Information Technology >Aalto & Helsingin Yliopisto, >Finland -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5256cda9.893d320a.34a6.68c9SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/DUB403-EAS455B3B62120372241CD42EAD1E0%40phx.gbl. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From haslinger.hans11 at gmail.com Mon Oct 14 09:17:13 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Mon, 14 Oct 2013 02:17:13 -0700 Subject: changing border color of a slide image after clicking on it In-Reply-To: <11000327-bee5-4ad7-a9d8-156efbb73846@googlegroups.com> Message-ID: Does anyone have an idea? I'm a bit lost. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/7cc9d089-484d-454b-9a91-e29930d81c98%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From haslinger.hans11 at gmail.com Mon Oct 14 13:39:09 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Mon, 14 Oct 2013 06:39:09 -0700 Subject: changing border color of a slide image after clicking on it In-Reply-To: <7cc9d089-484d-454b-9a91-e29930d81c98@googlegroups.com> Message-ID: > > Ok. > I've tried another piece of code for changing the border color of the chosen slide image: Dim hitObject As SlideImage Set hitObject = CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) hitObject.BorderColor = CColor("cyan") hitObject.Draw Sleep 5000 hitObject.BorderColor = CColor("black") The problem is, that the new border color only appears when the sound file is over. How can i accomplish, that the border color changes immediately after cklicking? Is there a way of programming, that the subjects can correct there given answer so long as the sound file is running, if they are changing their minds? Best regards Hans -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/e1936f8b-f931-43f3-80c1-6a61686db924%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From balshan.bashlan at gmail.com Mon Oct 14 14:00:26 2013 From: balshan.bashlan at gmail.com (Chen G) Date: Mon, 14 Oct 2013 07:00:26 -0700 Subject: randomizing blocks Message-ID: Hello, I'm trying to design an experiment that consists of several blocks of stimuli, such that the order of stimuli within each block is fixed, but the order of the blocks is random. For some reason I can't get it to work - when I run the experiment stimuli belonging to different blocks are getting mixed. I used a main List object under the SessionProc with references to the different blocks in the Nested column. Each block is itself a List object which contains the relevant stimuli for that block. I tried defining one procedure for all the blocks and I also tried defining a separate procedure for each block. None seem to produce the desired results. Any idea what I did wrong? Thanks, Chen -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5a1d1ff7-47ab-486a-9802-01094940c3e9%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vecchio.dani at gmail.com Mon Oct 14 14:39:42 2013 From: vecchio.dani at gmail.com (Daniela Vecchio) Date: Mon, 14 Oct 2013 07:39:42 -0700 Subject: beads task Message-ID: Hi everyone, I'm trying to build a task in which a series of beads are extracted from a box who contains different percentage of blue or red beads .What I need is that the sequence of extractions is stored, updated and then show at the bottom of the same slide that shows the current extractions. The same slide, therefore, should contain the current extraction image at the top of the screen, while the memory sequence of the beads previously extracted is at the bottom. could you help me with that? thanks a lot Daniela -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/e1f00799-20d2-4dc2-a648-cac28779c5d1%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon Oct 14 18:22:55 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 14 Oct 2013 14:22:55 -0400 Subject: 2 slides equal to one time duration In-Reply-To: <0b27fe82-4622-4701-a21d-4c6a6e6ff199@googlegroups.com> Message-ID: Not sure I follow your description of the problem. But let's suppose you have two Slides in your Procedure, let's call them ASlide and BSlide. ASlide takes a response, and the Procedure moves on to present BSlide whenever ASlide gets a response, or 2000 ms, whichever comes first. And you want the total duration for ASlide & BSlide to be 2500 ms, i.e., BSlide should last for 2500 - (ASlide_actual_duration). There are many ways to skin this cat. My favorite method goes as follows. Set the Duration of BSlide to 2500, and in an Inline between ASlide and BSlide, do the following: SetNextTargetOnsetTime ASlide.OnsetTime That's all! Understanding how this works takes some deeper understanding of E-Prime timing models & mechanisms, more than I can go into here, but look at the SetNextTargetOnsetTime topic in the E-Basic Help facility. But in short, with that bit of code, BSlide will use the actual OnsetTime from ASlide in order to compute its own ending time, and so will end at 2500 ms from the OnsetTime of ASlide, whithout you having to do anything more. Presto! ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/8/2013 10:00 PM Tuesday, Kim Goodyear wrote: >I am trying to have two sequential slides that are equal to one time >duration of 2500 ms. The first slide and the second slide are >completely identical, except in the second slide the text color >changes to red so that the participant can see their selection, I >want the first slide to terminate and then have the second slide >come up so that they both equal the same 2500 ms. Since the >response time will vary I don't know how to make both slides equal >to the same 2500. I don't know why, but if the buttons aren't >selected right away, the total duration is around 5000, or if there >is a delay in the response, the total duration is around 4200. I am >not sure how to fix this issue, any advice would be great. Here is >my inline script: > >Dim ResetSlide as integer >Dim x as integer > >ResetSlide = StimDisplay.Duration + StimDisplay2.Duration >ResetSlide = x >x = 2500 -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/525c3688.2cdd320a.3305.55f9SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Mon Oct 14 18:31:42 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 14 Oct 2013 14:31:42 -0400 Subject: changing border color of a slide image after clicking on it In-Reply-To: <11000327-bee5-4ad7-a9d8-156efbb73846@googlegroups.com> Message-ID: So, the line Image1.BorderColor = CColor("cyan") tells E-Prime to use that border color the next time that it draws your SlideImage, but of course, that will not happen until you tell E-Prime to redraw it. Try something like the following: Image1.BorderColor = CColor("cyan") Image1.Draw and see the SlideImage and SlideImage.Draw topics in the E-Basic Help facility. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/9/2013 10:23 AM Wednesday, haslinger.hans11 at gmail.com wrote: >At the moment I am programming a multiple choice test. >In this test, there is a Stimulus (a slide image) and 4 possible >answers (slide images) given. >The subjects have to choose one of the 4 answers by clicking on it. > >At the same time there is a sound-file presented, which is a little >story describing the stimulus-image. >The subjects can answer until the complete story is presented. >So far it was no huge problem for me. > >But now i want to highlight the given answer by changing the border >color of the slide image that has been clicked. > >By now I could only accomplish, that the border color changes in the >following slide state but not in the current one. >I also didn't accomplish, that the border color changes back to the >original color in the next slide states. > >I hope you understand what my Problem is and could give me a hand. > >Best regards >Hans > > > >Here is the inline code I produced so far (the green part is what >i've tried by myself to solve my problem. The rest of the code works >fine so far): > > > Dim theState as SlideState > Set theState = ExternalCausesSlide.States("Default") > Dim next_mX as Long, next_mY as Long > Dim strHit As String > Dim theMouseResponseData As MouseResponseData > > 'Was there a response? > If ExternalCausesSlide.InputMasks.Responses.Count > 0 Then > 'Get the mouse response > Set theMouseResponseData = > CMouseResponseData(ExternalCausesSlide.InputMasks.Responses(1)) > > 'Determine string name of SlideImage or SlideText object at > 'mouse click coordinates. Assign that value to strHit > strHit = > theState.HitTest(theMouseResponseData.CursorX, theMouseResponseData.CursorY) > > 'if strHit equals the two buttons, then strHit will > be logged, game will move onto next trial. > > If strHit = ("Image1") or strHit = ("Image2") > or strHit = ("Image3")or strHit = ("Image4") Then > c.SetAttrib "response", strHit > 'if click is off, then restart slide 2 so nothing > changes on the screen. no data will be logged in this case. > Else > Goto restart2 > End If > >'Compare string name where mouse click occurred to CorrectAnswer >'attribute on each trial, and score response >'NOTE: This comparison is case sensitive >If strHit = c.GetAttrib("CorrectEmotion") Then >ExternalCausesSlide.ACC = 1 >Else >ExternalCausesSlide.ACC = 0 >End If > > >If strHit = ("Image1") Then >Dim Image1 As SlideImage >Set Image1 = >CSlideImage(ExternalCausesSlide.States("Default").Objects("Image1")) >Image1.BorderColor = CColor("cyan") >End If > End if -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/525c3897.8570320a.7abf.7f24SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Mon Oct 14 18:42:52 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 14 Oct 2013 14:42:52 -0400 Subject: randomizing blocks In-Reply-To: <5a1d1ff7-47ab-486a-9802-01094940c3e9@googlegroups.com> Message-ID: Chen, I must be missing something, because I cannot see what's wrong here. I imagine that you have a structure like SessionProc BlockList BlockAProc BlockATrialList BlockBProc BlockBTrialLIst ... (there are actually better ways to structure this (e.g., using a single BlockProc, and using an attribute to select the trial List), but this is how most beginners would do it). In that case, if you set Order of BlockList to Random, and Order of each BlockXTrialList to Sequential, then E-Prime will present your blocks in random order, but trials within each block in sequential order (I have students practice this in my online course). What am I missing? ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/14/2013 10:00 AM Monday, Chen G wrote: >I'm trying to design an experiment that consists of several blocks >of stimuli, such that the order of stimuli within each block is >fixed, but the order of the blocks is random. For some reason I >can't get it to work - when I run the experiment stimuli belonging >to different blocks are getting mixed. >I used a main List object under the SessionProc with references to >the different blocks in the Nested column. Each block is itself a >List object which contains the relevant stimuli for that block. I >tried defining one procedure for all the blocks and I also tried >defining a separate procedure for each block. None seem to produce >the desired results. >Any idea what I did wrong? > >Thanks, > >Chen -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/525c3b35.893d320a.61b5.ffff8050SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From kgoodyea at gmail.com Mon Oct 14 18:51:04 2013 From: kgoodyea at gmail.com (Kim Goodyear) Date: Mon, 14 Oct 2013 11:51:04 -0700 Subject: 2 slides equal to one time duration In-Reply-To: <0b27fe82-4622-4701-a21d-4c6a6e6ff199@googlegroups.com> Message-ID: Hi David, Thank you for your feedback. This was very informative! The only issue that I have is that this works when there is a response to "ASlide," if there is no response then the total duration of the 2 slides is different. Should I make the duration of "ASlide" something different than 2500? On Tuesday, October 8, 2013 10:00:20 PM UTC-4, Kim Goodyear wrote: > > I am trying to have two sequential slides that are equal to one time > duration of 2500 ms. The first slide and the second slide are completely > identical, except in the second slide the text color changes to red so that > the participant can see their selection, I want the first slide to > terminate and then have the second slide come up so that they both equal > the same 2500 ms. Since the response time will vary I don't know how to > make both slides equal to the same 2500. I don't know why, but if the > buttons aren't selected right away, the total duration is around 5000, or > if there is a delay in the response, the total duration is around 4200. I > am not sure how to fix this issue, any advice would be great. Here is my > inline script: > > Dim ResetSlide as integer > Dim x as integer > > ResetSlide = StimDisplay.Duration + StimDisplay2.Duration > ResetSlide = x > x = 2500 > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/aed0db7d-7347-4b73-bfee-5adff36d01ef%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon Oct 14 19:07:57 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 14 Oct 2013 15:07:57 -0400 Subject: 2 slides equal to one time duration In-Reply-To: Message-ID: First, PLEASE PLEASE folks, when you reply, include the previous discussion! I don't mean to pick on you personally, Kim, but others keep doing this and we have to get a firm message out. A week or so might easily go by between posts, and by then I forgot what I or others have already contributed. In this case I do recall, but it is a great courtesy to spare others the trouble by including *all* of the relevant previous discussion in your followups. Now, as I said before, I had to make some guesses because you did not put all the specifications into your original post. I had to guess that the Duration of your "ASlide" was less than 2500, now we have that clarified, thanks. So first, did you try my suggestion? If you did, then you should find that, when ASlide runs the full 2500 ms (or even longer), BSlide will show for exactly one video frame. To avoid this you need to add just a bit more inline code and one more thing to your Procedure, which I will tell you as soon as you perform the exercise that I suggested and can tell whether or not I know what I am talking about (or perhaps with that hint you will just figure it out on your own). Oh, and what Duration *do* you use for your "ASlide"? Best, -- David McFarlane At 10/14/2013 02:51 PM Monday, Kim Goodyear wrote: >Hi David, > >Thank you for your feedback. This was very informative! The only >issue that I have is that this works when there is a response to >"ASlide," if there is no response then the total duration of the 2 >slides is different. Should I make the duration of "ASlide" >something different than 2500? > >On Tuesday, October 8, 2013 10:00:20 PM UTC-4, Kim Goodyear wrote: >I am trying to have two sequential slides that are equal to one time >duration of 2500 ms. The first slide and the second slide are >completely identical, except in the second slide the text color >changes to red so that the participant can see their selection, I >want the first slide to terminate and then have the second slide >come up so that they both equal the same 2500 ms. Since the >response time will vary I don't know how to make both slides equal >to the same 2500. I don't know why, but if the buttons aren't >selected right away, the total duration is around 5000, or if there >is a delay in the response, the total duration is around 4200. I am >not sure how to fix this issue, any advice would be great. Here is >my inline script: > >Dim ResetSlide as integer >Dim x as integer > >ResetSlide = StimDisplay.Duration + StimDisplay2.Duration >ResetSlide = x >x = 2500 -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/525c4117.6801320a.4296.7fcdSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From balshan.bashlan at gmail.com Mon Oct 14 21:26:30 2013 From: balshan.bashlan at gmail.com (Chen G) Date: Mon, 14 Oct 2013 14:26:30 -0700 Subject: randomizing blocks In-Reply-To: <525c3b35.893d320a.61b5.ffff8050SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks, David. The structure I have is a bit different, it looks either like this: SessionProc BlockList BlockATrialList BlockAProc BlockBTrialLIst BlockBProc or if I try using one BlockProc for both lists and specify it only at the BlockList level, then it looks like: SessionProc BlockList BlockATrialList BlockBTrialLIst BlockBProc I don't seem to be able to "nest" a List object under BlockProc as in your outline. Any suggestions? Thanks, Chen On Monday, October 14, 2013 9:42:52 PM UTC+3, McFarlane, David wrote: > > Chen, > > I must be missing something, because I cannot see what's wrong > here. I imagine that you have a structure like > > SessionProc > BlockList > BlockAProc > BlockATrialList > BlockBProc > BlockBTrialLIst > ... > > (there are actually better ways to structure this (e.g., using a > single BlockProc, and using an attribute to select the trial List), > but this is how most beginners would do it). > > In that case, if you set Order of BlockList to Random, and Order of > each BlockXTrialList to Sequential, then E-Prime will present your > blocks in random order, but trials within each block in sequential > order (I have students practice this in my online course). > > What am I missing? > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/14/2013 10:00 AM Monday, Chen G wrote: > >I'm trying to design an experiment that consists of several blocks > >of stimuli, such that the order of stimuli within each block is > >fixed, but the order of the blocks is random. For some reason I > >can't get it to work - when I run the experiment stimuli belonging > >to different blocks are getting mixed. > >I used a main List object under the SessionProc with references to > >the different blocks in the Nested column. Each block is itself a > >List object which contains the relevant stimuli for that block. I > >tried defining one procedure for all the blocks and I also tried > >defining a separate procedure for each block. None seem to produce > >the desired results. > >Any idea what I did wrong? > > > >Thanks, > > > >Chen > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/415018b9-e112-40c3-86d5-beb607a921ec%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon Oct 14 22:07:09 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 14 Oct 2013 18:07:09 -0400 Subject: randomizing blocks In-Reply-To: <415018b9-e112-40c3-86d5-beb607a921ec@googlegroups.com> Message-ID: Chen, >I don't seem to be able to "nest" a List object under BlockProc as >in your outline. >Any suggestions? This is basic, introductory knowledge that you should get from working through the Guides that came with E-Prime, and/or by taking a training course, and you need to do that first. Regards, -- David McFarlane At 10/14/2013 05:26 PM Monday, Chen G wrote: >Thanks, David. >The structure I have is a bit different, it looks either like this: > >SessionProc > BlockList >BlockATrialList >BlockAProc >BlockBTrialLIst >BlockBProc > >or if I try using one BlockProc for both lists and specify it only >at the BlockList level, then it looks like: > >SessionProc > BlockList >BlockATrialList >BlockBTrialLIst >BlockBProc > >I don't seem to be able to "nest" a List object under BlockProc as >in your outline. >Any suggestions? > >Thanks, >Chen > > >On Monday, October 14, 2013 9:42:52 PM UTC+3, McFarlane, David wrote: >Chen, > >I must be missing something, because I cannot see what's wrong >here. I imagine that you have a structure like > >SessionProc > BlockList > BlockAProc > BlockATrialList > BlockBProc > BlockBTrialLIst > ... > >(there are actually better ways to structure this (e.g., using a >single BlockProc, and using an attribute to select the trial List), >but this is how most beginners would do it). > >In that case, if you set Order of BlockList to Random, and Order of >each BlockXTrialList to Sequential, then E-Prime will present your >blocks in random order, but trials within each block in sequential >order (I have students practice this in my online course). > >What am I missing? > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx > >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at >https://support.pstnet.com , and they >strive to respond to all requests in 24-48 hours, so make full use of >it. 3) In addition, PST offers several instructional videos on their >YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do >get an answer from PST staff, please extend the courtesy of posting >their reply back here for the sake of others. >\---- > > >At 10/14/2013 10:00 AM Monday, Chen G wrote: > >I'm trying to design an experiment that consists of several blocks > >of stimuli, such that the order of stimuli within each block is > >fixed, but the order of the blocks is random. For some reason I > >can't get it to work - when I run the experiment stimuli belonging > >to different blocks are getting mixed. > >I used a main List object under the SessionProc with references to > >the different blocks in the Nested column. Each block is itself a > >List object which contains the relevant stimuli for that block. I > >tried defining one procedure for all the blocks and I also tried > >defining a separate procedure for each block. None seem to produce > >the desired results. > >Any idea what I did wrong? > > > >Thanks, > > > >Chen -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/525c6b17.629a320a.6156.0043SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From haslinger.hans11 at gmail.com Tue Oct 15 08:56:50 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Tue, 15 Oct 2013 01:56:50 -0700 Subject: changing border color of a slide image after clicking on it In-Reply-To: <525c3897.8570320a.7abf.7f24SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: > > Hallo David I've tried another code for the changing border color part: Dim hitObject As SlideImage Set hitObject = CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) hitObject.BorderColor = CColor("cyan") hitObject.Draw Sleep 5000 hitObject.BorderColor = CColor("black") If I understood this code right, that means the color of the image,which was clicked, changes to "cyan "and after 5 sec it changes back to "black". But now I have some problems timing the change of color and the sound file. At first I set "End Action" in the Slide Properties to "(none)" and "End Sound Action" in the Slide Sound Out Properties to "Terminate". Then the color was only changing after the soundfile was over. Then I changed the settings to "End Action" -> Terminate and added "Sleep 5000" in the inline code. Now the color changes immediately after clicking and stays for the 5sec before changing back to black But if the Sleep Time after clicking is longer then the remaining time of the SoundOut, the SoundOut of the next Slide State isn't starting. Is there any command which sets the Sleep time to something like "remaining time of SoundOut"? Best regards Hans -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/3a01dd5d-8d54-4518-9b79-b2145f89cdbb%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Oct 15 14:37:46 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 15 Oct 2013 10:37:46 -0400 Subject: changing border color of a slide image after clicking on it In-Reply-To: <3a01dd5d-8d54-4518-9b79-b2145f89cdbb@googlegroups.com> Message-ID: Hans, I am afraid that I do not quite follow all of this. You refer to a Slide, a SoundOut, and an Inline, and I do not know how they all interrelate (in particular, I do not recall the complication of a SoundOut in your first post). At this point I would need you to draw out a very clear diagram of your Procedure structure, along with clear specifications of what you want it to do. That said, first, you do not understand your code correctly. As written, it means the color of the image, which was clicked, changes to "cyan" and would later change to "black" at whatever time your hitObject gets redrawn, and goodness knows when that will happen. If you want your inline code to make the BorderColor black, then you must also follow that line with another hitObject.Draw command, which is missing from your code without comment. If you left that out on purpose (e.g., because the redraw will be taken care of by a later object), then you must add a comment to your code to explain that. As far as settting the Sleep time to something like "remaining time of SoundOut", I suppose you might use some combination of Clock.Read, SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I think that a sloppy way to do things. I would generally rather let the SoundOut handle the timing, and then follow that with more inline code to do whatever needs doing. Again, we need a better look at your Procedure structure, you may need to revise it. As a general strategy, I prefer to do as much as possible through the program structure & object properties, and to leave less to inline code. Regards, -- David McFarlane At 10/15/2013 04:56 AM Tuesday, haslinger.hans11 at gmail.com wrote: >Hallo David > > >I've tried another code for the changing border color part: > >Dim hitObject As SlideImage >Set hitObject = >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > hitObject.BorderColor = CColor("cyan") > hitObject.Draw > Sleep 5000 > hitObject.BorderColor = CColor("black") > > >If I understood this code right, that means the color of the >image,which was clicked, changes to "cyan "and after 5 sec it >changes back to "black". > >But now I have some problems timing the change of color and the sound file. > >At first I set "End Action" in the Slide Properties to "(none)" and >"End Sound Action" in the Slide Sound Out Properties to "Terminate". >Then the color was only changing after the soundfile was over. > >Then I changed the settings to "End Action" -> Terminate and added >"Sleep 5000" in the inline code. >Now the color changes immediately after clicking and stays for the >5sec before changing back to black >But if the Sleep Time after clicking is longer then the remaining >time of the SoundOut, the SoundOut of the next Slide State isn't starting. > >Is there any command which sets the Sleep time to something like >"remaining time of SoundOut"? > > >Best regards >Hans -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/525d5346.c819320a.0983.1c54SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From haslinger.hans11 at gmail.com Wed Oct 16 09:20:31 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Wed, 16 Oct 2013 02:20:31 -0700 Subject: changing border color of a slide image after clicking on it In-Reply-To: <525d5346.c819320a.0983.1c54SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Hallo David Thank you for your help. > At this point I would need you to draw out a very clear diagram of your Procedure structure, along with clear > specifications of what you want it to do The Procedure looks like this: ... ... ExternalCausesProc ExternalCausesList ExternalCausesTrialProc Instruction (TextBox) restart2 (Label) ExternalCausesSlide (Slide) InLine2 (InLineCode) ... ... After a short Instruction, there is an Image presented on the ExternalCausesSlide as a Stimulus (e.g. child is getting a birthday present). There is also a SoundOut on the ExternalCausesSlide which describes the scene in the Image. Additionaly there are 4 smaller Images as possible answers for the Stimulus Image. I've made an attribute for every Image and the SoundOut in my ExternalCausesList. Subjects should have time to click on one of the 4 target Images until the SoundOut was played completely. I want to highlight the Image a subject chooses by changing the border color of that Image to "cyan" (black is my default border color) so the subject knows that its answer was registered and it can change the current answer (this is another thing i could need some help with). I tried to implement the following code (which i've found somewhere in this google group) for changing the border color to "cyan" and back to "black" (default setting) before a new Stimulus is presented: Dim hitObject As SlideImage Set hitObject = CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) hitObject.BorderColor = CColor("cyan") hitObject.Draw Sleep 5000 hitObject.BorderColor = CColor("black") The current slide should be terminated after the Sound is played so I've set "End Sound Action" to "Terminate" and "End Action" (in the ExternalCausesSlide Properties) to "none". Now the color changed to "cyan" after the Sound was played and not immediately after the click. So i've changed the Settings to "End Action" -> "Terminate" and "EndSoundAction" -> "Terminate". Now the color changed immediately after the click occured and remained "Cyan" for 5sec before changing back to "black". But if the click occured at the end of the SoundOut with less than 5sec remaining, there was an interference with the Sound of the following Stimulus. Then I've tried "End Action" -> "Terminate" and "End Sound Action" -> "none". Now the Color changes immediately after the click and remains for the 5 sec no matter if the Sound is completely played or not. But if no click occurs, there is no termination. Now I thought I could use the "Terminate/Terminate"-setting and a Sleep time which is equal to the remaining duration of the sound file after the click occured, (something like Sleep "Duration Sound - RT (Time until click?)). This way, the slide would terminate after the click + Sleep time or if the sound file was played completely (if there was no click). There would also not be any interference with the following Sound file, because the Sleep time is never longer than the Sound file itself. > That said, first, you do not understand your code correctly. As > written, it means the color of the image, which was clicked, changes > to "cyan" and would later change to "black" at whatever time your > hitObject gets redrawn, and goodness knows when that will happen. Actually, it changes back to "black". But maybe that is just because "black" ist my default border color and the settings are just reset to the default settings after Sleep. > As a general strategy, I prefer to do as much as possible through the > program structure & object properties, and to leave less to inline code. Actually this was the prefered strategy for my project and it worked fine except for strHitTest for collecting Mouse Responses and logging the correct answer. Basically my program is completed, but i would like to add some little improvements, like this highlighting thing, to make it look better I hope my remarks are not too confusing. Best regards Hans Am Dienstag, 15. Oktober 2013 16:37:46 UTC+2 schrieb McFarlane, David: > Hans, > > I am afraid that I do not quite follow all of this. You refer to a > Slide, a SoundOut, and an Inline, and I do not know how they all > interrelate (in particular, I do not recall the complication of a > SoundOut in your first post). At this point I would need you to draw > out a very clear diagram of your Procedure structure, along with > clear specifications of what you want it to do. > > That said, first, you do not understand your code correctly. As > written, it means the color of the image, which was clicked, changes > to "cyan" and would later change to "black" at whatever time your > hitObject gets redrawn, and goodness knows when that will happen. If > you want your inline code to make the BorderColor black, then you > must also follow that line with another hitObject.Draw command, which > is missing from your code without comment. If you left that out on > purpose (e.g., because the redraw will be taken care of by a later > object), then you must add a comment to your code to explain that. > > As far as settting the Sleep time to something like "remaining time > of SoundOut", I suppose you might use some combination of Clock.Read, > SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I think > that a sloppy way to do things. I would generally rather let the > SoundOut handle the timing, and then follow that with more inline > code to do whatever needs doing. Again, we need a better look at > your Procedure structure, you may need to revise it. > > As a general strategy, I prefer to do as much as possible through the > program structure & object properties, and to leave less to inline code. > > Regards, > -- David McFarlane > > > At 10/15/2013 04:56 AM Tuesday, haslinge... at gmail.com wrote: > >Hallo David > > > > > >I've tried another code for the changing border color part: > > > >Dim hitObject As SlideImage > >Set hitObject = > >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > hitObject.BorderColor = CColor("cyan") > > hitObject.Draw > > Sleep 5000 > > hitObject.BorderColor = CColor("black") > > > > > >If I understood this code right, that means the color of the > >image,which was clicked, changes to "cyan "and after 5 sec it > >changes back to "black". > > > >But now I have some problems timing the change of color and the sound > file. > > > >At first I set "End Action" in the Slide Properties to "(none)" and > >"End Sound Action" in the Slide Sound Out Properties to "Terminate". > >Then the color was only changing after the soundfile was over. > > > >Then I changed the settings to "End Action" -> Terminate and added > >"Sleep 5000" in the inline code. > >Now the color changes immediately after clicking and stays for the > >5sec before changing back to black > >But if the Sleep Time after clicking is longer then the remaining > >time of the SoundOut, the SoundOut of the next Slide State isn't > starting. > > > >Is there any command which sets the Sleep time to something like > >"remaining time of SoundOut"? > > > > > >Best regards > >Hans > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/ef0333ba-998a-4ca5-a96a-83063ad5707e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hftibboel at gmail.com Wed Oct 16 15:30:51 2013 From: hftibboel at gmail.com (hftibboel at gmail.com) Date: Wed, 16 Oct 2013 08:30:51 -0700 Subject: IsPending help...? Message-ID: Dear all, I was wondering if anyone has a script using the IsPending method (the one on the Eprime website doesn't seem to work...) or if anyone can explain how to record multiple responses using this method, and to send triggers for both responses as well? The idea is that we want to present a Stimulus1 for 150 ms, that requires Response1 (or not), followed by a fixation screen for 1350 ms, followed by a Stimulus2 that appears for 250 ms, that requires Response2 (or not), followed by another fixation screen for 1350 ms. The difficulty is that participants should be able to perform Response1 anytime after the presentation of Stimulus1 (so participants should still be able to respond to stimulusS even when Stimulus2 is presented) and they should be able to perform Response2 anytime after the presentation of Stimulus2. In other words, when Stimulus2 is presented, it should be possible to record both Response1 and Response2. Another difficulty is that we would like to send triggers directly after a response is given (not at the termination of the slide, and not affecting the duration of the stimuli or the fixation screen). We would appreciate it if anyone could give us a few pointers... Thank you and kind regards! Helen Tibboel -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/e6cf9bdc-a89e-4ed9-b70c-52c1b582f6f8%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Wed Oct 16 16:31:11 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Wed, 16 Oct 2013 12:31:11 -0400 Subject: changing border color of a slide image after clicking on it In-Reply-To: Message-ID: Hans, Ah, there's the confusion -- you referred to "SoundOut" when you meant "SlideSound". SoundOut and SlideSound share a lot of properties, but they are two different things that are used in different ways. You do not have a SoundOut in your Procedure, just a SlideSound as a sub-object of your Slide. Now here is my restatement of your specifications: - E-Prime simultaneously presents a visual stimulus (containing a number of target areas) and starts playing a sound. - The visual stimulus remains until, and only until, the sound the finishes playing. - The subject uses the mouse to respond by clicking target areas on the display, and when the subject clicks on a target area, the border of that area changes color. Now you are just stuck accomplishing that second objective. For that, I think you need to use SoundBuffer.Status -- see that topic in the E-Basic Help facility. You will also have to get access to the SoundBuffer object that plays your sound -- for that, just browse the related topics in the E-Basic Help facility, and/or look at sound-related code generated for you by E-Studio (that's how I figure all this stuff out, if I can do that then so can you :) ). And of course, you may also always contact PST Support for help, see below. Best, ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (twitter.com/EPrimeMaster) /----------- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours -- this is pretty much their substitute for proper documentation, so make full use of it. 3) In addition, PST takes questions at their Facebook page (http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 ), and offers several instructional videos there and on their YouTube channel (http://www.youtube.com/user/PSTNET ) (no Twitter feed yet, though). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \----------- haslinger.hans11 at gmail.com wrote: > Hallo David > > Thank you for your help. > > > At this point I would need you to draw > > out a very clear diagram of your Procedure structure, along > with clear specifications of what you want it to do > > > The Procedure looks like this: > > > ... > ... > > ExternalCausesProc > ExternalCausesList > ExternalCausesTrialProc > Instruction (TextBox) > restart2 (Label) > ExternalCausesSlide (Slide) > InLine2 (InLineCode) > ... > ... > > > After a short Instruction, there is an Image presented on the > ExternalCausesSlide as a Stimulus (e.g. child is getting a birthday > present). > There is also a SoundOut on the ExternalCausesSlide which describes the > scene in the Image. > Additionaly there are 4 smaller Images as possible answers for the > Stimulus Image. > I've made an attribute for every Image and the SoundOut in my > ExternalCausesList. > > Subjects should have time to click on one of the 4 target Images until > the SoundOut was played completely. > I want to highlight the Image a subject chooses by changing the border > color of that Image to "cyan" (black is my default border color) so the > subject knows that its answer was registered and it can change the > current answer (this is another thing i could need some help with). > > I tried to implement the following code (which i've found somewhere in > this google group) for changing the border color to "cyan" and back to > "black" (default setting) before a new Stimulus is presented: > > Dim hitObject As SlideImage > Set hitObject = > CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > hitObject.BorderColor = CColor("cyan") > hitObject.Draw > Sleep 5000 > > hitObject.BorderColor = CColor("black") > > > > The current slide should be terminated after the Sound is played so I've > set "End Sound Action" to "Terminate" and "End Action" (in the > ExternalCausesSlide Properties) to "none". > Now the color changed to "cyan" after the Sound was played and not > immediately after the click. > > So i've changed the Settings to "End Action" -> "Terminate" and > "EndSoundAction" -> "Terminate". > Now the color changed immediately after the click occured and remained > "Cyan" for 5sec before changing back to "black". > But if the click occured at the end of the SoundOut with less than 5sec > remaining, there was an interference with the Sound of the following > Stimulus. > > Then I've tried "End Action" -> "Terminate" and "End Sound Action" -> > "none". > Now the Color changes immediately after the click and remains for the 5 > sec no matter if the Sound is completely played or not. > But if no click occurs, there is no termination. > > > Now I thought I could use the "Terminate/Terminate"-setting and a Sleep > time which is equal to the remaining duration of the sound file after > the click occured, (something like Sleep "Duration Sound - RT (Time > until click?)). > This way, the slide would terminate after the click + Sleep time or if > the sound file was played completely (if there was no click). > There would also not be any interference with the following Sound file, > because the Sleep time is never longer than the Sound file itself. > > > > > That said, first, you do not understand your code correctly. As > written, it means the color of the image, which was clicked, changes > to "cyan" and would later change to "black" at whatever time your > hitObject gets redrawn, and goodness knows when that will happen. > > > > Actually, it changes back to "black". > But maybe that is just because "black" ist my default border color and > the settings are just reset to the default settings after Sleep. > > > > As a general strategy, I prefer to do as much as possible through the > program structure & object properties, and to leave less to inline code. > > > > Actually this was the prefered strategy for my project and it worked > fine except for strHitTest for collecting Mouse Responses and logging > the correct answer. > Basically my program is completed, but i would like to add some little > improvements, like this highlighting thing, to make it look better > > I hope my remarks are not too confusing. > > > Best regards > Hans > > > > Am Dienstag, 15. Oktober 2013 16:37:46 UTC+2 schrieb McFarlane, David: > > Hans, > > I am afraid that I do not quite follow all of this. You refer to a > Slide, a SoundOut, and an Inline, and I do not know how they all > interrelate (in particular, I do not recall the complication of a > SoundOut in your first post). At this point I would need you to draw > out a very clear diagram of your Procedure structure, along with > clear specifications of what you want it to do. > > That said, first, you do not understand your code correctly. As > written, it means the color of the image, which was clicked, changes > to "cyan" and would later change to "black" at whatever time your > hitObject gets redrawn, and goodness knows when that will happen. If > you want your inline code to make the BorderColor black, then you > must also follow that line with another hitObject.Draw command, which > is missing from your code without comment. If you left that out on > purpose (e.g., because the redraw will be taken care of by a later > object), then you must add a comment to your code to explain that. > > As far as settting the Sleep time to something like "remaining time > of SoundOut", I suppose you might use some combination of Clock.Read, > SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I think > that a sloppy way to do things. I would generally rather let the > SoundOut handle the timing, and then follow that with more inline > code to do whatever needs doing. Again, we need a better look at > your Procedure structure, you may need to revise it. > > As a general strategy, I prefer to do as much as possible through the > program structure & object properties, and to leave less to inline > code. > > Regards, > -- David McFarlane > > > At 10/15/2013 04:56 AM Tuesday, haslinge... at gmail.com > wrote: > >Hallo David > > > > > >I've tried another code for the changing border color part: > > > >Dim hitObject As SlideImage > >Set hitObject = > >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > hitObject.BorderColor = CColor("cyan") > > hitObject.Draw > > Sleep 5000 > > hitObject.BorderColor = CColor("black") > > > > > >If I understood this code right, that means the color of the > >image,which was clicked, changes to "cyan "and after 5 sec it > >changes back to "black". > > > >But now I have some problems timing the change of color and the > sound file. > > > >At first I set "End Action" in the Slide Properties to "(none)" and > >"End Sound Action" in the Slide Sound Out Properties to "Terminate". > >Then the color was only changing after the soundfile was over. > > > >Then I changed the settings to "End Action" -> Terminate and added > >"Sleep 5000" in the inline code. > >Now the color changes immediately after clicking and stays for the > >5sec before changing back to black > >But if the Sleep Time after clicking is longer then the remaining > >time of the SoundOut, the SoundOut of the next Slide State isn't > starting. > > > >Is there any command which sets the Sleep time to something like > >"remaining time of SoundOut"? > > > > > >Best regards > >Hans -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/525EBF4F.7070300%40msu.edu. For more options, visit https://groups.google.com/groups/opt_out. From haslinger.hans11 at gmail.com Thu Oct 17 10:29:29 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Thu, 17 Oct 2013 03:29:29 -0700 Subject: changing border color of a slide image after clicking on it In-Reply-To: <525EBF4F.7070300@msu.edu> Message-ID: Hallo David Thank you for the advice with SoundBuffer.Status. > Now here is my restatement of your specifications: > - E-Prime simultaneously presents a visual stimulus (containing a number > of target areas) and starts playing a sound. > - The visual stimulus remains until, and only until, the sound the > finishes playing. > - The subject uses the mouse to respond by clicking target areas on the > display, and when the subject clicks on a target area, the border of > that area changes Color Yes, that is correct. I've tried to create a code with SoundBuffer.Status. But I am not sure if it is correct that way: Dim ExternalCausesSound As SlideSoundOut Set ExternalCausesSound = CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) Dim NewBuffer As SoundBuffer Set NewBuffer = ExternalCausesSound.Buffers(1) Then i would try something like: If NewBuffer.Status = 0 Then ..... ,so if the Buffer.Status is "Stopped", the Sleep Timer would be stopped or the current SlideState would skip to the following State. (I've set the Sleep to something longer then the Duration of the Sound) So basically I would need a command which I could insert after "Then" to stop the Sleep time. Could I use "hitObject.Clear" for that? Best regards Hans I Am Mittwoch, 16. Oktober 2013 18:31:11 UTC+2 schrieb McFarlane, David: > Hans, > > Ah, there's the confusion -- you referred to "SoundOut" when you meant > "SlideSound". SoundOut and SlideSound share a lot of properties, but > they are two different things that are used in different ways. You do > not have a SoundOut in your Procedure, just a SlideSound as a sub-object > of your Slide. > > Now here is my restatement of your specifications: > - E-Prime simultaneously presents a visual stimulus (containing a number > of target areas) and starts playing a sound. > - The visual stimulus remains until, and only until, the sound the > finishes playing. > - The subject uses the mouse to respond by clicking target areas on the > display, and when the subject clicks on a target area, the border of > that area changes color. > > Now you are just stuck accomplishing that second objective. For that, I > think you need to use SoundBuffer.Status -- see that topic in the > E-Basic Help facility. You will also have to get access to the > SoundBuffer object that plays your sound -- for that, just browse the > related topics in the E-Basic Help facility, and/or look at > sound-related code generated for you by E-Studio (that's how I figure > all this stuff out, if I can do that then so can you :) ). And of > course, you may also always contact PST Support for help, see below. > > Best, > ----- > David McFarlane > E-Prime training online: > http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (twitter.com/EPrimeMaster) > > /----------- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > any and all questions at > http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive > to respond to all requests in 24-48 hours -- this is pretty much their > substitute for proper documentation, so make full use of it. 3) In > addition, PST takes questions at their Facebook page > (http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 > ), and offers several instructional videos there and on their YouTube > channel (http://www.youtube.com/user/PSTNET ) (no Twitter feed yet, > though). 4) If you do get an answer from PST staff, please extend the > courtesy of posting their reply back here for the sake of others. > \----------- > > > haslinge... at gmail.com wrote: > > Hallo David > > > > Thank you for your help. > > > > > > At this point I would need you to draw > > > > out a very clear diagram of your Procedure structure, along > > with clear specifications of what you want it to do > > > > > > The Procedure looks like this: > > > > > > ... > > ... > > > > ExternalCausesProc > > ExternalCausesList > > ExternalCausesTrialProc > > Instruction (TextBox) > > restart2 (Label) > > ExternalCausesSlide (Slide) > > InLine2 (InLineCode) > > ... > > ... > > > > > > After a short Instruction, there is an Image presented on the > > ExternalCausesSlide as a Stimulus (e.g. child is getting a birthday > > present). > > There is also a SoundOut on the ExternalCausesSlide which describes the > > scene in the Image. > > Additionaly there are 4 smaller Images as possible answers for the > > Stimulus Image. > > I've made an attribute for every Image and the SoundOut in my > > ExternalCausesList. > > > > Subjects should have time to click on one of the 4 target Images until > > the SoundOut was played completely. > > I want to highlight the Image a subject chooses by changing the border > > color of that Image to "cyan" (black is my default border color) so the > > subject knows that its answer was registered and it can change the > > current answer (this is another thing i could need some help with). > > > > I tried to implement the following code (which i've found somewhere in > > this google group) for changing the border color to "cyan" and back to > > "black" (default setting) before a new Stimulus is presented: > > > > Dim hitObject As SlideImage > > Set hitObject = > > CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > hitObject.BorderColor = CColor("cyan") > > hitObject.Draw > > Sleep 5000 > > > > hitObject.BorderColor = CColor("black") > > > > > > > > The current slide should be terminated after the Sound is played so I've > > set "End Sound Action" to "Terminate" and "End Action" (in the > > ExternalCausesSlide Properties) to "none". > > Now the color changed to "cyan" after the Sound was played and not > > immediately after the click. > > > > So i've changed the Settings to "End Action" -> "Terminate" and > > "EndSoundAction" -> "Terminate". > > Now the color changed immediately after the click occured and remained > > "Cyan" for 5sec before changing back to "black". > > But if the click occured at the end of the SoundOut with less than 5sec > > remaining, there was an interference with the Sound of the following > > Stimulus. > > > > Then I've tried "End Action" -> "Terminate" and "End Sound Action" -> > > "none". > > Now the Color changes immediately after the click and remains for the 5 > > sec no matter if the Sound is completely played or not. > > But if no click occurs, there is no termination. > > > > > > Now I thought I could use the "Terminate/Terminate"-setting and a Sleep > > time which is equal to the remaining duration of the sound file after > > the click occured, (something like Sleep "Duration Sound - RT (Time > > until click?)). > > This way, the slide would terminate after the click + Sleep time or if > > the sound file was played completely (if there was no click). > > There would also not be any interference with the following Sound file, > > because the Sleep time is never longer than the Sound file itself. > > > > > > > > > > That said, first, you do not understand your code correctly. As > > written, it means the color of the image, which was clicked, changes > > to "cyan" and would later change to "black" at whatever time your > > hitObject gets redrawn, and goodness knows when that will happen. > > > > > > > > Actually, it changes back to "black". > > But maybe that is just because "black" ist my default border color and > > the settings are just reset to the default settings after Sleep. > > > > > > > > As a general strategy, I prefer to do as much as possible through > the > > program structure & object properties, and to leave less to inline > code. > > > > > > > > Actually this was the prefered strategy for my project and it worked > > fine except for strHitTest for collecting Mouse Responses and logging > > the correct answer. > > Basically my program is completed, but i would like to add some little > > improvements, like this highlighting thing, to make it look better > > > > I hope my remarks are not too confusing. > > > > > > Best regards > > Hans > > > > > > > > Am Dienstag, 15. Oktober 2013 16:37:46 UTC+2 schrieb McFarlane, David: > > > > Hans, > > > > I am afraid that I do not quite follow all of this. You refer to a > > Slide, a SoundOut, and an Inline, and I do not know how they all > > interrelate (in particular, I do not recall the complication of a > > SoundOut in your first post). At this point I would need you to > draw > > out a very clear diagram of your Procedure structure, along with > > clear specifications of what you want it to do. > > > > That said, first, you do not understand your code correctly. As > > written, it means the color of the image, which was clicked, changes > > to "cyan" and would later change to "black" at whatever time your > > hitObject gets redrawn, and goodness knows when that will happen. > If > > you want your inline code to make the BorderColor black, then you > > must also follow that line with another hitObject.Draw command, > which > > is missing from your code without comment. If you left that out on > > purpose (e.g., because the redraw will be taken care of by a later > > object), then you must add a comment to your code to explain that. > > > > As far as settting the Sleep time to something like "remaining time > > of SoundOut", I suppose you might use some combination of > Clock.Read, > > SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I think > > that a sloppy way to do things. I would generally rather let the > > SoundOut handle the timing, and then follow that with more inline > > code to do whatever needs doing. Again, we need a better look at > > your Procedure structure, you may need to revise it. > > > > As a general strategy, I prefer to do as much as possible through > the > > program structure & object properties, and to leave less to inline > > code. > > > > Regards, > > -- David McFarlane > > > > > > At 10/15/2013 04:56 AM Tuesday, haslinge... at gmail.com > > wrote: > > >Hallo David > > > > > > > > >I've tried another code for the changing border color part: > > > > > >Dim hitObject As SlideImage > > >Set hitObject = > > >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > hitObject.BorderColor = CColor("cyan") > > > hitObject.Draw > > > Sleep 5000 > > > hitObject.BorderColor = CColor("black") > > > > > > > > >If I understood this code right, that means the color of the > > >image,which was clicked, changes to "cyan "and after 5 sec it > > >changes back to "black". > > > > > >But now I have some problems timing the change of color and the > > sound file. > > > > > >At first I set "End Action" in the Slide Properties to "(none)" > and > > >"End Sound Action" in the Slide Sound Out Properties to > "Terminate". > > >Then the color was only changing after the soundfile was over. > > > > > >Then I changed the settings to "End Action" -> Terminate and added > > >"Sleep 5000" in the inline code. > > >Now the color changes immediately after clicking and stays for the > > >5sec before changing back to black > > >But if the Sleep Time after clicking is longer then the remaining > > >time of the SoundOut, the SoundOut of the next Slide State isn't > > starting. > > > > > >Is there any command which sets the Sleep time to something like > > >"remaining time of SoundOut"? > > > > > > > > >Best regards > > >Hans > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mengyinj at gmail.com Thu Oct 17 13:26:02 2013 From: mengyinj at gmail.com (Maggie) Date: Thu, 17 Oct 2013 06:26:02 -0700 Subject: stimulus size in degrees of visual angle Message-ID: Hello, I'm just starting to learn how to use eprime and I've run into some trouble with the stimulus size. I need to place a geometric shape (i.e. triangle or square) above the fixation point, and it needs to be 3.8*?* x 3.8*? *in size. How to I convert this into pixels exactly? I'm assuming the size (height and width) in properties are in pixels too, right? Many thanks, Maggie -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/431e3b8b-57b3-4eb1-9904-9d60c3bddce8%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu Oct 17 15:37:14 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 17 Oct 2013 11:37:14 -0400 Subject: stimulus size in degrees of visual angle In-Reply-To: <431e3b8b-57b3-4eb1-9904-9d60c3bddce8@googlegroups.com> Message-ID: Maggie, E-Prime displays work in units of pixels, or %. You will have to convert that to visual angle. To do that you will have to know the physical dimensions of your screen, and the distance from the observer to the screen. From there it is just a little bit of math, which you can find in the Wikipedia article on "Visual angle". You should be able to take it from there. (Aside to PsychoPy users: Yes, PsychoPy, unlike E-Prime, will work directly in units of visual angle, after you tell it the measurements mentioned above.) ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/17/2013 09:26 AM Thursday, Maggie wrote: >Hello, > >I'm just starting to learn how to use eprime and >I've run into some trouble with the stimulus >size. I need to place a geometric shape (i.e. >triangle or square) above the fixation point, >and it needs to be 3.8? x 3.8? in size. How to I >convert this into pixels exactly? I'm assuming >the size (height and width) in properties are in pixels too, right? > >Many thanks, >Maggie -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52600435.0286320a.39d7.5850SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Thu Oct 17 15:41:34 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 17 Oct 2013 11:41:34 -0400 Subject: changing border color of a slide image after clicking on it In-Reply-To: Message-ID: Hans, I'm afraid you have lost me again. But now you should have all the pieces you need in order to do what you want, and you should be able to puzzle it out yourself from here. Best, -- David McFarlane At 10/17/2013 06:29 AM Thursday, haslinger.hans11 at gmail.com wrote: >Hallo David > >Thank you for the advice with SoundBuffer.Status. > > >Now here is my restatement of your specifications: >- E-Prime simultaneously presents a visual stimulus (containing a number >of target areas) and starts playing a sound. >- The visual stimulus remains until, and only until, the sound the >finishes playing. >- The subject uses the mouse to respond by clicking target areas on the >display, and when the subject clicks on a target area, the border of >that area changes Color > > >Yes, that is correct. > > >I've tried to create a code with SoundBuffer.Status. But I am not >sure if it is correct that way: > > >Dim ExternalCausesSound As SlideSoundOut > Set ExternalCausesSound = > CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) > > >Dim NewBuffer As SoundBuffer > Set NewBuffer = ExternalCausesSound.Buffers(1) > > >Then i would try something like: > >If NewBuffer.Status = 0 Then ..... > >,so if the Buffer.Status is "Stopped", the Sleep Timer would be >stopped or the current SlideState would skip to the following State. >(I've set the Sleep to something longer then the Duration of the Sound) >So basically I would need a command which I could insert after >"Then" to stop the Sleep time. > >Could I use "hitObject.Clear" for that? > > >Best regards >Hans > > > >I > > >Am Mittwoch, 16. Oktober 2013 18:31:11 UTC+2 schrieb McFarlane, David: >Hans, > >Ah, there's the confusion -- you referred to "SoundOut" when you meant >"SlideSound". SoundOut and SlideSound share a lot of properties, but >they are two different things that are used in different ways. You do >not have a SoundOut in your Procedure, just a SlideSound as a sub-object >of your Slide. > >Now here is my restatement of your specifications: >- E-Prime simultaneously presents a visual stimulus (containing a number >of target areas) and starts playing a sound. >- The visual stimulus remains until, and only until, the sound the >finishes playing. >- The subject uses the mouse to respond by clicking target areas on the >display, and when the subject clicks on a target area, the border of >that area changes color. > >Now you are just stuck accomplishing that second objective. For that, I >think you need to use SoundBuffer.Status -- see that topic in the >E-Basic Help facility. You will also have to get access to the >SoundBuffer object that plays your sound -- for that, just browse the >related topics in the E-Basic Help facility, and/or look at >sound-related code generated for you by E-Studio (that's how I figure >all this stuff out, if I can do that then so can you :) ). And of >course, you may also always contact PST Support for help, see below. > >Best, >----- >David McFarlane >E-Prime training online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx > >Twitter: @EPrimeMaster >(twitter.com/EPrimeMaster) > >/----------- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff take >any and all questions at >http://support.pstnet.com/e%2Dprime/support/login.asp >, and they strive >to respond to all requests in 24-48 hours -- this is pretty much their >substitute for proper documentation, so make full use of it. 3) In >addition, PST takes questions at their Facebook page >(http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 > >), and offers several instructional videos there and on their YouTube >channel >(http://www.youtube.com/user/PSTNET >) (no Twitter feed yet, >though). 4) If you do get an answer from PST staff, please extend the >courtesy of posting their reply back here for the sake of others. >\----------- > > >haslinge... at gmail.com wrote: > > Hallo David > > > > Thank you for your help. > > > > > > At this point I would need you to draw > > > > out a very clear diagram of your Procedure structure, along > > with clear specifications of what you want it to do > > > > > > The Procedure looks like this: > > > > > > ... > > ... > > > > ExternalCausesProc > > ExternalCausesList > > ExternalCausesTrialProc > > Instruction (TextBox) > > restart2 (Label) > > ExternalCausesSlide (Slide) > > InLine2 (InLineCode) > > ... > > ... > > > > > > After a short Instruction, there is an Image presented on the > > ExternalCausesSlide as a Stimulus (e.g. child is getting a birthday > > present). > > There is also a SoundOut on the ExternalCausesSlide which describes the > > scene in the Image. > > Additionaly there are 4 smaller Images as possible answers for the > > Stimulus Image. > > I've made an attribute for every Image and the SoundOut in my > > ExternalCausesList. > > > > Subjects should have time to click on one of the 4 target Images until > > the SoundOut was played completely. > > I want to highlight the Image a subject chooses by changing the border > > color of that Image to "cyan" (black is my default border color) so the > > subject knows that its answer was registered and it can change the > > current answer (this is another thing i could need some help with). > > > > I tried to implement the following code (which i've found somewhere in > > this google group) for changing the border color to "cyan" and back to > > "black" (default setting) before a new Stimulus is presented: > > > > Dim hitObject As SlideImage > > Set hitObject = > > CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > hitObject.BorderColor = CColor("cyan") > > hitObject.Draw > > Sleep 5000 > > > > hitObject.BorderColor = CColor("black") > > > > > > > > The current slide should be terminated after the Sound is played so I've > > set "End Sound Action" to "Terminate" and "End Action" (in the > > ExternalCausesSlide Properties) to "none". > > Now the color changed to "cyan" after the Sound was played and not > > immediately after the click. > > > > So i've changed the Settings to "End Action" -> "Terminate" and > > "EndSoundAction" -> "Terminate". > > Now the color changed immediately after the click occured and remained > > "Cyan" for 5sec before changing back to "black". > > But if the click occured at the end of the SoundOut with less than 5sec > > remaining, there was an interference with the Sound of the following > > Stimulus. > > > > Then I've tried "End Action" -> "Terminate" and "End Sound Action" -> > > "none". > > Now the Color changes immediately after the click and remains for the 5 > > sec no matter if the Sound is completely played or not. > > But if no click occurs, there is no termination. > > > > > > Now I thought I could use the "Terminate/Terminate"-setting and a Sleep > > time which is equal to the remaining duration of the sound file after > > the click occured, (something like Sleep "Duration Sound - RT (Time > > until click?)). > > This way, the slide would terminate after the click + Sleep time or if > > the sound file was played completely (if there was no click). > > There would also not be any interference with the following Sound file, > > because the Sleep time is never longer than the Sound file itself. > > > > > > > > > > That said, first, you do not understand your code correctly. As > > written, it means the color of the image, which was clicked, changes > > to "cyan" and would later change to "black" at whatever time your > > hitObject gets redrawn, and goodness knows when that will happen. > > > > > > > > Actually, it changes back to "black". > > But maybe that is just because "black" ist my default border color and > > the settings are just reset to the default settings after Sleep. > > > > > > > > As a general strategy, I prefer to do as much as possible through the > > program structure & object properties, and to leave less to > inline code. > > > > > > > > Actually this was the prefered strategy for my project and it worked > > fine except for strHitTest for collecting Mouse Responses and logging > > the correct answer. > > Basically my program is completed, but i would like to add some little > > improvements, like this highlighting thing, to make it look better > > > > I hope my remarks are not too confusing. > > > > > > Best regards > > Hans > > > > > > > > Am Dienstag, 15. Oktober 2013 16:37:46 UTC+2 schrieb McFarlane, David: > > > > Hans, > > > > I am afraid that I do not quite follow all of this. You refer to a > > Slide, a SoundOut, and an Inline, and I do not know how they all > > interrelate (in particular, I do not recall the complication of a > > SoundOut in your first post). At this point I would need you to draw > > out a very clear diagram of your Procedure structure, along with > > clear specifications of what you want it to do. > > > > That said, first, you do not understand your code correctly. As > > written, it means the color of the image, which was clicked, changes > > to "cyan" and would later change to "black" at whatever time your > > hitObject gets redrawn, and goodness knows when that will happen. If > > you want your inline code to make the BorderColor black, then you > > must also follow that line with another hitObject.Draw command, which > > is missing from your code without comment. If you left that out on > > purpose (e.g., because the redraw will be taken care of by a later > > object), then you must add a comment to your code to explain that. > > > > As far as settting the Sleep time to something like "remaining time > > of SoundOut", I suppose you might use some combination of Clock.Read, > > SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I think > > that a sloppy way to do things. I would generally rather let the > > SoundOut handle the timing, and then follow that with more inline > > code to do whatever needs doing. Again, we need a better look at > > your Procedure structure, you may need to revise it. > > > > As a general strategy, I prefer to do as much as possible through the > > program structure & object properties, and to leave less to inline > > code. > > > > Regards, > > -- David McFarlane > > > > > > At 10/15/2013 04:56 AM Tuesday, haslinge... at gmail.com > > wrote: > > >Hallo David > > > > > > > > >I've tried another code for the changing border color part: > > > > > >Dim hitObject As SlideImage > > >Set hitObject = > > >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > hitObject.BorderColor = CColor("cyan") > > > hitObject.Draw > > > Sleep 5000 > > > hitObject.BorderColor = CColor("black") > > > > > > > > >If I understood this code right, that means the color of the > > >image,which was clicked, changes to "cyan "and after 5 sec it > > >changes back to "black". > > > > > >But now I have some problems timing the change of color and the > > sound file. > > > > > >At first I set "End Action" in the Slide Properties to "(none)" and > > >"End Sound Action" in the Slide Sound Out Properties to "Terminate". > > >Then the color was only changing after the soundfile was over. > > > > > >Then I changed the settings to "End Action" -> Terminate and added > > >"Sleep 5000" in the inline code. > > >Now the color changes immediately after clicking and stays for the > > >5sec before changing back to black > > >But if the Sleep Time after clicking is longer then the remaining > > >time of the SoundOut, the SoundOut of the next Slide State isn't > > starting. > > > > > >Is there any command which sets the Sleep time to something like > > >"remaining time of SoundOut"? > > > > > > > > >Best regards > > >Hans > >-- >You received this message because you are subscribed to the Google >Groups "E-Prime" group. >To unsubscribe from this group and stop receiving emails from it, >send an email to e-prime+unsubscribe at googlegroups.com. >To post to this group, send email to e-prime at googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com. >For more options, visit >https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5260053c.48e1320a.68e8.5f87SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From francesco.biondi1 at gmail.com Thu Oct 17 21:58:37 2013 From: francesco.biondi1 at gmail.com (francesco biondi) Date: Thu, 17 Oct 2013 14:58:37 -0700 Subject: Dual Task Message-ID: Hi all, I am designing an experiment using a dual task paradigm. I have two stimuli: s1 and s2, and 2 responses: r1 and r2. After the fixation point, s1 appers on the right side of the screen and, after a given soa, s2 appears on the left side of the screen. I need to record both the responses r1 and r2. Since soas are very short (150 and 300ms), subjects won't be able to produce r1 by the time s2 appears. Nonetheless, I still need s1 to be visible to let subjects to produce r1. My question is: do you know how i can have (after the soa) both the stimuli on the screen and record both r1 and r2? Also, I would like to s1 and s2 to disappear when, respectively, r1 and r2 are produced. After r2 is produced the next trial starts. Thanks Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/55887032-6a2a-4adf-8235-912e59f48805%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From haslinger.hans11 at gmail.com Fri Oct 18 09:15:18 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Fri, 18 Oct 2013 02:15:18 -0700 Subject: changing border color of a slide image after clicking on it In-Reply-To: <5260053c.48e1320a.68e8.5f87SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Hallo again David I just want to be sure if the code: Dim ExternalCausesSound As SlideSoundOut Set ExternalCausesSound = CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) (ExternalCausesSound is the Name of my SlideSound) Dim NewBuffer As SoundBuffer Set NewBuffer = ExternalCausesSound.Buffers(1) ...leads to the correct Sound Buffer before I try something with SoundBuffer.Status. At the Moment I am playing around with: Select Case NewBuffer.Status Case ebBufferStatusStopped ... (some code that stops the "Sleep" or leads to the next Slide State) I just want to know if I am on the right way or about to get lost completely. Best regards Hans Am Donnerstag, 17. Oktober 2013 17:41:34 UTC+2 schrieb McFarlane, David: > Hans, > > I'm afraid you have lost me again. But now you should have all the > pieces you need in order to do what you want, and you should be able > to puzzle it out yourself from here. > > Best, > -- David McFarlane > > > At 10/17/2013 06:29 AM Thursday, haslinge... at gmail.com wrote: > >Hallo David > > > >Thank you for the advice with SoundBuffer.Status. > > > > > >Now here is my restatement of your specifications: > >- E-Prime simultaneously presents a visual stimulus (containing a number > >of target areas) and starts playing a sound. > >- The visual stimulus remains until, and only until, the sound the > >finishes playing. > >- The subject uses the mouse to respond by clicking target areas on the > >display, and when the subject clicks on a target area, the border of > >that area changes Color > > > > > >Yes, that is correct. > > > > > >I've tried to create a code with SoundBuffer.Status. But I am not > >sure if it is correct that way: > > > > > >Dim ExternalCausesSound As SlideSoundOut > > Set ExternalCausesSound = > > > CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) > > > > > > >Dim NewBuffer As SoundBuffer > > Set NewBuffer = ExternalCausesSound.Buffers(1) > > > > > >Then i would try something like: > > > >If NewBuffer.Status = 0 Then ..... > > > >,so if the Buffer.Status is "Stopped", the Sleep Timer would be > >stopped or the current SlideState would skip to the following State. > >(I've set the Sleep to something longer then the Duration of the Sound) > >So basically I would need a command which I could insert after > >"Then" to stop the Sleep time. > > > >Could I use "hitObject.Clear" for that? > > > > > >Best regards > >Hans > > > > > > > >I > > > > > >Am Mittwoch, 16. Oktober 2013 18:31:11 UTC+2 schrieb McFarlane, David: > >Hans, > > > >Ah, there's the confusion -- you referred to "SoundOut" when you meant > >"SlideSound". SoundOut and SlideSound share a lot of properties, but > >they are two different things that are used in different ways. You do > >not have a SoundOut in your Procedure, just a SlideSound as a sub-object > >of your Slide. > > > >Now here is my restatement of your specifications: > >- E-Prime simultaneously presents a visual stimulus (containing a number > >of target areas) and starts playing a sound. > >- The visual stimulus remains until, and only until, the sound the > >finishes playing. > >- The subject uses the mouse to respond by clicking target areas on the > >display, and when the subject clicks on a target area, the border of > >that area changes color. > > > >Now you are just stuck accomplishing that second objective. For that, I > >think you need to use SoundBuffer.Status -- see that topic in the > >E-Basic Help facility. You will also have to get access to the > >SoundBuffer object that plays your sound -- for that, just browse the > >related topics in the E-Basic Help facility, and/or look at > >sound-related code generated for you by E-Studio (that's how I figure > >all this stuff out, if I can do that then so can you :) ). And of > >course, you may also always contact PST Support for help, see below. > > > >Best, > >----- > >David McFarlane > >E-Prime training online: > > > http://psychology.msu.edu/Workshops_Courses/eprime.aspx > > > >Twitter: @EPrimeMaster > >(twitter.com/EPrimeMaster) > > > >/----------- > >Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > >any and all questions at > > > http://support.pstnet.com/e%2Dprime/support/login.asp > >, and they strive > >to respond to all requests in 24-48 hours -- this is pretty much their > >substitute for proper documentation, so make full use of it. 3) In > >addition, PST takes questions at their Facebook page > >(< > http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683> > http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 > > > >), and offers several instructional videos there and on their YouTube > >channel > >(http://www.youtube.com/user/PSTNET > >) (no Twitter feed yet, > >though). 4) If you do get an answer from PST staff, please extend the > >courtesy of posting their reply back here for the sake of others. > >\----------- > > > > > >haslinge... at gmail.com wrote: > > > Hallo David > > > > > > Thank you for your help. > > > > > > > > > At this point I would need you to draw > > > > > > out a very clear diagram of your Procedure structure, along > > > with clear specifications of what you want it to do > > > > > > > > > The Procedure looks like this: > > > > > > > > > ... > > > ... > > > > > > ExternalCausesProc > > > ExternalCausesList > > > ExternalCausesTrialProc > > > Instruction (TextBox) > > > restart2 (Label) > > > ExternalCausesSlide (Slide) > > > InLine2 (InLineCode) > > > ... > > > ... > > > > > > > > > After a short Instruction, there is an Image presented on the > > > ExternalCausesSlide as a Stimulus (e.g. child is getting a birthday > > > present). > > > There is also a SoundOut on the ExternalCausesSlide which describes > the > > > scene in the Image. > > > Additionaly there are 4 smaller Images as possible answers for the > > > Stimulus Image. > > > I've made an attribute for every Image and the SoundOut in my > > > ExternalCausesList. > > > > > > Subjects should have time to click on one of the 4 target Images until > > > the SoundOut was played completely. > > > I want to highlight the Image a subject chooses by changing the border > > > color of that Image to "cyan" (black is my default border color) so > the > > > subject knows that its answer was registered and it can change the > > > current answer (this is another thing i could need some help with). > > > > > > I tried to implement the following code (which i've found somewhere in > > > this google group) for changing the border color to "cyan" and back to > > > "black" (default setting) before a new Stimulus is presented: > > > > > > Dim hitObject As SlideImage > > > Set hitObject = > > > CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > > > hitObject.BorderColor = CColor("cyan") > > > hitObject.Draw > > > Sleep 5000 > > > > > > hitObject.BorderColor = CColor("black") > > > > > > > > > > > > The current slide should be terminated after the Sound is played so > I've > > > set "End Sound Action" to "Terminate" and "End Action" (in the > > > ExternalCausesSlide Properties) to "none". > > > Now the color changed to "cyan" after the Sound was played and not > > > immediately after the click. > > > > > > So i've changed the Settings to "End Action" -> "Terminate" and > > > "EndSoundAction" -> "Terminate". > > > Now the color changed immediately after the click occured and remained > > > "Cyan" for 5sec before changing back to "black". > > > But if the click occured at the end of the SoundOut with less than > 5sec > > > remaining, there was an interference with the Sound of the following > > > Stimulus. > > > > > > Then I've tried "End Action" -> "Terminate" and "End Sound Action" -> > > > "none". > > > Now the Color changes immediately after the click and remains for the > 5 > > > sec no matter if the Sound is completely played or not. > > > But if no click occurs, there is no termination. > > > > > > > > > Now I thought I could use the "Terminate/Terminate"-setting and a > Sleep > > > time which is equal to the remaining duration of the sound file after > > > the click occured, (something like Sleep "Duration Sound - RT (Time > > > until click?)). > > > This way, the slide would terminate after the click + Sleep time or if > > > the sound file was played completely (if there was no click). > > > There would also not be any interference with the following Sound > file, > > > because the Sleep time is never longer than the Sound file itself. > > > > > > > > > > > > > > > That said, first, you do not understand your code correctly. As > > > written, it means the color of the image, which was clicked, > changes > > > to "cyan" and would later change to "black" at whatever time your > > > hitObject gets redrawn, and goodness knows when that will happen. > > > > > > > > > > > > Actually, it changes back to "black". > > > But maybe that is just because "black" ist my default border color and > > > the settings are just reset to the default settings after Sleep. > > > > > > > > > > > > As a general strategy, I prefer to do as much as possible through > the > > > program structure & object properties, and to leave less to > > inline code. > > > > > > > > > > > > Actually this was the prefered strategy for my project and it worked > > > fine except for strHitTest for collecting Mouse Responses and logging > > > the correct answer. > > > Basically my program is completed, but i would like to add some little > > > improvements, like this highlighting thing, to make it look better > > > > > > I hope my remarks are not too confusing. > > > > > > > > > Best regards > > > Hans > > > > > > > > > > > > Am Dienstag, 15. Oktober 2013 16:37:46 UTC+2 schrieb McFarlane, David: > > > > > > Hans, > > > > > > I am afraid that I do not quite follow all of this. You refer to > a > > > Slide, a SoundOut, and an Inline, and I do not know how they all > > > interrelate (in particular, I do not recall the complication of a > > > SoundOut in your first post). At this point I would need you to > draw > > > out a very clear diagram of your Procedure structure, along with > > > clear specifications of what you want it to do. > > > > > > That said, first, you do not understand your code correctly. As > > > written, it means the color of the image, which was clicked, > changes > > > to "cyan" and would later change to "black" at whatever time your > > > hitObject gets redrawn, and goodness knows when that will happen. > If > > > you want your inline code to make the BorderColor black, then you > > > must also follow that line with another hitObject.Draw command, > which > > > is missing from your code without comment. If you left that out > on > > > purpose (e.g., because the redraw will be taken care of by a later > > > object), then you must add a comment to your code to explain that. > > > > > > As far as settting the Sleep time to something like "remaining > time > > > of SoundOut", I suppose you might use some combination of > Clock.Read, > > > SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I think > > > that a sloppy way to do things. I would generally rather let the > > > SoundOut handle the timing, and then follow that with more inline > > > code to do whatever needs doing. Again, we need a better look at > > > your Procedure structure, you may need to revise it. > > > > > > As a general strategy, I prefer to do as much as possible through > the > > > program structure & object properties, and to leave less to inline > > > code. > > > > > > Regards, > > > -- David McFarlane > > > > > > > > > At 10/15/2013 04:56 AM Tuesday, haslinge... at gmail.com > > > wrote: > > > >Hallo David > > > > > > > > > > > >I've tried another code for the changing border color part: > > > > > > > >Dim hitObject As SlideImage > > > >Set hitObject = > > > > >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > hitObject.BorderColor = CColor("cyan") > > > > hitObject.Draw > > > > Sleep 5000 > > > > hitObject.BorderColor = CColor("black") > > > > > > > > > > > >If I understood this code right, that means the color of the > > > >image,which was clicked, changes to "cyan "and after 5 sec it > > > >changes back to "black". > > > > > > > >But now I have some problems timing the change of color and the > > > sound file. > > > > > > > >At first I set "End Action" in the Slide Properties to "(none)" > and > > > >"End Sound Action" in the Slide Sound Out Properties to > "Terminate". > > > >Then the color was only changing after the soundfile was over. > > > > > > > >Then I changed the settings to "End Action" -> Terminate and > added > > > >"Sleep 5000" in the inline code. > > > >Now the color changes immediately after clicking and stays for > the > > > >5sec before changing back to black > > > >But if the Sleep Time after clicking is longer then the > remaining > > > >time of the SoundOut, the SoundOut of the next Slide State isn't > > > starting. > > > > > > > >Is there any command which sets the Sleep time to something like > > > >"remaining time of SoundOut"? > > > > > > > > > > > >Best regards > > > >Hans > > > >-- > >You received this message because you are subscribed to the Google > >Groups "E-Prime" group. > >To unsubscribe from this group and stop receiving emails from it, > >send an email to e-prime+u... at googlegroups.com . > >To post to this group, send email to e-p... at googlegroups.com. > > >To view this discussion on the web visit > >< > https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com > > > https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com. > > >For more options, visit > > > https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/c59eade2-a635-4e48-8b07-f4e272f8222c%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Fri Oct 18 17:23:10 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 18 Oct 2013 13:23:10 -0400 Subject: changing border color of a slide image after clicking on it In-Reply-To: Message-ID: Hans, I have never used SoundBuffer myself, so you are the pioneer here. You should make up some simple demo program to use in testing out your use of SoundBuffer outside of your specific experiment, and try out some things. Use your imagination, be creative, explore, that's what I would do. And then please write back with what you discover. As for the Sleep, I do feel that is the wrong way to go. You cannot stop a Sleep. Get rid of the Sleep. From what I understand of your task, you just want to run some loop until the sound is done playing, and then just move on to the rest of your program. Something roughly like Do While (mySoundBuffer.Status = ebBufferStatusPlaying) ' loop empty on purpose Loop ' sound done playing, proceed with next part of program... or, maybe Do Until (mySoundBuffer.Status = ebBufferStatusStopped) ' loop empty on purpose Loop ' sound done playing, proceed to next part of program... you will have to think about this and play around some. This all assumes that SoundBuffer.Status works as we expect it to, so you just have to explore. And remember, you can also go straight to PST Support to get help from the ultimate experts. Regards, -- David McFarlane At 10/18/2013 05:15 AM Friday, haslinger.hans11 at gmail.com wrote: >Hallo again David > >I just want to be sure if the code: > >Dim ExternalCausesSound As SlideSoundOut > Set ExternalCausesSound = > CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) > (ExternalCausesSound is the Name of my SlideSound) > >Dim NewBuffer As SoundBuffer > Set NewBuffer = ExternalCausesSound.Buffers(1) > >...leads to the correct Sound Buffer before I try something with >SoundBuffer.Status. > > >At the Moment I am playing around with: > >Select Case NewBuffer.Status > Case ebBufferStatusStopped > ... (some code that stops the "Sleep" or leads to the next > Slide State) > > >I just want to know if I am on the right way or about to get lost completely. > >Best regards >Hans > > > >Am Donnerstag, 17. Oktober 2013 17:41:34 UTC+2 schrieb McFarlane, David: >Hans, > >I'm afraid you have lost me again. But now you should have all the >pieces you need in order to do what you want, and you should be able >to puzzle it out yourself from here. > >Best, >-- David McFarlane > > >At 10/17/2013 06:29 AM Thursday, haslinge... at gmail.com wrote: > >Hallo David > > > >Thank you for the advice with SoundBuffer.Status. > > > > > >Now here is my restatement of your specifications: > >- E-Prime simultaneously presents a visual stimulus (containing a number > >of target areas) and starts playing a sound. > >- The visual stimulus remains until, and only until, the sound the > >finishes playing. > >- The subject uses the mouse to respond by clicking target areas on the > >display, and when the subject clicks on a target area, the border of > >that area changes Color > > > > > >Yes, that is correct. > > > > > >I've tried to create a code with SoundBuffer.Status. But I am not > >sure if it is correct that way: > > > > > >Dim ExternalCausesSound As SlideSoundOut > > Set ExternalCausesSound = > > > CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) > > > > > > >Dim NewBuffer As SoundBuffer > > Set NewBuffer = ExternalCausesSound.Buffers(1) > > > > > >Then i would try something like: > > > >If NewBuffer.Status = 0 Then ..... > > > >,so if the Buffer.Status is "Stopped", the Sleep Timer would be > >stopped or the current SlideState would skip to the following State. > >(I've set the Sleep to something longer then the Duration of the Sound) > >So basically I would need a command which I could insert after > >"Then" to stop the Sleep time. > > > >Could I use "hitObject.Clear" for that? > > > > > >Best regards > >Hans > > > > > > > >I > > > > > >Am Mittwoch, 16. Oktober 2013 18:31:11 UTC+2 schrieb McFarlane, David: > >Hans, > > > >Ah, there's the confusion -- you referred to "SoundOut" when you meant > >"SlideSound". SoundOut and SlideSound share a lot of properties, but > >they are two different things that are used in different ways. You do > >not have a SoundOut in your Procedure, just a SlideSound as a sub-object > >of your Slide. > > > >Now here is my restatement of your specifications: > >- E-Prime simultaneously presents a visual stimulus (containing a number > >of target areas) and starts playing a sound. > >- The visual stimulus remains until, and only until, the sound the > >finishes playing. > >- The subject uses the mouse to respond by clicking target areas on the > >display, and when the subject clicks on a target area, the border of > >that area changes color. > > > >Now you are just stuck accomplishing that second objective. For that, I > >think you need to use SoundBuffer.Status -- see that topic in the > >E-Basic Help facility. You will also have to get access to the > >SoundBuffer object that plays your sound -- for that, just browse the > >related topics in the E-Basic Help facility, and/or look at > >sound-related code generated for you by E-Studio (that's how I figure > >all this stuff out, if I can do that then so can you :) ). And of > >course, you may also always contact PST Support for help, see below. > > > >Best, > >----- > >David McFarlane > >E-Prime training online: > ><http://ps > ychology.msu.edu/Workshops_Courses/eprime.aspx>http://psychology.msu.edu/Workshops_Courses/eprime.aspx > > > > >Twitter: @EPrimeMaster > >(<http://twitter.com/EPrimeMaster> > twitter.com/EPrimeMaster) > > > >/----------- > >Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > >any and all questions at > ><http://supp > ort.pstnet.com/e%2Dprime/support/login.asp>http://support.pstnet.com/e%2Dprime/support/login.asp > > >, and they strive > >to respond to all requests in 24-48 hours -- this is pretty much their > >substitute for proper documentation, so make full use of it. 3) In > >addition, PST takes questions at their Facebook page > >(< 02160683>http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683>http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 > > > > >), and offers several instructional videos there and on their YouTube > >channel > >(<http://www.youtube.com/user/P > STNET>http://www.youtube.com/user/PSTNET > >) (no Twitter feed yet, > >though). 4) If you do get an answer from PST staff, please extend the > >courtesy of posting their reply back here for the sake of others. > >\----------- > > > > > >haslinge... at gmail.com wrote: > > > Hallo David > > > > > > Thank you for your help. > > > > > > > > > At this point I would need you to draw > > > > > > out a very clear diagram of your Procedure structure, along > > > with clear specifications of what you want it to do > > > > > > > > > The Procedure looks like this: > > > > > > > > > ... > > > ... > > > > > > ExternalCausesProc > > > ExternalCausesList > > > ExternalCausesTrialProc > > > Instruction (TextBox) > > > restart2 (Label) > > > ExternalCausesSlide (Slide) > > > InLine2 (InLineCode) > > > ... > > > ... > > > > > > > > > After a short Instruction, there is an Image presented on the > > > ExternalCausesSlide as a Stimulus (e.g. child is getting a birthday > > > present). > > > There is also a SoundOut on the ExternalCausesSlide which describes the > > > scene in the Image. > > > Additionaly there are 4 smaller Images as possible answers for the > > > Stimulus Image. > > > I've made an attribute for every Image and the SoundOut in my > > > ExternalCausesList. > > > > > > Subjects should have time to click on one of the 4 target Images until > > > the SoundOut was played completely. > > > I want to highlight the Image a subject chooses by changing the border > > > color of that Image to "cyan" (black is my default border color) so the > > > subject knows that its answer was registered and it can change the > > > current answer (this is another thing i could need some help with). > > > > > > I tried to implement the following code (which i've found somewhere in > > > this google group) for changing the border color to "cyan" and back to > > > "black" (default setting) before a new Stimulus is presented: > > > > > > Dim hitObject As SlideImage > > > Set hitObject = > > > CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > > > hitObject.BorderColor = CColor("cyan") > > > hitObject.Draw > > > Sleep 5000 > > > > > > hitObject.BorderColor = CColor("black") > > > > > > > > > > > > The current slide should be terminated after the Sound is played so I've > > > set "End Sound Action" to "Terminate" and "End Action" (in the > > > ExternalCausesSlide Properties) to "none". > > > Now the color changed to "cyan" after the Sound was played and not > > > immediately after the click. > > > > > > So i've changed the Settings to "End Action" -> "Terminate" and > > > "EndSoundAction" -> "Terminate". > > > Now the color changed immediately after the click occured and remained > > > "Cyan" for 5sec before changing back to "black". > > > But if the click occured at the end of the SoundOut with less than 5sec > > > remaining, there was an interference with the Sound of the following > > > Stimulus. > > > > > > Then I've tried "End Action" -> "Terminate" and "End Sound Action" -> > > > "none". > > > Now the Color changes immediately after the click and remains for the 5 > > > sec no matter if the Sound is completely played or not. > > > But if no click occurs, there is no termination. > > > > > > > > > Now I thought I could use the "Terminate/Terminate"-setting and a Sleep > > > time which is equal to the remaining duration of the sound file after > > > the click occured, (something like Sleep "Duration Sound - RT (Time > > > until click?)). > > > This way, the slide would terminate after the click + Sleep time or if > > > the sound file was played completely (if there was no click). > > > There would also not be any interference with the following Sound file, > > > because the Sleep time is never longer than the Sound file itself. > > > > > > > > > > > > > > > That said, first, you do not understand your code correctly. As > > > written, it means the color of the image, which was clicked, changes > > > to "cyan" and would later change to "black" at whatever time your > > > hitObject gets redrawn, and goodness knows when that will happen. > > > > > > > > > > > > Actually, it changes back to "black". > > > But maybe that is just because "black" ist my default border color and > > > the settings are just reset to the default settings after Sleep. > > > > > > > > > > > > As a general strategy, I prefer to do as much as possible > through the > > > program structure & object properties, and to leave less to > > inline code. > > > > > > > > > > > > Actually this was the prefered strategy for my project and it worked > > > fine except for strHitTest for collecting Mouse Responses and logging > > > the correct answer. > > > Basically my program is completed, but i would like to add some little > > > improvements, like this highlighting thing, to make it look better > > > > > > I hope my remarks are not too confusing. > > > > > > > > > Best regards > > > Hans > > > > > > > > > > > > Am Dienstag, 15. Oktober 2013 16:37:46 UTC+2 schrieb McFarlane, David: > > > > > > Hans, > > > > > > I am afraid that I do not quite follow all of this. You refer to a > > > Slide, a SoundOut, and an Inline, and I do not know how they all > > > interrelate (in particular, I do not recall the complication of a > > > SoundOut in your first post). At this point I would need > you to draw > > > out a very clear diagram of your Procedure structure, along with > > > clear specifications of what you want it to do. > > > > > > That said, first, you do not understand your code correctly. As > > > written, it means the color of the image, which was clicked, changes > > > to "cyan" and would later change to "black" at whatever time your > > > hitObject gets redrawn, and goodness knows when that will > happen. If > > > you want your inline code to make the BorderColor black, then you > > > must also follow that line with another hitObject.Draw > command, which > > > is missing from your code without comment. If you left that out on > > > purpose (e.g., because the redraw will be taken care of by a later > > > object), then you must add a comment to your code to explain that. > > > > > > As far as settting the Sleep time to something like "remaining time > > > of SoundOut", I suppose you might use some combination of > Clock.Read, > > > SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I think > > > that a sloppy way to do things. I would generally rather let the > > > SoundOut handle the timing, and then follow that with more inline > > > code to do whatever needs doing. Again, we need a better look at > > > your Procedure structure, you may need to revise it. > > > > > > As a general strategy, I prefer to do as much as possible > through the > > > program structure & object properties, and to leave less to inline > > > code. > > > > > > Regards, > > > -- David McFarlane > > > > > > > > > At 10/15/2013 04:56 AM Tuesday, haslinge... at gmail.com > > > wrote: > > > >Hallo David > > > > > > > > > > > >I've tried another code for the changing border color part: > > > > > > > >Dim hitObject As SlideImage > > > >Set hitObject = > > > >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > hitObject.BorderColor = CColor("cyan") > > > > hitObject.Draw > > > > Sleep 5000 > > > > hitObject.BorderColor = CColor("black") > > > > > > > > > > > >If I understood this code right, that means the color of the > > > >image,which was clicked, changes to "cyan "and after 5 sec it > > > >changes back to "black". > > > > > > > >But now I have some problems timing the change of color and the > > > sound file. > > > > > > > >At first I set "End Action" in the Slide Properties to > "(none)" and > > > >"End Sound Action" in the Slide Sound Out Properties to > "Terminate". > > > >Then the color was only changing after the soundfile was over. > > > > > > > >Then I changed the settings to "End Action" -> Terminate and added > > > >"Sleep 5000" in the inline code. > > > >Now the color changes immediately after clicking and stays for the > > > >5sec before changing back to black > > > >But if the Sleep Time after clicking is longer then the remaining > > > >time of the SoundOut, the SoundOut of the next Slide State isn't > > > starting. > > > > > > > >Is there any command which sets the Sleep time to something like > > > >"remaining time of SoundOut"? > > > > > > > > > > > >Best regards > > > >Hans > > > >-- > >You received this message because you are subscribed to the Google > >Groups "E-Prime" group. > >To unsubscribe from this group and stop receiving emails from it, > >send an email to e-prime+u... at googlegroups.com. > >To post to this group, send email to e-p... at googlegroups.com. > >To view this discussion on the web visit > >< -433e8d5f994f%40googlegroups.com>https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com>https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com. > > >For more options, visit > ><https://groups.google.co > m/groups/opt_out>https://groups.google.com/groups/opt_out. > >-- >You received this message because you are subscribed to the Google >Groups "E-Prime" group. >To unsubscribe from this group and stop receiving emails from it, >send an email to e-prime+unsubscribe at googlegroups.com. >To post to this group, send email to e-prime at googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/e-prime/c59eade2-a635-4e48-8b07-f4e272f8222c%40googlegroups.com. >For more options, visit >https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52616e80.2cdd320a.4490.ffff9456SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Fri Oct 18 18:10:02 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 18 Oct 2013 14:10:02 -0400 Subject: Dual Task In-Reply-To: <55887032-6a2a-4adf-8235-912e59f48805@googlegroups.com> Message-ID: Francesco, To get responses to both s1 and s2, simply add an input mask with appropriate Time Limit to each of them -- please see the "Extended Input" tutorial in Appendix C of the User's Guide that came with E-Prime (and if you have not already, please first work through *all* of the tutorials in *all* the Guides before you start work with E-Prime, it is well worth the effort!). You can superimpose visual stimuli with creative use of their Frame and BackStyle properties. I have done this myself to make all sorts of interesting effects. To make s1 & s2 disappear upon response... Hmm, well, you might use Clear After to clear s2 (even though Clear After is deprecated, see http://www.pstnet.com/support/kb.asp?TopicID=4946 ), but you still need a bit of inline code to clear s1, so you might as well do them both in code. Something like Do While (s1.InputMasks.IsPending and s2.InputMasks.IsPending) If s1.InputMasks.IsPending Then s1.Clear If s2.InputMasks.IsPending Then s2.Clear Loop ' expect that s1 & s2 both also get cleared by subsequent program... but maybe that gives you enough to start with and you can fix it up as an exercise. (Advanced exercise: Make efficient algorithm to handle general case of multiple stimuli with responses.) ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/17/2013 05:58 PM Thursday, francesco biondi wrote: >I am designing an experiment using a dual task paradigm. >I have two stimuli: s1 and s2, and 2 responses: r1 and r2. > >After the fixation point, s1 appers on the right side of the screen >and, after a given soa, s2 appears on the left side of the screen. >I need to record both the responses r1 and r2. > >Since soas are very short (150 and 300ms), subjects won't be able to >produce r1 by the time s2 appears. >Nonetheless, I still need s1 to be visible to let subjects to produce r1. > >My question is: >do you know how i can have (after the soa) both the stimuli on the >screen and record both r1 and r2? >Also, I would like to s1 and s2 to disappear when, respectively, r1 >and r2 are produced. >After r2 is produced the next trial starts. > >Thanks > >Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5261797c.6801320a.6d94.1d14SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Fri Oct 18 18:17:02 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 18 Oct 2013 14:17:02 -0400 Subject: Dual Task In-Reply-To: <5261797c.6801320a.6d94.1d14SMTPIN_ADDED_MISSING@gmr-mx.goo gle.com> Message-ID: Francesco, Oh, to have that inline code run during s2, you have to set Duration of s2 to 0, or set its PreRelease to "(same as duration)" (which is the new default anyway). -- David McFarlane At 10/18/2013 02:10 PM Friday, David McFarlane wrote: >Francesco, > >To get responses to both s1 and s2, simply add an input mask with >appropriate Time Limit to each of them -- please see the "Extended >Input" tutorial in Appendix C of the User's Guide that came with >E-Prime (and if you have not already, please first work through >*all* of the tutorials in *all* the Guides before you start work >with E-Prime, it is well worth the effort!). > >You can superimpose visual stimuli with creative use of their Frame >and BackStyle properties. I have done this myself to make all sorts >of interesting effects. > >To make s1 & s2 disappear upon response... Hmm, well, you might use >Clear After to clear s2 (even though Clear After is deprecated, see >http://www.pstnet.com/support/kb.asp?TopicID=4946 ), but you still >need a bit of inline code to clear s1, so you might as well do them >both in code. Something like > > Do While (s1.InputMasks.IsPending and s2.InputMasks.IsPending) > If s1.InputMasks.IsPending Then s1.Clear > If s2.InputMasks.IsPending Then s2.Clear > Loop > ' expect that s1 & s2 both also get cleared by subsequent program... > >but maybe that gives you enough to start with and you can fix it up >as an exercise. (Advanced exercise: Make efficient algorithm to >handle general case of multiple stimuli with responses.) > >----- >David McFarlane >E-Prime training >online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at https://support.pstnet.com , and they >strive to respond to all requests in 24-48 hours, so make full use >of it. 3) In addition, PST offers several instructional videos on >their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If >you do get an answer from PST staff, please extend the courtesy of >posting their reply back here for the sake of others. >\---- > > >At 10/17/2013 05:58 PM Thursday, francesco biondi wrote: >>I am designing an experiment using a dual task paradigm. >>I have two stimuli: s1 and s2, and 2 responses: r1 and r2. >> >>After the fixation point, s1 appers on the right side of the screen >>and, after a given soa, s2 appears on the left side of the screen. >>I need to record both the responses r1 and r2. >> >>Since soas are very short (150 and 300ms), subjects won't be able >>to produce r1 by the time s2 appears. >>Nonetheless, I still need s1 to be visible to let subjects to produce r1. >> >>My question is: >>do you know how i can have (after the soa) both the stimuli on the >>screen and record both r1 and r2? >>Also, I would like to s1 and s2 to disappear when, respectively, r1 >>and r2 are produced. >>After r2 is produced the next trial starts. >> >>Thanks >> >>Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52617b21.c819320a.4525.ffff976dSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From francesco.biondi1 at gmail.com Fri Oct 18 18:22:15 2013 From: francesco.biondi1 at gmail.com (francesco biondi) Date: Fri, 18 Oct 2013 11:22:15 -0700 Subject: Dual Task In-Reply-To: <5261797c.6801320a.6d94.1d14SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks David! I tried to solve the issue as follows: - I put a Waitobject (Duration 0, Allowable Correct1, Correct Correct1, TimeLimit 2000, EndAction none) before the Slide1 (it contains s1) - After, Slide1 (Duration SOA, EndAction Terminate) - After, Slide2 (it contains s2) (Duration 2000, Allowable Correct2, Correct Correct2, EndAction Terminate) By doing so, it does not clear Slide1 after the button press. I can use an Inputobject to do so, by following your advise. It seems wotking On Friday, October 18, 2013 12:10:02 PM UTC-6, McFarlane, David wrote: > > Francesco, > > To get responses to both s1 and s2, simply add an input mask with > appropriate Time Limit to each of them -- please see the "Extended > Input" tutorial in Appendix C of the User's Guide that came with > E-Prime (and if you have not already, please first work through *all* > of the tutorials in *all* the Guides before you start work with > E-Prime, it is well worth the effort!). > > You can superimpose visual stimuli with creative use of their Frame > and BackStyle properties. I have done this myself to make all sorts > of interesting effects. > > To make s1 & s2 disappear upon response... Hmm, well, you might use > Clear After to clear s2 (even though Clear After is deprecated, see > http://www.pstnet.com/support/kb.asp?TopicID=4946 ), but you still > need a bit of inline code to clear s1, so you might as well do them > both in code. Something like > > Do While (s1.InputMasks.IsPending and s2.InputMasks.IsPending) > If s1.InputMasks.IsPending Then s1.Clear > If s2.InputMasks.IsPending Then s2.Clear > Loop > ' expect that s1 & s2 both also get cleared by subsequent program... > > but maybe that gives you enough to start with and you can fix it up > as an exercise. (Advanced exercise: Make efficient algorithm to > handle general case of multiple stimuli with responses.) > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/17/2013 05:58 PM Thursday, francesco biondi wrote: > >I am designing an experiment using a dual task paradigm. > >I have two stimuli: s1 and s2, and 2 responses: r1 and r2. > > > >After the fixation point, s1 appers on the right side of the screen > >and, after a given soa, s2 appears on the left side of the screen. > >I need to record both the responses r1 and r2. > > > >Since soas are very short (150 and 300ms), subjects won't be able to > >produce r1 by the time s2 appears. > >Nonetheless, I still need s1 to be visible to let subjects to produce r1. > > > >My question is: > >do you know how i can have (after the soa) both the stimuli on the > >screen and record both r1 and r2? > >Also, I would like to s1 and s2 to disappear when, respectively, r1 > >and r2 are produced. > >After r2 is produced the next trial starts. > > > >Thanks > > > >Francesco > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/e3e142df-825b-4df6-8f1a-b30e7d34f78b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Fri Oct 18 19:14:39 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 18 Oct 2013 15:14:39 -0400 Subject: Dual Task In-Reply-To: Message-ID: Francesco, Great! Glad you got it working, even though my code example was wrong. In case anybody else chances on this thread, here is a corrected code sample Do While (s1.InputMasks.IsPending and s2.InputMasks.IsPending) If Not(s1.InputMasks.IsPending) Then s1.Clear If Not(s2.InputMasks.IsPending) Then s2.Clear Loop ' expect that s1 & s2 both also get cleared by subsequent program... And of course, for more information, one may look at the InputMask.IsPensing and StimDisplay.Clear topices in the E-Basic Help facility. Regards, -- David McFarlane At 10/18/2013 02:22 PM Friday, francesco biondi wrote: >Thanks David! > >I tried to solve the issue as follows: > >- I put a Waitobject (Duration 0, Allowable Correct1, Correct >Correct1, TimeLimit 2000, EndAction none) before the Slide1 (it contains s1) > >- After, Slide1 (Duration SOA, EndAction Terminate) > >- After, Slide2 (it contains s2) (Duration 2000, Allowable Correct2, >Correct Correct2, EndAction Terminate) > >By doing so, it does not clear Slide1 after the button press. I can >use an Inputobject to do so, by following your advise. > >It seems wotking > > > >On Friday, October 18, 2013 12:10:02 PM UTC-6, McFarlane, David wrote: >Francesco, > >To get responses to both s1 and s2, simply add an input mask with >appropriate Time Limit to each of them -- please see the "Extended >Input" tutorial in Appendix C of the User's Guide that came with >E-Prime (and if you have not already, please first work through *all* >of the tutorials in *all* the Guides before you start work with >E-Prime, it is well worth the effort!). > >You can superimpose visual stimuli with creative use of their Frame >and BackStyle properties. I have done this myself to make all sorts >of interesting effects. > >To make s1 & s2 disappear upon response... Hmm, well, you might use >Clear After to clear s2 (even though Clear After is deprecated, see >http://www.pstnet.com/support/kb.asp?TopicID=4946 >), but you still >need a bit of inline code to clear s1, so you might as well do them >both in code. Something like > > Do While (s1.InputMasks.IsPending and s2.InputMasks.IsPending) > If s1.InputMasks.IsPending Then s1.Clear > If s2.InputMasks.IsPending Then s2.Clear > Loop > ' expect that s1 & s2 both also get cleared by subsequent program... > >but maybe that gives you enough to start with and you can fix it up >as an exercise. (Advanced exercise: Make efficient algorithm to >handle general case of multiple stimuli with responses.) > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx > >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at >https://support.pstnet.com , and they >strive to respond to all requests in 24-48 hours, so make full use of >it. 3) In addition, PST offers several instructional videos on their >YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do >get an answer from PST staff, please extend the courtesy of posting >their reply back here for the sake of others. >\---- > > >At 10/17/2013 05:58 PM Thursday, francesco biondi wrote: > >I am designing an experiment using a dual task paradigm. > >I have two stimuli: s1 and s2, and 2 responses: r1 and r2. > > > >After the fixation point, s1 appers on the right side of the screen > >and, after a given soa, s2 appears on the left side of the screen. > >I need to record both the responses r1 and r2. > > > >Since soas are very short (150 and 300ms), subjects won't be able to > >produce r1 by the time s2 appears. > >Nonetheless, I still need s1 to be visible to let subjects to produce r1. > > > >My question is: > >do you know how i can have (after the soa) both the stimuli on the > >screen and record both r1 and r2? > >Also, I would like to s1 and s2 to disappear when, respectively, r1 > >and r2 are produced. > >After r2 is produced the next trial starts. > > > >Thanks > > > >Francesco > >-- >You received this message because you are subscribed to the Google >Groups "E-Prime" group. >To unsubscribe from this group and stop receiving emails from it, >send an email to e-prime+unsubscribe at googlegroups.com. >To post to this group, send email to e-prime at googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/e-prime/e3e142df-825b-4df6-8f1a-b30e7d34f78b%40googlegroups.com. >For more options, visit >https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/526188a2.0452320a.61fd.ffff909cSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From rebecca.lundwall at gmail.com Sat Oct 19 02:21:29 2013 From: rebecca.lundwall at gmail.com (Rebecca Lundwall) Date: Fri, 18 Oct 2013 19:21:29 -0700 Subject: camera recommendations? Message-ID: I am trying to get a new research lab set up. I use EPrime to present stimuli and a camera to collect eye movement data. I am working with the college's computer services and they asked me to contact this group and see if you had recommendations on *camera specs* for the following situation. PSTNET support also suggested that I ask this question here. I do not use eye-tracking equipment because it does not work well with young infants. My question is if anyone knows of a camera or camera set-up that would work without the ForA timer. My key concern is having a time-stamp on the video and that the time-stamp is controlled (started and stopped) by EPrime presenting the stimulus. I will describe how we have done this in the past, but I can no longer find a supported For-A video timer VTG-33 (which reports frames) and we are nervous about buying the one I found on Ebay. In the experiment: 1) E-Prime simultaneously sends an image to a monitor and starts the ForA timer (or it could start the camera's timer) 2) The ForA timer (if used) puts a time stamp on the digital video recording. The timestamp starts and runs until EPrime tells it to stop. Stopping the clock is important so that trials are separated and RAs don't get confused when they go back and code for eye movement latency and direction (left or right). If I used the camera's internal clock, EPrime would need to start and stop it's clock or start and stop the entire camera. 3) the digital video with the time stamp are sent back for storage on the computer 4) the digital files are opened with a video editing software) that can detect scenes based on lighting conditions (the presentation of a new stimulus triggers a new scene); we number the scenes and two RAs code them for eye movement latency and direction. So, does anyone know of a camera that has a timestamp down to the frame level and that can be synced with the presentation of a stimuli by EPrime? Other info or related questions: *the camera must work in low-light conditions *there are approximately 50-60 trials for infants and 200 for children, each is presented for between 67 msec - 4 sec *I care about response differences as small as 10-20 msec (so am thinking about a camera with 60 fps or more) *is 60 Hz sufficient for the CPU? If I get more fps on the camera do I need higher refresh rate as well? Thanks for your help. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/d8fa958a-2575-4ad4-aec1-3bdb25f50b6b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacanterbury at gmail.com Mon Oct 21 06:45:38 2013 From: jacanterbury at gmail.com (john@johnallen.it) Date: Mon, 21 Oct 2013 07:45:38 +0100 Subject: stimulus size in degrees of visual angle In-Reply-To: <431e3b8b-57b3-4eb1-9904-9d60c3bddce8@googlegroups.com> Message-ID: Hi If u want to use eprime then, AFAIK, you will need to do some basic trigonometry to convert angles into mm and then into pixels. You might like to look at PsychoPy instead though. It has the concept of monitor dimensions and viewing angles builtin so this may be a lot simpler. Its free too :) and works across all platforms too. John On 17 Oct 2013 14:26, "Maggie" wrote: > Hello, > > I'm just starting to learn how to use eprime and I've run into some > trouble with the stimulus size. I need to place a geometric shape (i.e. > triangle or square) above the fixation point, and it needs to be 3.8*?* x > 3.8*? *in size. How to I convert this into pixels exactly? I'm assuming > the size (height and width) in properties are in pixels too, right? > > Many thanks, > Maggie > > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/431e3b8b-57b3-4eb1-9904-9d60c3bddce8%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAAT4JdT%3Du2cCCvVL%2BdBvO6Y20YEKON-SxSAabP66V_Oe0J8nRg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From haslinger.hans11 at gmail.com Mon Oct 21 10:00:15 2013 From: haslinger.hans11 at gmail.com (haslinger.hans11 at gmail.com) Date: Mon, 21 Oct 2013 03:00:15 -0700 Subject: changing border color of a slide image after clicking on it In-Reply-To: <52616e80.2cdd320a.4490.ffff9456SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Hallo David Thank you for your endless patience and all your advice. The solution with a Do While... Loop seems to be a good one. I always tried to manage it the other way round. > Use your imagination, be creative, explore, > that's what I would do. And then please write back with what you > discover. > I tried to heed that advice and played around with Sleep (I could not part with that approach). I figured out following code: (I don't know if it is helpful when i color the code for better legibility) Dim hitObject As SlideImage Set hitObject = CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) hitObject.BorderColor = CColor("cyan") hitObject.Draw Dim RemainingSoundDuration as integer RemainingSoundDuration = c.GetAttrib("SoundDuration") - ExternalCausesSlide.RT Sleep RemainingSoundDuration hitObject.BorderColor = CColor("black") hitObject.Draw End if and it works perfectly. I've only tried it with some test sound files so far, because the final sound files aren't recorded yet. I have to check that later with the real sound files. But so far it is looking good. So once again thank ypu for all your advice and patience, David. Maybe I am going to drop in once again if any other problems occur. Best regards Hans Am Freitag, 18. Oktober 2013 19:23:10 UTC+2 schrieb McFarlane, David: > Hans, > > I have never used SoundBuffer myself, so you are the pioneer > here. You should make up some simple demo program to use in testing > out your use of SoundBuffer outside of your specific experiment, and > try out some things. Use your imagination, be creative, explore, > that's what I would do. And then please write back with what you > discover. > > As for the Sleep, I do feel that is the wrong way to go. You cannot > stop a Sleep. Get rid of the Sleep. From what I understand of your > task, you just want to run some loop until the sound is done playing, > and then just move on to the rest of your program. Something roughly like > > Do While (mySoundBuffer.Status = ebBufferStatusPlaying) > ' loop empty on purpose > Loop > ' sound done playing, proceed with next part of program... > > or, maybe > > Do Until (mySoundBuffer.Status = ebBufferStatusStopped) > ' loop empty on purpose > Loop > ' sound done playing, proceed to next part of program... > > you will have to think about this and play around some. This all > assumes that SoundBuffer.Status works as we expect it to, so you just > have to explore. And remember, you can also go straight to PST > Support to get help from the ultimate experts. > > Regards, > -- David McFarlane > > > At 10/18/2013 05:15 AM Friday, haslinge... at gmail.com wrote: > >Hallo again David > > > >I just want to be sure if the code: > > > >Dim ExternalCausesSound As SlideSoundOut > > Set ExternalCausesSound = > > > CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) > > > (ExternalCausesSound is the Name of my SlideSound) > > > >Dim NewBuffer As SoundBuffer > > Set NewBuffer = ExternalCausesSound.Buffers(1) > > > >...leads to the correct Sound Buffer before I try something with > >SoundBuffer.Status. > > > > > >At the Moment I am playing around with: > > > >Select Case NewBuffer.Status > > Case ebBufferStatusStopped > > ... (some code that stops the "Sleep" or leads to the next > > Slide State) > > > > > >I just want to know if I am on the right way or about to get lost > completely. > > > >Best regards > >Hans > > > > > > > >Am Donnerstag, 17. Oktober 2013 17:41:34 UTC+2 schrieb McFarlane, David: > >Hans, > > > >I'm afraid you have lost me again. But now you should have all the > >pieces you need in order to do what you want, and you should be able > >to puzzle it out yourself from here. > > > >Best, > >-- David McFarlane > > > > > >At 10/17/2013 06:29 AM Thursday, haslinge... at gmail.com wrote: > > >Hallo David > > > > > >Thank you for the advice with SoundBuffer.Status. > > > > > > > > >Now here is my restatement of your specifications: > > >- E-Prime simultaneously presents a visual stimulus (containing a > number > > >of target areas) and starts playing a sound. > > >- The visual stimulus remains until, and only until, the sound the > > >finishes playing. > > >- The subject uses the mouse to respond by clicking target areas on the > > >display, and when the subject clicks on a target area, the border of > > >that area changes Color > > > > > > > > >Yes, that is correct. > > > > > > > > >I've tried to create a code with SoundBuffer.Status. But I am not > > >sure if it is correct that way: > > > > > > > > >Dim ExternalCausesSound As SlideSoundOut > > > Set ExternalCausesSound = > > > > > > CSlideSoundOut(ExternalCausesSlide.States("Default").Objects("ExternalCausesSound")) > > > > > > > > > > > >Dim NewBuffer As SoundBuffer > > > Set NewBuffer = ExternalCausesSound.Buffers(1) > > > > > > > > >Then i would try something like: > > > > > >If NewBuffer.Status = 0 Then ..... > > > > > >,so if the Buffer.Status is "Stopped", the Sleep Timer would be > > >stopped or the current SlideState would skip to the following State. > > >(I've set the Sleep to something longer then the Duration of the Sound) > > >So basically I would need a command which I could insert after > > >"Then" to stop the Sleep time. > > > > > >Could I use "hitObject.Clear" for that? > > > > > > > > >Best regards > > >Hans > > > > > > > > > > > >I > > > > > > > > >Am Mittwoch, 16. Oktober 2013 18:31:11 UTC+2 schrieb McFarlane, David: > > >Hans, > > > > > >Ah, there's the confusion -- you referred to "SoundOut" when you meant > > >"SlideSound". SoundOut and SlideSound share a lot of properties, but > > >they are two different things that are used in different ways. You do > > >not have a SoundOut in your Procedure, just a SlideSound as a > sub-object > > >of your Slide. > > > > > >Now here is my restatement of your specifications: > > >- E-Prime simultaneously presents a visual stimulus (containing a > number > > >of target areas) and starts playing a sound. > > >- The visual stimulus remains until, and only until, the sound the > > >finishes playing. > > >- The subject uses the mouse to respond by clicking target areas on the > > >display, and when the subject clicks on a target area, the border of > > >that area changes color. > > > > > >Now you are just stuck accomplishing that second objective. For that, > I > > >think you need to use SoundBuffer.Status -- see that topic in the > > >E-Basic Help facility. You will also have to get access to the > > >SoundBuffer object that plays your sound -- for that, just browse the > > >related topics in the E-Basic Help facility, and/or look at > > >sound-related code generated for you by E-Studio (that's how I figure > > >all this stuff out, if I can do that then so can you :) ). And of > > >course, you may also always contact PST Support for help, see below. > > > > > >Best, > > >----- > > >David McFarlane > > >E-Prime training online: > > ><http://ps > > ychology.msu.edu/Workshops_Courses/eprime.aspx> > http://psychology.msu.edu/Workshops_Courses/eprime.aspx > > > > > > > >Twitter: @EPrimeMaster > > >(<http://twitter.com/EPrimeMaster> > > twitter.com/EPrimeMaster) > > > > > >/----------- > > >Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > > >any and all questions at > > ><http://supp > > ort.pstnet.com/e%2Dprime/support/login.asp> > http://support.pstnet.com/e%2Dprime/support/login.asp > > > > >, and they strive > > >to respond to all requests in 24-48 hours -- this is pretty much their > > >substitute for proper documentation, so make full use of it. 3) In > > >addition, PST takes questions at their Facebook page > > >(< > 02160683> > http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683> > http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 > > > > > > > >), and offers several instructional videos there and on their YouTube > > >channel > > >(<http://www.youtube.com/user/P > > STNET>http://www.youtube.com/user/PSTNET > > >) (no Twitter feed yet, > > >though). 4) If you do get an answer from PST staff, please extend the > > >courtesy of posting their reply back here for the sake of others. > > >\----------- > > > > > > > > >haslinge... at gmail.com wrote: > > > > Hallo David > > > > > > > > Thank you for your help. > > > > > > > > > > > > At this point I would need you to draw > > > > > > > > out a very clear diagram of your Procedure structure, along > > > > with clear specifications of what you want it to do > > > > > > > > > > > > The Procedure looks like this: > > > > > > > > > > > > ... > > > > ... > > > > > > > > ExternalCausesProc > > > > ExternalCausesList > > > > ExternalCausesTrialProc > > > > Instruction (TextBox) > > > > restart2 (Label) > > > > ExternalCausesSlide (Slide) > > > > InLine2 (InLineCode) > > > > ... > > > > ... > > > > > > > > > > > > After a short Instruction, there is an Image presented on the > > > > ExternalCausesSlide as a Stimulus (e.g. child is getting a birthday > > > > present). > > > > There is also a SoundOut on the ExternalCausesSlide which describes > the > > > > scene in the Image. > > > > Additionaly there are 4 smaller Images as possible answers for the > > > > Stimulus Image. > > > > I've made an attribute for every Image and the SoundOut in my > > > > ExternalCausesList. > > > > > > > > Subjects should have time to click on one of the 4 target Images > until > > > > the SoundOut was played completely. > > > > I want to highlight the Image a subject chooses by changing the > border > > > > color of that Image to "cyan" (black is my default border color) so > the > > > > subject knows that its answer was registered and it can change the > > > > current answer (this is another thing i could need some help with). > > > > > > > > I tried to implement the following code (which i've found somewhere > in > > > > this google group) for changing the border color to "cyan" and back > to > > > > "black" (default setting) before a new Stimulus is presented: > > > > > > > > Dim hitObject As SlideImage > > > > Set hitObject = > > > > CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > > > > > hitObject.BorderColor = CColor("cyan") > > > > hitObject.Draw > > > > Sleep 5000 > > > > > > > > hitObject.BorderColor = CColor("black") > > > > > > > > > > > > > > > > The current slide should be terminated after the Sound is played so > I've > > > > set "End Sound Action" to "Terminate" and "End Action" (in the > > > > ExternalCausesSlide Properties) to "none". > > > > Now the color changed to "cyan" after the Sound was played and not > > > > immediately after the click. > > > > > > > > So i've changed the Settings to "End Action" -> "Terminate" and > > > > "EndSoundAction" -> "Terminate". > > > > Now the color changed immediately after the click occured and > remained > > > > "Cyan" for 5sec before changing back to "black". > > > > But if the click occured at the end of the SoundOut with less than > 5sec > > > > remaining, there was an interference with the Sound of the following > > > > Stimulus. > > > > > > > > Then I've tried "End Action" -> "Terminate" and "End Sound Action" > -> > > > > "none". > > > > Now the Color changes immediately after the click and remains for > the 5 > > > > sec no matter if the Sound is completely played or not. > > > > But if no click occurs, there is no termination. > > > > > > > > > > > > Now I thought I could use the "Terminate/Terminate"-setting and a > Sleep > > > > time which is equal to the remaining duration of the sound file > after > > > > the click occured, (something like Sleep "Duration Sound - RT (Time > > > > until click?)). > > > > This way, the slide would terminate after the click + Sleep time or > if > > > > the sound file was played completely (if there was no click). > > > > There would also not be any interference with the following Sound > file, > > > > because the Sleep time is never longer than the Sound file itself. > > > > > > > > > > > > > > > > > > > > That said, first, you do not understand your code correctly. As > > > > written, it means the color of the image, which was clicked, > changes > > > > to "cyan" and would later change to "black" at whatever time > your > > > > hitObject gets redrawn, and goodness knows when that will > happen. > > > > > > > > > > > > > > > > Actually, it changes back to "black". > > > > But maybe that is just because "black" ist my default border color > and > > > > the settings are just reset to the default settings after Sleep. > > > > > > > > > > > > > > > > As a general strategy, I prefer to do as much as possible > > through the > > > > program structure & object properties, and to leave less to > > > inline code. > > > > > > > > > > > > > > > > Actually this was the prefered strategy for my project and it worked > > > > fine except for strHitTest for collecting Mouse Responses and > logging > > > > the correct answer. > > > > Basically my program is completed, but i would like to add some > little > > > > improvements, like this highlighting thing, to make it look better > > > > > > > > I hope my remarks are not too confusing. > > > > > > > > > > > > Best regards > > > > Hans > > > > > > > > > > > > > > > > Am Dienstag, 15. Oktober 2013 16:37:46 UTC+2 schrieb McFarlane, > David: > > > > > > > > Hans, > > > > > > > > I am afraid that I do not quite follow all of this. You refer > to a > > > > Slide, a SoundOut, and an Inline, and I do not know how they all > > > > interrelate (in particular, I do not recall the complication of > a > > > > SoundOut in your first post). At this point I would need > > you to draw > > > > out a very clear diagram of your Procedure structure, along with > > > > clear specifications of what you want it to do. > > > > > > > > That said, first, you do not understand your code correctly. As > > > > written, it means the color of the image, which was clicked, > changes > > > > to "cyan" and would later change to "black" at whatever time > your > > > > hitObject gets redrawn, and goodness knows when that will > > happen. If > > > > you want your inline code to make the BorderColor black, then > you > > > > must also follow that line with another hitObject.Draw > > command, which > > > > is missing from your code without comment. If you left that out > on > > > > purpose (e.g., because the redraw will be taken care of by a > later > > > > object), then you must add a comment to your code to explain > that. > > > > > > > > As far as settting the Sleep time to something like "remaining > time > > > > of SoundOut", I suppose you might use some combination of > > Clock.Read, > > > > SoundOut.TargetOffsetTime, and GetNextTargetOnsetTime, but I > think > > > > that a sloppy way to do things. I would generally rather let > the > > > > SoundOut handle the timing, and then follow that with more > inline > > > > code to do whatever needs doing. Again, we need a better look > at > > > > your Procedure structure, you may need to revise it. > > > > > > > > As a general strategy, I prefer to do as much as possible > > through the > > > > program structure & object properties, and to leave less to > inline > > > > code. > > > > > > > > Regards, > > > > -- David McFarlane > > > > > > > > > > > > At 10/15/2013 04:56 AM Tuesday, haslinge... at gmail.com > > > > wrote: > > > > >Hallo David > > > > > > > > > > > > > > >I've tried another code for the changing border color part: > > > > > > > > > >Dim hitObject As SlideImage > > > > >Set hitObject = > > > > > >CSlideImage(ExternalCausesSlide.States("Default").Objects(strHit)) > > > > > hitObject.BorderColor = CColor("cyan") > > > > > hitObject.Draw > > > > > Sleep 5000 > > > > > hitObject.BorderColor = CColor("black") > > > > > > > > > > > > > > >If I understood this code right, that means the color of the > > > > >image,which was clicked, changes to "cyan "and after 5 sec it > > > > >changes back to "black". > > > > > > > > > >But now I have some problems timing the change of color and > the > > > > sound file. > > > > > > > > > >At first I set "End Action" in the Slide Properties to > > "(none)" and > > > > >"End Sound Action" in the Slide Sound Out Properties to > > "Terminate". > > > > >Then the color was only changing after the soundfile was over. > > > > > > > > > >Then I changed the settings to "End Action" -> Terminate and > added > > > > >"Sleep 5000" in the inline code. > > > > >Now the color changes immediately after clicking and stays for > the > > > > >5sec before changing back to black > > > > >But if the Sleep Time after clicking is longer then the > remaining > > > > >time of the SoundOut, the SoundOut of the next Slide State > isn't > > > > starting. > > > > > > > > > >Is there any command which sets the Sleep time to something > like > > > > >"remaining time of SoundOut"? > > > > > > > > > > > > > > >Best regards > > > > >Hans > > > > > >-- > > >You received this message because you are subscribed to the Google > > >Groups "E-Prime" group. > > >To unsubscribe from this group and stop receiving emails from it, > > >send an email to e-prime+u... at googlegroups.com. > > >To post to this group, send email to e-p... at googlegroups.com. > > >To view this discussion on the web visit > > >< > -433e8d5f994f%40googlegroups.com> > https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com > > > https://groups.google.com/d/msgid/e-prime/af93d00c-d985-43d7-897b-433e8d5f994f%40googlegroups.com. > > > > > >For more options, visit > > ><https://groups.google.co > > m/groups/opt_out>https://groups.google.com/groups/opt_out. > > > >-- > >You received this message because you are subscribed to the Google > >Groups "E-Prime" group. > >To unsubscribe from this group and stop receiving emails from it, > >send an email to e-prime+u... at googlegroups.com . > >To post to this group, send email to e-p... at googlegroups.com. > > >To view this discussion on the web visit > >< > https://groups.google.com/d/msgid/e-prime/c59eade2-a635-4e48-8b07-f4e272f8222c%40googlegroups.com > > > https://groups.google.com/d/msgid/e-prime/c59eade2-a635-4e48-8b07-f4e272f8222c%40googlegroups.com. > > >For more options, visit > > > https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/c5bf5751-04c2-4b06-a2c8-4e7142d55d3e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From piercarlo.mauri at gmail.com Mon Oct 21 10:43:36 2013 From: piercarlo.mauri at gmail.com (Piercarlo Mauri) Date: Mon, 21 Oct 2013 03:43:36 -0700 Subject: Send Trigger to EEG using E-Prime Professional 2.0 Message-ID: Hi, I need E-Prime to send triggers to my EEG signal recorded with BrainAmp. The trigger cable is connected from the parallel port to the BrainAmp (in windows the resource tab of the LPT1 port says: Interval I/O 0378-037F, Interval I/O 0778-077F). In E-Prime I added the parallel port on LPT1 to the devices used. I need that in a series of numbers (with attribute "Target") that will be shown for 100ms in the slide "Target1", when will appear the number 1, a trigger should be send to my EEG recording... I created an Inline script (the one called Trigger) with this command: ---------------------- If c.GetAttrib("Target")=1 Then Target1.OnsetSignalEnabled=True Target1.OnsetSignalPort=&H378 Target1.OnsetSignalData=128 Target1.OffsetSignalEnabled=True Target1.OffsetSignalPort=&H378 Target1.OffsetSignalData=0 End if --------------------- But it doesn't work, anyone can help me? I attached a screen of the sequence of my exp. Thank you PM -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5e5e05cd-3aaa-4b68-8420-c82e42266408%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 1.png Type: image/png Size: 44781 bytes Desc: not available URL: From mcfarla9 at msu.edu Mon Oct 21 17:37:12 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 21 Oct 2013 13:37:12 -0400 Subject: Send Trigger to EEG using E-Prime Professional 2.0 In-Reply-To: <5e5e05cd-3aaa-4b68-8420-c82e42266408@googlegroups.com> Message-ID: A few questions: - What version of E-Prime do you use? - What value of PreRelease do you use on Target1? - What bit or pin does the BrainAmp need to see change? - What do you use to verify whether or not your parallel port outputs are responding to your E-Prime commands? - What, exactly, does "it doesn't work" mean here? Also, please look at the recent thread at http://www.pstnet.com/forum/Topic7539-8-1.aspx , where some of these same issues got discussed. Regards, ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/21/2013 06:43 AM Monday, Piercarlo Mauri wrote: >I need E-Prime to send triggers to my EEG signal recorded with >BrainAmp. The trigger cable is connected from the parallel port to >the BrainAmp (in windows the resource tab of the LPT1 port says: >Interval I/O 0378-037F, Interval I/O 0778-077F). In E-Prime I added >the parallel port on LPT1 to the devices used. I need that in a >series of numbers (with attribute "Target") that will be shown for >100ms in the slide "Target1", when will appear the number 1, a >trigger should be send to my EEG recording... I created an Inline >script (the one called Trigger) with this command: > >---------------------- >If c.GetAttrib("Target")=1 Then > Target1.OnsetSignalEnabled=True > Target1.OnsetSignalPort=&H378 > Target1.OnsetSignalData=128 > > Target1.OffsetSignalEnabled=True > Target1.OffsetSignalPort=&H378 > Target1.OffsetSignalData=0 > >End if >--------------------- > >But it doesn't work, anyone can help me? I attached a screen of the >sequence of my exp. >Thank you >PM -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5265664f.6801320a.6d94.ffffac64SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From pfc.groot at gmail.com Mon Oct 21 17:37:36 2013 From: pfc.groot at gmail.com (Paul Groot) Date: Mon, 21 Oct 2013 19:37:36 +0200 Subject: Send Trigger to EEG using E-Prime Professional 2.0 In-Reply-To: <5e5e05cd-3aaa-4b68-8420-c82e42266408@googlegroups.com> Message-ID: The script looks fine, but are you sure that c.GetAttrib("Target")=1 evaluates to true? Just add a debug line to check if the if-statements runs as expected: Debug.print "Target" Also notice that value 128 corresponds to the highest bit of the 8 datalines. Also, adding the ParallelPort device is not required when using this trigger mechanism because you directly send data to the data register of the printer port. I'm not sure, but this might even give problems when the the LPT mode is not correctly set. cheers Paul On 21 October 2013 12:43, Piercarlo Mauri wrote: > Hi, > I need E-Prime to send triggers to my EEG signal recorded with BrainAmp. > The trigger cable is connected from the parallel port to the BrainAmp (in > windows the resource tab of the LPT1 port says: Interval I/O 0378-037F, > Interval I/O 0778-077F). In E-Prime I added the parallel port on LPT1 to > the devices used. I need that in a series of numbers (with attribute > "Target") that will be shown for 100ms in the slide "Target1", when will > appear the number 1, a trigger should be send to my EEG recording... I > created an Inline script (the one called Trigger) with this command: > > ---------------------- > If c.GetAttrib("Target")=1 Then > Target1.OnsetSignalEnabled=True > Target1.OnsetSignalPort=&H378 > Target1.OnsetSignalData=128 > > Target1.OffsetSignalEnabled=True > Target1.OffsetSignalPort=&H378 > Target1.OffsetSignalData=0 > > End if > --------------------- > > But it doesn't work, anyone can help me? I attached a screen of the > sequence of my exp. > Thank you > PM > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/5e5e05cd-3aaa-4b68-8420-c82e42266408%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAKAdR-tj083LrKkcRVPNHA8Zvma24De6%3D0yRg6umrpohs22VOw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pfc.groot at gmail.com Mon Oct 21 17:43:49 2013 From: pfc.groot at gmail.com (Paul Groot) Date: Mon, 21 Oct 2013 19:43:49 +0200 Subject: Send Trigger to EEG using E-Prime Professional 2.0 In-Reply-To: Message-ID: PS. The screendump shows that you are using EP2 pro. This version allows you to specify triggers using Task Events on Trigger1 instead of the OnsetSignal-properties. In that case you SHOULD define a ParallelPort device first. PS2: David also pinpoints an annoying issue with EP2: PreRelease is set to 'same as duration', which might result in zero-duration triggers... Paul On 21 October 2013 19:37, Paul Groot wrote: > The script looks fine, but are you sure that c.GetAttrib("Target")=1 > evaluates to true? Just add a debug line to check if the if-statements runs > as expected: > > Debug.print "Target" > > Also notice that value 128 corresponds to the highest bit of the 8 > datalines. Also, adding the ParallelPort device is not required when using > this trigger mechanism because you directly send data to the data register > of the printer port. I'm not sure, but this might even give problems when > the the LPT mode is not correctly set. > > cheers > Paul > > > > > > On 21 October 2013 12:43, Piercarlo Mauri wrote: > >> Hi, >> I need E-Prime to send triggers to my EEG signal recorded with BrainAmp. >> The trigger cable is connected from the parallel port to the BrainAmp (in >> windows the resource tab of the LPT1 port says: Interval I/O 0378-037F, >> Interval I/O 0778-077F). In E-Prime I added the parallel port on LPT1 to >> the devices used. I need that in a series of numbers (with attribute >> "Target") that will be shown for 100ms in the slide "Target1", when will >> appear the number 1, a trigger should be send to my EEG recording... I >> created an Inline script (the one called Trigger) with this command: >> >> ---------------------- >> If c.GetAttrib("Target")=1 Then >> Target1.OnsetSignalEnabled=True >> Target1.OnsetSignalPort=&H378 >> Target1.OnsetSignalData=128 >> >> Target1.OffsetSignalEnabled=True >> Target1.OffsetSignalPort=&H378 >> Target1.OffsetSignalData=0 >> >> End if >> --------------------- >> >> But it doesn't work, anyone can help me? I attached a screen of the >> sequence of my exp. >> Thank you >> PM >> >> -- >> You received this message because you are subscribed to the Google Groups >> "E-Prime" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to e-prime+unsubscribe at googlegroups.com. >> To post to this group, send email to e-prime at googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/e-prime/5e5e05cd-3aaa-4b68-8420-c82e42266408%40googlegroups.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAKAdR-uHeu3sv5%2BoR8i5TW9kc2v3wSEHkKerW4CABK_x%2BTAajQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Mon Oct 21 18:01:04 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 21 Oct 2013 14:01:04 -0400 Subject: Send Trigger to EEG using E-Prime Professional 2.0 In-Reply-To: Message-ID: Paul, Good catch on the screenshot -- more importantly, it shows they use EP2.0.10 Pro (as you know, Task Events got introduced with that version). Yes, in that case they should use Task Events instead of Onset/OffsetSignal, and the thread linked earlier goes into that a bit. Moreover, if they want to reset the bit based on an offset from the OnsetTime, then they should use an event of .OffSetTime, and an appropriate value for Delay. Good catch on the If..Then line, I completely overlooked that! Finally, I find the new default of "(same as duration)" a great improvement, once properly understood and managed. But there is room for a difference of opinion on that :). Best regards, -- David McFarlane At 10/21/2013 01:43 PM Monday, Paul Groot wrote: >PS. The screendump shows that you are using EP2 pro. This version >allows you to specify triggers using Task Events on Trigger1 instead >of the OnsetSignal-properties. In that case you SHOULD define a >ParallelPort device first. > >PS2: David also pinpoints an annoying issue with EP2: PreRelease is >set to 'same as duration', which might result in zero-duration triggers... > >Paul > > >On 21 October 2013 19:37, Paul Groot ><pfc.groot at gmail.com> wrote: >The script looks fine, but are you sure that c.GetAttrib("Target")=1 >evaluates to true? Just add a debug line to check if the >if-statements runs as expected: > >Debug.print "Target" > >Also notice that value 128 corresponds to the highest bit of the 8 >datalines. Also, adding the ParallelPort device is not required when >using this trigger mechanism because you directly send data to the >data register of the printer port. I'm not sure, but this might even >give problems when the the LPT mode is not correctly set. > >cheers >Paul > > > > > >On 21 October 2013 12:43, Piercarlo Mauri ><piercarlo.mauri at gmail.com> wrote: >Hi, >I need E-Prime to send triggers to my EEG signal recorded with >BrainAmp. The trigger cable is connected from the parallel port to >the BrainAmp (in windows the resource tab of the LPT1 port says: >Interval I/O 0378-037F, Interval I/O 0778-077F). In E-Prime I added >the parallel port on LPT1 to the devices used. I need that in a >series of numbers (with attribute "Target") that will be shown for >100ms in the slide "Target1", when will appear the number 1, a >trigger should be send to my EEG recording... I created an Inline >script (the one called Trigger) with this command: > >---------------------- >If c.GetAttrib("Target")=1 Then > Target1.OnsetSignalEnabled=True > Target1.OnsetSignalPort=&H378 > Target1.OnsetSignalData=128 > > Target1.OffsetSignalEnabled=True > Target1.OffsetSignalPort=&H378 > Target1.OffsetSignalData=0 > >End if >--------------------- > >But it doesn't work, anyone can help me? I attached a screen of the >sequence of my exp. >Thank you >PM -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52656be8.2e43320a.6fd6.ffffaa52SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Mon Oct 21 18:33:55 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 21 Oct 2013 14:33:55 -0400 Subject: 2 slides equal to one time duration In-Reply-To: <525c3688.2cdd320a.3305.55f9SMTPIN_ADDED_MISSING@gmr-mx.goo gle.com> Message-ID: Just for the record, I need to correct a bit of my advice here. Earlier, I said that using SetNextTargetOnsetTime ASlide.OnsetTime between ASlide and BSlide would make the total duration from the start of ASlide to the end of BSlide equal the specified Duration of BSlide (in this case, 2500 ms). But I neglected to say that, for this to work, you must also set BSlide to use Cumulative timing mode. This works because, in Cumulative timing mode, the TargetOnset time for whatever follows BSlide will be based on the TargetOnsetTime of BSlide (instead of actual OnsetTime), and BSlide.TargetOnsetTime will come from the NextTargetOnsetTime implied in the code above. I generally like this approach because it eliminates any errors due to delays in starting BSlide. Furthermore, the line of code above makes the total duration of ASlide + BSlide act like Event timing mode (think it through). If you want that to instead act like Cumulative timing mode, then that line should read SetNextTargetOnsetTime ASlide.TargetOnsetTime i.e., use .TargetOnsetTime instead of just .OnsetTime. If you stubbornly insist on keeping BSlide set to Event timing mode, then the TargetOnset time for whatever follows BSlide will be based on the actual OnsetTime of BSlide, and you have no recourse but to manipulate the Duration of BSlide. In that case, your inline code between ASlide and BSlide should look more like BSlide.Duration = 2500 - (Clock.Read - ASlide.OnsetTime) or if you prefer, c.SetAttrib "BSlideDuration", 2500 - (Clock.Read - ASlide.OnsetTime) and then use "[BSlideDuration]" as an attribute reference for the Duration of BSlide (see comments on assigning object properties directly in code vs. via attribute reference at https://groups.google.com/d/topic/e-prime/dWpfjk-BeLs and https://groups.google.com/d/topic/e-prime/g1Fv2CGaSeg ). Manipulating Duration (instead of NextTargetOnsetTime) also means that the actual duration of BSlide (and ASlide + BSlide) will vary depending on any delays in starting BSlide, but maybe that is what you want. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/14/2013 02:22 PM Monday, David McFarlane wrote: >Not sure I follow your description of the problem. But let's >suppose you have two Slides in your Procedure, let's call them >ASlide and BSlide. ASlide takes a response, and the Procedure moves >on to present BSlide whenever ASlide gets a response, or 2000 ms, >whichever comes first. And you want the total duration for ASlide & >BSlide to be 2500 ms, i.e., BSlide should last for 2500 - >(ASlide_actual_duration). > >There are many ways to skin this cat. My favorite method goes as >follows. Set the Duration of BSlide to 2500, and in an Inline >between ASlide and BSlide, do the following: > > SetNextTargetOnsetTime ASlide.OnsetTime > >That's all! Understanding how this works takes some deeper >understanding of E-Prime timing models & mechanisms, more than I can >go into here, but look at the SetNextTargetOnsetTime topic in the >E-Basic Help facility. But in short, with that bit of code, BSlide >will use the actual OnsetTime from ASlide in order to compute its >own ending time, and so will end at 2500 ms from the OnsetTime of >ASlide, whithout you having to do anything more. Presto! > >----- >David McFarlane >E-Prime training >online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at https://support.pstnet.com , and they >strive to respond to all requests in 24-48 hours, so make full use >of it. 3) In addition, PST offers several instructional videos on >their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If >you do get an answer from PST staff, please extend the courtesy of >posting their reply back here for the sake of others. >\---- > > >At 10/8/2013 10:00 PM Tuesday, Kim Goodyear wrote: >>I am trying to have two sequential slides that are equal to one >>time duration of 2500 ms. The first slide and the second slide are >>completely identical, except in the second slide the text color >>changes to red so that the participant can see their selection, I >>want the first slide to terminate and then have the second slide >>come up so that they both equal the same 2500 ms. Since the >>response time will vary I don't know how to make both slides equal >>to the same 2500. I don't know why, but if the buttons aren't >>selected right away, the total duration is around 5000, or if there >>is a delay in the response, the total duration is around 4200. I >>am not sure how to fix this issue, any advice would be great. Here >>is my inline script: >> >>Dim ResetSlide as integer >>Dim x as integer >> >>ResetSlide = StimDisplay.Duration + StimDisplay2.Duration >>ResetSlide = x >>x = 2500 -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/526573bf.0286320a.39d7.2574SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From pedromrfigueira at gmail.com Tue Oct 22 10:48:31 2013 From: pedromrfigueira at gmail.com (Pedro Figueira) Date: Tue, 22 Oct 2013 03:48:31 -0700 Subject: Press and release a key to start a stop a film Message-ID: Hi, I need help to set up a experiment: I found a script that allows me to make a slide on e-prime and record the time between starting to press a key and release this same key. However, I would like to be able to use this script during a film on e-prime. Speciffically, I?m looking for a way to press the key and start the film simultaneously and then release the key when the participant find in the film a target-stimulus, moving so to the next e-prime slide. Does anyone have an idea about how to do it? Best regards PF -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/92c2e126-5b3a-4449-ab41-0bffd9ca1606%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From francesco.biondi1 at gmail.com Tue Oct 22 20:38:02 2013 From: francesco.biondi1 at gmail.com (francesco biondi) Date: Tue, 22 Oct 2013 13:38:02 -0700 Subject: pedals Message-ID: Hi All, I am about to run an experiment in which I collect foot responses. I have V3 Interact pedals, Windows 7 and no drivers to install the pedals. I could not find any drivers to get the V3 pedals working on my pc. I think I will be purchasing new pedals then. Do you know about / Have any of you already used pedals to run experiments in eprime? If so, can you suggest me a particular brand? Thanks, Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/b17a13b5-27f1-4830-b074-b65d5b9873c6%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Oct 22 22:08:59 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 22 Oct 2013 18:08:59 -0400 Subject: pedals In-Reply-To: Message-ID: Francesco, Years ago we did an experiment using foot pedals, we just used simple on-off foot switch pedals from Radio Shack, they do not seem to carry them anymore but you can get a glimpse of what I mean at http://www.eham.net/reviews/detail/4801 , or see the Casio model at http://www.bestbuy.com/site/casio-sp3-keyboard-sustain-pedal/6733588.p . At that time we just patched them directly into the keyboard so that foot presses looked like a key press, e.g., {F12}. Alternatively, you could just patch these into a PST SRBox and go from there. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/22/2013 04:38 PM Tuesday, francesco biondi wrote: >I am about to run an experiment in which I collect foot responses. >I have V3 Interact pedals, Windows 7 and no drivers to install the pedals. >I could not find any drivers to get the V3 pedals working on my pc. > >I think I will be purchasing new pedals then. > >Do you know about / Have any of you already used pedals to run >experiments in eprime? > >If so, can you suggest me a particular brand? > >Thanks, > >Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5266f783.8570320a.74d1.30b5SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From francesco.biondi1 at gmail.com Tue Oct 22 22:28:50 2013 From: francesco.biondi1 at gmail.com (francesco biondi) Date: Tue, 22 Oct 2013 15:28:50 -0700 Subject: pedals In-Reply-To: <5266f783.8570320a.74d1.30b5SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks David for the quick reply! It seems to me that the Casio option in quite convenient. At that time we just patched them directly into the keyboard so that > foot presses looked like a key press, e.g., {F12}. Can you please give me a more detailed explanation? Since it has a Jack plug, which port should i use? do i need to get an adapter? (apologizes, but I am not familiar with this topic at all) In eprime, which device should i select from AddDevice window? Thanks, and still apologizes whether my questions sound stupid. > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/22/2013 04:38 PM Tuesday, francesco biondi wrote: > >I am about to run an experiment in which I collect foot responses. > >I have V3 Interact pedals, Windows 7 and no drivers to install the > pedals. > >I could not find any drivers to get the V3 pedals working on my pc. > > > >I think I will be purchasing new pedals then. > > > >Do you know about / Have any of you already used pedals to run > >experiments in eprime? > > > >If so, can you suggest me a particular brand? > > > >Thanks, > > > >Francesco > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/17d28975-fdc4-48de-929e-597840b34e80%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulinefavre at live.fr Wed Oct 23 16:55:26 2013 From: paulinefavre at live.fr (Pauline FAVRE) Date: Wed, 23 Oct 2013 09:55:26 -0700 Subject: probabilistic stimuli Message-ID: Dear E-prime users, I try to control the occurrence of the a stimulus, i.e., during the experiment, each trial consist first of a presentation of a stimulus and then I would like that another image appears for only 80% of correct responses on the previous stimulus (and different images for the remaining 20% and the incorrect responses). In summary, I just would like that a specific stimuli appears in 80 % of the cases. Is there an inline script that permit that a stimuli appears only in a determined percentage of trials? Thank you very much for your help! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/38276e68-87ba-4bf9-be0d-57fd91cb8eb2%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ycsgeorge at gmail.com Thu Oct 24 15:34:50 2013 From: ycsgeorge at gmail.com (George Yang) Date: Thu, 24 Oct 2013 08:34:50 -0700 Subject: problem with E-Run Message-ID: Dear E-Prime users I am really new to E prime, with nearly zero prior experience. So please bear with my really dumb question. I only have the E prime evaluation version on my computer (I wish I could have the full package). And, in order to collaborate with another colleague in another institution, I purchased E Prime Run time license. However, when I was running the E prime script written by my coworker, the E run was not working. It showed that "the Demo/evaluation license does not support E-Run". I googled for this problem, was not lucky enough. I should say that. I first installed the evaluation version of E-Prime on my pc, then installed the E-Run. I tried to uninstall the E prime evaluation version and E-run. Then first install E-Run and then E prime evaluation version. After generating the E run script on the evaluation E prime,the same problem occurred when I tried to open E-Run. I guess that some of you may feel this is really a dumb question. However, it has been baffling me for a few days. I emailed PST, but no response so far. My collaborator in another institution could not figure it out either. So I am here now. If any of the group members can help me out, I'd really appreciate it. Thanks a lot. Sincerely, Chunsheng Yang University of Connecticut -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/03ef0ebb-786d-4a8d-95e2-ace0a1ea1302%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu Oct 24 15:42:43 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 24 Oct 2013 11:42:43 -0400 Subject: problem with E-Run In-Reply-To: <03ef0ebb-786d-4a8d-95e2-ace0a1ea1302@googlegroups.com> Message-ID: Chunsheng, You may just have to wait for PST Support to help you out with this, but offhand, I think you will have to use the E-Prime License Manager (LicenseManager.exe) in order to insert the correct license numer for your installation. Again, PST Support should give you instructions on how to do that, see links below for best ways to contact them. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/24/2013 11:34 AM Thursday, George Yang wrote: >Dear E-Prime users > >I am really new to E prime, with nearly zero prior experience. So >please bear with my really dumb question. I only have the E prime >evaluation version on my computer (I wish I could have the full >package). And, in order to collaborate with another colleague in >another institution, I purchased E Prime Run time license. > >However, when I was running the E prime script written by my >coworker, the E run was not working. It showed that "the >Demo/evaluation license does not support E-Run". I googled for this >problem, was not lucky enough. I should say that. I first installed >the evaluation version of E-Prime on my pc, then installed the E-Run. > >I tried to uninstall the E prime evaluation version and E-run. Then >first install E-Run and then E prime evaluation version. After >generating the E run script on the evaluation E prime,the same >problem occurred when I tried to open E-Run. > >I guess that some of you may feel this is really a dumb question. >However, it has been baffling me for a few days. I emailed PST, but >no response so far. My collaborator in another institution could not >figure it out either. So I am here now. > >If any of the group members can help me out, I'd really appreciate it. > >Thanks a lot. > >Sincerely, > >Chunsheng Yang >University of Connecticut -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52694017.629a320a.59d3.ffff8acdSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From ycsgeorge at gmail.com Thu Oct 24 20:55:51 2013 From: ycsgeorge at gmail.com (George Yang) Date: Thu, 24 Oct 2013 13:55:51 -0700 Subject: problem with E-Run In-Reply-To: <52694017.629a320a.59d3.ffff8acdSMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks, David, I will try it. And hopefully PST people will get back to me soon. Have a good one. Chunsheng On Thursday, October 24, 2013 11:42:43 AM UTC-4, McFarlane, David wrote: > > Chunsheng, > > You may just have to wait for PST Support to help you out with this, > but offhand, I think you will have to use the E-Prime License Manager > (LicenseManager.exe) in order to insert the correct license numer for > your installation. Again, PST Support should give you instructions > on how to do that, see links below for best ways to contact them. > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/24/2013 11:34 AM Thursday, George Yang wrote: > >Dear E-Prime users > > > >I am really new to E prime, with nearly zero prior experience. So > >please bear with my really dumb question. I only have the E prime > >evaluation version on my computer (I wish I could have the full > >package). And, in order to collaborate with another colleague in > >another institution, I purchased E Prime Run time license. > > > >However, when I was running the E prime script written by my > >coworker, the E run was not working. It showed that "the > >Demo/evaluation license does not support E-Run". I googled for this > >problem, was not lucky enough. I should say that. I first installed > >the evaluation version of E-Prime on my pc, then installed the E-Run. > > > >I tried to uninstall the E prime evaluation version and E-run. Then > >first install E-Run and then E prime evaluation version. After > >generating the E run script on the evaluation E prime,the same > >problem occurred when I tried to open E-Run. > > > >I guess that some of you may feel this is really a dumb question. > >However, it has been baffling me for a few days. I emailed PST, but > >no response so far. My collaborator in another institution could not > >figure it out either. So I am here now. > > > >If any of the group members can help me out, I'd really appreciate it. > > > >Thanks a lot. > > > >Sincerely, > > > >Chunsheng Yang > >University of Connecticut > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/1db68aa0-d1bc-4c14-a88f-0305608d1790%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Fri Oct 25 17:24:10 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 25 Oct 2013 13:24:10 -0400 Subject: pedals In-Reply-To: <17d28975-fdc4-48de-929e-597840b34e80@googlegroups.com> Message-ID: Francesco, Been working on this repsonse for the past couple days... You will need to get a soldering iron and a multimeter, and have the skills to use them, or find & team up with a local electronics technician, as this is a bit of a do-it-yourself project. The first time I did this in the 1990s, we had keyboards that still had individual mechanical switches for each key, I just opened the keyboard case and soldered a pair of wires (from two-conductor speaker cable) directly to the desired key switch. I left about a foot (~0.5 m) hanging outside the keyboard and added an inline 3.5mm monophone jack to the end. The foot pedal either came with a 3.5mm monophone plug, or I cut off whatever it came with and replaced it with a 3.5mm plug myself. Of course, you will not likely come across those keyboards anymore. But no problem, it just means that you open up the keyboard again and patch directly into the keyboard matrix controller, which is what I did for a later project (and that time, I drilled a hole in the case and mounted a jack right on the keyboard case, very neat). Back then I got some insructions from a web page, but I cannot find that right now so you might have to Google around yourself -- I found the following that introduce some of the principles, http://www.howstuffworks.com/keyboard.htm and http://pcbheaven.com/wikipages/How_Key_Matrices_Works/ -- if you cannot figure out how to do this based on these principles, then you should not try this project. Anyway, once you you have a switch wired into the keyboard, it effectively *is* a keypress, so no need for any drivers or Devices or ports or anything else. But really, you would be better off using a PST SRBox. The SRBox has an expansion connector inside that allows you to easily add external devices that will then act just as if you pressed buttons on the SRBox. In that case, you will only need to connect two wires from the pedal to a mating connector -- the SRBox should come with a manual that explains the priciples involved (I have the manual right here), or you can purchase PST's SRBox Custom Expansion Kit... Well, I just looked this up now, and for a total of US$640, you can get the SRBox (US$450), the Custom Expansion Kit (US$150), *and* a foot pedal (US$40), so there you go! Yes, that is a bit of money, but you will find the SRBox handy for many reasons, including better timing performance (see PST's measurements at http://www.pstnet.com/eprimedevice.cfm ). But if you want to save $150, you can do without the Custom Expansion Kit and just get the interfacing components you need from an electronics supplier. I think that should cover it. -- David McFarlane At 10/22/2013 06:28 PM Tuesday, francesco biondi wrote: >Thanks David for the quick reply! > >It seems to me that the Casio option in quite convenient. > >At that time we just patched them directly into the keyboard so that >foot presses looked like a key press, e.g., {F12}. > > >Can you please give me a more detailed explanation? > >Since it has a Jack plug, which port should i use? do i need to get >an adapter? >(apologizes, but I am not familiar with this topic at all) > >In eprime, which device should i select from AddDevice window? > >Thanks, > >and still apologizes whether my questions sound stupid. > >On Tuesday, October 22, 2013 4:08:59 PM UTC-6, McFarlane, David wrote: >Francesco, > >Years ago we did an experiment using foot pedals, we just used simple >on-off foot switch pedals from Radio Shack, they do not seem to carry >them anymore but you can get a glimpse of what I mean at >http://www.eham.net/reviews/detail/4801 >, or see the Casio model at >http://www.bestbuy.com/site/casio-sp3-keyboard-sustain-pedal/6733588.p >. > >At that time we just patched them directly into the keyboard so that >foot presses looked like a key press, e.g., {F12}. Alternatively, >you could just patch these into a PST SRBox and go from there. > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx > >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at >https://support.pstnet.com , and they >strive to respond to all requests in 24-48 hours, so make full use of >it. 3) In addition, PST offers several instructional videos on their >YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do >get an answer from PST staff, please extend the courtesy of posting >their reply back here for the sake of others. >\---- > > >At 10/22/2013 04:38 PM Tuesday, francesco biondi wrote: > >I am about to run an experiment in which I collect foot responses. > >I have V3 Interact pedals, Windows 7 and no drivers to install the pedals. > >I could not find any drivers to get the V3 pedals working on my pc. > > > >I think I will be purchasing new pedals then. > > > >Do you know about / Have any of you already used pedals to run > >experiments in eprime? > > > >If so, can you suggest me a particular brand? > > > >Thanks, > > > >Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/526aa93d.8570320a.7ddc.3164SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Fri Oct 25 17:53:59 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 25 Oct 2013 13:53:59 -0400 Subject: probabilistic stimuli In-Reply-To: <38276e68-87ba-4bf9-be0d-57fd91cb8eb2@googlegroups.com> Message-ID: One way to do this, maybe some others will come up with alternatives... Suppose your stimulus is named StimText, and you use an attribute reference, "[FollowupImageFile]", for the image file in the following stimulus. Then in inline code after StimText and before your followup stimulus, do something like the following: If (StimText.ACC And (PRNG.GetNext() < 0.8)) Then c.SetAttrib "FollowupImageFile", "CorrectFollowupImageFile" Else c.SetAttrib "FollowupImageFile", "OtherFollowupImageFile" End If See the PRNG and related topics in the E-Basic Help facility. BTW, the comparison "< 0.8" will work for all practical purposes, but you might consider whether "<= 0.8" would be more canonically correct -- I leave that as an exercise to the reader. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/23/2013 12:55 PM Wednesday, Pauline FAVRE wrote: >Dear E-prime users, >I try to control the occurrence of the a stimulus, i.e., during the >experiment, each trial consist first of a presentation of a stimulus >and then I would like that another image appears for only 80% of >correct responses on the previous stimulus (and different images for >the remaining 20% and the incorrect responses). > >In summary, I just would like that a specific stimuli appears in 80 >% of the cases. > >Is there an inline script that permit that a stimuli appears only in >a determined percentage of trials? > >Thank you very much for your help! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/526ab080.0286320a.7189.321eSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From pkhoosh at gmail.com Fri Oct 25 23:40:07 2013 From: pkhoosh at gmail.com (Pete Khooshabeh, PhD) Date: Fri, 25 Oct 2013 16:40:07 -0700 Subject: please help me convert ePrime professional file to standard Message-ID: Hello, Will someone be so kind as to save this file into ePrime standard? I really appreciate it. Here are instructions: http://www.youtube.com/watch?v=bw3HIk3M_7o Peter -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/ccbc8157-d0ce-4787-a9ad-eba0a2f8b319%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambling Task 070409.es2 Type: application/octet-stream Size: 59576 bytes Desc: not available URL: From jacanterbury at gmail.com Sun Oct 27 07:16:09 2013 From: jacanterbury at gmail.com (john@johnallen.it) Date: Sun, 27 Oct 2013 07:16:09 +0000 Subject: pedals In-Reply-To: <526aa93d.8570320a.7ddc.3164SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Francesco David's answers are all great, as slways, however if u dont want to spend good money on a response box snd if you'e happy using USB rather than serial port input, then you might like to consider this http://www.makeymakey.com/ On first appearance it may appear like a toy but I think you should be able to get it to work for your purpose. John On 25 Oct 2013 18:24, "David McFarlane" wrote: > Francesco, > > Been working on this repsonse for the past couple days... > > You will need to get a soldering iron and a multimeter, and have the > skills to use them, or find & team up with a local electronics technician, > as this is a bit of a do-it-yourself project. The first time I did this in > the 1990s, we had keyboards that still had individual mechanical switches > for each key, I just opened the keyboard case and soldered a pair of wires > (from two-conductor speaker cable) directly to the desired key switch. I > left about a foot (~0.5 m) hanging outside the keyboard and added an inline > 3.5mm monophone jack to the end. The foot pedal either came with a 3.5mm > monophone plug, or I cut off whatever it came with and replaced it with a > 3.5mm plug myself. > > Of course, you will not likely come across those keyboards anymore. But > no problem, it just means that you open up the keyboard again and patch > directly into the keyboard matrix controller, which is what I did for a > later project (and that time, I drilled a hole in the case and mounted a > jack right on the keyboard case, very neat). Back then I got some > insructions from a web page, but I cannot find that right now so you might > have to Google around yourself -- I found the following that introduce some > of the principles, http://www.howstuffworks.com/**keyboard.htmand > http://pcbheaven.com/**wikipages/How_Key_Matrices_**Works/-- if you cannot figure out how to do this based on these principles, then > you should not try this project. > > Anyway, once you you have a switch wired into the keyboard, it effectively > *is* a keypress, so no need for any drivers or Devices or ports or anything > else. > > > But really, you would be better off using a PST SRBox. The SRBox has an > expansion connector inside that allows you to easily add external devices > that will then act just as if you pressed buttons on the SRBox. In that > case, you will only need to connect two wires from the pedal to a mating > connector -- the SRBox should come with a manual that explains the > priciples involved (I have the manual right here), or you can purchase > PST's SRBox Custom Expansion Kit... Well, I just looked this up now, and > for a total of US$640, you can get the SRBox (US$450), the Custom Expansion > Kit (US$150), *and* a foot pedal (US$40), so there you go! Yes, that is a > bit of money, but you will find the SRBox handy for many reasons, including > better timing performance (see PST's measurements at > http://www.pstnet.com/**eprimedevice.cfm). But if you want to save $150, you can do without the Custom Expansion > Kit and just get the interfacing components you need from an electronics > supplier. > > I think that should cover it. > > -- David McFarlane > > > At 10/22/2013 06:28 PM Tuesday, francesco biondi wrote: > >> Thanks David for the quick reply! >> >> It seems to me that the Casio option in quite convenient. >> >> At that time we just patched them directly into the keyboard so that >> foot presses looked like a key press, e.g., {F12}. >> >> >> Can you please give me a more detailed explanation? >> >> Since it has a Jack plug, which port should i use? do i need to get an >> adapter? >> (apologizes, but I am not familiar with this topic at all) >> >> In eprime, which device should i select from AddDevice window? >> >> Thanks, >> >> and still apologizes whether my questions sound stupid. >> >> On Tuesday, October 22, 2013 4:08:59 PM UTC-6, McFarlane, David wrote: >> Francesco, >> >> Years ago we did an experiment using foot pedals, we just used simple >> on-off foot switch pedals from Radio Shack, they do not seem to carry >> them anymore but you can get a glimpse of what I mean at >> >> >http://www.eham.**net/reviews/detail/4801, or see the Casio model at >> > pedal/6733588.p >> >http://www.**bestbuy.com/site/casio-sp3-**keyboard-sustain-pedal/** >> 6733588.p. >> >> At that time we just patched them directly into the keyboard so that >> foot presses looked like a key press, e.g., {F12}. Alternatively, >> you could just patch these into a PST SRBox and go from there. >> >> ----- >> David McFarlane >> E-Prime training >> online: >> >**http://psychology.msu.edu/**Workshops_Courses/eprime.aspx >> Twitter: @EPrimeMaster ( >> >https://twitter.**com/EPrimeMaster ) >> >> /---- >> Stock reminder: 1) I do not work for PST. 2) PST's trained staff >> take any and all questions at ht** >> tps://support.pstnet.com , and they >> strive to respond to all requests in 24-48 hours, so make full use of >> it. 3) In addition, PST offers several instructional videos on their >> YouTube channel ( >> >http://www.youtube.com/**user/PSTNET). 4) If you do >> get an answer from PST staff, please extend the courtesy of posting >> their reply back here for the sake of others. >> \---- >> >> >> At 10/22/2013 04:38 PM Tuesday, francesco biondi wrote: >> >I am about to run an experiment in which I collect foot responses. >> >I have V3 Interact pedals, Windows 7 and no drivers to install the >> pedals. >> >I could not find any drivers to get the V3 pedals working on my pc. >> > >> >I think I will be purchasing new pedals then. >> > >> >Do you know about / Have any of you already used pedals to run >> >experiments in eprime? >> > >> >If so, can you suggest me a particular brand? >> > >> >Thanks, >> > >> >Francesco >> > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe@**googlegroups.com > . > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/** > msgid/e-prime/526aa93d.**8570320a.7ddc.3164SMTPIN_** > ADDED_MISSING%40gmr-mx.google.**com > . > For more options, visit https://groups.google.com/**groups/opt_out > . > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAAT4JdQxTyj1GmyE%3DELpVxQnwuNX%2B0gnTaCDOphtstXizynrQA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulinefavre at live.fr Mon Oct 28 17:06:34 2013 From: paulinefavre at live.fr (Pauline FAVRE) Date: Mon, 28 Oct 2013 10:06:34 -0700 Subject: probabilistic stimuli In-Reply-To: <526ab080.0286320a.7189.321eSMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thank you for your response. This seems to be a good solution. Unfortunately, the problem persists, the "correctFollowupImage" continue to be display even if the answer is incorrect (and vice versa)! Perhaps I can use the "Feedback" object but how can I specify the conditional probability for correct responses (i.e. 80% of correct responses with one feedback, nothing for the other 20% and for no responses, and different feedback for incorrect responses)? Again, thank you very much for your help. Sincerely, PF Le vendredi 25 octobre 2013 18:53:59 UTC+1, McFarlane, David a ?crit : > > One way to do this, maybe some others will come up with alternatives... > > Suppose your stimulus is named StimText, and you use an attribute > reference, "[FollowupImageFile]", for the image file in the following > stimulus. Then in inline code after StimText and before your > followup stimulus, do something like the following: > > If (StimText.ACC And (PRNG.GetNext() < 0.8)) Then > c.SetAttrib "FollowupImageFile", "CorrectFollowupImageFile" > Else > c.SetAttrib "FollowupImageFile", "OtherFollowupImageFile" > End If > > See the PRNG and related topics in the E-Basic Help facility. > > BTW, the comparison "< 0.8" will work for all practical purposes, but > you might consider whether "<= 0.8" would be more canonically correct > -- I leave that as an exercise to the reader. > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at https://support.pstnet.com , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 10/23/2013 12:55 PM Wednesday, Pauline FAVRE wrote: > >Dear E-prime users, > >I try to control the occurrence of the a stimulus, i.e., during the > >experiment, each trial consist first of a presentation of a stimulus > >and then I would like that another image appears for only 80% of > >correct responses on the previous stimulus (and different images for > >the remaining 20% and the incorrect responses). > > > >In summary, I just would like that a specific stimuli appears in 80 > >% of the cases. > > > >Is there an inline script that permit that a stimuli appears only in > >a determined percentage of trials? > > > >Thank you very much for your help! > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/12681ac9-7018-416f-bde6-ca14c3a9fc62%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Oct 29 19:57:30 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 29 Oct 2013 15:57:30 -0400 Subject: pedals In-Reply-To: Message-ID: John, Very cool! For US$50 (plus US$5 s/h within USA, US$15 elsewhere) the MaKey MaKey gizmo acts like a basic external digital input board through USB, converting any switch closure into an ordinary key press, mouse button press, or mouse movement useable by any software that recognizes a USB keyboard or mouse. I want one of these, could come in handy! Francesco, As it turns out, one of our labs has recently purchased USB foot pedals that act like key presses, and they use that with E-Prime. See http://www.tomtop.com/usb-foot-control-keyboard-mouse-action-three-switch-pedal-hid-c954.html . Cost is US$34 (plus s/h I suppose). Both the MaKey MaKey and USB foot pedals should work fine if you do not need absolute millisecond timing performance (note in particular that the MaKey MaKey page says that they use a moving window averager to lowpass switch noise in software, I imagine that might add a bit of delay; goodness knows how the USB foot pedals behave). Otherwise users should test input timing characteristics for themselves (use an oscilloscope, or a Black Box Toolkit). I would love to know what you end up with, please write back and let us know. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/27/2013 03:16 AM Sunday, john at johnallen.it wrote: >Francesco > >David's answers are all great, as slways, however if u dont want to >spend good money on a response box snd if you'e happy using USB >rather than serial port input, then you might like to consider this >http://www.makeymakey.com/ >On first appearance it may appear like a toy but I think you should >be able to get it to work for your purpose. > >John >On 25 Oct 2013 18:24, "David McFarlane" ><mcfarla9 at msu.edu> wrote: >Francesco, > >Been working on this repsonse for the past couple days... > >You will need to get a soldering iron and a multimeter, and have the >skills to use them, or find & team up with a local electronics >technician, as this is a bit of a do-it-yourself project. The first >time I did this in the 1990s, we had keyboards that still had >individual mechanical switches for each key, I just opened the >keyboard case and soldered a pair of wires (from two-conductor >speaker cable) directly to the desired key switch. I left about a >foot (~0.5 m) hanging outside the keyboard and added an inline 3.5mm >monophone jack to the end. The foot pedal either came with a 3.5mm >monophone plug, or I cut off whatever it came with and replaced it >with a 3.5mm plug myself. > >Of course, you will not likely come across those keyboards >anymore. But no problem, it just means that you open up the >keyboard again and patch directly into the keyboard matrix >controller, which is what I did for a later project (and that time, >I drilled a hole in the case and mounted a jack right on the >keyboard case, very neat). Back then I got some insructions from a >web page, but I cannot find that right now so you might have to >Google around yourself -- I found the following that introduce some >of the principles, >http://www.howstuffworks.com/keyboard.htm >and >http://pcbheaven.com/wikipages/How_Key_Matrices_Works/ >-- if you cannot figure out how to do this based on these >principles, then you should not try this project. > >Anyway, once you you have a switch wired into the keyboard, it >effectively *is* a keypress, so no need for any drivers or Devices >or ports or anything else. > > >But really, you would be better off using a PST SRBox. The SRBox >has an expansion connector inside that allows you to easily add >external devices that will then act just as if you pressed buttons >on the SRBox. In that case, you will only need to connect two wires >from the pedal to a mating connector -- the SRBox should come with a >manual that explains the priciples involved (I have the manual right >here), or you can purchase PST's SRBox Custom Expansion >Kit... Well, I just looked this up now, and for a total of US$640, >you can get the SRBox (US$450), the Custom Expansion Kit (US$150), >*and* a foot pedal (US$40), so there you go! Yes, that is a bit of >money, but you will find the SRBox handy for many reasons, including >better timing performance (see PST's measurements at >http://www.pstnet.com/eprimedevice.cfm >). But if you want to save $150, you can do without the Custom >Expansion Kit and just get the interfacing components you need from >an electronics supplier. > >I think that should cover it. > >-- David McFarlane > > >At 10/22/2013 06:28 PM Tuesday, francesco biondi wrote: >Thanks David for the quick reply! > >It seems to me that the Casio option in quite convenient. > >At that time we just patched them directly into the keyboard so that >foot presses looked like a key press, e.g., {F12}. > > >Can you please give me a more detailed explanation? > >Since it has a Jack plug, which port should i use? do i need to get >an adapter? >(apologizes, but I am not familiar with this topic at all) > >In eprime, which device should i select from AddDevice window? > >Thanks, > >and still apologizes whether my questions sound stupid. > >On Tuesday, October 22, 2013 4:08:59 PM UTC-6, McFarlane, David wrote: >Francesco, > >Years ago we did an experiment using foot pedals, we just used simple >on-off foot switch pedals from Radio Shack, they do not seem to carry >them anymore but you can get a glimpse of what I mean at ><http://www.eham.net/reviews/detail/4801>http://www.eham.net/reviews/detail/4801 >, or see the Casio model at ><http://www.bestbuy.com/site/casio-sp3-keyboard-sustain-pedal/6733588.p>http://www.bestbuy.com/site/casio-sp3-keyboard-sustain-pedal/6733588.p >. > >At that time we just patched them directly into the keyboard so that >foot presses looked like a key press, e.g., {F12}. Alternatively, >you could just patch these into a PST SRBox and go from there. > >----- >David McFarlane >E-Prime training >online: ><http://psychology.msu.edu/Workshops_Courses/eprime.aspx>http://psychology.msu.edu/Workshops_Courses/eprime.aspx > >Twitter: @EPrimeMaster >(<https://twitter.com/EPrimeMaster>https://twitter.com/EPrimeMaster >) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at ><https://support.pstnet.com>https://support.pstnet.com >, and they >strive to respond to all requests in 24-48 hours, so make full use of >it. 3) In addition, PST offers several instructional videos on their >YouTube channel >(<http://www.youtube.com/user/PSTNET>http://www.youtube.com/user/PSTNET >). 4) If you do >get an answer from PST staff, please extend the courtesy of posting >their reply back here for the sake of others. >\---- > > >At 10/22/2013 04:38 PM Tuesday, francesco biondi wrote: > >I am about to run an experiment in which I collect foot responses. > >I have V3 Interact pedals, Windows 7 and no drivers to install the pedals. > >I could not find any drivers to get the V3 pedals working on my pc. > > > >I think I will be purchasing new pedals then. > > > >Do you know about / Have any of you already used pedals to run > >experiments in eprime? > > > >If so, can you suggest me a particular brand? > > > >Thanks, > > > >Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/52701330.48e1320a.12cd.2893SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From mcfarla9 at msu.edu Tue Oct 29 20:04:06 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 29 Oct 2013 16:04:06 -0400 Subject: pedals In-Reply-To: <52701330.48e1320a.12cd.2893SMTPIN_ADDED_MISSING@gmr-mx.goo gle.com> Message-ID: Just to clarify that last point, even patching a foot pedal directly into the keyboard does not give you the best timing performance, because keyboards generally provide only mediocre performance (but see http://www.empirisoft.com/directinkb.aspx ). If you want millisecond-quality performance, you need to incorporate something like an SRBox, or a high-speed I/O device (e.g., old-fashioned parallel port). -- David McFarlane At 10/29/2013 03:57 PM Tuesday, David McFarlane wrote: >John, Very cool! For US$50 (plus US$5 s/h within USA, US$15 >elsewhere) the MaKey MaKey gizmo acts like a basic external digital >input board through USB, converting any switch closure into an >ordinary key press, mouse button press, or mouse movement useable by >any software that recognizes a USB keyboard or mouse. I want one of >these, could come in handy! > >Francesco, As it turns out, one of our labs has recently purchased >USB foot pedals that act like key presses, and they use that with >E-Prime. See >http://www.tomtop.com/usb-foot-control-keyboard-mouse-action-three-switch-pedal-hid-c954.html >. Cost is US$34 (plus s/h I suppose). > >Both the MaKey MaKey and USB foot pedals should work fine if you do >not need absolute millisecond timing performance (note in particular >that the MaKey MaKey page says that they use a moving window >averager to lowpass switch noise in software, I imagine that might >add a bit of delay; goodness knows how the USB foot pedals >behave). Otherwise users should test input timing characteristics >for themselves (use an oscilloscope, or a Black Box Toolkit). > >I would love to know what you end up with, please write back and let us know. > >----- >David McFarlane >E-Prime training >online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at https://support.pstnet.com , and they >strive to respond to all requests in 24-48 hours, so make full use >of it. 3) In addition, PST offers several instructional videos on >their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If >you do get an answer from PST staff, please extend the courtesy of >posting their reply back here for the sake of others. >\---- > > >At 10/27/2013 03:16 AM Sunday, john at johnallen.it wrote: > >>Francesco >> >>David's answers are all great, as slways, however if u dont want to >>spend good money on a response box snd if you'e happy using USB >>rather than serial port input, then you might like to consider this >>http://www.makeymakey.com/ >>On first appearance it may appear like a toy but I think you should >>be able to get it to work for your purpose. >> >>John >>On 25 Oct 2013 18:24, "David McFarlane" >><mcfarla9 at msu.edu> wrote: >>Francesco, >> >>Been working on this repsonse for the past couple days... >> >>You will need to get a soldering iron and a multimeter, and have >>the skills to use them, or find & team up with a local electronics >>technician, as this is a bit of a do-it-yourself project. The >>first time I did this in the 1990s, we had keyboards that still had >>individual mechanical switches for each key, I just opened the >>keyboard case and soldered a pair of wires (from two-conductor >>speaker cable) directly to the desired key switch. I left about a >>foot (~0.5 m) hanging outside the keyboard and added an inline >>3.5mm monophone jack to the end. The foot pedal either came with a >>3.5mm monophone plug, or I cut off whatever it came with and >>replaced it with a 3.5mm plug myself. >> >>Of course, you will not likely come across those keyboards >>anymore. But no problem, it just means that you open up the >>keyboard again and patch directly into the keyboard matrix >>controller, which is what I did for a later project (and that time, >>I drilled a hole in the case and mounted a jack right on the >>keyboard case, very neat). Back then I got some insructions from a >>web page, but I cannot find that right now so you might have to >>Google around yourself -- I found the following that introduce some >>of the principles, >>http://www.howstuffworks.com/keyboard.htm >>and >>http://pcbheaven.com/wikipages/How_Key_Matrices_Works/ >>-- if you cannot figure out how to do this based on these >>principles, then you should not try this project. >> >>Anyway, once you you have a switch wired into the keyboard, it >>effectively *is* a keypress, so no need for any drivers or Devices >>or ports or anything else. >> >> >>But really, you would be better off using a PST SRBox. The SRBox >>has an expansion connector inside that allows you to easily add >>external devices that will then act just as if you pressed buttons >>on the SRBox. In that case, you will only need to connect two >>wires from the pedal to a mating connector -- the SRBox should come >>with a manual that explains the priciples involved (I have the >>manual right here), or you can purchase PST's SRBox Custom >>Expansion Kit... Well, I just looked this up now, and for a total >>of US$640, you can get the SRBox (US$450), the Custom Expansion Kit >>(US$150), *and* a foot pedal (US$40), so there you go! Yes, that >>is a bit of money, but you will find the SRBox handy for many >>reasons, including better timing performance (see PST's >>measurements at >>http://www.pstnet.com/eprimedevice.cfm >>). But if you want to save $150, you can do without the Custom >>Expansion Kit and just get the interfacing components you need from >>an electronics supplier. >> >>I think that should cover it. >> >>-- David McFarlane >> >> >>At 10/22/2013 06:28 PM Tuesday, francesco biondi wrote: >>Thanks David for the quick reply! >> >>It seems to me that the Casio option in quite convenient. >> >>At that time we just patched them directly into the keyboard so that >>foot presses looked like a key press, e.g., {F12}. >> >> >>Can you please give me a more detailed explanation? >> >>Since it has a Jack plug, which port should i use? do i need to get >>an adapter? >>(apologizes, but I am not familiar with this topic at all) >> >>In eprime, which device should i select from AddDevice window? >> >>Thanks, >> >>and still apologizes whether my questions sound stupid. >> >>On Tuesday, October 22, 2013 4:08:59 PM UTC-6, McFarlane, David wrote: >>Francesco, >> >>Years ago we did an experiment using foot pedals, we just used simple >>on-off foot switch pedals from Radio Shack, they do not seem to carry >>them anymore but you can get a glimpse of what I mean at >><http://www.eham.net/reviews/detail/4801>http://www.eham.net/reviews/detail/4801 >>, or see the Casio model at >><http://www.bestbuy.com/site/casio-sp3-keyboard-sustain-pedal/6733588.p>http://www.bestbuy.com/site/casio-sp3-keyboard-sustain-pedal/6733588.p >>. >> >>At that time we just patched them directly into the keyboard so that >>foot presses looked like a key press, e.g., {F12}. Alternatively, >>you could just patch these into a PST SRBox and go from there. >> >>----- >>David McFarlane >>E-Prime training >>online: >><http://psychology.msu.edu/Workshops_Courses/eprime.aspx>http://psychology.msu.edu/Workshops_Courses/eprime.aspx >> >>Twitter: @EPrimeMaster >>(<https://twitter.com/EPrimeMaster>https://twitter.com/EPrimeMaster >>) >> >>/---- >>Stock reminder: 1) I do not work for PST. 2) PST's trained staff >>take any and all questions at >><https://support.pstnet.com>https://support.pstnet.com >>, and they >>strive to respond to all requests in 24-48 hours, so make full use of >>it. 3) In addition, PST offers several instructional videos on their >>YouTube channel >>(<http://www.youtube.com/user/PSTNET>http://www.youtube.com/user/PSTNET >>). 4) If you do >>get an answer from PST staff, please extend the courtesy of posting >>their reply back here for the sake of others. >>\---- >> >> >>At 10/22/2013 04:38 PM Tuesday, francesco biondi wrote: >> >I am about to run an experiment in which I collect foot responses. >> >I have V3 Interact pedals, Windows 7 and no drivers to install the pedals. >> >I could not find any drivers to get the V3 pedals working on my pc. >> > >> >I think I will be purchasing new pedals then. >> > >> >Do you know about / Have any of you already used pedals to run >> >experiments in eprime? >> > >> >If so, can you suggest me a particular brand? >> > >> >Thanks, >> > >> >Francesco -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/527014bd.8570320a.4d63.28bbSMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out. From francesco.biondi at ymail.com Tue Oct 29 20:55:56 2013 From: francesco.biondi at ymail.com (francesco.biondi at ymail.com) Date: Tue, 29 Oct 2013 14:55:56 -0600 Subject: pedals In-Reply-To: <527014bd.8570320a.4d63.28bbSMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks David for your precious support. Like you, my main concern about MaKey MaKey is the timing. For my experiment, I think I will ended up using the pedal from PST. It is not cheap, but (hopefully) I won't have problems interfacing it with E-prime through the SRBox. My lab has ordered one today. According to PST, it should take just a few days to be shipped. I will keep you updated on how it works. Thanks! On Tue, Oct 29, 2013 at 2:04 PM, David McFarlane wrote: > Just to clarify that last point, even patching a foot pedal directly into > the keyboard does not give you the best timing performance, because > keyboards generally provide only mediocre performance (but see > http://www.empirisoft.com/**directinkb.aspx). If you want millisecond-quality performance, you need to incorporate > something like an SRBox, or a high-speed I/O device (e.g., old-fashioned > parallel port). > > -- David McFarlane > > > > At 10/29/2013 03:57 PM Tuesday, David McFarlane wrote: > >> John, Very cool! For US$50 (plus US$5 s/h within USA, US$15 elsewhere) >> the MaKey MaKey gizmo acts like a basic external digital input board >> through USB, converting any switch closure into an ordinary key press, >> mouse button press, or mouse movement useable by any software that >> recognizes a USB keyboard or mouse. I want one of these, could come in >> handy! >> >> Francesco, As it turns out, one of our labs has recently purchased USB >> foot pedals that act like key presses, and they use that with E-Prime. See >> http://www.tomtop.com/usb-**foot-control-keyboard-mouse-** >> action-three-switch-pedal-hid-**c954.html. Cost is US$34 (plus s/h I suppose). >> >> Both the MaKey MaKey and USB foot pedals should work fine if you do not >> need absolute millisecond timing performance (note in particular that the >> MaKey MaKey page says that they use a moving window averager to lowpass >> switch noise in software, I imagine that might add a bit of delay; goodness >> knows how the USB foot pedals behave). Otherwise users should test input >> timing characteristics for themselves (use an oscilloscope, or a Black Box >> Toolkit). >> >> I would love to know what you end up with, please write back and let us >> know. >> >> ----- >> David McFarlane >> E-Prime training online: http://psychology.msu.edu/** >> Workshops_Courses/eprime.aspx >> Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMaster) >> >> /---- >> Stock reminder: 1) I do not work for PST. 2) PST's trained staff take >> any and all questions at https://support.pstnet.com , and they strive to >> respond to all requests in 24-48 hours, so make full use of it. 3) In >> addition, PST offers several instructional videos on their YouTube channel ( >> http://www.youtube.com/user/**PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy >> of posting their reply back here for the sake of others. >> \---- >> >> >> At 10/27/2013 03:16 AM Sunday, john at johnallen.it wrote: >> >> Francesco >>> >>> David's answers are all great, as slways, however if u dont want to >>> spend good money on a response box snd if you'e happy using USB rather than >>> serial port input, then you might like to consider this < >>> http://www.makeymakey.com/>ht**tp://www.makeymakey.com/ >>> On first appearance it may appear like a toy but I think you should be >>> able to get it to work for your purpose. >>> >>> John >>> On 25 Oct 2013 18:24, "David McFarlane" <mcfa** >>> rla9 at msu.edu > wrote: >>> Francesco, >>> >>> Been working on this repsonse for the past couple days... >>> >>> You will need to get a soldering iron and a multimeter, and have the >>> skills to use them, or find & team up with a local electronics technician, >>> as this is a bit of a do-it-yourself project. The first time I did this in >>> the 1990s, we had keyboards that still had individual mechanical switches >>> for each key, I just opened the keyboard case and soldered a pair of wires >>> (from two-conductor speaker cable) directly to the desired key switch. I >>> left about a foot (~0.5 m) hanging outside the keyboard and added an inline >>> 3.5mm monophone jack to the end. The foot pedal either came with a 3.5mm >>> monophone plug, or I cut off whatever it came with and replaced it with a >>> 3.5mm plug myself. >>> >>> Of course, you will not likely come across those keyboards anymore. But >>> no problem, it just means that you open up the keyboard again and patch >>> directly into the keyboard matrix controller, which is what I did for a >>> later project (and that time, I drilled a hole in the case and mounted a >>> jack right on the keyboard case, very neat). Back then I got some >>> insructions from a web page, but I cannot find that right now so you might >>> have to Google around yourself -- I found the following that introduce some >>> of the principles, >>> >http://www.**howstuffworks.com/keyboard.htmand >>> >>> >http://pcbheaven.com/**wikipages/How_Key_Matrices_**Works/-- if you cannot figure out how to do this based on these principles, then >>> you should not try this project. >>> >>> Anyway, once you you have a switch wired into the keyboard, it >>> effectively *is* a keypress, so no need for any drivers or Devices or ports >>> or anything else. >>> >>> >>> But really, you would be better off using a PST SRBox. The SRBox has an >>> expansion connector inside that allows you to easily add external devices >>> that will then act just as if you pressed buttons on the SRBox. In that >>> case, you will only need to connect two wires from the pedal to a mating >>> connector -- the SRBox should come with a manual that explains the >>> priciples involved (I have the manual right here), or you can purchase >>> PST's SRBox Custom Expansion Kit... Well, I just looked this up now, and >>> for a total of US$640, you can get the SRBox (US$450), the Custom Expansion >>> Kit (US$150), *and* a foot pedal (US$40), so there you go! Yes, that is a >>> bit of money, but you will find the SRBox handy for many reasons, including >>> better timing performance (see PST's measurements at < >>> http://www.pstnet.com/**eprimedevice.cfm >>> >http://www.**pstnet.com/eprimedevice.cfm). But if you want to save $150, you can do without the Custom Expansion >>> Kit and just get the interfacing components you need from an electronics >>> supplier. >>> >>> I think that should cover it. >>> >>> -- David McFarlane >>> >>> >>> At 10/22/2013 06:28 PM Tuesday, francesco biondi wrote: >>> Thanks David for the quick reply! >>> >>> It seems to me that the Casio option in quite convenient. >>> >>> At that time we just patched them directly into the keyboard so that >>> foot presses looked like a key press, e.g., {F12}. >>> >>> >>> Can you please give me a more detailed explanation? >>> >>> Since it has a Jack plug, which port should i use? do i need to get an >>> adapter? >>> (apologizes, but I am not familiar with this topic at all) >>> >>> In eprime, which device should i select from AddDevice window? >>> >>> Thanks, >>> >>> and still apologizes whether my questions sound stupid. >>> >>> On Tuesday, October 22, 2013 4:08:59 PM UTC-6, McFarlane, David wrote: >>> Francesco, >>> >>> Years ago we did an experiment using foot pedals, we just used simple >>> on-off foot switch pedals from Radio Shack, they do not seem to carry >>> them anymore but you can get a glimpse of what I mean at >>> < >>> >http://www.eham.**net/reviews/detail/4801 >>> >http:/**/www.eham.net/reviews/detail/**4801, or see the Casio model at >>> <>> pedal/6733588.p >>> >http://www.**bestbuy.com/site/casio-sp3-**keyboard-sustain-pedal/** >>> 6733588.p >>> >http://www.bestbuy.**com/site/casio-sp3-keyboard-** >>> sustain-pedal/6733588.p. >>> >>> At that time we just patched them directly into the keyboard so that >>> foot presses looked like a key press, e.g., {F12}. Alternatively, >>> you could just patch these into a PST SRBox and go from there. >>> >>> ----- >>> David McFarlane >>> E-Prime training >>> online: < >>> >**http://psychology.msu.edu/**Workshops_Courses/eprime.aspx >>> >**http://psychology.msu.edu/**Workshops_Courses/eprime.aspx >>> Twitter: @EPrimeMaster (< >>> >https://twitter.**com/EPrimeMaster > >>> https://**twitter.com/EPrimeMaster ) >>> >>> /---- >>> Stock reminder: 1) I do not work for PST. 2) PST's trained staff >>> take any and all questions at <h** >>> ttps://support.pstnet.com >http** >>> s://support.pstnet.com , and they >>> strive to respond to all requests in 24-48 hours, so make full use of >>> it. 3) In addition, PST offers several instructional videos on their >>> YouTube channel (< >>> >http://www.**youtube.com/user/PSTNET >>> >http:/**/www.youtube.com/user/PSTNET). 4) If you do >>> get an answer from PST staff, please extend the courtesy of posting >>> their reply back here for the sake of others. >>> \---- >>> >>> >>> At 10/22/2013 04:38 PM Tuesday, francesco biondi wrote: >>> >I am about to run an experiment in which I collect foot responses. >>> >I have V3 Interact pedals, Windows 7 and no drivers to install the >>> pedals. >>> >I could not find any drivers to get the V3 pedals working on my pc. >>> > >>> >I think I will be purchasing new pedals then. >>> > >>> >Do you know about / Have any of you already used pedals to run >>> >experiments in eprime? >>> > >>> >If so, can you suggest me a particular brand? >>> > >>> >Thanks, >>> > >>> >Francesco >>> >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "E-Prime" group. > To unsubscribe from this topic, visit https://groups.google.com/d/** > topic/e-prime/f7w5T680PZU/**unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > e-prime+unsubscribe@**googlegroups.com > . > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/** > msgid/e-prime/527014bd.**8570320a.4d63.28bbSMTPIN_** > ADDED_MISSING%40gmr-mx.google.**com > . > > For more options, visit https://groups.google.com/**groups/opt_out > . > -- *- - - - - - - - - - - - - - - - - - - - - - - - - - * *Francesco Biondi* *PhD student in Cognitive Science* http://colab.psy.unipd.it/people-detail.php?ID=3650 -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAFNoCas8%3DzEZpU%3D15nqNA9OdokWW2u9X3w5zKySiuFyx%3DC%3D8yg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gusunny1 at gmail.com Thu Oct 31 03:03:47 2013 From: gusunny1 at gmail.com (=?GB2312?B?vKrP6cjn0uI=?=) Date: Thu, 31 Oct 2013 11:03:47 +0800 Subject: 2 slides equal to one time duration In-Reply-To: <526573bf.0286320a.39d7.2574SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Dear David McFarlane? I have tried your suggestion, it really works and it's quite simple compared with what I performed before as : BSlide.Duration=2500-ASlide.RT, and one more question, why you use 2500 - (Clock.Read - ASlide.OnsetTime). Thanks a lot. 2013/10/22 David McFarlane > Just for the record, I need to correct a bit of my advice here. Earlier, > I said that using > > SetNextTargetOnsetTime ASlide.OnsetTime > > between ASlide and BSlide would make the total duration from the start of > ASlide to the end of BSlide equal the specified Duration of BSlide (in this > case, 2500 ms). But I neglected to say that, for this to work, you must > also set BSlide to use Cumulative timing mode. This works because, in > Cumulative timing mode, the TargetOnset time for whatever follows BSlide > will be based on the TargetOnsetTime of BSlide (instead of actual > OnsetTime), and BSlide.TargetOnsetTime will come from the > NextTargetOnsetTime implied in the code above. I generally like this > approach because it eliminates any errors due to delays in starting BSlide. > > Furthermore, the line of code above makes the total duration of ASlide + > BSlide act like Event timing mode (think it through). If you want that to > instead act like Cumulative timing mode, then that line should read > > SetNextTargetOnsetTime ASlide.TargetOnsetTime > > i.e., use .TargetOnsetTime instead of just .OnsetTime. > > > If you stubbornly insist on keeping BSlide set to Event timing mode, then > the TargetOnset time for whatever follows BSlide will be based on the > actual OnsetTime of BSlide, and you have no recourse but to manipulate the > Duration of BSlide. In that case, your inline code between ASlide and > BSlide should look more like > > BSlide.Duration = 2500 - (Clock.Read - ASlide.OnsetTime) > > or if you prefer, > > c.SetAttrib "BSlideDuration", 2500 - (Clock.Read - ASlide.OnsetTime) > > and then use "[BSlideDuration]" as an attribute reference for the Duration > of BSlide (see comments on assigning object properties directly in code vs. > via attribute reference at https://groups.google.com/d/** > topic/e-prime/dWpfjk-BeLsand > https://groups.google.com/d/**topic/e-prime/g1Fv2CGaSeg). > > Manipulating Duration (instead of NextTargetOnsetTime) also means that the > actual duration of BSlide (and ASlide + BSlide) will vary depending on any > delays in starting BSlide, but maybe that is what you want. > > > ----- > David McFarlane > E-Prime training online: http://psychology.msu.edu/** > Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMaster) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > any and all questions at https://support.pstnet.com , and they strive to > respond to all requests in 24-48 hours, so make full use of it. 3) In > addition, PST offers several instructional videos on their YouTube channel ( > http://www.youtube.com/user/**PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy > of posting their reply back here for the sake of others. > \---- > > > At 10/14/2013 02:22 PM Monday, David McFarlane wrote: > >> Not sure I follow your description of the problem. But let's suppose you >> have two Slides in your Procedure, let's call them ASlide and BSlide. >> ASlide takes a response, and the Procedure moves on to present BSlide >> whenever ASlide gets a response, or 2000 ms, whichever comes first. And >> you want the total duration for ASlide & BSlide to be 2500 ms, i.e., BSlide >> should last for 2500 - (ASlide_actual_duration). >> >> There are many ways to skin this cat. My favorite method goes as >> follows. Set the Duration of BSlide to 2500, and in an Inline between >> ASlide and BSlide, do the following: >> >> SetNextTargetOnsetTime ASlide.OnsetTime >> >> That's all! Understanding how this works takes some deeper understanding >> of E-Prime timing models & mechanisms, more than I can go into here, but >> look at the SetNextTargetOnsetTime topic in the E-Basic Help facility. But >> in short, with that bit of code, BSlide will use the actual OnsetTime from >> ASlide in order to compute its own ending time, and so will end at 2500 ms >> from the OnsetTime of ASlide, whithout you having to do anything more. >> Presto! >> >> ----- >> David McFarlane >> E-Prime training online: http://psychology.msu.edu/** >> Workshops_Courses/eprime.aspx >> Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMaster) >> >> /---- >> Stock reminder: 1) I do not work for PST. 2) PST's trained staff take >> any and all questions at https://support.pstnet.com , and they strive to >> respond to all requests in 24-48 hours, so make full use of it. 3) In >> addition, PST offers several instructional videos on their YouTube channel ( >> http://www.youtube.com/user/**PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy >> of posting their reply back here for the sake of others. >> \---- >> >> >> At 10/8/2013 10:00 PM Tuesday, Kim Goodyear wrote: >> >>> I am trying to have two sequential slides that are equal to one time >>> duration of 2500 ms. The first slide and the second slide are completely >>> identical, except in the second slide the text color changes to red so that >>> the participant can see their selection, I want the first slide to >>> terminate and then have the second slide come up so that they both equal >>> the same 2500 ms. Since the response time will vary I don't know how to >>> make both slides equal to the same 2500. I don't know why, but if the >>> buttons aren't selected right away, the total duration is around 5000, or >>> if there is a delay in the response, the total duration is around 4200. I >>> am not sure how to fix this issue, any advice would be great. Here is my >>> inline script: >>> >>> Dim ResetSlide as integer >>> Dim x as integer >>> >>> ResetSlide = StimDisplay.Duration + StimDisplay2.Duration >>> ResetSlide = x >>> x = 2500 >>> >> > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe@**googlegroups.com > . > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/** > msgid/e-prime/526573bf.**0286320a.39d7.2574SMTPIN_** > ADDED_MISSING%40gmr-mx.google.**com > . > > For more options, visit https://groups.google.com/**groups/opt_out > . > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAJO0WNaUW4uf8keCXTtJd375UCg9SpSpntHKDXuEPiWwsUUoZQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nebizzy at gmail.com Thu Oct 31 12:46:08 2013 From: nebizzy at gmail.com (Ieva Zeromskaite) Date: Thu, 31 Oct 2013 05:46:08 -0700 Subject: Unable to play sound files Message-ID: Hello, I am having problems with the loading of sound files. After showing the instructions, neither the Slide Object (with a soundfile inside) nor the SoundOut Object plays when I run the experiment. I checked that the soundfile names are correct, in the same file as the eps file, procedure titles are correct too. There's something wrong with the SoundBuffer, however, Eprime script doesn't say what exactly. Below is the script's copy : **** SoundOut1.ResetLoggingProperties Set SoundOut1SoundBuffer = SoundOut1.Buffers(1) SoundOut1SoundBuffer.Filename = c.GetAttrib(ebUCase_S & ebLCase_o & ebLCase_u & ebLCase_n & ebLCase_d & ebUCase_F & ebLCase_i & ebLCase_l & ebLCase_e) SoundOut1SoundBuffer.Load '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' Label - Procedure_Timeline_Start BEGIN '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Procedure_Timeline_Start: If Err.Number = ebInputAccepted Then Err.Clear Resume Procedure_Timeline_StartResume ElseIf Err.Number <> 0 Then *** I would be grateful if anybody could help me with that. Thanks, Ieva -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/9ec58a36-4200-4985-8e1c-a9998203c34c%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu Oct 31 20:01:41 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 31 Oct 2013 16:01:41 -0400 Subject: 2 slides equal to one time duration In-Reply-To: Message-ID: Glad you found that useful. Hope I understand your question... Let's see, we have BSlide.Duration = 2500 - ASlide.RT and since RT = (ASlide.RTTime - ASlide.OnsetTime), that is the same as BSlide.Duration = 2500 - (ASlide.RTTime - ASlide.OnsetTime) which is not all that different from BSlide.Duration = 2500 - (Clock.Read - ASlide.OnsetTime) So the difference is slight. But here's the deal. The goal here is to make BSlide end precisely 2500 ms after the onset of ASlide. Some small time may pass between ASlide.RTTime and the time when BSlide starts, and if that happens then if you base BSlide.Duration on ASlide.RTTime then the Duration will be a little too long and that will make the full time of ASlide + BSlide longer than intended. Using the Clock.Read in code immediately before BSlide should give you a closer estimate of the Duration needed for BSlide, but even here, any delay between the computation of BSlide.Duration and when BSlide actually starts running will result in Duration being just a little too long. May not be enough to matter, but why not be more exact if we can? So I advise *against* doing things this way just because of the complications of all these little delays. Instead, my main advice of using SetNextTargetOnsetTime along with Cumulative timing mode avoids these complications, and used properly, can result in precise timing. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster ) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at https://support.pstnet.com , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 10/30/2013 11:03 PM Wednesday, =?GB2312?B?vKrP6cjn0uI=?= wrote: >Dear David McFarlane??? > I have tried your suggestion, it really works > and it's quite simple compared with what I > performed before as : > BSlide.Duration=2500-ASlide.RT, and one more > question, why you use 2500 - (Clock.Read - ASlide.OnsetTime). >Thanks a lot. > > >2013/10/22 David McFarlane <mcfarla9 at msu.edu> >Just for the record, I need to correct a bit of >my advice here. Earlier, I said that using > > SetNextTargetOnsetTime ASlide.OnsetTime > >between ASlide and BSlide would make the total >duration from the start of ASlide to the end of >BSlide equal the specified Duration of BSlide >(in this case, 2500 ms). But I neglected to say >that, for this to work, you must also set BSlide >to use Cumulative timing mode. This works >because, in Cumulative timing mode, the >TargetOnset time for whatever follows BSlide >will be based on the TargetOnsetTime of BSlide >(instead of actual OnsetTime), and >BSlide.TargetOnsetTime will come from the >NextTargetOnsetTime implied in the code >above. I generally like this approach because >it eliminates any errors due to delays in starting BSlide. > >Furthermore, the line of code above makes the >total duration of ASlide + BSlide act like Event >timing mode (think it through). If you want >that to instead act like Cumulative timing mode, then that line should read > > SetNextTargetOnsetTime ASlide.TargetOnsetTime > >i.e., use .TargetOnsetTime instead of just .OnsetTime. > > >If you stubbornly insist on keeping BSlide set >to Event timing mode, then the TargetOnset time >for whatever follows BSlide will be based on the >actual OnsetTime of BSlide, and you have no >recourse but to manipulate the Duration of >BSlide. In that case, your inline code between >ASlide and BSlide should look more like > > BSlide.Duration = 2500 - (Clock.Read - ASlide.OnsetTime) > >or if you prefer, > > c.SetAttrib "BSlideDuration", 2500 - (Clock.Read - ASlide.OnsetTime) > >and then use "[BSlideDuration]" as an attribute >reference for the Duration of BSlide (see >comments on assigning object properties directly >in code vs. via attribute reference at >https://groups.google.com/d/topic/e-prime/dWpfjk-BeLs >and >https://groups.google.com/d/topic/e-prime/g1Fv2CGaSeg >). > >Manipulating Duration (instead of >NextTargetOnsetTime) also means that the actual >duration of BSlide (and ASlide + BSlide) will >vary depending on any delays in starting BSlide, >but maybe that is what you want. > > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) >PST's trained staff take any and all questions >at >https://support.pstnet.com >, and they strive to respond to all requests in >24-48 hours, so make full use of it. 3) In >addition, PST offers several instructional >videos on their YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do get an answer from PST staff, >please extend the courtesy of posting their >reply back here for the sake of others. >\---- > > >At 10/14/2013 02:22 PM Monday, David McFarlane wrote: >Not sure I follow your description of the >problem. But let's suppose you have two Slides >in your Procedure, let's call them ASlide and >BSlide. ASlide takes a response, and the >Procedure moves on to present BSlide whenever >ASlide gets a response, or 2000 ms, whichever >comes first. And you want the total duration >for ASlide & BSlide to be 2500 ms, i.e., BSlide >should last for 2500 - (ASlide_actual_duration). > >There are many ways to skin this cat. My >favorite method goes as follows. Set the >Duration of BSlide to 2500, and in an Inline >between ASlide and BSlide, do the following: > > SetNextTargetOnsetTime ASlide.OnsetTime > >That's all! Understanding how this works takes >some deeper understanding of E-Prime timing >models & mechanisms, more than I can go into >here, but look at the SetNextTargetOnsetTime >topic in the E-Basic Help facility. But in >short, with that bit of code, BSlide will use >the actual OnsetTime from ASlide in order to >compute its own ending time, and so will end at >2500 ms from the OnsetTime of ASlide, whithout >you having to do anything more. Presto! > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster ) > >/---- >Stock reminder: 1) I do not work for PST. 2) >PST's trained staff take any and all questions >at >https://support.pstnet.com >, and they strive to respond to all requests in >24-48 hours, so make full use of it. 3) In >addition, PST offers several instructional >videos on their YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do get an answer from PST staff, >please extend the courtesy of posting their >reply back here for the sake of others. >\---- > > >At 10/8/2013 10:00 PM Tuesday, Kim Goodyear wrote: >I am trying to have two sequential slides that >are equal to one time duration of 2500 ms. The >first slide and the second slide are completely >identical, except in the second slide the text >color changes to red so that the participant can >see their selection, I want the first slide to >terminate and then have the second slide come up >so that they both equal the same 2500 ms. Since >the response time will vary I don't know how to >make both slides equal to the same 2500. I >don't know why, but if the buttons aren't >selected right away, the total duration is >around 5000, or if there is a delay in the >response, the total duration is around 4200. I >am not sure how to fix this issue, any advice >would be great. Here is my inline script: > >Dim ResetSlide as integer >Dim x as integer > >ResetSlide = StimDisplay.Duration + StimDisplay2.Duration >ResetSlide = x >x = 2500 -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5272b74d.2cdd320a.7803.0516SMTPIN_ADDED_MISSING%40gmr-mx.google.com. For more options, visit https://groups.google.com/groups/opt_out.