From vera.donk at googlemail.com Tue Jun 1 10:28:54 2010 From: vera.donk at googlemail.com (Vera) Date: Tue, 1 Jun 2010 03:28:54 -0700 Subject: USB port TMS In-Reply-To: <201005312218.o4VMIY01020523@mail14.tpg.com.au> Message-ID: Hi Sarah, we had the same problem, and as David already proposed, we used 3 pins of the parallel port for incoming triggers and the other five for outgoing triggers (from E-Prime to another computer). Could you do the same maybe? We needed to build some kind of splitter (the cable is kind of splitted), in order to make this work (as we had incoming and outgoing stuff on the same port), but if you want to send out to the same device, it would also work without splitting. You just have to define different pins on the parallel port (which leaves you with 38 (??) options. Just as an example, we would send different information over different pin combinations (thereby discerning the infos). In the example below we use, 3 different pin combinations (8, 16 and 24 - we only have multiplications of 8 as the first 8 bits (pins 1, 2, 4) are used for incoming triggers). If NewTriggerValue > 0 AND NewTriggerValue < 7 AND TargetPresAbs = 1 Then If SetSize = 9 Then HyperEventValue = 8 ElseIf SetSize = 16 Then HyperEventValue = 16 ElseIf SetSize = 25 Then HyperEventValue = 24 End If End If I hope this helps. I maybe don't explain it very well (I am not a technician myself, sorry for that), but maybe it gives you some ideas. And don't hesitate if you have any more questions. Greetings, Vera On Jun 1, 12:18 am, Peter Quain wrote: > what about timing issues David - anything to be aware of? > > At 08:20 AM 1/06/2010, you wrote: > > >Sara, > > >Come to think of it, there is a way to send & receive data through > >USB using E-Prime, in fact I am doing that for a project now.  First > >go to Measurement Computing (referred to earlier) and get whatever > >I/O board suits your fancy, e.g., their USB-1024 ($100).  When that > >arrives, install the Universal Libray software that comes with > >it.  Then add the appropriate Declare statements in the User Script > >area of your EP program (see instructions that come with the MCC > >UL).  Now you can use MCC UL function calls from EP inline code to > >send & receive data through the USB port. > > >Recognizing that the MCC UL essentially just adds a DLL to provide > >the USB support, with enough ingenuity you could take this even > >further by writing your own DLL to use from EP.  For that, you might > >want to take a look at "USB Complete" by Jan Axelson. > > >Mind you, I am not advising you do any of this.  Just being an > >academic and pointing out the full range of possibilities. > > >-- David McFarlane, Professional Faultfinder > > >David McFarlane wrote: > >>Sara, > >>Stock reminder:  1) I do not work for PST.  2) PST's trained staff > >>really does like to 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) If you do get an answer from PST Web Support, please extend > >>the courtesy of posting their reply back here for the sake of others. > >>That said, here is my take ... > >>Unless PST has added something new to the latest release of EP2, > >>E-Prime simply has no facility for sending or receiving data > >>through a USB port, so you are just out of luck there.  But do not > >>take my word for this, please contact PST Web Support yourself and > >>then report back here. > >>Say, why not just install another parallel port?  Or, does your > >>other device need all 8 outputs from the parallel port?  If not, > >>why not just build a cable to send different wires to your > >>different devices?  Just take a look at the book "Parallel Port > >>Complete" by Jan Axelson to get some idea of how to make full use > >>of the parallel port.  Or, skip the parallel port and just install > >>a real digital I/O card (e.g., fromhttp://www.mccdaq.com). > >>-- David McFarlane, Professional Faultfinder > > >>>does anyone knows the scropt to open the USB port in order to trigger > >>>a TMS? > > >>>please, let me know > >>>I have to send a trigger though the USB port, because the parallel > >>>port is used to trigger another device. > > >>>thank you very much > >>>Sara > > >-- > >You received this message because you are subscribed to the Google > >Groups "E-Prime" group. > >To post to this group, send email to e-prime at googlegroups.com. > >To unsubscribe from this group, send email to > >e-prime+unsubscribe at googlegroups.com. > >For more options, visit this group at > >http://groups.google.com/group/e-prime?hl=en. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From vera.donk at googlemail.com Tue Jun 1 11:14:48 2010 From: vera.donk at googlemail.com (Vera) Date: Tue, 1 Jun 2010 04:14:48 -0700 Subject: USB port TMS In-Reply-To: <917cad46-0e69-4033-be5b-f0ff8cd1d9f0@m33g2000vbi.googlegroups.com> Message-ID: Sorry, of course in the code this was missing: writePort &H378, HyperEventValue So the thing would be: If NewTriggerValue > 0 AND NewTriggerValue < 7 AND TargetPresAbs = 1 Then If SetSize = 9 Then HyperEventValue = 8 ElseIf SetSize = 16 Then HyperEventValue = 16 ElseIf SetSize = 25 Then HyperEventValue = 24 End If End If writePort &H378, HyperEventValue Gruss, Vera On Jun 1, 12:28 pm, Vera wrote: > Hi Sarah, > > we had the same problem, and as David already proposed, we used 3 pins > of the parallel port for incoming triggers and the other five for > outgoing triggers (from E-Prime to another computer). Could you do the > same maybe? > We needed to build some kind of splitter (the cable is kind of > splitted), in order to make this work (as we had incoming and outgoing > stuff on the same port), but if you want to send out to the same > device, it would also work without splitting. You just have to define > different pins on the parallel port (which leaves you with 38 (??) > options. > > Just as an example, we would send different information over different > pin combinations (thereby discerning the infos). In the example below > we use, 3 different pin combinations (8, 16 and 24 - we only have > multiplications of 8 as the first 8 bits (pins  1, 2, 4) are used for > incoming triggers). > > If NewTriggerValue > 0 AND NewTriggerValue < 7 AND TargetPresAbs = 1 > Then >         If SetSize = 9 Then >                 HyperEventValue = 8 >         ElseIf SetSize = 16 Then >                 HyperEventValue = 16 >         ElseIf SetSize = 25 Then >                 HyperEventValue = 24 >         End If > End If > > I hope this helps. I maybe don't explain it very well (I am not a > technician myself, sorry for that), but maybe it gives you some ideas. > And don't hesitate if you have any more questions. > > Greetings, Vera > > On Jun 1, 12:18 am, Peter Quain wrote: > > > what about timing issues David - anything to be aware of? > > > At 08:20 AM 1/06/2010, you wrote: > > > >Sara, > > > >Come to think of it, there is a way to send & receive data through > > >USB using E-Prime, in fact I am doing that for a project now.  First > > >go to Measurement Computing (referred to earlier) and get whatever > > >I/O board suits your fancy, e.g., their USB-1024 ($100).  When that > > >arrives, install the Universal Libray software that comes with > > >it.  Then add the appropriate Declare statements in the User Script > > >area of your EP program (see instructions that come with the MCC > > >UL).  Now you can use MCC UL function calls from EP inline code to > > >send & receive data through the USB port. > > > >Recognizing that the MCC UL essentially just adds a DLL to provide > > >the USB support, with enough ingenuity you could take this even > > >further by writing your own DLL to use from EP.  For that, you might > > >want to take a look at "USB Complete" by Jan Axelson. > > > >Mind you, I am not advising you do any of this.  Just being an > > >academic and pointing out the full range of possibilities. > > > >-- David McFarlane, Professional Faultfinder > > > >David McFarlane wrote: > > >>Sara, > > >>Stock reminder:  1) I do not work for PST.  2) PST's trained staff > > >>really does like to 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) If you do get an answer from PST Web Support, please extend > > >>the courtesy of posting their reply back here for the sake of others. > > >>That said, here is my take ... > > >>Unless PST has added something new to the latest release of EP2, > > >>E-Prime simply has no facility for sending or receiving data > > >>through a USB port, so you are just out of luck there.  But do not > > >>take my word for this, please contact PST Web Support yourself and > > >>then report back here. > > >>Say, why not just install another parallel port?  Or, does your > > >>other device need all 8 outputs from the parallel port?  If not, > > >>why not just build a cable to send different wires to your > > >>different devices?  Just take a look at the book "Parallel Port > > >>Complete" by Jan Axelson to get some idea of how to make full use > > >>of the parallel port.  Or, skip the parallel port and just install > > >>a real digital I/O card (e.g., fromhttp://www.mccdaq.com). > > >>-- David McFarlane, Professional Faultfinder > > > >>>does anyone knows the scropt to open the USB port in order to trigger > > >>>a TMS? > > > >>>please, let me know > > >>>I have to send a trigger though the USB port, because the parallel > > >>>port is used to trigger another device. > > > >>>thank you very much > > >>>Sara > > > >-- > > >You received this message because you are subscribed to the Google > > >Groups "E-Prime" group. > > >To post to this group, send email to e-prime at googlegroups.com. > > >To unsubscribe from this group, send email to > > >e-prime+unsubscribe at googlegroups.com. > > >For more options, visit this group at > > >http://groups.google.com/group/e-prime?hl=en. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sara.agosta at gmail.com Tue Jun 1 14:30:45 2010 From: sara.agosta at gmail.com (Sara Agosta) Date: Tue, 1 Jun 2010 10:30:45 -0400 Subject: USB port TMS In-Reply-To: <9355d040-80c8-4778-81ed-df0b50856133@v37g2000vbv.googlegroups.com> Message-ID: Thank you very much for your help! s. 2010/6/1 Vera > Sorry, of course in the code this was missing: > > writePort &H378, HyperEventValue > > So the thing would be: > > If NewTriggerValue > 0 AND NewTriggerValue < 7 AND TargetPresAbs = 1 > Then > If SetSize = 9 Then > HyperEventValue = 8 > ElseIf SetSize = 16 Then > HyperEventValue = 16 > ElseIf SetSize = 25 Then > HyperEventValue = 24 > End If > End If > > writePort &H378, HyperEventValue > > Gruss, Vera > > > On Jun 1, 12:28 pm, Vera wrote: > > Hi Sarah, > > > > we had the same problem, and as David already proposed, we used 3 pins > > of the parallel port for incoming triggers and the other five for > > outgoing triggers (from E-Prime to another computer). Could you do the > > same maybe? > > We needed to build some kind of splitter (the cable is kind of > > splitted), in order to make this work (as we had incoming and outgoing > > stuff on the same port), but if you want to send out to the same > > device, it would also work without splitting. You just have to define > > different pins on the parallel port (which leaves you with 38 (??) > > options. > > > > Just as an example, we would send different information over different > > pin combinations (thereby discerning the infos). In the example below > > we use, 3 different pin combinations (8, 16 and 24 - we only have > > multiplications of 8 as the first 8 bits (pins 1, 2, 4) are used for > > incoming triggers). > > > > If NewTriggerValue > 0 AND NewTriggerValue < 7 AND TargetPresAbs = 1 > > Then > > If SetSize = 9 Then > > HyperEventValue = 8 > > ElseIf SetSize = 16 Then > > HyperEventValue = 16 > > ElseIf SetSize = 25 Then > > HyperEventValue = 24 > > End If > > End If > > > > I hope this helps. I maybe don't explain it very well (I am not a > > technician myself, sorry for that), but maybe it gives you some ideas. > > And don't hesitate if you have any more questions. > > > > Greetings, Vera > > > > On Jun 1, 12:18 am, Peter Quain wrote: > > > > > what about timing issues David - anything to be aware of? > > > > > At 08:20 AM 1/06/2010, you wrote: > > > > > >Sara, > > > > > >Come to think of it, there is a way to send & receive data through > > > >USB using E-Prime, in fact I am doing that for a project now. First > > > >go to Measurement Computing (referred to earlier) and get whatever > > > >I/O board suits your fancy, e.g., their USB-1024 ($100). When that > > > >arrives, install the Universal Libray software that comes with > > > >it. Then add the appropriate Declare statements in the User Script > > > >area of your EP program (see instructions that come with the MCC > > > >UL). Now you can use MCC UL function calls from EP inline code to > > > >send & receive data through the USB port. > > > > > >Recognizing that the MCC UL essentially just adds a DLL to provide > > > >the USB support, with enough ingenuity you could take this even > > > >further by writing your own DLL to use from EP. For that, you might > > > >want to take a look at "USB Complete" by Jan Axelson. > > > > > >Mind you, I am not advising you do any of this. Just being an > > > >academic and pointing out the full range of possibilities. > > > > > >-- David McFarlane, Professional Faultfinder > > > > > >David McFarlane wrote: > > > >>Sara, > > > >>Stock reminder: 1) I do not work for PST. 2) PST's trained staff > > > >>really does like to 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) If you do get an answer from PST Web Support, please extend > > > >>the courtesy of posting their reply back here for the sake of others. > > > >>That said, here is my take ... > > > >>Unless PST has added something new to the latest release of EP2, > > > >>E-Prime simply has no facility for sending or receiving data > > > >>through a USB port, so you are just out of luck there. But do not > > > >>take my word for this, please contact PST Web Support yourself and > > > >>then report back here. > > > >>Say, why not just install another parallel port? Or, does your > > > >>other device need all 8 outputs from the parallel port? If not, > > > >>why not just build a cable to send different wires to your > > > >>different devices? Just take a look at the book "Parallel Port > > > >>Complete" by Jan Axelson to get some idea of how to make full use > > > >>of the parallel port. Or, skip the parallel port and just install > > > >>a real digital I/O card (e.g., fromhttp://www.mccdaq.com). > > > >>-- David McFarlane, Professional Faultfinder > > > > > >>>does anyone knows the scropt to open the USB port in order to > trigger > > > >>>a TMS? > > > > > >>>please, let me know > > > >>>I have to send a trigger though the USB port, because the parallel > > > >>>port is used to trigger another device. > > > > > >>>thank you very much > > > >>>Sara > > > > > >-- > > > >You received this message because you are subscribed to the Google > > > >Groups "E-Prime" group. > > > >To post to this group, send email to e-prime at googlegroups.com. > > > >To unsubscribe from this group, send email to > > > >e-prime+unsubscribe at googlegroups.com > . > > > >For more options, visit this group at > > > >http://groups.google.com/group/e-prime?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Jun 1 14:35:48 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 1 Jun 2010 10:35:48 -0400 Subject: send event related signal to serial/parallel ports In-Reply-To: Message-ID: Estelle, At 5/31/2010 09:23 AM Monday, you wrote: >I understand the parallel port communication is faster than the >serial port communication. There is actually quite a bit more to it than that. I just checked my earlier discussion at http://support.pstnet.com/forum/Topic2496-8-1.aspx , and perhaps that still does not quite answer your question, so I will attempt another short explanation here: A serial port sends a sequence of brief pulses over a single wire, using voltages of +12 or - 12. By contrast, a parallel port sends each signal steadily over a separate wire, using voltages of +5 or 0. As you can readily see, these are vastly different mechanisms and cannot be easily interchanged. Else, why would we even bother giving them separate names? >I guess I will have to find a computer with a parallel port since >mine only has serial. Alternatively, note that in another recent thread here we have discussed using a commercial USB device to provide digital I/O. However, this would require considerably more code. As usual, do not take my word for any of this, but look it up for yourself. For those really interested, see the books "Parallel Port Complete" and "Serial Port Complete" by Jan Axelson. -- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From estelle.breton at gmail.com Tue Jun 1 17:40:25 2010 From: estelle.breton at gmail.com (Estelle Breton) Date: Tue, 1 Jun 2010 13:40:25 -0400 Subject: send event related signal to serial/parallel ports In-Reply-To: <4c051acd.65bae70a.6d93.ffff8f39SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Ok thank you ! I am starting to understand better how this all works, Thank you for your patience ! People I work with have developped a specific device that respond to the DTR pin (serial device). It basically reacts when this specific pin is turned on or off. I would like to toggle this pin using an inline object just before an event in my ePrime protocol. Does anyone know if this is something possible ? How can I adress other pins than the receive or transmit pin with e-basic code ? thanks for the support ! On Tue, Jun 1, 2010 at 10:35 AM, David McFarlane wrote: > Estelle, > > > At 5/31/2010 09:23 AM Monday, you wrote: > >> I understand the parallel port communication is faster than the serial >> port communication. >> > > There is actually quite a bit more to it than that. I just checked my > earlier discussion at http://support.pstnet.com/forum/Topic2496-8-1.aspx , > and perhaps that still does not quite answer your question, so I will > attempt another short explanation here: A serial port sends a sequence of > brief pulses over a single wire, using voltages of +12 or - 12. By > contrast, a parallel port sends each signal steadily over a separate wire, > using voltages of +5 or 0. As you can readily see, these are vastly > different mechanisms and cannot be easily interchanged. Else, why would we > even bother giving them separate names? > > > I guess I will have to find a computer with a parallel port since mine only >> has serial. >> > > Alternatively, note that in another recent thread here we have discussed > using a commercial USB device to provide digital I/O. However, this would > require considerably more code. > > As usual, do not take my word for any of this, but look it up for yourself. > For those really interested, see the books "Parallel Port Complete" and > "Serial Port Complete" by Jan Axelson. > > > -- David McFarlane, Professional Faultfinder > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- Estelle -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Jun 1 19:47:20 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 1 Jun 2010 15:47:20 -0400 Subject: USB port TMS In-Reply-To: <201005312218.o4VMIY01020523@mail14.tpg.com.au> Message-ID: Peter, Good question, wish I knew the answer. We have been using a different product from MCC, and using the A/D output to present analog waveforms to subjects. Aside from any latency in starting the waveform, the timing within the waveforms looks just fine on my oscilloscope (waveform timing is handled internally by the MCC device with its own clock). However, for this study we are not too concerned about waveform onset latency, so I have not been asked to look at that, let alone timing of straight digital I/O. We really need someone to do that for us. Beyond that I would just look and see what they say at the MCC site, or contact them directly, but anyone could do that without me. -- David McFarlane, Professional Faultfinder At 5/31/2010 06:18 PM Monday, Peter Quain wrote: >what about timing issues David - anything to be aware of? > >At 08:20 AM 1/06/2010, you wrote: >>Sara, >> >>Come to think of it, there is a way to send & receive data through >>USB using E-Prime, in fact I am doing that for a project >>now. First go to Measurement Computing (referred to earlier) and >>get whatever I/O board suits your fancy, e.g., their USB-1024 >>($100). When that arrives, install the Universal Libray software >>that comes with it. Then add the appropriate Declare statements in >>the User Script area of your EP program (see instructions that come >>with the MCC UL). Now you can use MCC UL function calls from EP >>inline code to send & receive data through the USB port. >> >>Recognizing that the MCC UL essentially just adds a DLL to provide >>the USB support, with enough ingenuity you could take this even >>further by writing your own DLL to use from EP. For that, you >>might want to take a look at "USB Complete" by Jan Axelson. >> >>Mind you, I am not advising you do any of this. Just being an >>academic and pointing out the full range of possibilities. >> >>-- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pedrofilipecustodio at gmail.com Wed Jun 2 20:30:37 2010 From: pedrofilipecustodio at gmail.com (p_e_t_e) Date: Wed, 2 Jun 2010 13:30:37 -0700 Subject: Movies on E-Prime Message-ID: Hi everyone! I am doing a thesis where I will be recording EEGs during the presentation of some movies. The paradigm is: Documentary part 1 Ad 1 Ad 2 Ad 3 Documentary part 2 Ad 4 Ad 5 Ad 6 ... My question is how do I signal the beginning of each movie? I was told to use InLine with this code: PreStim.OnsetSignalEnabled ... But it gives an error on the final point. Is there any other way to send a signal identifying the stimulus? Thanks! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From txurimate at gmail.com Fri Jun 4 16:01:13 2010 From: txurimate at gmail.com (Judit) Date: Fri, 4 Jun 2010 09:01:13 -0700 Subject: how to make the program choose a particular image depending on the previously shown image Message-ID: Dear all, I'm new in this group and also in EPrime programming. I've only used EPrime without script and now I'm starting to learn how to program. I have a first question, it must sound silly to most of you but I'd really appreciate your answers. I'm currently designing a visual working memory experiment. I need to show items such as a blue triangle, a red circle and so on and at test show a probe that would be either the shape alone or a colour blob (participants should then recall the colour in which the shape was presented or the shape that appeared in a particular colour). The image files are organised like this: 11.bmp=Red circle 12.bmp=Red triangle 21.bmp=Blue circle 22.bmp=Blue triangle How can I tell the program to randomly present 2 coloured shapes at study, and and test probe with only ONE feature of one of the previously shown items? Importantly, features cannot be repeated within a trial. I've already done it by creating nested lists, but manually choosing a target, lets say 11.bmp, and then manually making it show a red blob colour. Is it a way to tell the program something like "if the target filename starts with 1, then show a red blob, if it starts with 2, then show a blue blob, or if it ends with 1, then show a circle" and so on. I would like to do it by script so it could be automatic, cause I don't want all participants to have the same manually chosen targets. How would the code be and where should I place it? Many, many thanks in advance! Judit. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From estelle.breton at gmail.com Fri Jun 4 19:02:05 2010 From: estelle.breton at gmail.com (Estelle_Thought_Technology) Date: Fri, 4 Jun 2010 12:02:05 -0700 Subject: socket device Message-ID: Hi, Has anyone ever used the socket device for network communication ? I looked in e-prime documentation, but did'nt find much... What e-basic methods should I use to send or receive signals ? Thank you, -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Fri Jun 4 19:31:28 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 4 Jun 2010 15:31:28 -0400 Subject: how to make the program choose a particular image depending on the previously shown image In-Reply-To: Message-ID: Judit, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours (although latest reports indicate more like 10 days) -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... If I understood your task better and thought a little harder then I might come up with a code-free approach, perhaps with judicious use of nested lists. But let's stick with the code for now. Suppose you the List attrribute "TestFile" holds the name of your test image file, and you use an attribute reference like [ProbeFile] in the stimlus object for your probe. Then you might use code like If Mid$( c.GetAttrib("TestFile"), 1, 1) = "1" Then c.SetAttrib "ImageFile", "redblob.bmp" Else c.SetAttrib "ImageFile", "blueblob.bmp" End This just sketches the basic idea, you can refine it and fill in the details from there. -- David McFarlane, Professional Faultfinder >I'm new in this group and also in EPrime programming. I've only used >EPrime without script and now I'm starting to learn how to program. > >I have a first question, it must sound silly to most of you but I'd >really appreciate your answers. > >I'm currently designing a visual working memory experiment. I need to >show items such as a blue triangle, a red circle and so on and at test >show a probe that would be either the shape alone or a colour blob >(participants should then recall the colour in which the shape was >presented or the shape that appeared in a particular colour). > >The image files are organised like this: > >11.bmp=Red circle >12.bmp=Red triangle > >21.bmp=Blue circle >22.bmp=Blue triangle > >How can I tell the program to randomly present 2 coloured shapes at >study, and and test probe with only ONE feature of one of the >previously shown items? Importantly, features cannot be repeated >within a trial. > >I've already done it by creating nested lists, but manually choosing a >target, lets say 11.bmp, and then manually making it show a red blob >colour. Is it a way to tell the program something like "if the target >filename starts with 1, then show a red blob, if it starts with 2, >then show a blue blob, or if it ends with 1, then show a circle" and >so on. > >I would like to do it by script so it could be automatic, cause I >don't want all participants to have the same manually chosen targets. >How would the code be and where should I place it? > >Many, many thanks in advance! >Judit. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From phoenix345 at gmail.com Fri Jun 4 20:17:07 2010 From: phoenix345 at gmail.com (Josh) Date: Fri, 4 Jun 2010 13:17:07 -0700 Subject: starting & stopping other program actions & microphone issues Message-ID: Hi all, I am not an e-prime programmer, but I have been designated as the e- prime frontliner for my study. My team has asked me to track down the answer for two issues. I could not find a clear solution in the archives: 1. In our piloting of three e-prime 2.0 release candidate experiments this week, the performance of the microphone & serial response box was inadequate & variable. We are using the microphone to record responses and response times to two affective stroop experiments. Often subjects had to repeat their answer to a given stimulus before the microphone would signal the program to move on to the next stimulus. When we turned the sound sensitivity screw on the serial response box, movements from onlookers during the piloting would sometimes trigger the program to move on to the next stimulus. In addition, most audio files for each response were empty/blank. Any helpful suggestions would be much appreciated. 2. We are recording respiration and heart rate data using MindWare software & associated hardware. Ideally, we would like e-prime to tell MindWare when to begin and end recording heart data for each section of each experiment. Does anyone know if this is possible? Again, any direction to an archive or tutorial would be much appreciated. Thanks, Josh -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From wfjohnny at gmail.com Sun Jun 6 19:02:47 2010 From: wfjohnny at gmail.com (Johnny) Date: Sun, 6 Jun 2010 12:02:47 -0700 Subject: How to display trail number beginning with a certain number? Message-ID: Hi, I am designing a simple experiment in which there are two seperate blocks, each has a list of 20 stimuli. For the first block, I use the following inline script to display the trial number successfully: c.setattrib "TrialNumber", c.getattrib(c.getattrib("Running") & ".Sample") And, added this [TrialNumber] to my text display. But, for the second block, it restart counting from 'one' again. But, in order not to let the participants notice that this is actually the second block, I intend to make the second block begin the number with 20 (not 1). Could any one please tell me how to do it? Thanks a lot. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From h.witherstone at googlemail.com Sun Jun 6 20:22:13 2010 From: h.witherstone at googlemail.com (Hannah Witherstone) Date: Sun, 6 Jun 2010 13:22:13 -0700 Subject: Minimising E-Prime and running two E-Prime experiments Message-ID: Hi all I have several long e-prime experiments that I am running with 5-year- olds. There are 40 trials in each experiment. I have written-in a text object between each trial which requires a mouse-click to move on to the next - this acts a pause or wait function. However, sometimes I wish to do something completely different after, say, 20 trials to give my kids a little break. This 'something' different can be another e-prime task or another task that is also on my laptop. My question is whether I can leave the experiment running on the text pause object and do another, shorter e-prime task or something else on the laptop all together and then resume the original experiment? I know I can exit out of e-prime using "ctrl, alt, shift' but this crashes the experiment and I cannot pick up where I left off. If anyone could help that would be great! Thanks, Hannah Witherstone -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From wfjohnny at gmail.com Mon Jun 7 06:16:32 2010 From: wfjohnny at gmail.com (Johnny) Date: Sun, 6 Jun 2010 23:16:32 -0700 Subject: How to display trail number beginning with a certain number? In-Reply-To: Message-ID: I think I just found the inline script that would do the total trial number count. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Jun 7 19:25:46 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 7 Jun 2010 15:25:46 -0400 Subject: starting & stopping other program actions & microphone issues In-Reply-To: <8c9c0f14-4a35-43a1-a5d4-515e31e6afa7@m4g2000vbl.googlegrou ps.com> Message-ID: Josh, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours (although latest reports indicate more like 10 days) -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... 1. Can't help you with the voice key sensitivity issue, contact PST Web Support for that. As to the blank audio files, AFAIK when you connect a microphone to the SRBox for use as a voice key, it does *not* also send the audio to the computer. For that you would need two microphones, or use a cable splitter to send the microphone output to both the SRBox and to the sound in on your PC. But don't take my word for this, please consult PST (and then report back here for the rest of us). 2. We worked with the MindWare psychophysiology equipment a couple years ago. Starting MindWare (or more accurately, the BioNex hardware) from E-Prime was a simple matter of using WritePort (in a bit of inline code) to send a pulse to the appropriate bit at the appropriate time. In our case MindWare supplied a cable to go from the parallel port of the E-Prime PC to the inputs of the BioNex hardware, and supplied a sample E-Prime program, so you should consult MindWare directly for more help there. I found it best to always reset all the output bits to 0 at the start my program; then to start BioNex recording I would WritePort the proper bit, Sleep for about 20 seconds, then WritePort 0 again. However, the BioNex hardware did not include any automated means for *stopping* the recording. That had to be done manually at the end of each session. BioNex did include a means for getting a number of event pulses from E-Prime, which promised a way to divide the data for analysis later. But we could not get the analysis software at the time to use the event markers in the desired way, so that was futile. In the end, we just used E-Prime to start the BioNex recording at the desired moment, manually stopped BioNex recording at the end of the session, and used times from the E-Prime data to direct analysis of the physiological records. -- David McFarlane, Professional Faultfinder At 6/4/2010 04:17 PM Friday, you wrote: >I am not an e-prime programmer, but I have been designated as the e- >prime frontliner for my study. My team has asked me to track down the >answer for two issues. I could not find a clear solution in the >archives: > >1. In our piloting of three e-prime 2.0 release candidate experiments >this week, the performance of the microphone & serial response box was >inadequate & variable. We are using the microphone to record responses >and response times to two affective stroop experiments. Often subjects >had to repeat their answer to a given stimulus before the microphone >would signal the program to move on to the next stimulus. When we >turned the sound sensitivity screw on the serial response box, >movements from onlookers during the piloting would sometimes trigger >the program to move on to the next stimulus. In addition, most audio >files for each response were empty/blank. Any helpful suggestions >would be much appreciated. > >2. We are recording respiration and heart rate data using MindWare >software & associated hardware. Ideally, we would like e-prime to tell >MindWare when to begin and end recording heart data for each section >of each experiment. Does anyone know if this is possible? Again, any >direction to an archive or tutorial would be much appreciated. Thanks, > >Josh -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Jun 7 19:45:11 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 7 Jun 2010 15:45:11 -0400 Subject: Minimising E-Prime and running two E-Prime experiments In-Reply-To: Message-ID: Hannah, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours (although latest reports indicate more like 10 days) -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... I have never done any of this, so if you pioneer this please write back and let us know how it works. 1. You can actually Alt+Tab out of a running experiment. No telling what you could run then, or how easily you could get back to and resume your experiment program. 2. As I recall, the online E-Basic Help has some functions for launching external applications, although I cannot recall them at the moment. 3. For yet another more controlled programmatic method, try the SuspendResume example downloadable from PST. This makes use of a couple of Windows API calls, as well as a couple methods of Rte.DeviceManager. 4. Finally, if your "break" task is unrelated to the main task, why not just go low tech? Set up a second laptop (computers are cheap these days, buy a used one on eBay or CraigsList) with a separate task and move them to that for a moment, or just give the kids some blocks to play with, etc. When I taught Sunday school to 4th graders (admittedly 9-year-olds, not 5-year-olds), we found it useful to frequently move the kids to a new venue to keep them engaged. -- David McFarlane, Professional Faultfinder At 6/6/2010 04:22 PM Sunday, you wrote: >I have several long e-prime experiments that I am running with 5-year- >olds. There are 40 trials in each experiment. I have written-in a >text object between each trial which requires a mouse-click to move on >to the next - this acts a pause or wait function. However, sometimes >I wish to do something completely different after, say, 20 trials to >give my kids a little break. This 'something' different can be >another e-prime task or another task that is also on my laptop. > >My question is whether I can leave the experiment running on the text >pause object and do another, shorter e-prime task or something else on >the laptop all together and then resume the original experiment? > >I know I can exit out of e-prime using "ctrl, alt, shift' but this >crashes the experiment and I cannot pick up where I left off. > >If anyone could help that would be great! > >Thanks, > >Hannah Witherstone -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mpaffel at gmail.com Wed Jun 9 20:46:02 2010 From: mpaffel at gmail.com (Matt Paffel) Date: Wed, 9 Jun 2010 13:46:02 -0700 Subject: increasing/decreasing percentage - pie chart/ circular graph In-Reply-To: <2624ca14-bb84-4dcb-8ba4-2f7ed73ffea1@24g2000yqy.googlegroups.com> Message-ID: from PST: Since you're keeping your bmps with pie slices in a folder called pie, you need to add this layer of the path to the image files into the code. The new code should look like this (all I did was change c.SetAttrib "myPicture", "pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" to c.SetAttrib "myPicture", "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" ) : If (mySlide.resp = 1) Then ' decrease pie slice If c.GetAttrib("CurrentPerc") > 1 Then _ c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) - 1 c.SetAttrib "myPicture", _ "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" goto Label1 ElseIf (mySlide.resp = 2) Then ' increase pie slice If c.GetAttrib("CurrentPerc") < 100 Then _ c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) + 1 c.SetAttrib "myPicture", _ "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" goto Label1 End If You need to add 3 to the Allowable field on mySlide's Duration/Input tab of the Property Pages or the "3 to confirm" option on your pictures will not work. Thank you again everyone. On May 13, 4:43 pm, Matt Paffel wrote: > Hello...again. Sorry for taking up so much time with this but I’ve > entered the code and when I generate it, there seems to be no problem, > the code generates just fine. However, when I try to run the program, > I keep getting the error message 13, “type mismatch”. I then put all > the various 1’s and 2’s in quotation marks which allow me to not only > generate the code, but also run the program. However, the program does > not respond to any of the keys pressed, which inevitably leads me to > have to ctrl, alt, shift out of the program. After looking at it, one > of my colleagues suggested I place the entire code online for whomever > to look at and see if they can make it work. I’m not sure of the > etiquette of this and have opted against doing so but if anyone would > be willing to take a shot at it I can certainly do so. Does anyone > have a suggestion of where to go from here? > > On May 13, 2:04 pm, David McFarlane wrote: > > > > > > > OK, by now you are all sick of this, but I couldn't let that last > > sample code sit, so as yet another exercise I revised it so that it > > will use .RESP = 1 for decrease and .RESP = 2 for increase (but as a > > further exercise, think through what happens if .RESP goes outside > > that range; of course one could prevent that by proper use of > > Allowable).  Note the use of CSng().  Remember, you are responsible > > for catching typos and making your own corrections in any of the free > > and hastily-produced sample code posted here. > > > Dim  currentPerc as Integer, newPerc as Integer > > If IsNumeric(mySlide.RESP) Then > >      newPerc = currentPerc + (2 * ( CSng(mySlide.RESP) - 1.5 )) > >      If (0 <= newPerc) and (newPerc <= 100) Then > >          currentPerc = newPerc > >          c.SetAttrib "myPicture", "pie" & Cstr(newPerc) & ".bmp" > >      End If > >      goto Label1 > > End if > > > -- David McFarlane, Professional Faultfinder > > > At 5/12/2010 03:35 PM Wednesday, David McFarlane wrote: > > > >Susan, > > > >Good catch, I obviously missed that when I made & posted my > > >revisions! Just for the record (and because I am such a pedant) here > > >are all the code samples again with corrections > > >made.  AFAIK E-Basic/Visual Basic is the only language > > >that has this silly rule about parentheses around Function arguments > > >but not Sub arguments, which causes much pain for no useful > > >purpose.  (For that matter, more rational languages such as C do > > >away with the useless distinction between functions and subroutines > > >altogether.) > > > >First, my base revision of Mich's code (also adding more parentheses > > >around conditional clauses, and putting tests into numerical order > > >just because I think it reads better) (and please pay attention to > > >the underscore "_" that I use at the end of some lines, yet another > > >silly affectation of Basic)... > > > >If (mySlide.resp = 1) then  ' decrease pie slice > > >     If c.GetAttrib("CurrentPerc") > 1 then _ > > >         c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) - 1 > > >     c.SetAttrib "myPicture", _ > > >         "pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" > > >     goto Label1 > > >ElseIf (mySlide.resp = 2) then  ' increase pie slice > > >     If c.GetAttrib("CurrentPerc") < 100 then _ > > >         c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) + 1 > > >     c.SetAttrib "myPicture", _ > > >         "pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" > > >     goto Label1 > > >End If > > > >Then, my revision using a variable instead of an attribute reference for > > >CurrentPerc (and this time giving a type to the variable)... > > > >Dim  currentPerc as Integer  ' Single would allow fractional changes > > >If (mySlide.resp = 1) then  ' decrease pie slice > > >     If (currentPerc > 1) then currentPerc = currentPerc - 1 > > >     c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > >     goto Label1 > > >ElseIf (mySlide.resp = 2) then  ' increase pie slice > > >     If (currentPerc < 100) then currentPerc = currentPerc + 1 > > >     c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > >     goto Label1 > > >End If > > > >Then my exercise using Select...Case... > > > >Dim  currentPerc as Integer > > >Select Case mySlide.RESP > > >Case 1  ' decrease pie slice > > >     If (currentPerc > 1) then currentPerc = currentPerc - 1 > > >     c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > >     goto Label1 > > >Case 2  ' increase pie slice > > >     If (currentPerc < 100) then currentPerc = currentPerc + 1 > > >     c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > >     goto Label1 > > >End Select > > > >And finally, Mich reduced it all to (with me now adding the Dim, and > > >making a correction to his literal constant value)... > > > >' Assumes .RESP = 1 for decrease, .RESP = 3 for increase, otherwise > > >' algorithm will fail. > > >Dim  currentPerc as Integer > > >If IsNumeric(mySlide.RESP) then > > >     If ((currentPerc + cint(mySlide.RESP) - 2) > 0) AND _ > > >         ((currentPerc + cint(mySlide.RESP) - 2) < 100) then _ > > >         currentPerc = currentPerc + cint(mySlide.RESP)- 2 > > >     c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > >     goto Label1 > > >End if > > > >Note that this all assumes that the Procedure runs until we are done > > >with pie slices, otherwise we would have to work with a global variable. > > > >-- David McFarlane, Professional Faultfinder > > > >>Here's a thought: while c.GetAttrib takes parens, c.SetAttrib does > > >>not; I believe the general form should be: > > >>c.SetAttrib "CurrentPerc", "12" > > >>or whatever. That should fix that particular error. You may also have > > >>a problem because all attributes are strings, so conversion to integer > > >>may be necessary in some places. > > >>HTH, > > >>Susan > > >>On May 12, 12:37 pm, Matt Paffel wrote: > > >>>Arrrgggh!!! > > > >>>So I've spent the last couple of days trying to place the various code > > >>>within the experiment. every time i try to do so i get the error > > >>>messages "SetAttrib is not a property of the object" when i put any of > > >>>the above script in or "CurrentPerc is not an assignable property of > > >>>the object" when i try to set CurrentPerc as an attribute, any > > >>>suggestions? > > > >-- > > >You received this message because you are subscribed to the Google > > >Groups "E-Prime" group. > > >To post to this group, send email to e-prime at googlegroups.com. > > >To unsubscribe from this group, send email to > > >e-prime+unsubscribe at googlegroups.com. > > >For more options, visit this group at > > >http://groups.google.com/group/e-prime?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en.-Hide quoted text - > > > - Show quoted text - > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Thu Jun 10 02:03:43 2010 From: sombrenote at gmail.com (SombreNote) Date: Wed, 9 Jun 2010 19:03:43 -0700 Subject: Easy Multiple Rungroups Question Message-ID: In superlab I was able to specify in the same experiment which blocks I wanted to run depended on the rungroup people would pick in the beginning of the experiment. When you have multiple permutations of the same experiment, you can see whey this is important. My issue with E-Prime is that I know it does much the same thing, but I can not find where it explains how the subject number thing works, and how the session number works. As well as all the other stuff. Where do I go in the guides or help documentation that gives me what I need to know to get a bunch of variations in the same experiment? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From ashtyster at gmail.com Thu Jun 10 14:09:05 2010 From: ashtyster at gmail.com (Ashtyster) Date: Thu, 10 Jun 2010 07:09:05 -0700 Subject: recording mouse movements Message-ID: For one of my studies, I would like to record mouse movements (I'm using a touch pad, but it doesn't make a difference here) over a certain period of time. No clicks, just the movements. I was wondering whether it's possible to do it with E-Prime, and if yes - then how? I will appreciate any help and advice regarding this issue. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From baltimore.ben at gmail.com Thu Jun 10 15:41:01 2010 From: baltimore.ben at gmail.com (ben robinson) Date: Thu, 10 Jun 2010 11:41:01 -0400 Subject: recording mouse movements In-Reply-To: Message-ID: i think the syntax is Mouse.GetCursorPos (search for that in the Help file), and you could GetCursorPos every x number of milliseconds using a loop in an Inline, depending on the temporal resolution you desire. that would be one, obvious way, though there may be better ways... On Thu, Jun 10, 2010 at 10:09 AM, Ashtyster wrote: > For one of my studies, I would like to record mouse movements (I'm > using a touch pad, but it doesn't make a difference here) over a > certain period of time. No clicks, just the movements. I was wondering > whether it's possible to do it with E-Prime, and if yes - then how? > > I will appreciate any help and advice regarding this issue. > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marina.faveri at gmail.com Thu Jun 10 19:01:16 2010 From: marina.faveri at gmail.com (Marina O) Date: Thu, 10 Jun 2010 12:01:16 -0700 Subject: replacement for wrong trials Message-ID: Hi, I'm intersted in replacing only wrong trials in a block. The block is setted to chose trials randomly (without replacement). My goal is to have the same number of correct trials for each condition, since I'm also collecting EEG data and it would be better for comparisons of the electrophysiological data to have the same number of epochs. I'm collecting reaction time data from all of the 10 hand fingers, and it's already known (from previous experiments we've made) that the probability of wrong responses are different for each finger. Is there an easy way to do it? A hard one would be usefull as well, but my programming skills are (very) limmited. I deeply appreciate your help, Marina -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 10 20:11:25 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Jun 2010 16:11:25 -0400 Subject: recording mouse movements In-Reply-To: Message-ID: Once you get the mouse coordinates (following Ben's sage advice) you will want to save them somewhere. You can store them directly in the .edat file using some combination of c.SetAttrib and c.Log (see the Context topic in the online E-Basic Help), or to any text file of your choosing using something like Print# (again, see the E-Basic Help). Finally, don't overlook PST Web Support at http://support.pstnet.com/e%2Dprime/support/login.asp , they like to help out with this sort of thing. -- David McFarlane, Professional Faultfinder At 6/10/2010 11:41 AM Thursday, you wrote: >i think the syntax is Mouse.GetCursorPos (search for that in the >Help file), and you could GetCursorPos every x number of >milliseconds using a loop in an Inline, depending on the temporal >resolution you desire. that would be one, obvious way, though there >may be better ways... > >On Thu, Jun 10, 2010 at 10:09 AM, Ashtyster ><ashtyster at gmail.com> wrote: >For one of my studies, I would like to record mouse movements (I'm >using a touch pad, but it doesn't make a difference here) over a >certain period of time. No clicks, just the movements. I was wondering >whether it's possible to do it with E-Prime, and if yes - then how? > >I will appreciate any help and advice regarding this issue. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 10 20:20:35 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Jun 2010 16:20:35 -0400 Subject: Easy Multiple Rungroups Question In-Reply-To: <75e5b2e3-d723-4f44-a111-9d7a717bb776@k39g2000yqb.googlegro ups.com> Message-ID: Offhand, I would say you could use the Counterbalance option for this. With that in mind, you might use "Counterbalance" as a search term either here in the Google Group or over at the PST Forum, or look in the index of the E-Prime Guides. But I find the coverage in the Guides rather scant on this topic, which brings us to another issue: In general, PST prefers to provide individualized technical support rather than produce generalized documentation, so you should also take questions like this directly to PST Web Support at http://support.pstnet.com/e%2Dprime/support/login.asp . -- David McFarlane, Professional Faultfinder At 6/9/2010 10:03 PM Wednesday, you wrote: >In superlab I was able to specify in the same experiment which blocks >I wanted to run depended on the rungroup people would pick in the >beginning of the experiment. When you have multiple permutations of >the same experiment, you can see whey this is important. > >My issue with E-Prime is that I know it does much the same thing, but >I can not find where it explains how the subject number thing works, >and how the session number works. As well as all the other stuff. > >Where do I go in the guides or help documentation that gives me what I >need to know to get a bunch of variations in the same experiment? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 10 20:27:24 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Jun 2010 16:27:24 -0400 Subject: Easy Multiple Rungroups Question In-Reply-To: <4c114914.84c9e70a.5f0e.2e3cSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Oh, note that PST also has a Counterbalance example program that you may download from their site. >Offhand, I would say you could use the Counterbalance option for >this. With that in mind, you might use "Counterbalance" as a search >term either here in the Google Group or over at the PST Forum, or >look in the index of the E-Prime Guides. > >But I find the coverage in the Guides rather scant on this topic, >which brings us to another issue: In general, PST prefers to >provide individualized technical support rather than produce >generalized documentation, so you should also take questions like >this directly to PST Web Support at >http://support.pstnet.com/e%2Dprime/support/login.asp . > >-- David McFarlane, Professional Faultfinder > > >At 6/9/2010 10:03 PM Wednesday, you wrote: >>In superlab I was able to specify in the same experiment which blocks >>I wanted to run depended on the rungroup people would pick in the >>beginning of the experiment. When you have multiple permutations of >>the same experiment, you can see whey this is important. >> >>My issue with E-Prime is that I know it does much the same thing, but >>I can not find where it explains how the subject number thing works, >>and how the session number works. As well as all the other stuff. >> >>Where do I go in the guides or help documentation that gives me what I >>need to know to get a bunch of variations in the same experiment? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From ashtyster at gmail.com Thu Jun 10 20:41:40 2010 From: ashtyster at gmail.com (Olga V. Chelnokova) Date: Thu, 10 Jun 2010 22:41:40 +0200 Subject: recording mouse movements In-Reply-To: <4c1146ef.84c9e70a.5f0e.2d67SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Great ideas! Thank you for your help! On Thu, Jun 10, 2010 at 10:11 PM, David McFarlane wrote: > Once you get the mouse coordinates (following Ben's sage advice) you will > want to save them somewhere. You can store them directly in the .edat file > using some combination of c.SetAttrib and c.Log (see the Context topic in > the online E-Basic Help), or to any text file of your choosing using > something like Print# (again, see the E-Basic Help). > > Finally, don't overlook PST Web Support at > http://support.pstnet.com/e%2Dprime/support/login.asp , they like to help > out with this sort of thing. > > -- David McFarlane, Professional Faultfinder > > > > At 6/10/2010 11:41 AM Thursday, you wrote: > >> i think the syntax is Mouse.GetCursorPos (search for that in the Help >> file), and you could GetCursorPos every x number of milliseconds using a >> loop in an Inline, depending on the temporal resolution you desire. that >> would be one, obvious way, though there may be better ways... >> >> On Thu, Jun 10, 2010 at 10:09 AM, Ashtyster < >> ashtyster at gmail.com> wrote: >> For one of my studies, I would like to record mouse movements (I'm >> using a touch pad, but it doesn't make a difference here) over a >> certain period of time. No clicks, just the movements. I was wondering >> whether it's possible to do it with E-Prime, and if yes - then how? >> >> I will appreciate any help and advice regarding this issue. >> > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu Jun 10 20:35:00 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Jun 2010 16:35:00 -0400 Subject: replacement for wrong trials In-Reply-To: <836b5487-1670-4c7e-a118-506b18d6fc39@35g2000vbj.googlegrou ps.com> Message-ID: Marina, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... So you want to rerun only trials with incorrect responses until the subject responds correctly? I don't see any way to do that without some inline code. For examples, look at the CriterionForExit and and RerunErrors examples downloadable from the PST web site (warning: in general PST programmers are pretty sloppy, so do not take these as models of proper programming practice, take them only as rough exercises to illustrate certain features and then abstract from there). -- David McFarlane, Professional Faultfinder "When all is said and told, the 'naturalness' with which we use our native tongues boils down to the ease with which we can use them for making statements the nonsense of which is not obvious." -- Edsger W. Dijkstra, "On the foolishness of 'natural language programming'" (http://www.cs.utexas.edu/users/EWD/transcriptions/EWD06xx/EWD667.html) >Hi, I'm intersted in replacing only wrong trials in a block. The block >is setted to chose trials randomly (without replacement). My goal is >to have the same number of correct trials for each condition, since >I'm also collecting EEG data and it would be better for comparisons of >the electrophysiological data to have the same number of epochs. I'm >collecting reaction time data from all of the 10 hand fingers, and >it's already known (from previous experiments we've made) that the >probability of wrong responses are different for each finger. Is there >an easy way to do it? A hard one would be usefull as well, but my >programming skills are (very) limmited. > >I deeply appreciate your help, > >Marina -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 10 20:42:54 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Jun 2010 16:42:54 -0400 Subject: replacement for wrong trials In-Reply-To: <4c114c75.dfc3e70a.5e46.3094SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Oh, the StudyRecall example might also help out here. >Marina, > >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >takes any and all questions at >http://support.pstnet.com/e%2Dprime/support/login.asp , and they >strive to respond to all requests in 24-48 hours -- this is pretty >much their substitute for proper documentation, so make full use of >it. 3) If you do get an answer from PST Web Support, please extend >the courtesy of posting their reply back here for the sake of others. > >That said, here is my take... > >So you want to rerun only trials with incorrect responses until the >subject responds correctly? I don't see any way to do that without >some inline code. For examples, look at the CriterionForExit and >and RerunErrors examples downloadable from the PST web site >(warning: in general PST programmers are pretty sloppy, so do not >take these as models of proper programming practice, take them only >as rough exercises to illustrate certain features and then abstract >from there). > >-- David McFarlane, Professional Faultfinder >"When all is said and told, the 'naturalness' with which we use our >native tongues boils down to the ease with which we can use them for >making statements the nonsense of which is not obvious." -- Edsger >W. Dijkstra, "On the foolishness of 'natural language programming'" >(http://www.cs.utexas.edu/users/EWD/transcriptions/EWD06xx/EWD667.html) > > >>Hi, I'm intersted in replacing only wrong trials in a block. The block >>is setted to chose trials randomly (without replacement). My goal is >>to have the same number of correct trials for each condition, since >>I'm also collecting EEG data and it would be better for comparisons of >>the electrophysiological data to have the same number of epochs. I'm >>collecting reaction time data from all of the 10 hand fingers, and >>it's already known (from previous experiments we've made) that the >>probability of wrong responses are different for each finger. Is there >>an easy way to do it? A hard one would be usefull as well, but my >>programming skills are (very) limmited. >> >>I deeply appreciate your help, >> >>Marina -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 10 21:50:09 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Jun 2010 17:50:09 -0400 Subject: recording mouse movements In-Reply-To: Message-ID: Oh, I should mention that PST has an example TrackMouseCoordinates program on their web site that you may find useful to look at. (And then I must warn you, as I did in another post today, that in general PST programmers are pretty sloppy, so do not take their example programs as models of proper programming practice. Instead, take them only as rough examples of particular features and then abstract the useful parts and recode it properly for yourself.) -- David McFarlane, Professional Faultfinder At 6/10/2010 04:41 PM Thursday, you wrote: >Great ideas! Thank you for your help! > > > >On Thu, Jun 10, 2010 at 10:11 PM, David McFarlane ><mcfarla9 at msu.edu> wrote: >Once you get the mouse coordinates (following Ben's sage advice) you >will want to save them somewhere. You can store them directly in >the .edat file using some combination of c.SetAttrib and c.Log (see >the Context topic in the online E-Basic Help), or to any text file >of your choosing using something like Print# (again, see the E-Basic Help). > >Finally, don't overlook PST Web Support at >http://support.pstnet.com/e%2Dprime/support/login.asp >, they like to help out with this sort of thing. > >-- David McFarlane, Professional Faultfinder > > > >At 6/10/2010 11:41 AM Thursday, you wrote: >i think the syntax is Mouse.GetCursorPos (search for that in the >Help file), and you could GetCursorPos every x number of >milliseconds using a loop in an Inline, depending on the temporal >resolution you desire. that would be one, obvious way, though there >may be better ways... > >On Thu, Jun 10, 2010 at 10:09 AM, Ashtyster ><ashtyster at gmail.com> >wrote: >For one of my studies, I would like to record mouse movements (I'm >using a touch pad, but it doesn't make a difference here) over a >certain period of time. No clicks, just the movements. I was wondering >whether it's possible to do it with E-Prime, and if yes - then how? > >I will appreciate any help and advice regarding this issue. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From marina.faveri at gmail.com Fri Jun 11 02:45:07 2010 From: marina.faveri at gmail.com (Marina O) Date: Thu, 10 Jun 2010 19:45:07 -0700 Subject: replacement for wrong trials In-Reply-To: <4c114e50.5577e70a.05b9.2f0bSMTPIN_ADDED@gmr-mx.google.com> Message-ID: That's what I was afraid of... I'm kind of already terrified by the fact that I'll have to program the TTL pulses to neuroscan (wich, as a matter in fact, I already saw that was discussed here). I'm aware of the PST web support, but I've been in contact with them to get the technical manual of the SRBox, and it took almost a month to get it. Is good to know that's ok to share the material I've got with you, I'll post it in a separate subject, so it will be easier for others to find it. After making some tutorials to improve my (at the moment inexistent) programming skills, I'll tell you what's the solution for this kind of issue! Thanks for the tips! Marina On 10 jun, 17:42, David McFarlane wrote: > Oh, the StudyRecall example might also help out here. > > >Marina, > > >Stock reminder:  1) I do not work for PST.  2) PST's trained staff > >takes any and all questions at > >http://support.pstnet.com/e%2Dprime/support/login.asp, and they > >strive to respond to all requests in 24-48 hours -- this is pretty > >much their substitute for proper documentation, so make full use of > >it.  3) If you do get an answer from PST Web Support, please extend > >the courtesy of posting their reply back here for the sake of others. > > >That said, here is my take... > > >So you want to rerun only trials with incorrect responses until the > >subject responds correctly?  I don't see any way to do that without > >some inline code.  For examples, look at the CriterionForExit and > >and RerunErrors examples downloadable from the PST web site > >(warning:  in general PST programmers are pretty sloppy, so do not > >take these as models of proper programming practice, take them only > >as rough exercises to illustrate certain features and then abstract > >from there). > > >-- David McFarlane, Professional Faultfinder > >"When all is said and told, the 'naturalness' with which we use our > >native tongues boils down to the ease with which we can use them for > >making statements the nonsense of which is not obvious."  -- Edsger > >W. Dijkstra, "On the foolishness of 'natural language programming'" > >(http://www.cs.utexas.edu/users/EWD/transcriptions/EWD06xx/EWD667.html) > > >>Hi, I'm intersted in replacing only wrong trials in a block. The block > >>is setted to chose trials randomly (without replacement). My goal is > >>to have the same number of correct trials for each condition, since > >>I'm also collecting EEG data and it would be better for comparisons of > >>the electrophysiological data to have the same number of epochs. I'm > >>collecting reaction time data from all of the 10 hand fingers, and > >>it's already known (from previous experiments we've made) that the > >>probability of wrong responses are different for each finger. Is there > >>an easy way to do it? A hard one would be usefull as well, but my > >>programming skills are (very) limmited. > > >>I deeply appreciate your help, > > >>Marina -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Fri Jun 11 13:01:50 2010 From: sombrenote at gmail.com (SombreNote) Date: Fri, 11 Jun 2010 06:01:50 -0700 Subject: Easy Multiple Rungroups Question In-Reply-To: <4c114aae.5577e70a.0e73.2da2SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Thank you so much for your replies. So they language they use is "Counterbalance". And this refers to making variations of run-groups with difference lists, orders, or procedures? "But I find the coverage in the Guides rather scant on this topic, which brings us to another issue: In general, PST prefers to provide individualized technical support rather than produce generalized documentation, so you should also take questions like this directly to PST Web Support at http://support.pstnet.com/e%2Dprime/support/login.asp . " This was my first instinct. If it was not for the fact that I have had two tickets posted for a week with no help (or even a comment from their staff), it makes me suspect that I should find help elsewhere. I wish there were more guides. There seems to be so much power in the window where you assign subjects, sessions, groups. etc. I just wish I knew a place where I could learn about it. On Jun 10, 4:27 pm, David McFarlane wrote: > Oh, note that PST also has a Counterbalance example program that you > may download from their site. > > > > >Offhand, I would say you could use the Counterbalance option for > >this.  With that in mind, you might use "Counterbalance" as a search > >term either here in the Google Group or over at the PST Forum, or > >look in the index of the E-Prime Guides. > > >But I find the coverage in the Guides rather scant on this topic, > >which brings us to another issue:  In general, PST prefers to > >provide individualized technical support rather than produce > >generalized documentation, so you should also take questions like > >this directly to PST Web Support at > >http://support.pstnet.com/e%2Dprime/support/login.asp. > > >-- David McFarlane, Professional Faultfinder > > >At 6/9/2010 10:03 PM Wednesday, you wrote: > >>In superlab I was able to specify in the same experiment which blocks > >>I wanted to run depended on the rungroup people would pick in the > >>beginning of the experiment. When you have multiple permutations of > >>the same experiment, you can see whey this is important. > > >>My issue with E-Prime is that I know it does much the same thing, but > >>I can not find where it explains how the subject number thing works, > >>and how the session number works. As well as all the other stuff. > > >>Where do I go in the guides or help documentation that gives me what I > >>need to know to get a bunch of variations in the same experiment? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Fri Jun 11 14:58:56 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 11 Jun 2010 10:58:56 -0400 Subject: replacement for wrong trials In-Reply-To: Message-ID: Marina, At 6/10/2010 10:45 PM Thursday, you wrote: >I'm aware of the PST web support, but I've been in contact with them >to get the >technical manual of the SRBox, and it took almost a month to get it. You don't say. This is exactly the sort of issue that started me on a feud with PST in October of last year (2009). I complained to good old Cindy Carper at Web Support (request #18444, if anyone wants the reference) that they removed documentation for the SRBox from the Getting Started Guide for EP2, which as a result would increase my work load as a conscientious, unrecognized, unpaid, but de facto member of the PST support team. Here is her reply in full [note that "forum" there refers to the PST Forum, not the Google Group]: /====================== From Cindy Carper on 10/16/2009 4:52:00 PM David, Please note that the PST Web Support site is PST's primary means of support for E-Prime users. Users who are requesting support should post their questions to the support site in order to communicate with PST technical consultants, as we do not follow the same guidelines for responding to forum posts as we do for the support site (e.g., 24-48 hour response times, responding to all requests, etc.). The forum was created to allow users to share information with each other, not as the primary means for getting support from PST representatives. As such, when purchasing E-Prime, users are instructed to contact the support site first with any questions they may have. If users have questions about setting up an experiment to use the SRBox, our technical consultants will either provide the 1.x documentation as a reference (until the v2.0 documentation is finished), or provide step-by-step instructions and/or samples that will illustrate how to add the SRBox to the experiment. Since the time the SRBox Tutorial was removed from the Getting Started Guide, we have not had any support requests asking for SRBox documentation because the user was not able to locate the information on his own. Note, also, that when users purchase the SRBox, our Sales department directs them to the SRBox page of our website, which includes information on the SRBox and the SRBox Utilities experiment for reference. If you are finding that there are many users on the forum who are asking these types of questions about the SRBox, and you would like to respond to them, you can certainly suggest that they contact PST Web Support to speak with one of our technical consultants, as we are always happy to answer any questions our users have about either version of E-Prime. I hope this helps clarify things a bit. Let me know if you have any further questions. Sincerely, Cindy \====================== PST makes a great product, but they run a lousy company. -- David McFarlane, Professional Faultfinder "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." (Richard Feynman, Nobel prize-winning physicist) -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mpaffel at gmail.com Fri Jun 11 16:02:46 2010 From: mpaffel at gmail.com (Matt Paffel) Date: Fri, 11 Jun 2010 09:02:46 -0700 Subject: increasing/decreasing percentage - pie chart/ circular graph In-Reply-To: <5a8f21bf-569a-40ac-896f-aab0880334e7@k39g2000yqb.googlegroups.com> Message-ID: Here's an update on the script which allows the participant to go between 0 and 100 and vice versa: If (mySlide.resp = 1) Then ' decrease pie slice If c.GetAttrib("CurrentPerc") > 0 Then c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) - 1 Else c.SetAttrib "CurrentPerc", CInt(100) End If c.SetAttrib "myPicture", _ "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" goto Label1 ElseIf (mySlide.resp = 2) Then ' increase pie slice If c.GetAttrib("CurrentPerc") < 100 Then c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) + 1 Else c.SetAttrib "CurrentPerc", CInt(0) End If c.SetAttrib "myPicture", _ "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" goto Label1 End If Also, if anyone knows how i could get the program to start at say, 50% on each trial I woudl greatly appreciate your help. On Jun 9, 3:46 pm, Matt Paffel wrote: > from PST: > > Since you're keeping your bmps with pie slices in a folder called pie, > you need to add this layer of the path to the image files into the > code. The new code should look like this (all I did was change > c.SetAttrib "myPicture", "pie" & cstr(c.GetAttrib("CurrentPerc")) & > ".bmp" > to > c.SetAttrib "myPicture", "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) > & ".bmp" > ) : > > If (mySlide.resp = 1) Then ' decrease pie slice > If c.GetAttrib("CurrentPerc") > 1 Then _ > c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) - 1 > c.SetAttrib "myPicture", _ > "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" > goto Label1 > ElseIf (mySlide.resp = 2) Then ' increase pie slice > If c.GetAttrib("CurrentPerc") < 100 Then _ > c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) + 1 > c.SetAttrib "myPicture", _ > "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" > goto Label1 > End If > > You need to add 3 to the Allowable field on mySlide's Duration/Input > tab of the Property Pages or the "3 to confirm" option on your > pictures will not work. > > Thank you again everyone. > > On May 13, 4:43 pm, Matt Paffel wrote: > > > > > Hello...again. Sorry for taking up so much time with this but I’ve > > entered the code and when I generate it, there seems to be no problem, > > the code generates just fine. However, when I try to run the program, > > I keep getting the error message 13, “type mismatch”. I then put all > > the various 1’s and 2’s in quotation marks which allow me to not only > > generate the code, but also run the program. However, the program does > > not respond to any of the keys pressed, which inevitably leads me to > > have to ctrl, alt, shift out of the program. After looking at it, one > > of my colleagues suggested I place the entire code online for whomever > > to look at and see if they can make it work. I’m not sure of the > > etiquette of this and have opted against doing so but if anyone would > > be willing to take a shot at it I can certainly do so. Does anyone > > have a suggestion of where to go from here? > > > On May 13, 2:04 pm, David McFarlane wrote: > > > > OK, by now you are all sick of this, but I couldn't let that last > > > sample code sit, so as yet another exercise I revised it so that it > > > will use .RESP = 1 for decrease and .RESP = 2 for increase (but as a > > > further exercise, think through what happens if .RESP goes outside > > > that range; of course one could prevent that by proper use of > > > Allowable).  Note the use of CSng().  Remember, you are responsible > > > for catching typos and making your own corrections in any of the free > > > and hastily-produced sample code posted here. > > > > Dim  currentPerc as Integer, newPerc as Integer > > > If IsNumeric(mySlide.RESP) Then > > >      newPerc = currentPerc + (2 * ( CSng(mySlide.RESP) - 1.5 )) > > >      If (0 <= newPerc) and (newPerc <= 100) Then > > >          currentPerc = newPerc > > >          c.SetAttrib "myPicture", "pie" & Cstr(newPerc) & ".bmp" > > >      End If > > >      goto Label1 > > > End if > > > > -- David McFarlane, Professional Faultfinder > > > > At 5/12/2010 03:35 PM Wednesday, David McFarlane wrote: > > > > >Susan, > > > > >Good catch, I obviously missed that when I made & posted my > > > >revisions! Just for the record (and because I am such a pedant) here > > > >are all the code samples again with corrections > > > >made.  AFAIK E-Basic/Visual Basic is the only language > > > >that has this silly rule about parentheses around Function arguments > > > >but not Sub arguments, which causes much pain for no useful > > > >purpose.  (For that matter, more rational languages such as C do > > > >away with the useless distinction between functions and subroutines > > > >altogether.) > > > > >First, my base revision of Mich's code (also adding more parentheses > > > >around conditional clauses, and putting tests into numerical order > > > >just because I think it reads better) (and please pay attention to > > > >the underscore "_" that I use at the end of some lines, yet another > > > >silly affectation of Basic)... > > > > >If (mySlide.resp = 1) then  ' decrease pie slice > > > >     If c.GetAttrib("CurrentPerc") > 1 then _ > > > >         c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) - 1 > > > >     c.SetAttrib "myPicture", _ > > > >         "pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" > > > >     goto Label1 > > > >ElseIf (mySlide.resp = 2) then  ' increase pie slice > > > >     If c.GetAttrib("CurrentPerc") < 100 then _ > > > >         c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) + 1 > > > >     c.SetAttrib "myPicture", _ > > > >         "pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" > > > >     goto Label1 > > > >End If > > > > >Then, my revision using a variable instead of an attribute reference for > > > >CurrentPerc (and this time giving a type to the variable)... > > > > >Dim  currentPerc as Integer  ' Single would allow fractional changes > > > >If (mySlide.resp = 1) then  ' decrease pie slice > > > >     If (currentPerc > 1) then currentPerc = currentPerc - 1 > > > >     c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > > >     goto Label1 > > > >ElseIf (mySlide.resp = 2) then  ' increase pie slice > > > >     If (currentPerc < 100) then currentPerc = currentPerc + 1 > > > >     c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > > >     goto Label1 > > > >End If > > > > >Then my exercise using Select...Case... > > > > >Dim  currentPerc as Integer > > > >Select Case mySlide.RESP > > > >Case 1  ' decrease pie slice > > > >     If (currentPerc > 1) then currentPerc = currentPerc - 1 > > > >     c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > > >     goto Label1 > > > >Case 2  ' increase pie slice > > > >     If (currentPerc < 100) then currentPerc = currentPerc + 1 > > > >     c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > > >     goto Label1 > > > >End Select > > > > >And finally, Mich reduced it all to (with me now adding the Dim, and > > > >making a correction to his literal constant value)... > > > > >' Assumes .RESP = 1 for decrease, .RESP = 3 for increase, otherwise > > > >' algorithm will fail. > > > >Dim  currentPerc as Integer > > > >If IsNumeric(mySlide.RESP) then > > > >     If ((currentPerc + cint(mySlide.RESP) - 2) > 0) AND _ > > > >         ((currentPerc + cint(mySlide.RESP) - 2) < 100) then _ > > > >         currentPerc = currentPerc + cint(mySlide.RESP)- 2 > > > >     c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > > >     goto Label1 > > > >End if > > > > >Note that this all assumes that the Procedure runs until we are done > > > >with pie slices, otherwise we would have to work with a global variable. > > > > >-- David McFarlane, Professional Faultfinder > > > > >>Here's a thought: while c.GetAttrib takes parens, c.SetAttrib does > > > >>not; I believe the general form should be: > > > >>c.SetAttrib "CurrentPerc", "12" > > > >>or whatever. That should fix that particular error. You may also have > > > >>a problem because all attributes are strings, so conversion to integer > > > >>may be necessary in some places. > > > >>HTH, > > > >>Susan > > > >>On May 12, 12:37 pm, Matt Paffel wrote: > > > >>>Arrrgggh!!! > > > > >>>So I've spent the last couple of days trying to place the various code > > > >>>within the experiment. every time i try to do so i get the error > > > >>>messages "SetAttrib is not a property of the object" when i put any of > > > >>>the above script in or "CurrentPerc is not an assignable property of > > > >>>the object" when i try to set CurrentPerc as an attribute, any > > > >>>suggestions? > > > > >-- > > > >You received this message because you are subscribed to the Google > > > >Groups "E-Prime" group. > > > >To post to this group, send email to e-prime at googlegroups.com. > > > >To unsubscribe from this group, send email to > > > >e-prime+unsubscribe at googlegroups.com. > > > >For more options, visit this group at > > > >http://groups.google.com/group/e-prime?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > > To post to this group, send email to e-prime at googlegroups.com. > > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en.-Hidequoted text - > > > > - Show quoted text - > > > -- > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en.-Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mpaffel at gmail.com Fri Jun 11 18:48:46 2010 From: mpaffel at gmail.com (Matt Paffel) Date: Fri, 11 Jun 2010 11:48:46 -0700 Subject: adding and subtracting Message-ID: Hello, Quick question for anyone; I’m looking to perform some basic arithmetic operations within a lottery experiment. There are four values in the lottery 10, 8, 5, and 3 and each value currently contains 10 trials which range from .10, .20, … to 1.00. On each trial, the value will be either increased or decreased dependent upon which trial is currently operating, e.g. .10 will increase or decrease the value of 10. Thus, after decreasing the value five times, the new value would be 9.50. Is there a way to accomplish this without the use of an inline and if not, can anyone direct me to some script that adds or subtracts? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Fri Jun 11 19:45:56 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 11 Jun 2010 15:45:56 -0400 Subject: adding and subtracting In-Reply-To: <3fb401f1-40e4-4a28-93b2-9f3eda9f8c5b@i28g2000yqa.googlegro ups.com> Message-ID: Matt, >Quick question for anyone; I’m looking to perform some basic >arithmetic operations within a lottery experiment. There are four >values in the lottery 10, 8, 5, and 3 and each value currently >contains 10 trials which range from .10, .20, … to 1.00. On each >trial, the value will be either increased or decreased dependent upon >which trial is currently operating, e.g. .10 will increase or decrease >the value of 10. Thus, after decreasing the value five times, the new >value would be 9.50. Is there a way to accomplish this without the use >of an inline and if not Only if you can assign each sequence in advance withouth regard to subject responses. In that case you might just put each possible sequence of values in a List and roll out the chosen sequence as needed. Otherwise, you will need inline code. >, can anyone direct me to some script that adds or subtracts? Not me. Best to take care of that yourself, start studying Chapter 4 of the User Guide that came with E-Prime, you will need some inline code, as well as some global variables defined in the User Script area. Even better, start with an Introduction to Computer Programming class to get some basic computer programming concepts. Good luck, -- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mpaffel at gmail.com Fri Jun 11 20:23:40 2010 From: mpaffel at gmail.com (Matt Paffel) Date: Fri, 11 Jun 2010 13:23:40 -0700 Subject: adding and subtracting In-Reply-To: <4c129277.dfc3e70a.5e46.ffffb083SMTPIN_ADDED@gmr-mx.google.com> Message-ID: thats kind of what i was expecting. so far I've looked through the pages here, the PST user forum, and the VBA for dummies book but I'm unable to find an example of hwo to perform a simple calculation. I'm assuming the variables have to be declared and it would require a cGetAttib and c.SetAttrib If...Then statement. however, being "green" to programming I'm not 100% sure if that's in fact correct. am i on the right track at least? On Jun 11, 2:45 pm, David McFarlane wrote: > Matt, > > >Quick question for anyone; I’m looking to perform some basic > >arithmetic operations within a lottery experiment. There are four > >values in the lottery 10, 8, 5, and 3 and each value currently > >contains 10 trials which range from .10, .20, … to 1.00. On each > >trial, the value will be either increased or decreased dependent upon > >which trial is currently operating, e.g. .10 will increase or decrease > >the value of 10. Thus, after decreasing the value five times, the new > >value would be 9.50. Is there a way to accomplish this without the use > >of an inline and if not > > Only if you can assign each sequence in advance > withouth regard to subject responses.  In that > case you might just put each possible sequence of > values in a List and roll out the chosen sequence > as needed.  Otherwise, you will need inline code. > > >, can anyone direct me to some script that adds or subtracts? > > Not me.  Best to take care of that yourself, > start studying Chapter 4 of the User Guide that > came with E-Prime, you will need some inline > code, as well as some global variables defined in > the User Script area.  Even better, start with an > Introduction to Computer Programming class to get > some basic computer programming concepts. > > Good luck, > -- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Sat Jun 12 13:19:18 2010 From: sombrenote at gmail.com (SombreNote) Date: Sat, 12 Jun 2010 06:19:18 -0700 Subject: Obscuring Black Software/Hardware Issue in E-Run Message-ID: I have contacted PST about this issues, and they have not yet had the time to look at it on Friday or the weekend. The phone tech I spoke to really has no idea. All of a sudden I am finding that the display in E-RUN is now being nearly entirely covered but a obscuring black box border with covers all but a little bit of the text in the middle. This happened after a downloaded and ran the counterbalance example; though I doubt it is related. Now every e-prime experiment I run has this problem, EVEN the basic (professional) file generated from New. I talked to tech support online, and they suggested is use your MSCONFIG walkthrough to remove any other programs that might be effecting E-Prime while it E-Runs. I currently have all external programs off, and the issue remains. This also was not even a problem with the same computer a few days ago. I have attached a picture of what it looks like while running Basic(prof) generated new file. http://yfrog.com/eu0611001601aj http://yfrog.com/9h0611001601j I am using windows 7 64 bit. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pedrofilipecustodio at gmail.com Mon Jun 14 13:50:18 2010 From: pedrofilipecustodio at gmail.com (p_e_t_e) Date: Mon, 14 Jun 2010 06:50:18 -0700 Subject: Error on Inline Message-ID: Hi everyone! I am doing a thesis where I will be recording EEGs during the presentation of some movies. The paradigm is: Documentary part 1 Ad 1 Ad 2 Ad 3 Documentary part 2 Ad 4 Ad 5 Ad 6 ... My question is how do I signal the beginning of each movie? I was told to use InLine with this code: PreStim.OnsetSignalEnabled = True PreStim.OnsetSignalPort = &H378 PreStim.OnsetSignalData = &H01 PreStim.OffsetSignalEnabled = True PreStim.OffsetSignalPort = &H378 PreStim.OffsetSignalData = &H01 But it gives an error saying that left of "." must be an object, structure or dialog. Is there any other way to send a signal identifying the stimulus? Thanks! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Mon Jun 14 15:24:16 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Mon, 14 Jun 2010 16:24:16 +0100 Subject: Error on Inline In-Reply-To: Message-ID: Hi, This code is okay, as long as you have a PreStim object. Just call your stimulusobject (say, the fixation cross or whatever) PreStim, or dump a textdisplay with onset/offset sync disabled and of about 4 ms immediately before the stimulus. That is, onsetsignalenabled-etc sends data (onsetsignaldata) over the parallelport (&H378) at the onset of PreStim. PreStim is just the object (textdisplay, slide, movie, sound, etc) preceding the stimulus (presumably) used by whoever wrote this code. Another possibility is just using the writeport command (found in help). Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of p_e_t_e Sent: 14 June 2010 14:50 To: E-Prime Subject: Error on Inline Hi everyone! I am doing a thesis where I will be recording EEGs during the presentation of some movies. The paradigm is: Documentary part 1 Ad 1 Ad 2 Ad 3 Documentary part 2 Ad 4 Ad 5 Ad 6 ... My question is how do I signal the beginning of each movie? I was told to use InLine with this code: PreStim.OnsetSignalEnabled = True PreStim.OnsetSignalPort = &H378 PreStim.OnsetSignalData = &H01 PreStim.OffsetSignalEnabled = True PreStim.OffsetSignalPort = &H378 PreStim.OffsetSignalData = &H01 But it gives an error saying that left of "." must be an object, structure or dialog. Is there any other way to send a signal identifying the stimulus? Thanks! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Jun 14 18:00:12 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 14 Jun 2010 14:00:12 -0400 Subject: adding and subtracting In-Reply-To: <6714aa44-265e-48b9-8fb0-a044392d0921@k39g2000yqd.googlegro ups.com> Message-ID: Matt, This is not an E-Prime question, this is a general computer programming question. So I repeat my earlier advice -- sign up for an introductory class on computer programming. If you cannot bring yourself to do that, then it is time to hire this work out to someone else. -- David McFarlane, Professional Faultfinder At 6/11/2010 04:23 PM Friday, you wrote: >thats kind of what i was expecting. so far I've looked through the >pages here, the PST user forum, and the VBA for dummies book but I'm >unable to find an example of hwo to perform a simple calculation. I'm >assuming the variables have to be declared and it would require a >cGetAttib and c.SetAttrib If...Then statement. however, being "green" >to programming I'm not 100% sure if that's in fact correct. am i on >the right track at least? > >On Jun 11, 2:45 pm, David McFarlane wrote: > > Matt, > > > > >Quick question for anyone; I’m looking to perform some basic > > >arithmetic operations within a lottery experiment. There are four > > >values in the lottery 10, 8, 5, and 3 and each value currently > > >contains 10 trials which range from .10, .20, … to 1.00. On each > > >trial, the value will be either increased or decreased dependent upon > > >which trial is currently operating, e.g. .10 will increase or decrease > > >the value of 10. Thus, after decreasing the value five times, the new > > >value would be 9.50. Is there a way to accomplish this without the use > > >of an inline and if not > > > > Only if you can assign each sequence in advance > > withouth regard to subject responses. In that > > case you might just put each possible sequence of > > values in a List and roll out the chosen sequence > > as needed. Otherwise, you will need inline code. > > > > >, can anyone direct me to some script that adds or subtracts? > > > > Not me. Best to take care of that yourself, > > start studying Chapter 4 of the User Guide that > > came with E-Prime, you will need some inline > > code, as well as some global variables defined in > > the User Script area. Even better, start with an > > Introduction to Computer Programming class to get > > some basic computer programming concepts. > > > > Good luck, > > -- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Jun 14 18:08:07 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 14 Jun 2010 14:08:07 -0400 Subject: Obscuring Black Software/Hardware Issue in E-Run In-Reply-To: Message-ID: Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours (although current estimates are more like 10 days) -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... 1) Offhand, I would suspect a video driver issue. Did this start after last Tue (8 Jun 2010)? Note that the second Tuesday of the month is when Microsoft releases its monthly updates, and sometimes this breaks things. You might try using System Restore to roll your system back to a configuration before last Tue. 2) Windows 7 64-bit? In that case, all bets are off! If you want to do anything serious with E-Prime, then you have to get a computer that runs good old Windows XP. PST staff should have told you this. -- David McFarlane, Professional Faultfinder "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." (Richard Feynman, Nobel prize-winning physicist) At 6/12/2010 09:19 AM Saturday, you wrote: >I have contacted PST about this issues, and they have not yet had the >time to look at it on Friday or the weekend. The phone tech I spoke to >really has no idea. > >All of a sudden I am finding that the display in E-RUN is now being >nearly entirely covered but a obscuring black box border with covers >all but a little bit of the text in the middle. > >This happened after a downloaded and ran the counterbalance example; >though I doubt it is related. > >Now every e-prime experiment I run has this problem, EVEN the basic >(professional) file generated from New. > >I talked to tech support online, and they suggested is use your >MSCONFIG walkthrough to remove any other programs that might be >effecting E-Prime while it E-Runs. I currently have all external >programs off, and the issue remains. This also was not even a problem >with the same computer a few days ago. > >I have attached a picture of what it looks like while running >Basic(prof) generated new file. > >http://yfrog.com/eu0611001601aj > >http://yfrog.com/9h0611001601j > >I am using windows 7 64 bit. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From grighi at gmail.com Mon Jun 14 21:03:12 2010 From: grighi at gmail.com (grighi) Date: Mon, 14 Jun 2010 14:03:12 -0700 Subject: faulty event duration Message-ID: Hi all i am sorry to bug you with what may be a trivial problem, but i am really not sure how to fix it. I have an experiment programmed in Eprime and running concurrenlty with Tobii Studio, using the tobii studion extensions for Eprime. Note that this paradigm is meant to be used with infants The paradigm is composed of two main parts. In the first part the subject is shown a series of short videos that serve the function of attention getters followed by a slide that contains two faces. Within that slide we have defined a gaze contingent zone, in order to have the infants look at the faces for 10 seconds. This first part all seems to run fine. However some timing problems arise in the second part. In the second part the infant is exposed to 8 trials that have the following structure: a short video is presented to get their attention, followed by a face (a familiarization stimulus) that is set up to be gaze contingent so that all the infants will look at it for the same amount of time. The face is followed by another short video, which is followed by a test trial, which is a slide containing two faces side by side. This slide is up for 5 seconds, and is the followed by another short video. The problem arise on the final slide in each trials which follows this last video and contains two more faces. This slide is set up identically to the one occurring above. However, instead of remaining on the screen for only 5 seconds, which is the time indicated in the settings, it appears to remain on the screen for twice that amount. This appears to be true regardless of the provided durations, such that 2 seconds turn into 4 and so on. Any suggestions on what may be happening? thank you giulia Children's Hospital Boston Laboratories of Cognitive Neuroscience -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Tue Jun 15 12:11:48 2010 From: sombrenote at gmail.com (SombreNote) Date: Tue, 15 Jun 2010 05:11:48 -0700 Subject: Obscuring Black Software/Hardware Issue in E-Run In-Reply-To: <4c16700b.5577e70a.05b9.ffffdd23SMTPIN_ADDED@gmr-mx.google.com> Message-ID: I figured out what the issue was on my own. It was the computer using crossfire mode. once turned off the problem went away. On Jun 14, 2:08 pm, David McFarlane wrote: > Stock reminder:  1) I do not work for PST.  2) PST's trained staff > takes any and all questions athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they > strive to respond to all requests in 24-48 hours (although current > estimates are more like 10 days) -- this is pretty much their > substitute for proper documentation, so make full use of it.  3) If > you do get an answer from PST Web Support, please extend the courtesy > of posting their reply back here for the sake of others. > > That said, here is my take... > > 1) Offhand, I would suspect a video driver issue.  Did this start > after last Tue (8 Jun 2010)?  Note that the second Tuesday of the > month is when Microsoft releases its monthly updates, and sometimes > this breaks things.  You might try using System Restore to roll your > system back to a configuration before last Tue. > > 2) Windows 7 64-bit?  In that case, all bets are off!  If you want to > do anything serious with E-Prime, then you have to get a computer > that runs good old Windows XP.  PST staff should have told you this. > > -- David McFarlane, Professional Faultfinder > "For a successful technology, reality must take precedence over > public relations, for nature cannot be fooled."  (Richard Feynman, > Nobel prize-winning physicist) > > At 6/12/2010 09:19 AM Saturday, you wrote: > > > > >I have contacted PST about this issues, and they have not yet had the > >time to look at it on Friday or the weekend. The phone tech I spoke to > >really has no idea. > > >All of a sudden I am finding that the display in E-RUN is now being > >nearly entirely covered but a obscuring black box border with covers > >all but a little bit of the text in the middle. > > >This happened after a downloaded and ran the counterbalance example; > >though I doubt it is related. > > >Now every e-prime experiment I run has this problem, EVEN the basic > >(professional) file generated from New. > > >I talked to tech support online, and they suggested is use your > >MSCONFIG walkthrough to remove any other programs that might be > >effecting E-Prime while it E-Runs. I currently have all external > >programs off, and the issue remains. This also was not even a problem > >with the same computer a few days ago. > > >I have attached a picture of what it looks like while running > >Basic(prof) generated new file. > > >http://yfrog.com/eu0611001601aj > > >http://yfrog.com/9h0611001601j > > >I am using windows 7 64 bit. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Tue Jun 15 13:38:42 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 15 Jun 2010 09:38:42 -0400 Subject: Obscuring Black Software/Hardware Issue in E-Run In-Reply-To: <08a36097-85d7-4b2d-bbd1-d70b7482f7df@y11g2000yqm.googlegro ups.com> Message-ID: IOW, it was a video driver issue (ATI Technologies CrossFire (aka CrossFireX) technology, see http://en.wikipedia.org/wiki/ATI_CrossFire ), as I suspected. How did you get that turned on in the first place (and how did you turn it off)? >I figured out what the issue was on my own. > >It was the computer using crossfire mode. once turned off the problem >went away. > >On Jun 14, 2:08 pm, David McFarlane wrote: > > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > > takes any and all questions > athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they > > strive to respond to all requests in 24-48 hours (although current > > estimates are more like 10 days) -- this is pretty much their > > substitute for proper documentation, so make full use of it. 3) If > > you do get an answer from PST Web Support, please extend the courtesy > > of posting their reply back here for the sake of others. > > > > That said, here is my take... > > > > 1) Offhand, I would suspect a video driver issue. Did this start > > after last Tue (8 Jun 2010)? Note that the second Tuesday of the > > month is when Microsoft releases its monthly updates, and sometimes > > this breaks things. You might try using System Restore to roll your > > system back to a configuration before last Tue. > > > > 2) Windows 7 64-bit? In that case, all bets are off! If you want to > > do anything serious with E-Prime, then you have to get a computer > > that runs good old Windows XP. PST staff should have told you this. > > > > -- David McFarlane, Professional Faultfinder > > "For a successful technology, reality must take precedence over > > public relations, for nature cannot be fooled." (Richard Feynman, > > Nobel prize-winning physicist) > > > > At 6/12/2010 09:19 AM Saturday, you wrote: > > > > > > > > >I have contacted PST about this issues, and they have not yet had the > > >time to look at it on Friday or the weekend. The phone tech I spoke to > > >really has no idea. > > > > >All of a sudden I am finding that the display in E-RUN is now being > > >nearly entirely covered but a obscuring black box border with covers > > >all but a little bit of the text in the middle. > > > > >This happened after a downloaded and ran the counterbalance example; > > >though I doubt it is related. > > > > >Now every e-prime experiment I run has this problem, EVEN the basic > > >(professional) file generated from New. > > > > >I talked to tech support online, and they suggested is use your > > >MSCONFIG walkthrough to remove any other programs that might be > > >effecting E-Prime while it E-Runs. I currently have all external > > >programs off, and the issue remains. This also was not even a problem > > >with the same computer a few days ago. > > > > >I have attached a picture of what it looks like while running > > >Basic(prof) generated new file. > > > > >http://yfrog.com/eu0611001601aj > > > > >http://yfrog.com/9h0611001601j > > > > >I am using windows 7 64 bit. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From cmarker1 at gmail.com Tue Jun 15 17:05:24 2010 From: cmarker1 at gmail.com (Craig) Date: Tue, 15 Jun 2010 10:05:24 -0700 Subject: Looming pictures Message-ID: Hello, I am trying to program a task in which there are looming pictures that change depending on the person's response with the joystick. I am currently trying to program an experiment in which pictures are presented on the screen, and participants are required to push or pull a joystick and squeeze the trigger based on the color of the background (e.g., a blue background means push the joystick away). When the joystick is pushed, the image size needs to gradually decrease (to strengthen the feeling that the picture is pushed away). When the joystick is pulled, the image size should increase. I am using E-prime version 2.0. Professional. I found a similar question on the list, but I didn't see an answer. I was wondering whether: 1) anyone has programmed a looming task where pictures get bigger or smaller (I think I need to use the Object Slide, but I am not so sure how to do it) and 2) whether anyone has programmed a task where pressing a joystick in a particular direction and squeezing the trigger causes a picture to change (i.e., how can I collect joystick-movement-data and how I can subsequently use this information to present the next picture.). Thanks so much in advance. Craig -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From grighi at gmail.com Tue Jun 15 18:16:19 2010 From: grighi at gmail.com (grighi) Date: Tue, 15 Jun 2010 11:16:19 -0700 Subject: Eprime output with eye tracking help Message-ID: Hi all i was wondering if anybody could tell me how the eye coordinates are reported in the gazedata file. Mostly i am not sure what the reference is. Are they expressed in pixel locations (although they do no look to be to me)? The reason why i would like to know this is to be able to run some post hoc analysis on specific portions of the stimuli in the screen thanks giulia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Tue Jun 15 19:02:34 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 15 Jun 2010 15:02:34 -0400 Subject: Eprime output with eye tracking help In-Reply-To: Message-ID: Giulia, I do not use such a system, so I have no answers for you. But your question raises a host of other questions in my mind. Isn't this covered in the documentation that came with the system? I mean, it's an *eyetracker*, it's whole purpose is to record & report eye gaze positions, surely the manufacturer would document the measurement units, wouldn't they? Couldn't you get this information directly from the company? -- David McFarlane, Professional Faultfinder >i was wondering if anybody could tell me how the eye coordinates are >reported in the gazedata file. >Mostly i am not sure what the reference is. Are they expressed in >pixel locations (although they do no look to be to me)? > >The reason why i would like to know this is to be able to run some >post hoc analysis on specific portions of the stimuli in the screen > >thanks >giulia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Tue Jun 15 18:58:15 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 15 Jun 2010 14:58:15 -0400 Subject: faulty event duration In-Reply-To: Message-ID: Giulia, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours (although current estimates are more like 10 days) -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... Hmm, that is a new one. Are you sure that you do not have two of those Slides in a row, or end the trial with that Slide and then start the next Trial with the same Slide? That's all I can come up with based on the description. -- David McFarlane, Professional Faultfinder At 6/14/2010 05:03 PM Monday, you wrote: >i am sorry to bug you with what may be a trivial problem, but i am >really not sure how to fix it. > >I have an experiment programmed in Eprime and running concurrenlty >with Tobii Studio, using the tobii studion extensions for Eprime. Note >that this paradigm is meant to be used with infants > >The paradigm is composed of two main parts. In the first part the >subject is shown a series of short videos that serve the function of >attention getters followed by a slide that contains two faces. Within >that slide we have defined a gaze contingent zone, in order to have >the infants look at the faces for 10 seconds. This first part all >seems to run fine. > >However some timing problems arise in the second part. In the second >part the infant is exposed to 8 trials that have the following >structure: a short video is presented to get their attention, followed >by a face (a familiarization stimulus) that is set up to be gaze >contingent so that all the infants will look at it for the same amount >of time. The face is followed by another short video, which is >followed by a test trial, which is a slide containing two faces side >by side. This slide is up for 5 seconds, and is the followed by >another short video. The problem arise on the final slide in each >trials which follows this last video and contains two more faces. This >slide is set up identically to the one occurring above. However, >instead of remaining on the screen for only 5 seconds, which is the >time indicated in the settings, it appears to remain on the screen for >twice that amount. This appears to be true regardless of the provided >durations, such that 2 seconds turn into 4 and so on. > >Any suggestions on what may be happening? > >thank you > >giulia > >Children's Hospital Boston >Laboratories of Cognitive Neuroscience -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From ashtyster at gmail.com Tue Jun 15 19:24:27 2010 From: ashtyster at gmail.com (Ashtyster) Date: Tue, 15 Jun 2010 12:24:27 -0700 Subject: Eprime output with eye tracking help In-Reply-To: Message-ID: Hi Giulia, I've worked with eye-tracking for quite a bit of time. A gaze data file should contain X and Y values (in pixel locations) for both the pupil and corneal reflection. You can check the documentation that came with eye-tracking software for further reference. It's eye-tracking software that creates the dat file with gaze info, not E-Prime. Good luck! -Ashtyster On Jun 15, 8:16 pm, grighi wrote: > Hi all > > i was wondering if anybody could tell me how the eye coordinates are > reported in the gazedata file. > Mostly i am not sure what the reference is. Are they expressed in > pixel locations (although they do no look to be to me)? > > The reason why i would like to know this is to be able to run some > post hoc analysis on specific portions of the stimuli in the screen > > thanks > giulia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From ashtyster at gmail.com Tue Jun 15 19:06:19 2010 From: ashtyster at gmail.com (Ashtyster) Date: Tue, 15 Jun 2010 12:06:19 -0700 Subject: recording mouse movements In-Reply-To: <4c115e13.84c9e70a.6bd5.34d7SMTPIN_ADDED@gmr-mx.google.com> Message-ID: I've been able to make E-Prime record cursor movements. However, after looking at the recorded values, I realized it would be ideal if I could record finger movements on the touch pad directly instead of movements of the cursor on the screen. Does anyone know whether it's possible to do it with E-Prime. I know I should address this question to E-Prime tech support (which I've done already), but maybe somebody has done this before and could give me some tips. Thank you. -Ashtyster On Jun 10, 11:50 pm, David McFarlane wrote: > Oh, I should mention that PST has an example TrackMouseCoordinates > program on their web site that you may find useful to look at.  (And > then I must warn you, as I did in another post today, that in general > PST programmers are pretty sloppy, so do not take their example > programs as models of proper programming practice.  Instead, take > them only as rough examples of particular features and then abstract > the useful parts and recode it properly for yourself.) > > -- David McFarlane, Professional Faultfinder > > At 6/10/2010 04:41 PM Thursday, you wrote: > > > > >Great ideas! Thank you for your help! > > >On Thu, Jun 10, 2010 at 10:11 PM, David McFarlane > ><mcfar... at msu.edu> wrote: > >Once you get the mouse coordinates (following Ben's sage advice) you > >will want to save them somewhere.  You can store them directly in > >the .edat file using some combination of c.SetAttrib and c.Log (see > >the Context topic in the online E-Basic Help), or to any text file > >of your choosing using something like Print# (again, see the E-Basic Help). > > >Finally,  don't overlook PST Web Support at > >http://support.pstnet.com/e%2Dprime/support/login.asp > >, they like to help out with this sort of thing. > > >-- David McFarlane, Professional Faultfinder > > >At 6/10/2010 11:41 AM Thursday, you wrote: > >i think the syntax is Mouse.GetCursorPos (search for that in the > >Help file), and you could GetCursorPos every x number of > >milliseconds using a loop in an Inline, depending on the temporal > >resolution you desire.  that would be one, obvious way, though there > >may be better ways... > > >On Thu, Jun 10, 2010 at 10:09 AM, Ashtyster > ><ashtys... at gmail.com> > >wrote: > >For one of my studies, I would like to record mouse movements (I'm > >using a touch pad, but it doesn't make a difference here) over a > >certain period of time. No clicks, just the movements. I was wondering > >whether it's possible to do it with E-Prime, and if yes - then how? > > >I will appreciate any help and advice regarding this issue. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From grighi at gmail.com Tue Jun 15 22:06:08 2010 From: grighi at gmail.com (grighi) Date: Tue, 15 Jun 2010 15:06:08 -0700 Subject: Eprime output with eye tracking help In-Reply-To: <6ae28c21-ae7a-4e25-a60d-3d4fa598be8a@s9g2000yqd.googlegroups.com> Message-ID: Thank you for the replies. Unfortunately the information is very scarce and the format of the coordinates differs between experiments run using Tobii Studio (the eye tracking proprietary software) and Eprime with the extensions. While the tobii studio ones are expressed in pixels values, the eprime ones are express like 0.5557 and so on. thanks giulia On Jun 15, 3:24 pm, Ashtyster wrote: > Hi Giulia, > > I've worked with eye-tracking for quite a bit of time. A gaze data > file should contain X and Y values (in pixel locations) for both the > pupil and corneal reflection. > You can check the documentation that came with eye-tracking software > for further reference. It's eye-tracking software that creates the dat > file with gaze info, not E-Prime. > > Good luck! > > -Ashtyster > > On Jun 15, 8:16 pm, grighi wrote: > > > > > Hi all > > > i was wondering if anybody could tell me how the eye coordinates are > > reported in the gazedata file. > > Mostly i am not sure what the reference is. Are they expressed in > > pixel locations (although they do no look to be to me)? > > > The reason why i would like to know this is to be able to run some > > post hoc analysis on specific portions of the stimuli in the screen > > > thanks > > giulia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Wed Jun 16 10:34:11 2010 From: sombrenote at gmail.com (SombreNote) Date: Wed, 16 Jun 2010 03:34:11 -0700 Subject: Obscuring Black Software/Hardware Issue in E-Run In-Reply-To: <4c178267.dfc3e70a.66b4.40faSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Well, my system has dual radeon 5770 in it. When the computer was setup it was set to be crossfired (crossfirex). E-prime was installed and running fine until one day out of the blue it seems the second stopped rendering the bottom half. I have no idea why this is; i made no changes. So i turned off crossfire and it fixed the issue. It is just annoying i have to turn it on and off now. On Jun 15, 9:38 am, David McFarlane wrote: > IOW, it was a video driver issue (ATI Technologies CrossFire (aka > CrossFireX) technology, seehttp://en.wikipedia.org/wiki/ATI_CrossFire), as I suspected.  How > did you get that turned on in the first place (and how did you turn it off)? > > > > >I figured out what the issue was on my own. > > >It was the computer using crossfire mode. once turned off the problem > >went away. > > >On Jun 14, 2:08 pm, David McFarlane wrote: > > > Stock reminder:  1) I do not work for PST.  2) PST's trained staff > > > takes any and all questions > > athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they > > > strive to respond to all requests in 24-48 hours (although current > > > estimates are more like 10 days) -- this is pretty much their > > > substitute for proper documentation, so make full use of it.  3) If > > > you do get an answer from PST Web Support, please extend the courtesy > > > of posting their reply back here for the sake of others. > > > > That said, here is my take... > > > > 1) Offhand, I would suspect a video driver issue.  Did this start > > > after last Tue (8 Jun 2010)?  Note that the second Tuesday of the > > > month is when Microsoft releases its monthly updates, and sometimes > > > this breaks things.  You might try using System Restore to roll your > > > system back to a configuration before last Tue. > > > > 2) Windows 7 64-bit?  In that case, all bets are off!  If you want to > > > do anything serious with E-Prime, then you have to get a computer > > > that runs good old Windows XP.  PST staff should have told you this. > > > > -- David McFarlane, Professional Faultfinder > > > "For a successful technology, reality must take precedence over > > > public relations, for nature cannot be fooled."  (Richard Feynman, > > > Nobel prize-winning physicist) > > > > At 6/12/2010 09:19 AM Saturday, you wrote: > > > > >I have contacted PST about this issues, and they have not yet had the > > > >time to look at it on Friday or the weekend. The phone tech I spoke to > > > >really has no idea. > > > > >All of a sudden I am finding that the display in E-RUN is now being > > > >nearly entirely covered but a obscuring black box border with covers > > > >all but a little bit of the text in the middle. > > > > >This happened after a downloaded and ran the counterbalance example; > > > >though I doubt it is related. > > > > >Now every e-prime experiment I run has this problem, EVEN the basic > > > >(professional) file generated from New. > > > > >I talked to tech support online, and they suggested is use your > > > >MSCONFIG walkthrough to remove any other programs that might be > > > >effecting E-Prime while it E-Runs. I currently have all external > > > >programs off, and the issue remains. This also was not even a problem > > > >with the same computer a few days ago. > > > > >I have attached a picture of what it looks like while running > > > >Basic(prof) generated new file. > > > > >http://yfrog.com/eu0611001601aj > > > > >http://yfrog.com/9h0611001601j > > > > >I am using windows 7 64 bit. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From ashtyster at gmail.com Wed Jun 16 11:19:25 2010 From: ashtyster at gmail.com (Ashtyster) Date: Wed, 16 Jun 2010 04:19:25 -0700 Subject: Eprime output with eye tracking help In-Reply-To: <638682b2-95c7-4744-bd5c-60560b68842b@3g2000vbf.googlegroups.com> Message-ID: Well, I've never used E-Prime's output to look at the eye data. So I have no idea what it looks like. But why do you need to look at E-Prime output anyway, if you use Tobii Studio (which allows you not only to get eye coordinates, but also analyze eye data)? -Ashtyster On 16 Jun, 00:06, grighi wrote: > Thank you for the replies. > > Unfortunately the information is very scarce and the format of the > coordinates differs between experiments run using Tobii Studio (the > eye tracking proprietary software) and Eprime with the extensions. > While the tobii studio ones are expressed in pixels values, the eprime > ones are express like 0.5557 and so on. > > thanks > giulia > > On Jun 15, 3:24 pm, Ashtyster wrote: > > > > > Hi Giulia, > > > I've worked with eye-tracking for quite a bit of time. A gaze data > > file should contain X and Y values (in pixel locations) for both the > > pupil and corneal reflection. > > You can check the documentation that came with eye-tracking software > > for further reference. It's eye-tracking software that creates the dat > > file with gaze info, not E-Prime. > > > Good luck! > > > -Ashtyster > > > On Jun 15, 8:16 pm, grighi wrote: > > > > Hi all > > > > i was wondering if anybody could tell me how the eye coordinates are > > > reported in the gazedata file. > > > Mostly i am not sure what the reference is. Are they expressed in > > > pixel locations (although they do no look to be to me)? > > > > The reason why i would like to know this is to be able to run some > > > post hoc analysis on specific portions of the stimuli in the screen > > > > thanks > > > giulia– Skjul sitert tekst – > > – Vis sitert tekst – -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From tobias.fw at gmail.com Wed Jun 16 11:14:33 2010 From: tobias.fw at gmail.com (Tobias) Date: Wed, 16 Jun 2010 04:14:33 -0700 Subject: Draw bitmaps pixel by pixel Message-ID: Hej together, I want to program a random mask for a visual attention experiment. The idea is, that the mask should be randomly created each trial because there are some hints that subjects "learn" to ignore a mask if it is repeatedly used. So what I think of is a white noise or something. Is there a way in E-Prime to create bitmaps pixel by pixel with an inline? Cheers, Tobias -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From baltimore.ben at gmail.com Wed Jun 16 13:56:57 2010 From: baltimore.ben at gmail.com (ben robinson) Date: Wed, 16 Jun 2010 09:56:57 -0400 Subject: Draw bitmaps pixel by pixel In-Reply-To: Message-ID: how about: For y = 1 to 5 For x = 1 to 5 Select Case CInt(Rnd(1)) Case 0 cnvs.SetPixel x, y, CColor("black") Case 1 cnvs.SetPixel x, y, CColor("white") End Select Next x Next y On Wed, Jun 16, 2010 at 7:14 AM, Tobias wrote: > Hej together, > > I want to program a random mask for a visual attention experiment. The > idea is, that the mask should be randomly created each trial because > there are some hints that subjects "learn" to ignore a mask if it is > repeatedly used. So what I think of is a white noise or something. Is > there a way in E-Prime to create bitmaps pixel by pixel with an > inline? > > Cheers, > Tobias > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From manutd107 at gmail.com Wed Jun 16 14:37:28 2010 From: manutd107 at gmail.com (John) Date: Wed, 16 Jun 2010 07:37:28 -0700 Subject: Forcing a certain outcome Message-ID: First, I apologize if I haven't given enough information to solve this problem. Please let me know if you need more information! I am trying to force an outcome in this game I've designed, but only for the very first trial. Basically I have the program randomly choose a number 0-99 and for that to decide the outcome, but for the first trial I want to make sure that the initial choice and then outcome is always the same. I have created some code that usually leads to the outcome I want, but 1/10 times it seems to not work. More specifically, sometimes both the "actor" and "participant" are gaining points, which I don't want. Instead, I want the "actor" to always gain points and the "participant" to always lose points, but just for the very first trial. After that, I want to use the code I've created to determine the subsequent decisions. My failed solution: instead of allowing the computer to randomly generate a number, I tried to force it to use 0, but only for the first trial. This doesn't seem to work in about 1/10 times for some reason. So in an initial InLine object I state: FirstTrial = true Then in the Procedure I have: If FirstTrial Then c.SetAttrib "ActorValue", "50/50" c.SetAttrib "PartValue", "Bad" took = true End If Then in the general User script I have: Dim FirstTrial as Boolean 'Calculates how much someone's points will change if they took Function PointMod(Value as String, FirstTrial as Boolean) as Integer Randomize Dim percent as Integer percent = Random(0, 99) If FirstTrial Then percent = 0 End If Select Case Value Case "Good" If percent < 85 Then pointMod = 10 Else pointMod = -10 End If Case "Bad" If percent < 85 Then pointMod = -10 Else pointMod = 10 End If Case "50/50" If percent < 50 Then pointMod = 10 Else pointMod = -10 End If End Select End Function -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From grighi at gmail.com Wed Jun 16 14:47:31 2010 From: grighi at gmail.com (grighi) Date: Wed, 16 Jun 2010 07:47:31 -0700 Subject: Eprime output with eye tracking help In-Reply-To: <327f0564-3720-4ecc-9d56-e86dac775294@h13g2000yqm.googlegroups.com> Message-ID: Hi sorry,maybe i was not clear. The experiment is programmed in Eprime and i am using the extension for Tobii in order to record eye movements. Given the structure of the experiment, it actually made a lot more sense to program it in eprime. The save gaze data file, which is somewhat analogous to a tobii studio output is the one that contains the puzzling coordinates. thanks giulia On Jun 16, 7:19 am, Ashtyster wrote: > Well, I've never used E-Prime's output to look at the eye data. So I > have no idea what it looks like. > > But why do you need to look at E-Prime output anyway, if you use Tobii > Studio (which allows you not only to get eye coordinates, but also > analyze eye data)? > > -Ashtyster > > On 16 Jun, 00:06, grighi wrote: > > > > > Thank you for the replies. > > > Unfortunately the information is very scarce and the format of the > > coordinates differs between experiments run using Tobii Studio (the > > eye tracking proprietary software) and Eprime with the extensions. > > While the tobii studio ones are expressed in pixels values, the eprime > > ones are express like 0.5557 and so on. > > > thanks > > giulia > > > On Jun 15, 3:24 pm, Ashtyster wrote: > > > > Hi Giulia, > > > > I've worked with eye-tracking for quite a bit of time. A gaze data > > > file should contain X and Y values (in pixel locations) for both the > > > pupil and corneal reflection. > > > You can check the documentation that came with eye-tracking software > > > for further reference. It's eye-tracking software that creates the dat > > > file with gaze info, not E-Prime. > > > > Good luck! > > > > -Ashtyster > > > > On Jun 15, 8:16 pm, grighi wrote: > > > > > Hi all > > > > > i was wondering if anybody could tell me how the eye coordinates are > > > > reported in the gazedata file. > > > > Mostly i am not sure what the reference is. Are they expressed in > > > > pixel locations (although they do no look to be to me)? > > > > > The reason why i would like to know this is to be able to run some > > > > post hoc analysis on specific portions of the stimuli in the screen > > > > > thanks > > > > giulia– Skjul sitert tekst – > > > – Vis sitert tekst – -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From giladsabo at gmail.com Wed Jun 16 15:44:55 2010 From: giladsabo at gmail.com (gilis) Date: Wed, 16 Jun 2010 08:44:55 -0700 Subject: Problem with collecting voice response Message-ID: In my experiment prticipants have to respond to stimuli both with mouse click and voice response, there is no importance to what come first (mouse click or voice response) but the program excpecting two responses (manual and vocal) in each trial. If on click the mouse more than once, then the program will collcet only his or her first response and regardless if he/she continue clicking the mouse, the next trial will start only after he/she will also give vocal response. And vice versa, the same goes in case when the vocal response came first. To make this, I wrote these three inlines: 'This inline is the first and main inline, it checks what was the first response in the trial, collect it and then go to the device yet not was used (i.e., mouse or SRB). Dim theResponseObject As RteRunnableInputObject Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("Stimuli")) 'If the assert below fires, then the object named in the line above does not exist Debug.Assert Not theResponseObject Is Nothing Dim nIndex AS Integer For nIndex = 1 To theResponseObject.InputMasks.Responses.Count 'Access the response and check to see if it is a mouse response. Dim theSRBoxData As SRboxResponseData Set theSRBoxData = CSRBoxResponseData (theResponseObject.InputMasks.Responses(1)) If Not theSRBoxData Is Nothing Then c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP Goto MouseLabel End If 'Access the response and check to see if it is a mouse response. Dim theMouseResponseData As MouseResponseData Set theMouseResponseData = CMouseResponseData(theResponseObject.InputMasks.Responses(1)) If Not theMouseResponseData Is Nothing Then c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP Goto SRBoxLabel End If NEXT nIndex 'These are the second and the third inlines: 'If in the first inline, the SRBox Data was not nothing then collect the mouse response now: Dim theResponseObject As RteRunnableInputObject Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("MouseStimuli")) 'If the assert below fires, then the object named in the line above does not exist Debug.Assert Not theResponseObject Is Nothing Dim nIndex as Integer Dim theMouseResponseData As MouseResponseData Set theMouseResponseData = CMouseResponseData(theResponseObject.InputMasks.Responses(1)) If Not theMouseResponseData Is Nothing Then 'Log reaction time and response for each mouse click. c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP End If 'The third inline do the same as the second inline, but for the SRBox: Dim theResponseObject As RteRunnableInputObject Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("SRBoxStimuli")) 'If the assert below fires, then the object named in the line above does not exist Debug.Assert Not theResponseObject Is Nothing Dim theSRBoxData As SRboxResponseData Set theSRBoxData = CSRBoxResponseData(theResponseObject.InputMasks.Responses(1)) If Not theSRBoxData Is Nothing Then c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP End if Now, in when I used keyboard input instead of SRB, it worked fine. But now I get strange bug: Everything works well aside for trials where the participant first respond vocally-in this case the following mouse click is considered as the first response and then the program wait to another vocal response and the next trial start only after it's given. I understand where the problem is, would appreciate your help. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Wed Jun 16 16:38:23 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Wed, 16 Jun 2010 17:38:23 +0100 Subject: Draw bitmaps pixel by pixel In-Reply-To: Message-ID: That's better than mine - but I think my comments on issues of timing, need for pre-writing canvas, &c., might still be useful. Cheers, Mich Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of ben robinson Sent: 16 June 2010 14:57 To: e-prime at googlegroups.com Subject: Re: Draw bitmaps pixel by pixel how about: For y = 1 to 5 For x = 1 to 5 Select Case CInt(Rnd(1)) Case 0 cnvs.SetPixel x, y, CColor("black") Case 1 cnvs.SetPixel x, y, CColor("white") End Select Next x Next y On Wed, Jun 16, 2010 at 7:14 AM, Tobias wrote: Hej together, I want to program a random mask for a visual attention experiment. The idea is, that the mask should be randomly created each trial because there are some hints that subjects "learn" to ignore a mask if it is repeatedly used. So what I think of is a white noise or something. Is there a way in E-Prime to create bitmaps pixel by pixel with an inline? Cheers, Tobias -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com . For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michiel.Spape at nottingham.ac.uk Wed Jun 16 16:36:17 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Wed, 16 Jun 2010 17:36:17 +0100 Subject: Draw bitmaps pixel by pixel In-Reply-To: Message-ID: Hi, Drawing things pixel by pixel is quite easily implemented, given you know enough about programming (I seem to remember you do) - drawing bmp's pixel for pixel is more difficult, I expect (since A: you'd have to randomise pixels B: fill a file with it, then C: draw the file, whereas just doing the whole randomising in canvas saves step B and C). I think I even have something: Dim canvasmask as Mask Dim cnvs as Canvas Sub buildMask (masksize as integer, nCircles as integer, circlesize as integer) dim functiondur as long functiondur = clock.read dim cCircle as integer dim onetothree as integer dim ppoint as point for cCircle = 1 to nCircles onetothree = random (1,3) if onetothree = 1 then cnvsmask.FillColor = CColor("black") if onetothree = 2 then cnvsmask.FillColor = CColor("white") if onetothree = 3 then cnvsmask.FillColor = CColor("gray") cnvsmask.Circle random (display.xres / 2 - masksize / 2, display.xres / 2 + masksize / 2), random (display.yres / 2 - masksize / 2, display.yres / 2 + masksize / 2), circlesize / 2 next cCircle debug.print "Mask took " & (clock.read - functiondur) & " ms to build" End Sub Sub drawmask (masksize as integer) dim midrect as rect midRect.Left = display.xres / 2 - masksize/2 midRect.Right = display.xres / 2 + masksize/2 midRect.Top = display.yres / 2 - masksize/2 midRect.Bottom = display.yres / 2 + masksize /2 cnvs.copy cnvsmask, midrect, midrect End Sub ... I think that should work. Anyway, dump the whole thing into your userscript, then use the following in an inline to A: build the mask (might take some time, hence the debugging script), B: show the mask (it's useful to do this separately for timing issues) 'probably do this at the beginning of the trial buildMask 100, 50, 10 'draws 50 circles of size 10 in a mask of size 100 (all pixels) 'do this when you want to show stuff Display.waitforverticalblank 'for sync issues, not sure about exact syntax. Drawmask 100 ...of course, my code here was mainly written (and subsequently abolished) for shape-based (circle) masking. More effective code can be written if you just want to do pixel-by-pixel colouring. I imagine you get the picture. Cheers, Mich Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Tobias Sent: 16 June 2010 12:15 To: E-Prime Subject: Draw bitmaps pixel by pixel Hej together, I want to program a random mask for a visual attention experiment. The idea is, that the mask should be randomly created each trial because there are some hints that subjects "learn" to ignore a mask if it is repeatedly used. So what I think of is a white noise or something. Is there a way in E-Prime to create bitmaps pixel by pixel with an inline? Cheers, Tobias -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Wed Jun 16 16:44:30 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Wed, 16 Jun 2010 17:44:30 +0100 Subject: Eprime output with eye tracking help In-Reply-To: <327f0564-3720-4ecc-9d56-e86dac775294@h13g2000yqm.googlegroups.com> Message-ID: Hi, It's a Tobii, yes? The values between 0 and 1 (reported as XY coordinates) are a function of the screen: 0 is left (pixel 1), 1 is right (pixel 640 in 640x480 resolution). This is all thoroughly explained in the documentation. Tobii Extensions for E-Prime also give you, by default, the pixel coordinates themselves; I don't know why you chose not to record these. Anyway, my suggestion: open a BIG .gazedata file in Excel, look at the column variables, put the manual next to it, and see what it means. Personally, I'd suggest learning Matlab to analyse the data, though I know people who have successfully used Excel, SPSS and even BrainVisionAnalyzer instead. Let us know how you get on with this! Best, Mich Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Ashtyster Sent: 16 June 2010 12:19 To: E-Prime Subject: Re: Eprime output with eye tracking help Well, I've never used E-Prime's output to look at the eye data. So I have no idea what it looks like. But why do you need to look at E-Prime output anyway, if you use Tobii Studio (which allows you not only to get eye coordinates, but also analyze eye data)? -Ashtyster On 16 Jun, 00:06, grighi wrote: > Thank you for the replies. > > Unfortunately the information is very scarce and the format of the > coordinates differs between experiments run using Tobii Studio (the > eye tracking proprietary software) and Eprime with the extensions. > While the tobii studio ones are expressed in pixels values, the eprime > ones are express like 0.5557 and so on. > > thanks > giulia > > On Jun 15, 3:24 pm, Ashtyster wrote: > > > > > Hi Giulia, > > > I've worked with eye-tracking for quite a bit of time. A gaze data > > file should contain X and Y values (in pixel locations) for both the > > pupil and corneal reflection. > > You can check the documentation that came with eye-tracking software > > for further reference. It's eye-tracking software that creates the dat > > file with gaze info, not E-Prime. > > > Good luck! > > > -Ashtyster > > > On Jun 15, 8:16 pm, grighi wrote: > > > > Hi all > > > > i was wondering if anybody could tell me how the eye coordinates are > > > reported in the gazedata file. > > > Mostly i am not sure what the reference is. Are they expressed in > > > pixel locations (although they do no look to be to me)? > > > > The reason why i would like to know this is to be able to run some > > > post hoc analysis on specific portions of the stimuli in the screen > > > > thanks > > > giulia- Skjul sitert tekst - > > - Vis sitert tekst - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From manutd107 at gmail.com Wed Jun 16 17:15:42 2010 From: manutd107 at gmail.com (John) Date: Wed, 16 Jun 2010 10:15:42 -0700 Subject: Forcing a certain outcome In-Reply-To: <48e3ce30-ecb2-42c5-b6be-ed51ca0bfc80@i31g2000yqm.googlegroups.com> Message-ID: I think I narrowed down the problem. I declared this in an initial InLine object (outside of the trial loop): FirstTrial = true Then I negated that in an InLine object within the loop: FirstTrial = false It seems that negating it within the loop lead the program to ignore my If statement, but only for issuing the outcome of the trial. The code: If FirstTrial Then c.SetAttrib "ActorValue", "50/50" c.SetAttrib "PartValue", "Bad" took = true End If always seemed to be read though (it does come before the FirstTrial = false statement though). After reading this, does anyone have any idea what I'm talking about? I think that my design may be too complicated to communicate on the forum! On Jun 16, 10:37 am, John wrote: > First, I apologize if I haven't given enough information to solve this > problem. Please let me know if you need more information! > > I am trying to force an outcome in this game I've designed, but only > for the very first trial. > > Basically I have the program randomly choose a number 0-99 and for > that to decide the outcome, but for the first trial I want to make > sure that the initial choice and then outcome is always the same. I > have created some code that usually leads to the outcome I want, but > 1/10 times it seems to not work. > > More specifically, sometimes both the "actor" and "participant" are > gaining points, which I don't want. Instead, I want the "actor" to > always gain points and the "participant" to always lose points, but > just for the very first trial. After that, I want to use the code I've > created to determine the subsequent decisions. > > My failed solution: instead of allowing the computer to randomly > generate a number, I tried to force it to use 0, but only for the > first trial. This doesn't seem to work in about 1/10 times for some > reason. > > So in an initial InLine object I state: > > FirstTrial = true > > Then in the Procedure I have: > > If FirstTrial Then > c.SetAttrib "ActorValue", "50/50" > c.SetAttrib "PartValue", "Bad" > took = true > End If > > Then in the general User script I have: > > Dim FirstTrial as Boolean > 'Calculates how much someone's points will change if they took > Function PointMod(Value as String, FirstTrial as Boolean) as Integer > Randomize > Dim percent as Integer > percent = Random(0, 99) > If FirstTrial Then >         percent = 0 > End If > Select Case Value >         Case "Good" >                 If percent < 85 Then >                         pointMod = 10 >                 Else >                         pointMod = -10 >                 End If >         Case "Bad" >                 If percent < 85 Then >                         pointMod = -10 >                 Else >                         pointMod = 10 >                 End If >         Case "50/50" >                 If percent < 50 Then >                         pointMod = 10 >                 Else >                         pointMod = -10 >                 End If > End Select > End Function -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From tobias.fw at gmail.com Thu Jun 17 09:49:42 2010 From: tobias.fw at gmail.com (Tobias) Date: Thu, 17 Jun 2010 02:49:42 -0700 Subject: Draw bitmaps pixel by pixel In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF03766B49@VUIEXCHC.ad.nottingham.ac.uk> Message-ID: Thanks a lot for your detailed help. I am wondering how to implement that code in my program. For now, I have a line calling for a certain mask (which is always the same): if c.getattrib("TargPos") = (i-1) then CueDisplay_SlideImage.Filename = "mask.bmp" So instead of this mask.bmp I would have need of the randomly generated bitmap. I am not quite sure how to implement your code at this place. Thanks a lot in advance, Tobias On Jun 16, 6:36 pm, Michiel Spape wrote: > Hi, > Drawing things pixel by pixel is quite easily implemented, given you know enough about programming (I seem to remember you do) - drawing bmp's pixel for pixel is more difficult, I expect (since A: you'd have to randomise pixels B: fill a file with it, then C: draw the file, whereas just doing the whole randomising in canvas saves step B and C). I think I even have something: > > Dim canvasmask as Mask > Dim cnvs as Canvas > > Sub buildMask (masksize as integer, nCircles as integer, circlesize as integer) >         dim functiondur as long >         functiondur = clock.read >         dim cCircle as integer >         dim onetothree as integer >         dim ppoint as point >         for cCircle = 1 to nCircles >                 onetothree = random (1,3) >                 if onetothree = 1 then cnvsmask.FillColor = CColor("black")   >                 if onetothree = 2 then cnvsmask.FillColor = CColor("white")   >                 if onetothree = 3 then cnvsmask.FillColor = CColor("gray")     >                 cnvsmask.Circle random (display.xres / 2 - masksize / 2, display.xres / 2 + masksize / 2), random (display.yres / 2 - masksize / 2, display.yres / 2 + masksize / 2), circlesize / 2 >         next cCircle >         debug.print "Mask took " & (clock.read - functiondur) & " ms to build" > End Sub > > Sub drawmask (masksize as integer) >         dim midrect as rect >         midRect.Left = display.xres / 2 - masksize/2 >         midRect.Right = display.xres / 2 + masksize/2 >         midRect.Top = display.yres / 2 - masksize/2 >         midRect.Bottom = display.yres / 2 + masksize /2 >         cnvs.copy cnvsmask, midrect, midrect > End Sub > > ... I think that should work. Anyway, dump the whole thing into your userscript, then use the following in an inline to A: build the mask (might take some time, hence the debugging script), B: show the mask (it's useful to do this separately for timing issues) > > 'probably do this at the beginning of the trial > buildMask 100, 50, 10 'draws 50 circles of size 10 in a mask of size 100 (all pixels) > > 'do this when you want to show stuff > Display.waitforverticalblank 'for sync issues, not sure about exact syntax. > Drawmask 100 > > ...of course, my code here was mainly written (and subsequently abolished) for shape-based (circle) masking. More effective code can be written if you just want to do pixel-by-pixel colouring. I imagine you get the picture. > > Cheers, > Mich > > Michiel Spapé > Research Fellow > Perception & Action group > University of Nottingham > School of Psychology > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Tobias > Sent: 16 June 2010 12:15 > To: E-Prime > Subject: Draw bitmaps pixel by pixel > > Hej together, > > I want to program a random mask for a visual attention experiment. The > idea is, that the mask should be randomly created each trial because > there are some hints that subjects "learn" to ignore a mask if it is > repeatedly used. So what I think of is a white noise or something. Is > there a way in E-Prime to create bitmaps pixel by pixel with an > inline? > > Cheers, > Tobias > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Thu Jun 17 10:35:46 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Thu, 17 Jun 2010 11:35:46 +0100 Subject: Draw bitmaps pixel by pixel In-Reply-To: Message-ID: Hi Tobias, I'm sorry, but if you want to accomplish advanced things in programming, you'll often have to abandon your previous - perfectly okay - code. As said, I'm quite sure you might achieve writing a BMP file to disk, of a random mask, within E-Prime, then later using that, but I'm unsure of the specifics regarding BMPs. I do find it unlikely you'll end up writing fewer code than my suggestion. Anyway, having a little bit more time, I found a few bugs in my code and here's a step-by-step implementation guide. 1. Start with A NEW EXPERIMENT. After finishing all steps, you should be able to integrate the code within your existing experiment, but do that afterwards - for now, start from a clean slate. 2. Enter a text display at the beginning of the (only) procedure, make it infinitely long in duration and add keyboard response. 3. Enter one inline object after this text display. 4. Go to the user script (alt+5, user tab) and write the following: Dim cnvsmask as Canvas Dim cnvs as Canvas Sub buildMask (masksize as integer, nCircles as integer, circlesize as integer) dim functiondur as long functiondur = clock.read dim cCircle as integer cnvsmask.FillColor = CColor("black") dim onetothree as integer dim ppoint as point for cCircle = 1 to nCircles onetothree = random (1,3) 'Apologies to David for writing a really ugly if-statement! if onetothree = 1 then cnvsmask.FillColor = CColor("black") if onetothree = 2 then cnvsmask.FillColor = CColor("white") if onetothree = 3 then cnvsmask.FillColor = CColor("gray") cnvsmask.Circle random (display.xres / 2 - masksize / 2, display.xres / 2 + masksize / 2), random (display.yres / 2 - masksize / 2, display.yres / 2 + masksize / 2), circlesize / 2 next cCircle debug.print "Mask took " & (clock.read - functiondur) & " ms to build" End Sub Sub drawmask (masksize as integer) dim midrect as rect midRect.Left = display.xres / 2 - masksize/2 midRect.Right = display.xres / 2 + masksize/2 midRect.Top = display.yres / 2 - masksize/2 midRect.Bottom = display.yres / 2 + masksize /2 cnvs.copy cnvsmask, midrect, midrect End Sub 5. Go to the one inline you inserted after the textdisplay and write the following: Set cnvs = Display.Canvas 'sets canvas to active canvas (i.e. what you write to it will be shown on the screen) Set cnvsmask = Display.CreateCanvas() 'sets the canvas mask as a secondary canvas (i.e. what you write to it will only be shown to the screen after copying it to cnvs) buildMask 100, 50, 10 'builds a mask of size 100 with 50 circles of size 10. Try 1000 circles as well and see what it does to your timing! Display.waitforverticalblank 'to avoid syncing problems Drawmask 100 'draws the mask of size 100 sleep 1000 'keeps the mask 1000 ms on the screen 6. Also, read my comments above. I've just tested all this and works fine. ... finally, once you get all the above, getting the above to run within your programme will merely make your line: if c.getattrib("TargPos") = (i-1) then CueDisplay_SlideImage.Filename = "mask.bmp" into if c.getattrib("TargPos") = (i-1) then Display.waitforverticalblank drawmask 100 end if PROVIDED the mask is already built, of course. Cheers, Mich Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Tobias Sent: 17 June 2010 10:50 To: E-Prime Subject: Re: Draw bitmaps pixel by pixel Thanks a lot for your detailed help. I am wondering how to implement that code in my program. For now, I have a line calling for a certain mask (which is always the same): if c.getattrib("TargPos") = (i-1) then CueDisplay_SlideImage.Filename = "mask.bmp" So instead of this mask.bmp I would have need of the randomly generated bitmap. I am not quite sure how to implement your code at this place. Thanks a lot in advance, Tobias On Jun 16, 6:36 pm, Michiel Spape wrote: > Hi, > Drawing things pixel by pixel is quite easily implemented, given you know enough about programming (I seem to remember you do) - drawing bmp's pixel for pixel is more difficult, I expect (since A: you'd have to randomise pixels B: fill a file with it, then C: draw the file, whereas just doing the whole randomising in canvas saves step B and C). I think I even have something: > > Dim canvasmask as Mask > Dim cnvs as Canvas > > Sub buildMask (masksize as integer, nCircles as integer, circlesize as integer) >         dim functiondur as long >         functiondur = clock.read >         dim cCircle as integer >         dim onetothree as integer >         dim ppoint as point >         for cCircle = 1 to nCircles >                 onetothree = random (1,3) >                 if onetothree = 1 then cnvsmask.FillColor = CColor("black")   >                 if onetothree = 2 then cnvsmask.FillColor = CColor("white")   >                 if onetothree = 3 then cnvsmask.FillColor = CColor("gray")     >                 cnvsmask.Circle random (display.xres / 2 - masksize / 2, display.xres / 2 + masksize / 2), random (display.yres / 2 - masksize / 2, display.yres / 2 + masksize / 2), circlesize / 2 >         next cCircle >         debug.print "Mask took " & (clock.read - functiondur) & " ms to build" > End Sub > > Sub drawmask (masksize as integer) >         dim midrect as rect >         midRect.Left = display.xres / 2 - masksize/2 >         midRect.Right = display.xres / 2 + masksize/2 >         midRect.Top = display.yres / 2 - masksize/2 >         midRect.Bottom = display.yres / 2 + masksize /2 >         cnvs.copy cnvsmask, midrect, midrect > End Sub > > ... I think that should work. Anyway, dump the whole thing into your userscript, then use the following in an inline to A: build the mask (might take some time, hence the debugging script), B: show the mask (it's useful to do this separately for timing issues) > > 'probably do this at the beginning of the trial > buildMask 100, 50, 10 'draws 50 circles of size 10 in a mask of size 100 (all pixels) > > 'do this when you want to show stuff > Display.waitforverticalblank 'for sync issues, not sure about exact syntax. > Drawmask 100 > > ...of course, my code here was mainly written (and subsequently abolished) for shape-based (circle) masking. More effective code can be written if you just want to do pixel-by-pixel colouring. I imagine you get the picture. > > Cheers, > Mich > > Michiel Spapé > Research Fellow > Perception & Action group > University of Nottingham > School of Psychology > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Tobias > Sent: 16 June 2010 12:15 > To: E-Prime > Subject: Draw bitmaps pixel by pixel > > Hej together, > > I want to program a random mask for a visual attention experiment. The > idea is, that the mask should be randomly created each trial because > there are some hints that subjects "learn" to ignore a mask if it is > repeatedly used. So what I think of is a white noise or something. Is > there a way in E-Prime to create bitmaps pixel by pixel with an > inline? > > Cheers, > Tobias > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From giladsabo at gmail.com Thu Jun 17 10:55:25 2010 From: giladsabo at gmail.com (gilis) Date: Thu, 17 Jun 2010 03:55:25 -0700 Subject: Looming pictures In-Reply-To: Message-ID: Never tried to do something like this, but it seems that if the picture size is increasing or decreasing in constant rate for each pull, then you have to build set of stimuli with the different possible sizes (a lot of work, there is possibly much easier way if you have the time and knowledge to program it all into inline that change the size of given pictures in accordance with its present size and the direction in which the joystick was pulled) for each picture. Then, you name each stimulus x as x&"y", with y representing number in a given direction. Say that if subject pull the joystick six times in one direction then y=6 and the size of the stimulus is corresponding to that. Y=0 stand for the stimuli initial size and numbers preceded by "-", for instance, represent the number of pullings in the opposite dierction.Then, if the subject pulled the joystick in the positive numbers direction three times (y=3) and then in the following trial pulled it in the negative numbers direction you set the Y attrbiute to Y-1, or to Y+1 in the opposite case. You always have to update your programe after each trial what is the value of Y. You do that by setting an attribute called y (c.setattrib "Y", 0+z), with z dimmed as integer. You have to tell your computer that z=1 in case of pulling in one direction and -1 in the other direction. It's only on the surface of the things, and it may be that I'm over simplfying them, but I think this is a start. Rgds Gilis On Jun 15, 8:05 pm, Craig wrote: > Hello, >  I am trying to program a task in which there are looming pictures > that change depending on the person's response with the joystick.  I > am currently trying to program an experiment in which pictures are > presented on the screen, and participants are required to push or pull > a joystick and squeeze the trigger based on the color of the > background (e.g., a blue background means push the joystick away). > When the joystick is pushed, the image size needs to gradually > decrease (to strengthen the feeling that the picture is pushed > away). When the joystick is pulled, the image size should increase. > > I am using E-prime version 2.0. Professional.  I found a similar > question on the list, but I didn't see an answer. > > I was wondering whether: > 1) anyone has programmed a looming task where pictures get bigger or > smaller (I think I need to use the Object Slide, but I am not so sure > how to do it) > and > 2) whether anyone has programmed a task where pressing a joystick in a > particular direction and squeezing the trigger causes a picture to > change (i.e.,  how can I collect joystick-movement-data and how I can > subsequently use this information to present the next picture.). >   Thanks so much in advance. >  Craig -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Thu Jun 17 17:02:56 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Thu, 17 Jun 2010 18:02:56 +0100 Subject: Looming pictures In-Reply-To: <434bbc97-bce1-47f5-9e2d-7319c4e7328c@y11g2000yqm.googlegroups.com> Message-ID: Hiya all, Not sure whether this has been said already, but one of the questions was regarding polling the direction of joystick presses. I do know someone else asked this question not too long ago, and also went to e-prime support to ask this. The answer, apparently, was this: ------------- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Nick Sent: 04 February 2010 22:10 To: E-Prime Subject: Re: Joystick direction as response & RT Hi All, Below is the great solution I received from E-Prime support. Does exactly what I need it to, I hope it helps others as well. If you do not want subjects to press a button after moving the joystick to the desired position, you can simply access the cursor position directly instead of checking for a button press. This means that you should set the Duration of Stimulus to zero so that the script can be processed immediately; for an example of this method, please see SAMPLE:Process Responses Template. By constantly checking the Y position of the cursor, you can determine whether the subject has responded. Here is an example of the script to use: Dim nInitY As Integer Dim nCurrentY As Integer Dim nDiff As Integer nInitY = Joystick.CursorY Do nCurrentY = Joystick.CursorY nDiff = nInitY - nCurrentY Loop Until Abs(nDiff) > 50 Stimulus.RTTime = Clock.Read Stimulus.RT = Stimulus.RTTime - Stimulus.OnsetTime If nDiff > 0 Then Stimulus.RESP = "Up" Else Stimulus.RESP = "Down" End If ----------------------- Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of gilis Sent: 17 June 2010 11:55 To: E-Prime Subject: Re: Looming pictures Never tried to do something like this, but it seems that if the picture size is increasing or decreasing in constant rate for each pull, then you have to build set of stimuli with the different possible sizes (a lot of work, there is possibly much easier way if you have the time and knowledge to program it all into inline that change the size of given pictures in accordance with its present size and the direction in which the joystick was pulled) for each picture. Then, you name each stimulus x as x&"y", with y representing number in a given direction. Say that if subject pull the joystick six times in one direction then y=6 and the size of the stimulus is corresponding to that. Y=0 stand for the stimuli initial size and numbers preceded by "-", for instance, represent the number of pullings in the opposite dierction.Then, if the subject pulled the joystick in the positive numbers direction three times (y=3) and then in the following trial pulled it in the negative numbers direction you set the Y attrbiute to Y-1, or to Y+1 in the opposite case. You always have to update your programe after each trial what is the value of Y. You do that by setting an attribute called y (c.setattrib "Y", 0+z), with z dimmed as integer. You have to tell your computer that z=1 in case of pulling in one direction and -1 in the other direction. It's only on the surface of the things, and it may be that I'm over simplfying them, but I think this is a start. Rgds Gilis On Jun 15, 8:05 pm, Craig wrote: > Hello, >  I am trying to program a task in which there are looming pictures > that change depending on the person's response with the joystick.  I > am currently trying to program an experiment in which pictures are > presented on the screen, and participants are required to push or pull > a joystick and squeeze the trigger based on the color of the > background (e.g., a blue background means push the joystick away). > When the joystick is pushed, the image size needs to gradually > decrease (to strengthen the feeling that the picture is pushed > away). When the joystick is pulled, the image size should increase. > > I am using E-prime version 2.0. Professional.  I found a similar > question on the list, but I didn't see an answer. > > I was wondering whether: > 1) anyone has programmed a looming task where pictures get bigger or > smaller (I think I need to use the Object Slide, but I am not so sure > how to do it) > and > 2) whether anyone has programmed a task where pressing a joystick in a > particular direction and squeezing the trigger causes a picture to > change (i.e.,  how can I collect joystick-movement-data and how I can > subsequently use this information to present the next picture.). >   Thanks so much in advance. >  Craig -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 17 19:27:19 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 17 Jun 2010 15:27:19 -0400 Subject: Draw bitmaps pixel by pixel In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF03766C8A@VUIEXCHC.ad.notti ngham.ac.uk> Message-ID: Look at the Canvas.SaveImage and Canvas.LoadImage topics in the online E-Basic Help for information on how to save & reuse images drawn using Canvas methods. Of course, you would not have to use Canvas.LoadImage if you just loaded the stored .bmp file as a regular ImageDisplay or SlideImage object. Along those lines, for performance reasons, instead of generating your random bitmaps on-the-fly for each session, you might write one program (in E-Prime if you must, or pick a better system like MatLab) to generate your random bitmaps ahead of time, and then just call on them in E-Prime for your experiment. -- David McFarlane, Professional Faultfinder At 6/17/2010 06:35 AM Thursday, Michiel Spape wrote: >As said, I'm quite sure you might achieve writing a BMP file to >disk, of a random mask, within E-Prime, then later using that, but >I'm unsure of the specifics regarding BMPs. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 17 19:43:20 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 17 Jun 2010 15:43:20 -0400 Subject: Forcing a certain outcome In-Reply-To: <17b1357f-e141-4f2f-80ea-b3b8523ea8e0@u7g2000yqm.googlegrou ps.com> Message-ID: It seems to me that something is missing from your description. In particular, you define a function called "PointMod()", but I do not see where you use that function. Also, I do not see where you set FirstTrial to False after the first trial. Beyond that, PointMod() re-initializes the PRNG on each call (see the Randomize topic in the online E-Basic Help), this is poor programming form. This is all elementary computer programming stuff that would be covered in any intro class. So I wonder, what training do you have in computer programming? -- David McFarlane, Professional Faultfinder At 6/16/2010 01:15 PM Wednesday, you wrote: >I think I narrowed down the problem. > >I declared this in an initial InLine object (outside of the trial >loop): FirstTrial = true > >Then I negated that in an InLine object within the loop: FirstTrial = >false > >It seems that negating it within the loop lead the program to ignore >my If statement, but only for issuing the outcome of the trial. The >code: > >If FirstTrial Then >c.SetAttrib "ActorValue", "50/50" >c.SetAttrib "PartValue", "Bad" >took = true >End If > >always seemed to be read though (it does come before the FirstTrial = >false statement though). > >After reading this, does anyone have any idea what I'm talking about? >I think that my design may be too complicated to communicate on the >forum! > >On Jun 16, 10:37 am, John wrote: > > First, I apologize if I haven't given enough information to solve this > > problem. Please let me know if you need more information! > > > > I am trying to force an outcome in this game I've designed, but only > > for the very first trial. > > > > Basically I have the program randomly choose a number 0-99 and for > > that to decide the outcome, but for the first trial I want to make > > sure that the initial choice and then outcome is always the same. I > > have created some code that usually leads to the outcome I want, but > > 1/10 times it seems to not work. > > > > More specifically, sometimes both the "actor" and "participant" are > > gaining points, which I don't want. Instead, I want the "actor" to > > always gain points and the "participant" to always lose points, but > > just for the very first trial. After that, I want to use the code I've > > created to determine the subsequent decisions. > > > > My failed solution: instead of allowing the computer to randomly > > generate a number, I tried to force it to use 0, but only for the > > first trial. This doesn't seem to work in about 1/10 times for some > > reason. > > > > So in an initial InLine object I state: > > > > FirstTrial = true > > > > Then in the Procedure I have: > > > > If FirstTrial Then > > c.SetAttrib "ActorValue", "50/50" > > c.SetAttrib "PartValue", "Bad" > > took = true > > End If > > > > Then in the general User script I have: > > > > Dim FirstTrial as Boolean > > 'Calculates how much someone's points will change if they took > > Function PointMod(Value as String, FirstTrial as Boolean) as Integer > > Randomize > > Dim percent as Integer > > percent = Random(0, 99) > > If FirstTrial Then > > percent = 0 > > End If > > Select Case Value > > Case "Good" > > If percent < 85 Then > > pointMod = 10 > > Else > > pointMod = -10 > > End If > > Case "Bad" > > If percent < 85 Then > > pointMod = -10 > > Else > > pointMod = 10 > > End If > > Case "50/50" > > If percent < 50 Then > > pointMod = 10 > > Else > > pointMod = -10 > > End If > > End Select > > End Function -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From giladsabo at gmail.com Thu Jun 17 20:25:28 2010 From: giladsabo at gmail.com (gilis) Date: Thu, 17 Jun 2010 13:25:28 -0700 Subject: Problem with collecting voice response In-Reply-To: <5df3ccaa-1788-4961-9139-7b8ecbaf3fe7@w31g2000yqb.googlegroups.com> Message-ID: No answer? Anyone? On Jun 16, 6:44 pm, gilis wrote: > In my experiment prticipants have to respond to stimuli both with > mouse click and voice response, there is no importance to what come > first (mouse click or voice response) but the program excpecting two > responses (manual and vocal) in each trial. > > If on click the mouse more than once, then the program will collcet > only his or her first response and regardless if he/she continue > clicking the mouse, the next trial will start only after he/she will > also give vocal response. And vice versa, the same goes in case when > the vocal response came first. > > To make this, I wrote these three inlines: > > 'This inline is the first and main inline, it checks what was the > first response in the trial, collect it and then go to the device yet > not was used (i.e., mouse or SRB). > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = > CRteRunnableInputObject(Rte.GetObject("Stimuli")) > > 'If the assert below fires, then the object named in the line above > does not exist > Debug.Assert Not theResponseObject Is Nothing > >  Dim nIndex AS Integer > > For nIndex = 1 To theResponseObject.InputMasks.Responses.Count > > 'Access the response and check to see if it is a mouse response. > > Dim theSRBoxData As SRboxResponseData >   Set theSRBoxData = CSRBoxResponseData > (theResponseObject.InputMasks.Responses(1)) > > If Not theSRBoxData Is Nothing Then > > c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT > c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP > > Goto MouseLabel > End If > > 'Access the response and check to see if it is a mouse response. > Dim theMouseResponseData As MouseResponseData >   Set theMouseResponseData = > CMouseResponseData(theResponseObject.InputMasks.Responses(1)) > > If Not theMouseResponseData Is Nothing Then > >  c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT > c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP > > Goto SRBoxLabel > End If > NEXT nIndex > > 'These are the second and the third inlines: > > 'If in the first inline, the SRBox Data was not nothing then collect > the mouse response now: > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = > CRteRunnableInputObject(Rte.GetObject("MouseStimuli")) > > 'If the assert below fires, then the object named in the line above > does not exist > Debug.Assert Not theResponseObject Is Nothing > > Dim nIndex as Integer > > Dim theMouseResponseData As MouseResponseData > Set theMouseResponseData = > CMouseResponseData(theResponseObject.InputMasks.Responses(1)) > > If Not theMouseResponseData Is Nothing Then > > 'Log reaction time and response for each mouse click. > c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT > c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP > > End If > > 'The third inline do the same as the second inline, but for the SRBox: > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = > CRteRunnableInputObject(Rte.GetObject("SRBoxStimuli")) > > 'If the assert below fires, then the object named in the line above > does not exist > Debug.Assert Not theResponseObject Is Nothing > > Dim theSRBoxData As SRboxResponseData > Set theSRBoxData = > CSRBoxResponseData(theResponseObject.InputMasks.Responses(1)) > > If Not theSRBoxData Is Nothing Then > > c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT > c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP > > End if > > Now, in when I used keyboard input instead of SRB, it worked fine. But > now I get strange bug: Everything works well aside for trials where > the participant first respond vocally-in this case the  following > mouse click is considered as the first response and then the program > wait to another vocal response and the next trial start only after > it's given. I understand where the problem is, would appreciate your > help. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From grighi at gmail.com Thu Jun 17 21:45:39 2010 From: grighi at gmail.com (grighi) Date: Thu, 17 Jun 2010 14:45:39 -0700 Subject: faulty event duration In-Reply-To: <4c17cd4c.65bae70a.0c8c.646dSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Hi David unfortunately the PST staff is a bit too overwhelmed and i was hoping to figure out what may be happening more quickly. In answer to your question, the slide showing duration issues is the last one in a trial and is followed by a user operated break before the beginning of the next trial. The other thing that is very puzzling to me is that if i go and look in the gazedata file which writes out a line of data for each 17ms time point (we are using a 60Hz eyetracker) the program thinks that the duration os this slide is 5 seconds, when in fact we have timed it and it stays on the screen between 8 and 10 seconds. thanks again giulia On Jun 15, 2:58 pm, David McFarlane wrote: > Giulia, > > Stock reminder:  1) I do not work for PST.  2) PST's trained staff > takes any and all questions athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they > strive to respond to all requests in 24-48 hours (although current > estimates are more like 10 days) -- this is pretty much their > substitute for proper documentation, so make full use of it.  3) If > you do get an answer from PST Web Support, please extend the courtesy > of posting their reply back here for the sake of others. > > That said, here is my take... > > Hmm, that is a new one.  Are you sure that you do not have two of > those Slides in a row, or end the trial with that Slide and then > start the next Trial with the same Slide?  That's all I can come up > with based on the description. > > -- David McFarlane, Professional Faultfinder > > At 6/14/2010 05:03 PM Monday, you wrote: > > > > >i am sorry to bug you with what may be a trivial problem, but i am > >really not sure how to fix it. > > >I have an experiment programmed in Eprime and running concurrenlty > >with Tobii Studio, using the tobii studion extensions for Eprime. Note > >that this paradigm is meant to be used with infants > > >The paradigm is composed of two main parts. In the first part the > >subject is shown a series of short videos that serve the function of > >attention getters followed by a slide that contains two faces. Within > >that slide we have defined a gaze contingent zone, in order to have > >the infants look at the faces for 10 seconds. This first part all > >seems to run fine. > > >However some timing problems arise in the second part. In the second > >part the infant is exposed to 8 trials that have the following > >structure: a short video is presented to get their attention, followed > >by a face (a familiarization stimulus) that is set up to be gaze > >contingent so that all the infants will look at it for the same amount > >of time. The face is followed by another short video, which is > >followed by a test trial, which is a slide containing two faces side > >by side. This slide is up for 5 seconds, and is the followed by > >another short video. The problem arise on the final slide in each > >trials which follows this last video and contains two more faces. This > >slide is set up identically to the one occurring above. However, > >instead of remaining on the screen for only 5 seconds, which is the > >time indicated in the settings, it appears to remain on the screen for > >twice that amount. This appears to be true regardless of the provided > >durations, such that 2 seconds turn into 4 and so on. > > >Any suggestions on what may be happening? > > >thank you > > >giulia > > >Children's Hospital Boston > >Laboratories of Cognitive Neuroscience -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 17 19:15:44 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 17 Jun 2010 15:15:44 -0400 Subject: Looming pictures In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF03766E74@VUIEXCHC.ad.notti ngham.ac.uk> Message-ID: Craig, When I want to manipulate the size of images (either an ImageDisplay or a SlideImage on a Slide), I do the following: - Open the property pages for the image. On the General tab, set Stretch to Yes. On the Frame tab, enter attribute references for Width and Height (e.g., [StimWidth], [StimHeight]). - On the User tab of the Script window, add a global variable to hold the latest value of width & height (see Chapter 4 of the User Guide that came with E-Prime). E.g. (note that variables and attributes may use the same name with no conflict, as long as you can keep track of which is which), Dim StimHeight as Single, StimWidth as Single - In inline code before the image object, update the width & height as needed and use c.SetAttrib to set the attribute values for use. You may use units of either % or pixels, as you like. E.g., ' Magnify geometrically (i.e., constant factor)... Const ImageFactor as Single = 1.5 ' might instead make this global StimHeight = StimHeight * ImageFactor StimWidth = StimWidth * ImageFactor c.SetAttrib "StimHeight", StimHeight c.SetAttrib "StimWidth", StimWidth or ' Increment arithmetically... Const ImageIncrement as Integer = 50 ' might instead make this global StimHeight = StimHeight + ImageIncrement StimWidth = StimWidth + ImageIncrement c.SetAttrib "StimHeight", StimHeight c.SetAttrib "StimWidth", StimWidth You would still have to wrap these in the appropriate If...Then...Else clauses, etc. I think this makes the code more manageable, although there are probably methods with better performance if you don't mind more code. -- David McFarlane, Professional Faultfinder At 6/17/2010 01:02 PM Thursday, you wrote: >Hiya all, >Not sure whether this has been said already, but >one of the questions was regarding polling the >direction of joystick presses. I do know someone >else asked this question not too long ago, and >also went to e-prime support to ask this. The answer, apparently, was this: > >------------- >From: e-prime at googlegroups.com >[mailto:e-prime at googlegroups.com] On Behalf Of Nick >Sent: 04 February 2010 22:10 >To: E-Prime >Subject: Re: Joystick direction as response & RT > >Hi All, > >Below is the great solution I received from E-Prime support. Does >exactly what I need it to, I hope it helps others as well. > >If you do not want subjects to press a button after moving the >joystick to the desired position, you can simply access the cursor >position directly instead of checking for a button press. This means >that you should set the Duration of Stimulus to zero so that the >script can be processed immediately; for an example of this method, >please see SAMPLE:Process Responses Template. By constantly checking >the Y position of the cursor, you can determine whether the subject >has responded. Here is an example of the script to use: > >Dim nInitY As Integer >Dim nCurrentY As Integer >Dim nDiff As Integer > >nInitY = Joystick.CursorY > >Do > nCurrentY = Joystick.CursorY > nDiff = nInitY - nCurrentY > >Loop Until Abs(nDiff) > 50 > >Stimulus.RTTime = Clock.Read >Stimulus.RT = Stimulus.RTTime - Stimulus.OnsetTime > >If nDiff > 0 Then > Stimulus.RESP = "Up" >Else > Stimulus.RESP = "Down" >End If >----------------------- > > > >Michiel Spapé >Research Fellow >Perception & Action group >University of Nottingham >School of Psychology > > >-----Original Message----- >From: e-prime at googlegroups.com >[mailto:e-prime at googlegroups.com] On Behalf Of gilis >Sent: 17 June 2010 11:55 >To: E-Prime >Subject: Re: Looming pictures > >Never tried to do something like this, but it seems that if the >picture size is increasing or decreasing in constant rate for each >pull, then you have to build set of stimuli with the different >possible sizes (a lot of work, there is possibly much easier way if >you have the time and knowledge to program it all into inline that >change the size of given pictures in accordance with its present size >and the direction in which the joystick was pulled) for each picture. > >Then, you name each stimulus x as x&"y", with y representing number in >a given direction. Say that if subject pull the joystick six times in >one direction then y=6 and the size of the stimulus is corresponding >to that. Y=0 stand for the stimuli initial size and numbers preceded >by "-", for instance, represent the number of pullings in the opposite >dierction.Then, if the subject pulled the joystick in the positive >numbers direction three times (y=3) and then in the following trial >pulled it in the negative numbers direction you set the Y attrbiute to >Y-1, or to Y+1 in the opposite case. You always have to update your >programe after each trial what is the value of Y. > >You do that by setting an attribute called y (c.setattrib "Y", 0+z), >with z dimmed as integer. You have to tell your computer that z=1 in >case of pulling in one direction and -1 in the other direction. > >It's only on the surface of the things, and it may be that I'm over >simplfying them, but I think this is a start. > >Rgds >Gilis > >On Jun 15, 8:05 pm, Craig wrote: > > Hello, > > I am trying to program a task in which there are looming pictures > > that change depending on the person's response with the joystick. I > > am currently trying to program an experiment in which pictures are > > presented on the screen, and participants are required to push or pull > > a joystick and squeeze the trigger based on the color of the > > background (e.g., a blue background means push the joystick away). > > When the joystick is pushed, the image size needs to gradually > > decrease (to strengthen the feeling that the picture is pushed > > away). When the joystick is pulled, the image size should increase. > > > > I am using E-prime version 2.0. Professional. I found a similar > > question on the list, but I didn't see an answer. > > > > I was wondering whether: > > 1) anyone has programmed a looming task where pictures get bigger or > > smaller (I think I need to use the Object Slide, but I am not so sure > > how to do it) > > and > > 2) whether anyone has programmed a task where pressing a joystick in a > > particular direction and squeezing the trigger causes a picture to > > change (i.e., how can I collect joystick-movement-data and how I can > > subsequently use this information to present the next picture.). > > Thanks so much in advance. > > Craig -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Fri Jun 18 09:56:17 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Fri, 18 Jun 2010 10:56:17 +0100 Subject: Problem with collecting voice response In-Reply-To: Message-ID: Hi Gilis, The problem, I expect, is that you wrote quite a number of lines of code and I, for one, can't really bring up the time to go through them and sort out what seems to be the problem. Without looking at your code, however, I don't immediately see why so much of it is necessary however. Given that the voicekey, at least in my previous lab, was routed to E-Prime as a SRBox code of 5, and that the mouse-clicks are either one or two, it shouldn't be too hard to have the following: 1: FirstStimulus: both SRBOX and mouse are input devices, SRBox allowable 5, Mouse 1 or 2 2: inline code: If FirstStimulus.Resp = 5 then goto AfterVoice 3: VoiceStimulus with only SRBox as input device and JumpLabel: AfterMouse 4: label AfterVoice 5: MouseStimulus with only Mouse as input device 6: label AfterMouse Shouldn't that do the trick? I'm sorry about not taking the time to go through your code; it's just a bit too much. Try to start simple and see where exactly it is you go wrong. Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of gilis Sent: 17 June 2010 21:25 To: E-Prime Subject: Re: Problem with collecting voice response No answer? Anyone? On Jun 16, 6:44 pm, gilis wrote: > In my experiment prticipants have to respond to stimuli both with > mouse click and voice response, there is no importance to what come > first (mouse click or voice response) but the program excpecting two > responses (manual and vocal) in each trial. > > If on click the mouse more than once, then the program will collcet > only his or her first response and regardless if he/she continue > clicking the mouse, the next trial will start only after he/she will > also give vocal response. And vice versa, the same goes in case when > the vocal response came first. > > To make this, I wrote these three inlines: > > 'This inline is the first and main inline, it checks what was the > first response in the trial, collect it and then go to the device yet > not was used (i.e., mouse or SRB). > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = > CRteRunnableInputObject(Rte.GetObject("Stimuli")) > > 'If the assert below fires, then the object named in the line above > does not exist > Debug.Assert Not theResponseObject Is Nothing > >  Dim nIndex AS Integer > > For nIndex = 1 To theResponseObject.InputMasks.Responses.Count > > 'Access the response and check to see if it is a mouse response. > > Dim theSRBoxData As SRboxResponseData >   Set theSRBoxData = CSRBoxResponseData > (theResponseObject.InputMasks.Responses(1)) > > If Not theSRBoxData Is Nothing Then > > c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT > c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP > > Goto MouseLabel > End If > > 'Access the response and check to see if it is a mouse response. > Dim theMouseResponseData As MouseResponseData >   Set theMouseResponseData = > CMouseResponseData(theResponseObject.InputMasks.Responses(1)) > > If Not theMouseResponseData Is Nothing Then > >  c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT > c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP > > Goto SRBoxLabel > End If > NEXT nIndex > > 'These are the second and the third inlines: > > 'If in the first inline, the SRBox Data was not nothing then collect > the mouse response now: > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = > CRteRunnableInputObject(Rte.GetObject("MouseStimuli")) > > 'If the assert below fires, then the object named in the line above > does not exist > Debug.Assert Not theResponseObject Is Nothing > > Dim nIndex as Integer > > Dim theMouseResponseData As MouseResponseData > Set theMouseResponseData = > CMouseResponseData(theResponseObject.InputMasks.Responses(1)) > > If Not theMouseResponseData Is Nothing Then > > 'Log reaction time and response for each mouse click. > c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT > c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP > > End If > > 'The third inline do the same as the second inline, but for the SRBox: > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = > CRteRunnableInputObject(Rte.GetObject("SRBoxStimuli")) > > 'If the assert below fires, then the object named in the line above > does not exist > Debug.Assert Not theResponseObject Is Nothing > > Dim theSRBoxData As SRboxResponseData > Set theSRBoxData = > CSRBoxResponseData(theResponseObject.InputMasks.Responses(1)) > > If Not theSRBoxData Is Nothing Then > > c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT > c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP > > End if > > Now, in when I used keyboard input instead of SRB, it worked fine. But > now I get strange bug: Everything works well aside for trials where > the participant first respond vocally-in this case the  following > mouse click is considered as the first response and then the program > wait to another vocal response and the next trial start only after > it's given. I understand where the problem is, would appreciate your > help. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From melissa.dewolf at gmail.com Mon Jun 21 14:27:52 2010 From: melissa.dewolf at gmail.com (melissa) Date: Mon, 21 Jun 2010 07:27:52 -0700 Subject: implement change blindness flicker paradigm Message-ID: Hi, I am trying to implement the classic flicker paradigm for a change blindness study. I would like to oscillate between a picture and its mask for 40 seconds or until a participant hits a button. I think the best way to do this would be to use one slide object and oscillate between slide states (1 state for the picture, 1 state for the mask) in order to keep track of RT for the user response. Is this possible? Thank you, Melissa -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Jun 21 17:36:20 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 21 Jun 2010 13:36:20 -0400 Subject: implement change blindness flicker paradigm In-Reply-To: <0839e371-cb14-4228-a603-fbbcdb2f76a2@c33g2000yqm.googlegro ups.com> Message-ID: Melissa, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours (although current estimates are more like 10 days) -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... Yes, that is possible, to a point. However, if you use an input mask on the Slide and just rapidly re-run that Slide, you will have some trouble with RTs. That is because the input mask will not be armed in the short intervals between each running of the Slide object, and if a response comes in during those intervals then it will be missed. And the more rapidly you cycle through your Slide, the greater the effect. (I know, because I ran into this with an experiment a few years ago.) For something like this, better to use "extended response" (see Appendix C of the User's Guide that came with E-Prime). Implement your flicker loop however you like, and just before your flicker loop add a Wait object. Set its Duration to 0, give it an appropriate input mask, and set the Time Limit to (infinite), or a time limit that you choose. Set End Action to Terminate or (none), as seems appropriate. Now the input mask from the Wait object will run over all the iterations of your flicker loop and will catch a response at any time. If you want the flicker loop to then react to the response, use some inline code such as (assuming you name your Wait object RespWait) If Not(RespWait.InputMasks.IsPending()) Then ... If RespWait.RT <> 0 Then ... If RespWait.RTTime <> 0 Then ... If RespWait.RESP <> "" Then ... Finally, given that the Wait object takes care of getting the response, I would probably dispense with the two-state Slide (which requires even more inline code) and just use a pair of ordinary stimulus objects for the flicker loop. -- David McFarlane, Professional Faultfinder >I am trying to implement the classic flicker paradigm for a change >blindness study. I would like to oscillate between a picture and its >mask for 40 seconds or until a participant hits a button. I think the >best way to do this would be to use one slide object and oscillate >between slide states (1 state for the picture, 1 state for the mask) >in order to keep track of RT for the user response. Is this possible? > >Thank you, >Melissa -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From enfuego1578 at gmail.com Mon Jun 21 18:03:51 2010 From: enfuego1578 at gmail.com (Mike) Date: Mon, 21 Jun 2010 11:03:51 -0700 Subject: Sidman Avoidance Paradigm Message-ID: To any and all that may be able to help, I am attempting to program a Sidman Avoidance paradigm. The idea here is that a subject is learning 2 instrumental associations. In this task, they are told that they are being attacked by two vehicles, and only by pushing a button can they delay this attack. They do not know which of the buttons delays which of the two attacks - but they are told that they must figure both buttons out in order to advance to the next round. When they push a button, the attack is delayed by 5 seconds. If they do not, they are attacked every 2 seconds. This happens independently and simultaneously for each vehicle. Other facts about the task: - The subjects will be able to respond at any time. - They will respond during both attacks and fixation (ie, the break between attacks). - There is no maximum to the amount of responses they can give. - However, there IS a maximum delay period. That period is 5 seconds. So, the subject can push a button that delays a certain attack 50 times, and during the time that they are pressing that button, they will never see the attack that is pushed back by that specific button - but after the 50th response, that attack will appear 5 seconds later. So, the timing should actually be rather easy to program. The real challenge comes in displaying the two attacks that subjects are delaying. So, think about the situation I described above - where one type of vehicle (a tank, for example) is attacking the subject. They can delay this attack with the push of a button. Now add another vehicle (a plane, for example) that behaves in the same exact way. The only difference between these two vehicles is that they are delayed by two different buttons. So, even if the subject is pressing the button that delays the tank, they can still be attacked by the plane every 2 seconds, unless they push that button as well. So, I need to keep track of 2 keyboard responses, and two display screens - and the real kicker is that they should be able to be displayed simultaneously. The attack should begin with subjects being attacked simultaneously by these two vehicles, and they will know that the buttons at their disposal correspond to one of the vehicles. Again, their task is to figure out which of these buttons corresponds to each vehicle. I know that is a lot to process, but I really appreciate your help. Thank you, Mike -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From melissa.dewolf at gmail.com Mon Jun 21 19:11:56 2010 From: melissa.dewolf at gmail.com (melissa) Date: Mon, 21 Jun 2010 12:11:56 -0700 Subject: implement change blindness flicker paradigm In-Reply-To: <4c1fa316.dfc3e70a.5e46.ffffd5eaSMTPIN_ADDED@gmr-mx.google.com> Message-ID: David, Thank you. That solves the problem of getting the response time while the flickering is occurring. However, I am still having issues with how to create a loop that will loop the two stimulus objects back and forth for either 40 secs or until user input. First off, how would I implement this type of loop? With an inline object? Secondly, guess I could have the loop end when the wait object ends or unless there is user input? I am not quite sure how this would be done in Eprime. Thank you for the help! Melissa On Jun 21, 1:36 pm, David McFarlane wrote: > Melissa, > > Stock reminder:  1) I do not work for PST.  2) PST's trained staff > takes any and all questions athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they > strive to respond to all requests in 24-48 hours (although current > estimates are more like 10 days) -- this is pretty much their > substitute for proper documentation, so make full use of it.  3) If > you do get an answer from PST Web Support, please extend the courtesy > of posting their reply back here for the sake of others. > > That said, here is my take... > > Yes, that is possible, to a point.  However, if you use an input mask > on the Slide and just rapidly re-run that Slide, you will have some > trouble with RTs.  That is because the input mask will not be armed > in the short intervals between each running of the Slide object, and > if a response comes in during those intervals then it will be > missed.  And the more rapidly you cycle through your Slide, the > greater the effect.  (I know, because I ran into this with an > experiment a few years ago.) > > For something like this, better to use "extended response" (see > Appendix C of the User's Guide that came with E-Prime).  Implement > your flicker loop however you like, and just before your flicker loop > add a Wait object.  Set its Duration to 0, give it an appropriate > input mask, and set the Time Limit to (infinite), or a time limit > that you choose.  Set End Action to Terminate or (none), as seems > appropriate.  Now the input mask from the Wait object will run over > all the iterations of your flicker loop and will catch a response at > any time.  If you want the flicker loop to then react to the > response, use some inline code such as (assuming you name your Wait > object RespWait) > > If Not(RespWait.InputMasks.IsPending()) Then ... > If RespWait.RT <> 0 Then ... > If RespWait.RTTime <> 0 Then ... > If RespWait.RESP <> "" Then ... > > Finally, given that the Wait object takes care of getting the > response, I would probably dispense with the two-state Slide (which > requires even more inline code) and just use a pair of ordinary > stimulus objects for the flicker loop. > > -- David McFarlane, Professional Faultfinder > > > > >I am trying to implement the classic flicker paradigm for a change > >blindness study.  I would like to oscillate between a picture and its > >mask for 40 seconds or until a participant hits a button.  I think the > >best way to do this would be to use one slide object and oscillate > >between slide states (1 state for the picture, 1 state for the mask) > >in order to keep track of RT for the user response.  Is this possible? > > >Thank you, > >Melissa -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Jun 21 19:40:09 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 21 Jun 2010 15:40:09 -0400 Subject: implement change blindness flicker paradigm In-Reply-To: Message-ID: Melissa, Look at the InputMask.IsPending topic in the online E-Basic Help. See that the RespWait.InputMasks.IsPending() test will detect whether RespWait has timed out (e.g., set Time Limit to 40000) or has received a response, as I mentioned earlier. So you may use that in inline code to end your flicker loop. Many ways to implement this loop. E.g., put a label like FlickerLoopLabel in front of your flicker stimuli, and some inline right after the stimuli, such as If RespWait.InputMasks.IsPending() Then Goto FlickerLoopLabel Alternatively, use a List (e.g., FlickerList) to run your loop. Set the FlickerList to run for some long time, put your flicker stimuli into a List Procedure (e.g., FlickerProc), and in inline right after the stimuli do If Not(RespWait.InputMasks.IsPending()) Then FlickerList.Terminate More generally, first work through Chapter 4 of the User's Guide for some exercises on using inline code. And get familiar with the online E-Basic Help. -- David McFarlane, Professional Faultfinder >David, > >Thank you. That solves the problem of getting the response time while >the flickering is occurring. However, I am still having issues with >how to create a loop that will loop the two stimulus objects back and >forth for either 40 secs or until user input. First off, how would I >implement this type of loop? With an inline object? Secondly, guess >I could have the loop end when the wait object ends or unless there is >user input? I am not quite sure how this would be done in Eprime. > >Thank you for the help! >Melissa > >On Jun 21, 1:36 pm, David McFarlane wrote: > > Melissa, > > > > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > > takes any and all questions > athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they > > strive to respond to all requests in 24-48 hours (although current > > estimates are more like 10 days) -- this is pretty much their > > substitute for proper documentation, so make full use of it. 3) If > > you do get an answer from PST Web Support, please extend the courtesy > > of posting their reply back here for the sake of others. > > > > That said, here is my take... > > > > Yes, that is possible, to a point. However, if you use an input mask > > on the Slide and just rapidly re-run that Slide, you will have some > > trouble with RTs. That is because the input mask will not be armed > > in the short intervals between each running of the Slide object, and > > if a response comes in during those intervals then it will be > > missed. And the more rapidly you cycle through your Slide, the > > greater the effect. (I know, because I ran into this with an > > experiment a few years ago.) > > > > For something like this, better to use "extended response" (see > > Appendix C of the User's Guide that came with E-Prime). Implement > > your flicker loop however you like, and just before your flicker loop > > add a Wait object. Set its Duration to 0, give it an appropriate > > input mask, and set the Time Limit to (infinite), or a time limit > > that you choose. Set End Action to Terminate or (none), as seems > > appropriate. Now the input mask from the Wait object will run over > > all the iterations of your flicker loop and will catch a response at > > any time. If you want the flicker loop to then react to the > > response, use some inline code such as (assuming you name your Wait > > object RespWait) > > > > If Not(RespWait.InputMasks.IsPending()) Then ... > > If RespWait.RT <> 0 Then ... > > If RespWait.RTTime <> 0 Then ... > > If RespWait.RESP <> "" Then ... > > > > Finally, given that the Wait object takes care of getting the > > response, I would probably dispense with the two-state Slide (which > > requires even more inline code) and just use a pair of ordinary > > stimulus objects for the flicker loop. > > > > -- David McFarlane, Professional Faultfinder > > > > > > > > >I am trying to implement the classic flicker paradigm for a change > > >blindness study. I would like to oscillate between a picture and its > > >mask for 40 seconds or until a participant hits a button. I think the > > >best way to do this would be to use one slide object and oscillate > > >between slide states (1 state for the picture, 1 state for the mask) > > >in order to keep track of RT for the user response. Is this possible? > > > > >Thank you, > > >Melissa -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From beth_the_tree at hotmail.com Tue Jun 22 10:02:47 2010 From: beth_the_tree at hotmail.com (beththetree) Date: Tue, 22 Jun 2010 03:02:47 -0700 Subject: Visual/dot probe experiment Message-ID: Hi there, I'm reasonably new to E-Prime and have been tasked with setting up a visual probe/ dot-probe experiment from scratch and am getting nowhere fast with it. Does anyone know of anywhere that I can download samples/ versions of such an experiment to use as a reference or adapt? Thank you Bethrm -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From lordoftheshortpeople at hotmail.com Tue Jun 22 23:42:18 2010 From: lordoftheshortpeople at hotmail.com (Little Moo) Date: Tue, 22 Jun 2010 16:42:18 -0700 Subject: Trouble with randomisaton Message-ID: I'm hoping someone can help. Has anyone else had a problem with randomisation, or am I doing something wrong. In the final phase of an experiment, I have a list of 27 target images, and 3 lists of distractor images. The list is set as:- 27 Samples (1 cycle x 27 samples/cycle) 1 Cycle equals 27 samples Random Selection In a small, but significant, number of experimental runs, one level is omitted and one level is repeated e.g. red_squr_straight.jpg blck_tri_squig.jpg <------------First Show blue_tri_round.jpg blue_tri_straight.jpg red_circ_straight.jpg red_squr_squig.jpg blue_squr_squig.jpg red_tri_round.jpg blue_circ_squig.jpg blue_circ_straight.jpg blck_squr_round.jpg blue_tri_squig.jpg red_squr_squig.jpg blck_circ_round.jpg blck_tri_squig.jpg <------------Repeated blck_circ_straight.jpg blue_squr_straight.jpg red_tri_squig.jpg red_tri_straight.jpg red_squr_round.jpg blue_tri_squig.jpg blue_squr_round.jpg blck_tri_straight.jpg blue_circ_round.jpg blue_tri_straight.jpg blck_squr_straight.jpg red_tri_squig.jpg and in this case blck_circ_squig.jpg was omitted - that is for this case only, the level omitted/repeated is random. Has any else noticed this, or have I made a mistake with my selection criteria? Reset is set to All samples (27), and the list object does have 27 unique filenames. This is central to my experiment but nothing I have tried works. Laura -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From andrea-laura at gmx.ch Wed Jun 23 07:02:39 2010 From: andrea-laura at gmx.ch (miamalika) Date: Wed, 23 Jun 2010 00:02:39 -0700 Subject: Target ACC (DataAid) all displayed as 0=incorrect. why? Message-ID: Hello everybody I have a Problem with the TargetACC in DataAid. In my Experiment I have 384 trials, 2 answer buttons. I'm sure I programmed the CorrectAnswer correctly also I chose "Standard" Target Logging. Anybody knows why in the DataAid file the TargetACC is always 0? It's not possible that all answers are wrong since it's an easy experiment and I tested it myself. Thanks for advice!! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From giladsabo at gmail.com Wed Jun 23 09:21:32 2010 From: giladsabo at gmail.com (gilis) Date: Wed, 23 Jun 2010 02:21:32 -0700 Subject: Problem with collecting voice response In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF03766F81@VUIEXCHC.ad.nottingham.ac.uk> Message-ID: Thanks Michiel, That's make the trick, my programming as well, but in much complicated way...Had I notice before that I could register SRBox and mouse reponses as sign response it would save me a lot of time... Anyway, eventually it works in both ways, but I yet don't know what was the problem before... Regards and thanks for sharing your wisdom Gili On Jun 18, 12:56 pm, Michiel Spape wrote: > Hi Gilis, > The problem, I expect, is that you wrote quite a number of lines of code and I, for one, can't really bring up the time to go through them and sort out what seems to be the problem. Without looking at your code, however, I don't immediately see why so much of it is necessary however. Given that the voicekey, at least in my previous lab, was routed to E-Prime as a SRBox code of 5, and that the mouse-clicks are either one or two, it shouldn't be too hard to have the following: > 1: FirstStimulus: both SRBOX and mouse are input devices, SRBox allowable 5, Mouse 1 or 2 > 2: inline code: > If FirstStimulus.Resp = 5 then goto AfterVoice > 3: VoiceStimulus with only SRBox as input device and JumpLabel: AfterMouse > 4: label AfterVoice > 5: MouseStimulus with only Mouse as input device > 6: label AfterMouse > > Shouldn't that do the trick? I'm sorry about not taking the time to go through your code; it's just a bit too much. Try to start simple and see where exactly it is you go wrong. > > Michiel Spapé > Research Fellow > Perception & Action group > University of Nottingham > School of Psychology > > > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of gilis > Sent: 17 June 2010 21:25 > To: E-Prime > Subject: Re: Problem with collecting voice response > > No answer? Anyone? > > On Jun 16, 6:44 pm, gilis wrote: > > In my experiment prticipants have to respond to stimuli both with > > mouse click and voice response, there is no importance to what come > > first (mouse click or voice response) but the program excpecting two > > responses (manual and vocal) in each trial. > > > If on click the mouse more than once, then the program will collcet > > only his or her first response and regardless if he/she continue > > clicking the mouse, the next trial will start only after he/she will > > also give vocal response. And vice versa, the same goes in case when > > the vocal response came first. > > > To make this, I wrote these three inlines: > > > 'This inline is the first and main inline, it checks what was the > > first response in the trial, collect it and then go to the device yet > > not was used (i.e., mouse or SRB). > > > Dim theResponseObject As RteRunnableInputObject > > Set theResponseObject = > > CRteRunnableInputObject(Rte.GetObject("Stimuli")) > > > 'If the assert below fires, then the object named in the line above > > does not exist > > Debug.Assert Not theResponseObject Is Nothing > > >  Dim nIndex AS Integer > > > For nIndex = 1 To theResponseObject.InputMasks.Responses.Count > > > 'Access the response and check to see if it is a mouse response. > > > Dim theSRBoxData As SRboxResponseData > >   Set theSRBoxData = CSRBoxResponseData > > (theResponseObject.InputMasks.Responses(1)) > > > If Not theSRBoxData Is Nothing Then > > > c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT > > c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP > > > Goto MouseLabel > > End If > > > 'Access the response and check to see if it is a mouse response. > > Dim theMouseResponseData As MouseResponseData > >   Set theMouseResponseData = > > CMouseResponseData(theResponseObject.InputMasks.Responses(1)) > > > If Not theMouseResponseData Is Nothing Then > > >  c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT > > c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP > > > Goto SRBoxLabel > > End If > > NEXT nIndex > > > 'These are the second and the third inlines: > > > 'If in the first inline, the SRBox Data was not nothing then collect > > the mouse response now: > > > Dim theResponseObject As RteRunnableInputObject > > Set theResponseObject = > > CRteRunnableInputObject(Rte.GetObject("MouseStimuli")) > > > 'If the assert below fires, then the object named in the line above > > does not exist > > Debug.Assert Not theResponseObject Is Nothing > > > Dim nIndex as Integer > > > Dim theMouseResponseData As MouseResponseData > > Set theMouseResponseData = > > CMouseResponseData(theResponseObject.InputMasks.Responses(1)) > > > If Not theMouseResponseData Is Nothing Then > > > 'Log reaction time and response for each mouse click. > > c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT > > c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP > > > End If > > > 'The third inline do the same as the second inline, but for the SRBox: > > > Dim theResponseObject As RteRunnableInputObject > > Set theResponseObject = > > CRteRunnableInputObject(Rte.GetObject("SRBoxStimuli")) > > > 'If the assert below fires, then the object named in the line above > > does not exist > > Debug.Assert Not theResponseObject Is Nothing > > > Dim theSRBoxData As SRboxResponseData > > Set theSRBoxData = > > CSRBoxResponseData(theResponseObject.InputMasks.Responses(1)) > > > If Not theSRBoxData Is Nothing Then > > > c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT > > c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP > > > End if > > > Now, in when I used keyboard input instead of SRB, it worked fine. But > > now I get strange bug: Everything works well aside for trials where > > the participant first respond vocally-in this case the  following > > mouse click is considered as the first response and then the program > > wait to another vocal response and the next trial start only after > > it's given. I understand where the problem is, would appreciate your > > help. > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From eleaves at gmail.com Wed Jun 23 15:20:00 2010 From: eleaves at gmail.com (eleaves) Date: Wed, 23 Jun 2010 08:20:00 -0700 Subject: Contingent branching with slidestates Message-ID: Anyone ever do contingent branching using a Slide with different slide states... idea being that the active slide state is dependent on subject response. I also have a total of two possible slide state sub-objects for each of the two slide states... Anyone know how to incorporate this either via nesting or something else?? Thanks! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From neuropsych76 at gmail.com Thu Jun 24 15:20:49 2010 From: neuropsych76 at gmail.com (cogneuroisfun) Date: Thu, 24 Jun 2010 08:20:49 -0700 Subject: help a beginner :) Message-ID: I'm glad I found this group! I'm new to using e-prime but I know the some of basics. However, I'm getting an error message which doesn't make any sense to me. It says "The following runtime error occurred Unable to load image file Filename picture.bmp Current folder C: ect Open 1 Found 1 last error 0 return code Filename2 c:/ documents/ ect. picture.bmp Current folder C: ect Open 1 Found 1 last error 0 return code error number 11043" So what I don't get is why I'm having this problem. I have 100 pictures in the same folder as my program. The first 5 work but the rest do not even though they are all in the same folder and are spelled correctly when I entered them into my list! I have no idea why it can't find them. The filename1 is the actually file name but then the filename2 is where the file is? Could that be what its looking for? This is probably something silly but I don't know how to fix it! Please help, thank you :) -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From dpschpak at gmail.com Fri Jun 25 19:20:36 2010 From: dpschpak at gmail.com (dpschpak) Date: Fri, 25 Jun 2010 12:20:36 -0700 Subject: How to create a reusable template? Message-ID: I was wondering if there is a way I can create my own template to show up as an option in the dialog box when I start up E-Studio? The options would read for example: Blank Blank(Professional) Basic Basic(Professional) PersonalizedTemplate I am trying to avoid the potential for future RAs to accidentally Save over a template file that is just in a folder rather than Save As, and subsequently having their world collapse around them. Any help would be greatly appreciated! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From cblais at berkeley.edu Fri Jun 25 19:36:06 2010 From: cblais at berkeley.edu (Chris Blais) Date: Fri, 25 Jun 2010 12:36:06 -0700 Subject: How to create a reusable template? In-Reply-To: Message-ID: Perhaps more primitive, but when I want to do that, I just set the file to readonly at the OS level (i.e., right click, properties, readonly). If you try to save over it, it won't let you. On Jun 25, 2010, at 12:20 PM, dpschpak wrote: > I was wondering if there is a way I can create my own template to show > up as an option in the dialog box when I start up E-Studio? The > options would read for example: > > Blank Blank(Professional) Basic Basic(Professional) > PersonalizedTemplate > > I am trying to avoid the potential for future RAs to accidentally Save > over a template file that is just in a folder rather than Save As, and > subsequently having their world collapse around them. > Any help would be greatly appreciated! > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From rmutreja at gmail.com Fri Jun 25 20:38:52 2010 From: rmutreja at gmail.com (Rachna) Date: Fri, 25 Jun 2010 13:38:52 -0700 Subject: Mental Number Line Task Message-ID: Has anyone ever created a mental number line task in Eprime? Essentially the line will range from 0 to 1000 and the participant is given a number. They have to place a line/arrow on the line indicating where they think it belongs. I appreciate the help! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Sat Jun 26 00:01:40 2010 From: sombrenote at gmail.com (SombreNote) Date: Fri, 25 Jun 2010 17:01:40 -0700 Subject: Slide Advancement Contingent on Correct Answer Message-ID: I am using a PST's sample Mouse Click Response to make a mouse- clicking task. They will be clicking on a few boxes with answers. There might be one correct answer or many but I think I will be able to figure out how to make more then one correct answer from the material from this thread (multiple correct responses: http://support.pstnet.com/forum/Topic1072-5-1.aspx?Highlight=correct). What I cannot seem to get it to do is advance ONLY when the answer is correct. I tried modifying allowable responses but that seem to be only input types. The "Correct" box is only for specifying what is correct, and has not control over the advancement of the slide. I also looked in the advanced and tried to mess around with Termination Response, it seems to also be a specific key, and not a type of answer. Does anyone have any ideas? This seems like a really easy thing to do. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Sat Jun 26 00:09:52 2010 From: sombrenote at gmail.com (SombreNote) Date: Fri, 25 Jun 2010 17:09:52 -0700 Subject: Slide Advancement Contingent on Correct Answer In-Reply-To: <5ce35785-48bd-4376-9492-cefc061c9e7f@k39g2000yqb.googlegroups.com> Message-ID: Note: The only reason I really need this is because I want to make sure that people click only on the buttons; which is why I need multiple correct responses. Later in the experiment they will be selecting 1 of 6 buttons, and I do not want the screen to advance unless they select at least an answer, otherwise it would just go on with presumably a "No Response" -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Sat Jun 26 01:55:41 2010 From: sombrenote at gmail.com (SombreNote) Date: Fri, 25 Jun 2010 18:55:41 -0700 Subject: Slide Advancement Contingent on Correct Answer In-Reply-To: Message-ID: In the mouse tracking sample it checks to see if correct or not by; If strHit = c.GetAttrib("CorrectAnswer") Then PrTsSlides.ACC = 1 Else PrTsSlides.ACC = 0 End If This value is used when it tries to figure out feedback; it just checks the accuracy. I am thinking I could get it to check this in an inline code and redo the slide. Right now there is an example something like this in the userguide page 52 (feedback.ACCStats.Reset EndPrac.Run), but it makes it redo the total whole block. I just need it to keep backing up one I guess. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From eleaves at gmail.com Sat Jun 26 22:17:20 2010 From: eleaves at gmail.com (eleaves) Date: Sat, 26 Jun 2010 15:17:20 -0700 Subject: InLine not recognized_ Contingent Branching via Jump Object Message-ID: Hi, I need to make a program where the subject response determines the feedback (which is a picture (slide object)) that is presented. I want to do this with jump labels for each "correct" "incorrect" and "no response" conditions which would point to the appropriate slide object. That slide object would then jump again to the inter trial delay and then the whole sequence would repeat. My problem is that the program does not seem to read in my inline commands. My inline is: If StimObject.RESP = ("CorrectAnswer") Then Goto CorLabel Elseif StimObject.RESP = ("InCorrectAnswer") Then Goto InCorLabel Else Goto NoRespLabel End If Do I have to 'Dim" something first? Also, there if I do not comment the Else statement, the program gets stuck on that NoResp screen... But it's like eprime doesn't even take into account the other if then statements... Any ideas??? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From candy.patterson at hotmail.co.uk Mon Jun 28 11:56:13 2010 From: candy.patterson at hotmail.co.uk (Candy Patterson) Date: Mon, 28 Jun 2010 04:56:13 -0700 Subject: help a beginner :) In-Reply-To: <123b50c6-83db-4dc2-855d-7f5f246555e9@w31g2000yqb.googlegroups.com> Message-ID: I'm also a new user so not sure if this answer is correct but hopefully will make some sense: My understanding is all the images need to be in the same folder as the E-Prime script and cannot be in any sub-folders. For the Object display in a trial (filename1) you just need to list the file name as found in the folder (e.g. object1.bmp) and therefore there is no need to have a second attribute with the file path (filename2). Also, need to ensure in the 'Procedure' line-up that the attribute [filename1] is associated to an "ImageDisplay". The ImageDisplay should display the words: Your image '[filename1]' will appear here. Hope this helps Candy -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From candy.patterson at hotmail.co.uk Mon Jun 28 12:15:19 2010 From: candy.patterson at hotmail.co.uk (Candy Patterson) Date: Mon, 28 Jun 2010 05:15:19 -0700 Subject: Interfacing E-Prime v.1 with EyeLink SR1000 Message-ID: I have an E-Prime script (several in fact) for an experiment that I have been running successfully and now wish to collect eye movement pattern data for these studies using an EyeLink SR1000 eye tracker. However, despite the EyeLink saying it supports E-Prime I cannot find an example script that successfully interfaces the two and my attempt keeps coming back with the same error. All examples seem to begin with the command 'Sub' which is what is coming back as the error as an unrecognised command. Not sure if the rest of the script works as this is the first command that is given both in the SR manual and other websites. Does anyone know whether it is possible to use E-Prime on an EyeLink and more importantly has anyone been able to successfully run a study using the two? I have a pile of experiments waiting to gain eye data that I would like to keep as E-Prime scripts. Using version 1 as the EyeLink host computer is not networked so unable to install version 2. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From candy.patterson at hotmail.co.uk Mon Jun 28 12:24:32 2010 From: candy.patterson at hotmail.co.uk (Candy Patterson) Date: Mon, 28 Jun 2010 05:24:32 -0700 Subject: Target ACC (DataAid) all displayed as 0=incorrect. why? In-Reply-To: Message-ID: Best to check first what your response keys are: under 'Properties' for the 'ImageDisplay' that the response is made in do to the 'Duration/Input' tab and check that in the following boxes you have the correct information: - DEVICES - keyboard, mouse, etc. whichever applies to your response method - ALLOWABLE - the buttons that the Ss respond with that are outlined in your 'CorrectAnswer' attribute, e.g. dk - CORRECT - [CorrectAnswer] or what you have named this attribute as This should hopefully then give a 1 for correct answers and 0 for incorrect. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From d.vinson at ucl.ac.uk Mon Jun 28 15:09:50 2010 From: d.vinson at ucl.ac.uk (David Vinson) Date: Mon, 28 Jun 2010 16:09:50 +0100 Subject: E-Prime: sampling half of the items in a list, then coming back for the rest later (+nesting) Message-ID: Dear List, I am running into a brick wall in E-Prime design/setup and I suspect I am missing something obvious. My experiment has two blocks: one block uses words of type A, and one block uses words of type B. Both blocks also include words of type C, sampled from a list twice as large as A or B. To complicate matters (of course), all words are paired with pictures within a block, three repetitions of each word with one (and only one) picture of type P, one of type Q and one of type R. My current experimental design has two levels of nested lists for a given block. For block type A, the relevant parts of the List look something like this: Top level List for block 1: Weight Nested 24 WordListA 24 WordListC WordListA Weight Nested String 1 PictureP foo 1 PictureQ foo 1 PictureR foo 1 PictureP bar 1 PictureQ bar 1 PictureR bar etc Word lists B and C are also structured in the same manner, thus specifying that each word will appear with one example of PictureP, one example of pictureQ, and one example of pictureR in the course of the experiment (we don't care which pictures within a group). All lists are sampled randomly without replacement, and each word occurs three times in the course of the experiment. Our problem is related to trying to balance degree of word repetition within a block. With the above setup, block 1 will include exactly 3 occurrences of each word of type A, paired with a picture of the desired type (that is, WordListA will be completely exhausted). However, the same block will include variable numbers of occurrences of word type C since only half this list is being sampled. We wish instead to include only half the words of type C in a given block, thus fully exhausting the word-picturetype combinations before moving to the second block. That is, subdividing list C into two equally sized sublists, with different items assigned randomly per subject. So, does anyone have suggestions of how we might do this? I know one way - create a mess of separate .es files, one for each subject, randomly generating C-sub-1 and C-sub-2 for each. But I would really like to do this within a single .es file if (reasonably) possible. Any suggestions would be very welcome indeed. Thanks! david -- David Vinson, Ph.D. Senior Postdoctoral Researcher Cognitive, Perceptual and Brain Sciences Research Department University College London 26 Bedford Way, London WC1H 0AP Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sravaniv at gmail.com Mon Jun 28 18:15:48 2010 From: sravaniv at gmail.com (Sravani Vinapamula) Date: Mon, 28 Jun 2010 14:15:48 -0400 Subject: Pausing with a procedure in E-prime Message-ID: Hi, I am running an experiment with kids and I need to pause it as needed. The problem is I would like to run a proc (with moviedisplay and some other code in it) during the GetUserBreakState. How do I do this? I think it needs an input to get out of the pause, but I think since the proc cannot have an input it is giving an error. Any help is appreciated. Thank you Sravani -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michiel.Spape at nottingham.ac.uk Tue Jun 29 10:28:46 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 29 Jun 2010 11:28:46 +0100 Subject: help a beginner :) In-Reply-To: <03ba11da-29a2-400a-b551-7b41a82830d4@u26g2000yqu.googlegroups.com> Message-ID: Hi Candy & OP, This is not exactly the case; files should be accessible anywhere on the system, the only problem is that it is A) difficult to move experiments around like that (since the structure on the other computer would need to be exactly the same) and B) for some people difficult in terms of syntax. The second one seems to be the problem here, with several basic things going wrong: - Windows tends to use back-slash syntax for files that are on the current PC i.e. C:\windows\system32, rather than c:/windows/system32. - \ is also an escape character and writing addresses very often goes wrong because of it. In inline, for example, you'd have to use c:\\windows\\system32 to produce c:\windows\system32 ... Because of all this often goes wrong, it's usually better to do it like Candy suggested: just dump everything in the same folder as the experiment and never mind about writing down paths. The only good reason for doing it otherwise is that one might want to have some organisation: sad faces 1-100 go in folder 'sad', happy faces 1-100 go in folder happy. Have these folders, then, as subfolders of the place where your experiment is located and use relative paths: sad\\face1.bmp, happy\\face8.bmp. This is also convenient if you then have two attributes, say: TypeOfFace and FaceNumber, because then you can just assign the current face as CurrentFace.filename = c.GetAttrib("TypeOfFace") & "\\" & c.GetAttrib("FaceNumber") Or something like that. Best, Mich Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Candy Patterson Sent: 28 June 2010 12:56 To: E-Prime Subject: Re: help a beginner :) I'm also a new user so not sure if this answer is correct but hopefully will make some sense: My understanding is all the images need to be in the same folder as the E-Prime script and cannot be in any sub-folders. For the Object display in a trial (filename1) you just need to list the file name as found in the folder (e.g. object1.bmp) and therefore there is no need to have a second attribute with the file path (filename2). Also, need to ensure in the 'Procedure' line-up that the attribute [filename1] is associated to an "ImageDisplay". The ImageDisplay should display the words: Your image '[filename1]' will appear here. Hope this helps Candy -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Tue Jun 29 10:38:21 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 29 Jun 2010 11:38:21 +0100 Subject: Interfacing E-Prime v.1 with EyeLink SR1000 In-Reply-To: <5fcf4294-7ef0-4b59-a318-7e94ccb05b55@b35g2000yqi.googlegroups.com> Message-ID: Hi, Please name the exact error (copy paste it from your debug output). Despite me guessing here, I think it's pretty likely that your error is caused by an unfinished line of code, for example: If [condition] then Statement End If Or Sub [myGreatFunction] End Etc. The problem is not that E-Prime doesn't do 'Sub' - it means subroutine (or, procedure, if you like). Two possibilities as to what happened here: - they've made bad examples. Always first try if you get their examples to work, only THEN see if you can implement them in your own code. How else can you know if your EyeLink works? - your implementation is invalid; somewhere, an if statement is unfinished (it happens quite a lot with my own code as well), or, worse, ended twice (leading the other end to be the end of all code) or ended when it wasn't necessary, as in: If [condition] then [Statement] End if ... The above is what my students do a lot, and, to be frank, it's very understandable and I don't see what visual basic's preoccupation with new lines is. However, if you write the whole bit in one line, this, to basic means, it is also ended in one go. Pretty frustrating if you're used to C or other programming languages. I don't know EyeLink, only Tobii, but I assume that if they say their software is e-prime compatible (do they have eye-prime add-ons?), I assume it is... Best, Michiel Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Candy Patterson Sent: 28 June 2010 13:15 To: E-Prime Subject: Interfacing E-Prime v.1 with EyeLink SR1000 I have an E-Prime script (several in fact) for an experiment that I have been running successfully and now wish to collect eye movement pattern data for these studies using an EyeLink SR1000 eye tracker. However, despite the EyeLink saying it supports E-Prime I cannot find an example script that successfully interfaces the two and my attempt keeps coming back with the same error. All examples seem to begin with the command 'Sub' which is what is coming back as the error as an unrecognised command. Not sure if the rest of the script works as this is the first command that is given both in the SR manual and other websites. Does anyone know whether it is possible to use E-Prime on an EyeLink and more importantly has anyone been able to successfully run a study using the two? I have a pile of experiments waiting to gain eye data that I would like to keep as E-Prime scripts. Using version 1 as the EyeLink host computer is not networked so unable to install version 2. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From dwivedilab at gmail.com Tue Jun 29 14:00:02 2010 From: dwivedilab at gmail.com (Dwivedi Lab) Date: Tue, 29 Jun 2010 07:00:02 -0700 Subject: Residual Reading Time for Self-Paced Reading Experiments Message-ID: We are doing a series of self-paced reading experiments and need to calculate the residual reading times for each individual participant then combine all the participant data into one group file for analysis. So far we've been importing the data into excel and manipulating it there in order to get residual reading time values. We have created a series of excel files to streamline this process, however these files are prone to error and end up taking more time to fix than they actually save. Is there a way to calculate residual reading time data from within E-Prime? Or is there a faster, fool- proof way to calculate residual reading time in general? Any help is appreciated! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Tue Jun 29 14:22:47 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 29 Jun 2010 15:22:47 +0100 Subject: InLine not recognized_ Contingent Branching via Jump Object In-Reply-To: Message-ID: Hi, It seems you've missed something - If StimObject.Resp = ("CorrectAnswer") means the RESP is checked against each letter in CorrectAnswer: C O R R E ... etc. I assume you mean: If Stimobject.RESP = C.GetAttrib("CorrectAnswer") instead? Furthermore, make your sequence first simple, then figure out what goes wrong: If StimObject.RESP = "" then goto NoRespLabel Else If StimObject.RESP = C.GetAttrib("CorrectAnswer") then goto CorLabel else goto IncorLabel end if end if ... also, it makes sense to first check whether someone actually gave an answer, THEN wonder whether the answer is wrong or right. Best, Michiel Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of eleaves Sent: 26 June 2010 23:17 To: E-Prime Subject: InLine not recognized_ Contingent Branching via Jump Object Hi, I need to make a program where the subject response determines the feedback (which is a picture (slide object)) that is presented. I want to do this with jump labels for each "correct" "incorrect" and "no response" conditions which would point to the appropriate slide object. That slide object would then jump again to the inter trial delay and then the whole sequence would repeat. My problem is that the program does not seem to read in my inline commands. My inline is: If StimObject.RESP = ("CorrectAnswer") Then Goto CorLabel Elseif StimObject.RESP = ("InCorrectAnswer") Then Goto InCorLabel Else Goto NoRespLabel End If Do I have to 'Dim" something first? Also, there if I do not comment the Else statement, the program gets stuck on that NoResp screen... But it's like eprime doesn't even take into account the other if then statements... Any ideas??? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Tue Jun 29 14:24:50 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 29 Jun 2010 15:24:50 +0100 Subject: Residual Reading Time for Self-Paced Reading Experiments In-Reply-To: <6a803433-99cb-462c-b6aa-a3ec9f92a54e@x21g2000yqa.googlegroups.com> Message-ID: Perhaps you can start by saying what residual reading times are? Sorry, I'm more used to cognitive fields than psycholinguistics (I assume residual reading, as a concept, is commonly known there?) Best, Mich Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Dwivedi Lab Sent: 29 June 2010 15:00 To: E-Prime Subject: Residual Reading Time for Self-Paced Reading Experiments We are doing a series of self-paced reading experiments and need to calculate the residual reading times for each individual participant then combine all the participant data into one group file for analysis. So far we've been importing the data into excel and manipulating it there in order to get residual reading time values. We have created a series of excel files to streamline this process, however these files are prone to error and end up taking more time to fix than they actually save. Is there a way to calculate residual reading time data from within E-Prime? Or is there a faster, fool- proof way to calculate residual reading time in general? Any help is appreciated! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From dwivedilab at gmail.com Tue Jun 29 15:00:11 2010 From: dwivedilab at gmail.com (Dwivedi Lab) Date: Tue, 29 Jun 2010 08:00:11 -0700 Subject: Residual Reading Time for Self-Paced Reading Experiments In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF038290B9@VUIEXCHC.ad.nottingham.ac.uk> Message-ID: Residual reading time (RRT) is a way to correct for sentence length, word length, and individual differences between participants' reading speeds. For example, a sentence with five words is read faster than one with 10; a sentence with 10 long words is read faster than one with 10 short words; etc. Since we're using a self-paced design, naturally some people will read and progress through the sentences faster than others. By calculating RRT, we can eliminate this bias. First thing we do is plot all of the raw reading times against the number of characters per word for each participant and create a line of best fit. This line represents the average speed that that particular person reads depending on the number of characters (ie word length). The general trend is that as the number of characters increase, so does reading time. We do this for every participant, resulting in average reading times that are specific to every participant. Using the formula of the line of best fit, we can determine the average reading time for words that have 2 characters, 3 characters, 14 characters, etc. From there we compare the actual raw reading time to the average value. The amount by which the raw value deviates from our calculated value (ie the line) is known as the residual reading time. These values appear as plus or minus values (+/-). This way, two participants may read the same word at completely different speeds, but now we compare that value to their own reading pace in order to determine whether they're taking longer to read that word or not instead of comparing it to a group average which is less accurate. Our method for calculating RRT was adopted from the following article, explained in the appendix: “Semantic Influences on Parsing: Use of Thematic Role Information in Syntactic Ambiguity Resolution” Trueswell and Tanenhaus, 1994 Hopefully this makes sense On Jun 29, 10:24 am, Michiel Spape wrote: > Perhaps you can start by saying what residual reading times are? > Sorry, I'm more used to cognitive fields than psycholinguistics (I assume residual reading, as a concept, is commonly known there?) > Best, > Mich > > Michiel Spapé > Research Fellow > Perception & Action group > University of Nottingham > School of Psychology > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Dwivedi Lab > Sent: 29 June 2010 15:00 > To: E-Prime > Subject: Residual Reading Time for Self-Paced Reading Experiments > > We are doing a series of self-paced reading experiments and need to > calculate the residual reading times for each individual participant > then combine all the participant data into one group file for > analysis. So far we've been importing the data into excel and > manipulating it there in order to get residual reading time values. We > have created a series of excel files to streamline this process, > however these files are prone to error and end up taking more time to > fix than they actually save. Is there a way to calculate residual > reading time data from within E-Prime? Or is there a faster, fool- > proof way to calculate residual reading time in general? > > Any help is appreciated! > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From cm396j at nih.gov Tue Jun 29 22:09:46 2010 From: cm396j at nih.gov (Carol) Date: Tue, 29 Jun 2010 15:09:46 -0700 Subject: use mouse as response device for visual analog scales Message-ID: I don't know much about writing programs and have run into a big snag. I have an eprime file written to use a joystick type device and I want to revise the program to use a mouse instead. Something like, hold the left mouse button down to scroll across a line (visual analog scale) and the right mouse button to select the desired spot along the line. Here are the two scripts, not sure if both need to be revised.... I would be forever grateful if someone can help me with this. 1st script: ZeroWheel Pos = 400 PrevPos = -1 MaxPos = 400 MinPos = -400 'Draw main bar cnvs.PenWidth = 1 cnvs.PenColor = CColor("blue") cnvs.FillColor = CColor("blue") cnvs.Rectangle 110, 350, 804, 40 'Draw box around the bar that they have to move out of cnvs.PenWidth = 5 cnvs.PenColor = CColor("black") cnvs.line 503, 330, 503, 409 cnvs.line 504, 330, 520, 330 cnvs.line 521, 330, 521, 409 cnvs.line 504, 410, 520, 410 moved = FALSE 'get the scale from the list xscale = c.getattrib("scale") xdivisor = c.getattrib("divisor") 'start the timer starttime = Clock.Read 2nd script: Dim x as long Dim b as long Dim err1 as integer 'Get New pos err1 = ReadWheel(x,b,FALSE) if (err1 = -1) then Debug.Print "Died with err1 = -1" Questions.terminate End if x = Cint(x/xdivisor) * xscale if (x < MinPos) then MinPos = x MaxPos = MinPos + 800 Pos = 800 elseif (x > MaxPos) then MaxPos = x MinPos = MaxPos - 800 Pos = 0 else Pos = MaxPos - x End if if (Pos <> PrevPos) Then cnvs.PenWidth = 1 'is this the first move? if so erase the box if (Not moved) AND Pos <> 400 then moved = TRUE cnvs.PenColor = CColor("white") cnvs.FillColor = CColor("white") cnvs.rectangle 500, 327, 28, 23 cnvs.rectangle 500, 390, 28, 23 cnvs.PenColor = CColor("blue") cnvs.FillColor = CColor("blue") cnvs.rectangle 500, 350, 28, 40 end if 'Erase old tab cnvs.PenColor = CColor("blue") cnvs.FillColor = CColor("blue") cnvs.Rectangle 110+PrevPos, 350, 5, 40 cnvs.PenColor = CColor("white") cnvs.FillColor = CColor("white") cnvs.Rectangle 110+PrevPos, 340, 5, 10 cnvs.Rectangle 110+PrevPos, 390, 5, 10 'Draw New Tab cnvs.PenColor = CColor("black") cnvs.FillColor = CColor("black") cnvs.Rectangle 110+Pos, 340, 5, 60 PrevPos = Pos End if 'timed out with no button press if ((b = 0) AND (Clock.Read - starttime) > CLng(c.getattrib("duration"))) then c.setattrib "wheelpos", -1*pos c.setattrib "responsetime", starttime-Clock.Read goto timeout End if 'no button press, so end if (b = 0) then goto loopstart End if 'pushed button, but no move (bastard) if (b <> 0) AND NOT moved then goto loopstart End if 'pushed a button, so we are done c.setattrib "wheelpos", pos c.setattrib "responsetime", Clock.Read - starttime -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Wed Jun 30 10:50:02 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Wed, 30 Jun 2010 11:50:02 +0100 Subject: Residual Reading Time for Self-Paced Reading Experiments In-Reply-To: Message-ID: Hi, I see, it sounds quite useful! Anyway, so what you need is A) reading times for various words; I don't know how you obtain these exactly, but I guess from E-Prime, before the rest of the experiment starts or something B) average reading times for each word-length ... such that you can calculate by means of simple linear regression the 'line', and therefore, later on, the residual. What exactly is the problem? You just make something like an array (or a dozen of variables: sum2, sum3.. sum14) where you keep the sum of each reading time for each wordlength, then after all reading times are known, you divide them by the amount of reading times encountered, and then you calculate a linear regression. It's a bit of work, I grant you that, and if you're not brilliant with statistics, you will have to look up how these work exactly (I think there are decent articles with examples on Wikipedia), but I think you're right in saying that it makes sense to do this within E-Prime rather than afterwards. How far do you get, though, and where do you get stuck? Best, Michiel Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Dwivedi Lab Sent: 29 June 2010 16:00 To: E-Prime Subject: Re: Residual Reading Time for Self-Paced Reading Experiments Residual reading time (RRT) is a way to correct for sentence length, word length, and individual differences between participants' reading speeds. For example, a sentence with five words is read faster than one with 10; a sentence with 10 long words is read faster than one with 10 short words; etc. Since we're using a self-paced design, naturally some people will read and progress through the sentences faster than others. By calculating RRT, we can eliminate this bias. First thing we do is plot all of the raw reading times against the number of characters per word for each participant and create a line of best fit. This line represents the average speed that that particular person reads depending on the number of characters (ie word length). The general trend is that as the number of characters increase, so does reading time. We do this for every participant, resulting in average reading times that are specific to every participant. Using the formula of the line of best fit, we can determine the average reading time for words that have 2 characters, 3 characters, 14 characters, etc. From there we compare the actual raw reading time to the average value. The amount by which the raw value deviates from our calculated value (ie the line) is known as the residual reading time. These values appear as plus or minus values (+/-). This way, two participants may read the same word at completely different speeds, but now we compare that value to their own reading pace in order to determine whether they're taking longer to read that word or not instead of comparing it to a group average which is less accurate. Our method for calculating RRT was adopted from the following article, explained in the appendix: "Semantic Influences on Parsing: Use of Thematic Role Information in Syntactic Ambiguity Resolution" Trueswell and Tanenhaus, 1994 Hopefully this makes sense On Jun 29, 10:24 am, Michiel Spape wrote: > Perhaps you can start by saying what residual reading times are? > Sorry, I'm more used to cognitive fields than psycholinguistics (I assume residual reading, as a concept, is commonly known there?) > Best, > Mich > > Michiel Spapé > Research Fellow > Perception & Action group > University of Nottingham > School of Psychology > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Dwivedi Lab > Sent: 29 June 2010 15:00 > To: E-Prime > Subject: Residual Reading Time for Self-Paced Reading Experiments > > We are doing a series of self-paced reading experiments and need to > calculate the residual reading times for each individual participant > then combine all the participant data into one group file for > analysis. So far we've been importing the data into excel and > manipulating it there in order to get residual reading time values. We > have created a series of excel files to streamline this process, > however these files are prone to error and end up taking more time to > fix than they actually save. Is there a way to calculate residual > reading time data from within E-Prime? Or is there a faster, fool- > proof way to calculate residual reading time in general? > > Any help is appreciated! > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From jjt379 at googlemail.com Wed Jun 30 12:10:25 2010 From: jjt379 at googlemail.com (Jakke Tamminen) Date: Wed, 30 Jun 2010 05:10:25 -0700 Subject: Pseudorandom selection from a nested list Message-ID: Hi, I have an experiment where I present two stimuli on the screen: a target and a distractor. On each trial, I want to be able to pseudorandomly select the distractor from a nested list. This nested list however includes the target (it includes all stimuli in the experiment). I want to tell E-prime to randomly pick an item from the nested list but it must NOT be the target in the current trial. Any ideas on how to do this? Thanks, Jakke -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Wed Jun 30 17:03:21 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Wed, 30 Jun 2010 18:03:21 +0100 Subject: Visual/dot probe experiment In-Reply-To: <403f9f94-d3b1-43a7-8e0d-4da99568bc5d@g19g2000yqc.googlegroups.com> Message-ID: Hi, If you look in the archives, you find quite a number of people (posted 24/05/2010, and 07/05/2009, for example) who also did dot-probe tasks in e-prime. I assume they succeeded by now, so you might contact them? Off topically: By the way, it would be brilliant if we could update experiments here, but I think at the moment, one has to be moderator in order to do this. This is really a shame as it stops this group from reaching its full potential as a board of discussion and international collaboration in psychology and associated sciences. Best, Michiel Michiel Spapé Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of beththetree Sent: 22 June 2010 11:03 To: E-Prime Subject: Visual/dot probe experiment Hi there, I'm reasonably new to E-Prime and have been tasked with setting up a visual probe/ dot-probe experiment from scratch and am getting nowhere fast with it. Does anyone know of anywhere that I can download samples/ versions of such an experiment to use as a reference or adapt? Thank you Bethrm -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From neuropsych76 at gmail.com Wed Jun 30 18:33:43 2010 From: neuropsych76 at gmail.com (cogneuroisfun) Date: Wed, 30 Jun 2010 11:33:43 -0700 Subject: help a beginner :) In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF03828F50@VUIEXCHC.ad.nottingham.ac.uk> Message-ID: Thank you both very much for the help! It was actually I couldn't use 20 Bit bitmap files in my version of E- Prime. I had to change them all to 256 color!! It took me a long time to figure that out lol Thanks anyway :) On Jun 29, 6:28 am, Michiel Spape wrote: > Hi Candy & OP, > This is not exactly the case; files should be accessible anywhere on the system, the only problem is that it is A) difficult to move experiments around like that (since the structure on the other computer would need to be exactly the same) and B) for some people difficult in terms of syntax. The second one seems to be the problem here, with several basic things going wrong: > - Windows tends to use back-slash syntax for files that are on the current PC i.e. C:\windows\system32, rather than c:/windows/system32. > - \ is also an escape character and writing addresses very often goes wrong because of it. In inline, for example, you'd have to use c:\\windows\\system32 to produce c:\windows\system32 > ... > Because of all this often goes wrong, it's usually better to do it like Candy suggested: just dump everything in the same folder as the experiment and never mind about writing down paths. The only good reason for doing it otherwise is that one might want to have some organisation: sad faces 1-100 go in folder 'sad', happy faces 1-100 go in folder happy. Have these folders, then, as subfolders of the place where your experiment is located and use relative paths: sad\\face1.bmp, happy\\face8.bmp. This is also convenient if you then have two attributes, say: TypeOfFace and FaceNumber, because then you can just assign the current face as > CurrentFace.filename = c.GetAttrib("TypeOfFace") & "\\" & c.GetAttrib("FaceNumber") > Or something like that. > > Best, > Mich > > Michiel Spapé > Research Fellow > Perception & Action group > University of Nottingham > School of Psychology > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Candy Patterson > Sent: 28 June 2010 12:56 > To: E-Prime > Subject: Re: help a beginner :) > > I'm also a new user so not sure if this answer is correct but > hopefully will make some sense: > > My understanding is all the images need to be in the same folder as > the E-Prime script and cannot be in any sub-folders. For the Object > display in a trial (filename1) you just need to list the file name as > found in the folder (e.g. object1.bmp) and therefore there is no need > to have a second attribute with the file path (filename2). > > Also, need to ensure in the 'Procedure' line-up that the attribute > [filename1] is associated to an "ImageDisplay". The ImageDisplay > should display the words: Your image '[filename1]' will appear here. > > Hope this helps > > Candy > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From neuropsych76 at gmail.com Wed Jun 30 18:37:58 2010 From: neuropsych76 at gmail.com (cogneuroisfun) Date: Wed, 30 Jun 2010 11:37:58 -0700 Subject: Clearing half a screen Message-ID: Hi all, Another noobie question here. I have a picture up while I have my participants answer questions about the picture. I want this picture to stay up as they answer 3 questions (the questions are on a grid survey so the questions cant all fit on one screen) My question is how do I clear the previous question with keeping the picture in tact? The call clearscreen command clears everything and if I just keep everything from clearing the previous question overlaps the next question. The picture is at the top of the screen and the survey takes up the bottom of the screen so is there anyway to clear just the bottom of the screen? Thank you! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From vera.donk at googlemail.com Tue Jun 1 10:28:54 2010 From: vera.donk at googlemail.com (Vera) Date: Tue, 1 Jun 2010 03:28:54 -0700 Subject: USB port TMS In-Reply-To: <201005312218.o4VMIY01020523@mail14.tpg.com.au> Message-ID: Hi Sarah, we had the same problem, and as David already proposed, we used 3 pins of the parallel port for incoming triggers and the other five for outgoing triggers (from E-Prime to another computer). Could you do the same maybe? We needed to build some kind of splitter (the cable is kind of splitted), in order to make this work (as we had incoming and outgoing stuff on the same port), but if you want to send out to the same device, it would also work without splitting. You just have to define different pins on the parallel port (which leaves you with 38 (??) options. Just as an example, we would send different information over different pin combinations (thereby discerning the infos). In the example below we use, 3 different pin combinations (8, 16 and 24 - we only have multiplications of 8 as the first 8 bits (pins 1, 2, 4) are used for incoming triggers). If NewTriggerValue > 0 AND NewTriggerValue < 7 AND TargetPresAbs = 1 Then If SetSize = 9 Then HyperEventValue = 8 ElseIf SetSize = 16 Then HyperEventValue = 16 ElseIf SetSize = 25 Then HyperEventValue = 24 End If End If I hope this helps. I maybe don't explain it very well (I am not a technician myself, sorry for that), but maybe it gives you some ideas. And don't hesitate if you have any more questions. Greetings, Vera On Jun 1, 12:18?am, Peter Quain wrote: > what about timing issues David - anything to be aware of? > > At 08:20 AM 1/06/2010, you wrote: > > >Sara, > > >Come to think of it, there is a way to send & receive data through > >USB using E-Prime, in fact I am doing that for a project now. ?First > >go to Measurement Computing (referred to earlier) and get whatever > >I/O board suits your fancy, e.g., their USB-1024 ($100). ?When that > >arrives, install the Universal Libray software that comes with > >it. ?Then add the appropriate Declare statements in the User Script > >area of your EP program (see instructions that come with the MCC > >UL). ?Now you can use MCC UL function calls from EP inline code to > >send & receive data through the USB port. > > >Recognizing that the MCC UL essentially just adds a DLL to provide > >the USB support, with enough ingenuity you could take this even > >further by writing your own DLL to use from EP. ?For that, you might > >want to take a look at "USB Complete" by Jan Axelson. > > >Mind you, I am not advising you do any of this. ?Just being an > >academic and pointing out the full range of possibilities. > > >-- David McFarlane, Professional Faultfinder > > >David McFarlane wrote: > >>Sara, > >>Stock reminder: ?1) I do not work for PST. ?2) PST's trained staff > >>really does like to 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) If you do get an answer from PST Web Support, please extend > >>the courtesy of posting their reply back here for the sake of others. > >>That said, here is my take ... > >>Unless PST has added something new to the latest release of EP2, > >>E-Prime simply has no facility for sending or receiving data > >>through a USB port, so you are just out of luck there. ?But do not > >>take my word for this, please contact PST Web Support yourself and > >>then report back here. > >>Say, why not just install another parallel port? ?Or, does your > >>other device need all 8 outputs from the parallel port? ?If not, > >>why not just build a cable to send different wires to your > >>different devices? ?Just take a look at the book "Parallel Port > >>Complete" by Jan Axelson to get some idea of how to make full use > >>of the parallel port. ?Or, skip the parallel port and just install > >>a real digital I/O card (e.g., fromhttp://www.mccdaq.com). > >>-- David McFarlane, Professional Faultfinder > > >>>does anyone knows the scropt to open the USB port in order to trigger > >>>a TMS? > > >>>please, let me know > >>>I have to send a trigger though the USB port, because the parallel > >>>port is used to trigger another device. > > >>>thank you very much > >>>Sara > > >-- > >You received this message because you are subscribed to the Google > >Groups "E-Prime" group. > >To post to this group, send email to e-prime at googlegroups.com. > >To unsubscribe from this group, send email to > >e-prime+unsubscribe at googlegroups.com. > >For more options, visit this group at > >http://groups.google.com/group/e-prime?hl=en. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From vera.donk at googlemail.com Tue Jun 1 11:14:48 2010 From: vera.donk at googlemail.com (Vera) Date: Tue, 1 Jun 2010 04:14:48 -0700 Subject: USB port TMS In-Reply-To: <917cad46-0e69-4033-be5b-f0ff8cd1d9f0@m33g2000vbi.googlegroups.com> Message-ID: Sorry, of course in the code this was missing: writePort &H378, HyperEventValue So the thing would be: If NewTriggerValue > 0 AND NewTriggerValue < 7 AND TargetPresAbs = 1 Then If SetSize = 9 Then HyperEventValue = 8 ElseIf SetSize = 16 Then HyperEventValue = 16 ElseIf SetSize = 25 Then HyperEventValue = 24 End If End If writePort &H378, HyperEventValue Gruss, Vera On Jun 1, 12:28?pm, Vera wrote: > Hi Sarah, > > we had the same problem, and as David already proposed, we used 3 pins > of the parallel port for incoming triggers and the other five for > outgoing triggers (from E-Prime to another computer). Could you do the > same maybe? > We needed to build some kind of splitter (the cable is kind of > splitted), in order to make this work (as we had incoming and outgoing > stuff on the same port), but if you want to send out to the same > device, it would also work without splitting. You just have to define > different pins on the parallel port (which leaves you with 38 (??) > options. > > Just as an example, we would send different information over different > pin combinations (thereby discerning the infos). In the example below > we use, 3 different pin combinations (8, 16 and 24 - we only have > multiplications of 8 as the first 8 bits (pins ?1, 2, 4) are used for > incoming triggers). > > If NewTriggerValue > 0 AND NewTriggerValue < 7 AND TargetPresAbs = 1 > Then > ? ? ? ? If SetSize = 9 Then > ? ? ? ? ? ? ? ? HyperEventValue = 8 > ? ? ? ? ElseIf SetSize = 16 Then > ? ? ? ? ? ? ? ? HyperEventValue = 16 > ? ? ? ? ElseIf SetSize = 25 Then > ? ? ? ? ? ? ? ? HyperEventValue = 24 > ? ? ? ? End If > End If > > I hope this helps. I maybe don't explain it very well (I am not a > technician myself, sorry for that), but maybe it gives you some ideas. > And don't hesitate if you have any more questions. > > Greetings, Vera > > On Jun 1, 12:18?am, Peter Quain wrote: > > > what about timing issues David - anything to be aware of? > > > At 08:20 AM 1/06/2010, you wrote: > > > >Sara, > > > >Come to think of it, there is a way to send & receive data through > > >USB using E-Prime, in fact I am doing that for a project now. ?First > > >go to Measurement Computing (referred to earlier) and get whatever > > >I/O board suits your fancy, e.g., their USB-1024 ($100). ?When that > > >arrives, install the Universal Libray software that comes with > > >it. ?Then add the appropriate Declare statements in the User Script > > >area of your EP program (see instructions that come with the MCC > > >UL). ?Now you can use MCC UL function calls from EP inline code to > > >send & receive data through the USB port. > > > >Recognizing that the MCC UL essentially just adds a DLL to provide > > >the USB support, with enough ingenuity you could take this even > > >further by writing your own DLL to use from EP. ?For that, you might > > >want to take a look at "USB Complete" by Jan Axelson. > > > >Mind you, I am not advising you do any of this. ?Just being an > > >academic and pointing out the full range of possibilities. > > > >-- David McFarlane, Professional Faultfinder > > > >David McFarlane wrote: > > >>Sara, > > >>Stock reminder: ?1) I do not work for PST. ?2) PST's trained staff > > >>really does like to 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) If you do get an answer from PST Web Support, please extend > > >>the courtesy of posting their reply back here for the sake of others. > > >>That said, here is my take ... > > >>Unless PST has added something new to the latest release of EP2, > > >>E-Prime simply has no facility for sending or receiving data > > >>through a USB port, so you are just out of luck there. ?But do not > > >>take my word for this, please contact PST Web Support yourself and > > >>then report back here. > > >>Say, why not just install another parallel port? ?Or, does your > > >>other device need all 8 outputs from the parallel port? ?If not, > > >>why not just build a cable to send different wires to your > > >>different devices? ?Just take a look at the book "Parallel Port > > >>Complete" by Jan Axelson to get some idea of how to make full use > > >>of the parallel port. ?Or, skip the parallel port and just install > > >>a real digital I/O card (e.g., fromhttp://www.mccdaq.com). > > >>-- David McFarlane, Professional Faultfinder > > > >>>does anyone knows the scropt to open the USB port in order to trigger > > >>>a TMS? > > > >>>please, let me know > > >>>I have to send a trigger though the USB port, because the parallel > > >>>port is used to trigger another device. > > > >>>thank you very much > > >>>Sara > > > >-- > > >You received this message because you are subscribed to the Google > > >Groups "E-Prime" group. > > >To post to this group, send email to e-prime at googlegroups.com. > > >To unsubscribe from this group, send email to > > >e-prime+unsubscribe at googlegroups.com. > > >For more options, visit this group at > > >http://groups.google.com/group/e-prime?hl=en. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sara.agosta at gmail.com Tue Jun 1 14:30:45 2010 From: sara.agosta at gmail.com (Sara Agosta) Date: Tue, 1 Jun 2010 10:30:45 -0400 Subject: USB port TMS In-Reply-To: <9355d040-80c8-4778-81ed-df0b50856133@v37g2000vbv.googlegroups.com> Message-ID: Thank you very much for your help! s. 2010/6/1 Vera > Sorry, of course in the code this was missing: > > writePort &H378, HyperEventValue > > So the thing would be: > > If NewTriggerValue > 0 AND NewTriggerValue < 7 AND TargetPresAbs = 1 > Then > If SetSize = 9 Then > HyperEventValue = 8 > ElseIf SetSize = 16 Then > HyperEventValue = 16 > ElseIf SetSize = 25 Then > HyperEventValue = 24 > End If > End If > > writePort &H378, HyperEventValue > > Gruss, Vera > > > On Jun 1, 12:28 pm, Vera wrote: > > Hi Sarah, > > > > we had the same problem, and as David already proposed, we used 3 pins > > of the parallel port for incoming triggers and the other five for > > outgoing triggers (from E-Prime to another computer). Could you do the > > same maybe? > > We needed to build some kind of splitter (the cable is kind of > > splitted), in order to make this work (as we had incoming and outgoing > > stuff on the same port), but if you want to send out to the same > > device, it would also work without splitting. You just have to define > > different pins on the parallel port (which leaves you with 38 (??) > > options. > > > > Just as an example, we would send different information over different > > pin combinations (thereby discerning the infos). In the example below > > we use, 3 different pin combinations (8, 16 and 24 - we only have > > multiplications of 8 as the first 8 bits (pins 1, 2, 4) are used for > > incoming triggers). > > > > If NewTriggerValue > 0 AND NewTriggerValue < 7 AND TargetPresAbs = 1 > > Then > > If SetSize = 9 Then > > HyperEventValue = 8 > > ElseIf SetSize = 16 Then > > HyperEventValue = 16 > > ElseIf SetSize = 25 Then > > HyperEventValue = 24 > > End If > > End If > > > > I hope this helps. I maybe don't explain it very well (I am not a > > technician myself, sorry for that), but maybe it gives you some ideas. > > And don't hesitate if you have any more questions. > > > > Greetings, Vera > > > > On Jun 1, 12:18 am, Peter Quain wrote: > > > > > what about timing issues David - anything to be aware of? > > > > > At 08:20 AM 1/06/2010, you wrote: > > > > > >Sara, > > > > > >Come to think of it, there is a way to send & receive data through > > > >USB using E-Prime, in fact I am doing that for a project now. First > > > >go to Measurement Computing (referred to earlier) and get whatever > > > >I/O board suits your fancy, e.g., their USB-1024 ($100). When that > > > >arrives, install the Universal Libray software that comes with > > > >it. Then add the appropriate Declare statements in the User Script > > > >area of your EP program (see instructions that come with the MCC > > > >UL). Now you can use MCC UL function calls from EP inline code to > > > >send & receive data through the USB port. > > > > > >Recognizing that the MCC UL essentially just adds a DLL to provide > > > >the USB support, with enough ingenuity you could take this even > > > >further by writing your own DLL to use from EP. For that, you might > > > >want to take a look at "USB Complete" by Jan Axelson. > > > > > >Mind you, I am not advising you do any of this. Just being an > > > >academic and pointing out the full range of possibilities. > > > > > >-- David McFarlane, Professional Faultfinder > > > > > >David McFarlane wrote: > > > >>Sara, > > > >>Stock reminder: 1) I do not work for PST. 2) PST's trained staff > > > >>really does like to 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) If you do get an answer from PST Web Support, please extend > > > >>the courtesy of posting their reply back here for the sake of others. > > > >>That said, here is my take ... > > > >>Unless PST has added something new to the latest release of EP2, > > > >>E-Prime simply has no facility for sending or receiving data > > > >>through a USB port, so you are just out of luck there. But do not > > > >>take my word for this, please contact PST Web Support yourself and > > > >>then report back here. > > > >>Say, why not just install another parallel port? Or, does your > > > >>other device need all 8 outputs from the parallel port? If not, > > > >>why not just build a cable to send different wires to your > > > >>different devices? Just take a look at the book "Parallel Port > > > >>Complete" by Jan Axelson to get some idea of how to make full use > > > >>of the parallel port. Or, skip the parallel port and just install > > > >>a real digital I/O card (e.g., fromhttp://www.mccdaq.com). > > > >>-- David McFarlane, Professional Faultfinder > > > > > >>>does anyone knows the scropt to open the USB port in order to > trigger > > > >>>a TMS? > > > > > >>>please, let me know > > > >>>I have to send a trigger though the USB port, because the parallel > > > >>>port is used to trigger another device. > > > > > >>>thank you very much > > > >>>Sara > > > > > >-- > > > >You received this message because you are subscribed to the Google > > > >Groups "E-Prime" group. > > > >To post to this group, send email to e-prime at googlegroups.com. > > > >To unsubscribe from this group, send email to > > > >e-prime+unsubscribe at googlegroups.com > . > > > >For more options, visit this group at > > > >http://groups.google.com/group/e-prime?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Jun 1 14:35:48 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 1 Jun 2010 10:35:48 -0400 Subject: send event related signal to serial/parallel ports In-Reply-To: Message-ID: Estelle, At 5/31/2010 09:23 AM Monday, you wrote: >I understand the parallel port communication is faster than the >serial port communication. There is actually quite a bit more to it than that. I just checked my earlier discussion at http://support.pstnet.com/forum/Topic2496-8-1.aspx , and perhaps that still does not quite answer your question, so I will attempt another short explanation here: A serial port sends a sequence of brief pulses over a single wire, using voltages of +12 or - 12. By contrast, a parallel port sends each signal steadily over a separate wire, using voltages of +5 or 0. As you can readily see, these are vastly different mechanisms and cannot be easily interchanged. Else, why would we even bother giving them separate names? >I guess I will have to find a computer with a parallel port since >mine only has serial. Alternatively, note that in another recent thread here we have discussed using a commercial USB device to provide digital I/O. However, this would require considerably more code. As usual, do not take my word for any of this, but look it up for yourself. For those really interested, see the books "Parallel Port Complete" and "Serial Port Complete" by Jan Axelson. -- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From estelle.breton at gmail.com Tue Jun 1 17:40:25 2010 From: estelle.breton at gmail.com (Estelle Breton) Date: Tue, 1 Jun 2010 13:40:25 -0400 Subject: send event related signal to serial/parallel ports In-Reply-To: <4c051acd.65bae70a.6d93.ffff8f39SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Ok thank you ! I am starting to understand better how this all works, Thank you for your patience ! People I work with have developped a specific device that respond to the DTR pin (serial device). It basically reacts when this specific pin is turned on or off. I would like to toggle this pin using an inline object just before an event in my ePrime protocol. Does anyone know if this is something possible ? How can I adress other pins than the receive or transmit pin with e-basic code ? thanks for the support ! On Tue, Jun 1, 2010 at 10:35 AM, David McFarlane wrote: > Estelle, > > > At 5/31/2010 09:23 AM Monday, you wrote: > >> I understand the parallel port communication is faster than the serial >> port communication. >> > > There is actually quite a bit more to it than that. I just checked my > earlier discussion at http://support.pstnet.com/forum/Topic2496-8-1.aspx , > and perhaps that still does not quite answer your question, so I will > attempt another short explanation here: A serial port sends a sequence of > brief pulses over a single wire, using voltages of +12 or - 12. By > contrast, a parallel port sends each signal steadily over a separate wire, > using voltages of +5 or 0. As you can readily see, these are vastly > different mechanisms and cannot be easily interchanged. Else, why would we > even bother giving them separate names? > > > I guess I will have to find a computer with a parallel port since mine only >> has serial. >> > > Alternatively, note that in another recent thread here we have discussed > using a commercial USB device to provide digital I/O. However, this would > require considerably more code. > > As usual, do not take my word for any of this, but look it up for yourself. > For those really interested, see the books "Parallel Port Complete" and > "Serial Port Complete" by Jan Axelson. > > > -- David McFarlane, Professional Faultfinder > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- Estelle -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue Jun 1 19:47:20 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 1 Jun 2010 15:47:20 -0400 Subject: USB port TMS In-Reply-To: <201005312218.o4VMIY01020523@mail14.tpg.com.au> Message-ID: Peter, Good question, wish I knew the answer. We have been using a different product from MCC, and using the A/D output to present analog waveforms to subjects. Aside from any latency in starting the waveform, the timing within the waveforms looks just fine on my oscilloscope (waveform timing is handled internally by the MCC device with its own clock). However, for this study we are not too concerned about waveform onset latency, so I have not been asked to look at that, let alone timing of straight digital I/O. We really need someone to do that for us. Beyond that I would just look and see what they say at the MCC site, or contact them directly, but anyone could do that without me. -- David McFarlane, Professional Faultfinder At 5/31/2010 06:18 PM Monday, Peter Quain wrote: >what about timing issues David - anything to be aware of? > >At 08:20 AM 1/06/2010, you wrote: >>Sara, >> >>Come to think of it, there is a way to send & receive data through >>USB using E-Prime, in fact I am doing that for a project >>now. First go to Measurement Computing (referred to earlier) and >>get whatever I/O board suits your fancy, e.g., their USB-1024 >>($100). When that arrives, install the Universal Libray software >>that comes with it. Then add the appropriate Declare statements in >>the User Script area of your EP program (see instructions that come >>with the MCC UL). Now you can use MCC UL function calls from EP >>inline code to send & receive data through the USB port. >> >>Recognizing that the MCC UL essentially just adds a DLL to provide >>the USB support, with enough ingenuity you could take this even >>further by writing your own DLL to use from EP. For that, you >>might want to take a look at "USB Complete" by Jan Axelson. >> >>Mind you, I am not advising you do any of this. Just being an >>academic and pointing out the full range of possibilities. >> >>-- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pedrofilipecustodio at gmail.com Wed Jun 2 20:30:37 2010 From: pedrofilipecustodio at gmail.com (p_e_t_e) Date: Wed, 2 Jun 2010 13:30:37 -0700 Subject: Movies on E-Prime Message-ID: Hi everyone! I am doing a thesis where I will be recording EEGs during the presentation of some movies. The paradigm is: Documentary part 1 Ad 1 Ad 2 Ad 3 Documentary part 2 Ad 4 Ad 5 Ad 6 ... My question is how do I signal the beginning of each movie? I was told to use InLine with this code: PreStim.OnsetSignalEnabled ... But it gives an error on the final point. Is there any other way to send a signal identifying the stimulus? Thanks! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From txurimate at gmail.com Fri Jun 4 16:01:13 2010 From: txurimate at gmail.com (Judit) Date: Fri, 4 Jun 2010 09:01:13 -0700 Subject: how to make the program choose a particular image depending on the previously shown image Message-ID: Dear all, I'm new in this group and also in EPrime programming. I've only used EPrime without script and now I'm starting to learn how to program. I have a first question, it must sound silly to most of you but I'd really appreciate your answers. I'm currently designing a visual working memory experiment. I need to show items such as a blue triangle, a red circle and so on and at test show a probe that would be either the shape alone or a colour blob (participants should then recall the colour in which the shape was presented or the shape that appeared in a particular colour). The image files are organised like this: 11.bmp=Red circle 12.bmp=Red triangle 21.bmp=Blue circle 22.bmp=Blue triangle How can I tell the program to randomly present 2 coloured shapes at study, and and test probe with only ONE feature of one of the previously shown items? Importantly, features cannot be repeated within a trial. I've already done it by creating nested lists, but manually choosing a target, lets say 11.bmp, and then manually making it show a red blob colour. Is it a way to tell the program something like "if the target filename starts with 1, then show a red blob, if it starts with 2, then show a blue blob, or if it ends with 1, then show a circle" and so on. I would like to do it by script so it could be automatic, cause I don't want all participants to have the same manually chosen targets. How would the code be and where should I place it? Many, many thanks in advance! Judit. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From estelle.breton at gmail.com Fri Jun 4 19:02:05 2010 From: estelle.breton at gmail.com (Estelle_Thought_Technology) Date: Fri, 4 Jun 2010 12:02:05 -0700 Subject: socket device Message-ID: Hi, Has anyone ever used the socket device for network communication ? I looked in e-prime documentation, but did'nt find much... What e-basic methods should I use to send or receive signals ? Thank you, -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Fri Jun 4 19:31:28 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 4 Jun 2010 15:31:28 -0400 Subject: how to make the program choose a particular image depending on the previously shown image In-Reply-To: Message-ID: Judit, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours (although latest reports indicate more like 10 days) -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... If I understood your task better and thought a little harder then I might come up with a code-free approach, perhaps with judicious use of nested lists. But let's stick with the code for now. Suppose you the List attrribute "TestFile" holds the name of your test image file, and you use an attribute reference like [ProbeFile] in the stimlus object for your probe. Then you might use code like If Mid$( c.GetAttrib("TestFile"), 1, 1) = "1" Then c.SetAttrib "ImageFile", "redblob.bmp" Else c.SetAttrib "ImageFile", "blueblob.bmp" End This just sketches the basic idea, you can refine it and fill in the details from there. -- David McFarlane, Professional Faultfinder >I'm new in this group and also in EPrime programming. I've only used >EPrime without script and now I'm starting to learn how to program. > >I have a first question, it must sound silly to most of you but I'd >really appreciate your answers. > >I'm currently designing a visual working memory experiment. I need to >show items such as a blue triangle, a red circle and so on and at test >show a probe that would be either the shape alone or a colour blob >(participants should then recall the colour in which the shape was >presented or the shape that appeared in a particular colour). > >The image files are organised like this: > >11.bmp=Red circle >12.bmp=Red triangle > >21.bmp=Blue circle >22.bmp=Blue triangle > >How can I tell the program to randomly present 2 coloured shapes at >study, and and test probe with only ONE feature of one of the >previously shown items? Importantly, features cannot be repeated >within a trial. > >I've already done it by creating nested lists, but manually choosing a >target, lets say 11.bmp, and then manually making it show a red blob >colour. Is it a way to tell the program something like "if the target >filename starts with 1, then show a red blob, if it starts with 2, >then show a blue blob, or if it ends with 1, then show a circle" and >so on. > >I would like to do it by script so it could be automatic, cause I >don't want all participants to have the same manually chosen targets. >How would the code be and where should I place it? > >Many, many thanks in advance! >Judit. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From phoenix345 at gmail.com Fri Jun 4 20:17:07 2010 From: phoenix345 at gmail.com (Josh) Date: Fri, 4 Jun 2010 13:17:07 -0700 Subject: starting & stopping other program actions & microphone issues Message-ID: Hi all, I am not an e-prime programmer, but I have been designated as the e- prime frontliner for my study. My team has asked me to track down the answer for two issues. I could not find a clear solution in the archives: 1. In our piloting of three e-prime 2.0 release candidate experiments this week, the performance of the microphone & serial response box was inadequate & variable. We are using the microphone to record responses and response times to two affective stroop experiments. Often subjects had to repeat their answer to a given stimulus before the microphone would signal the program to move on to the next stimulus. When we turned the sound sensitivity screw on the serial response box, movements from onlookers during the piloting would sometimes trigger the program to move on to the next stimulus. In addition, most audio files for each response were empty/blank. Any helpful suggestions would be much appreciated. 2. We are recording respiration and heart rate data using MindWare software & associated hardware. Ideally, we would like e-prime to tell MindWare when to begin and end recording heart data for each section of each experiment. Does anyone know if this is possible? Again, any direction to an archive or tutorial would be much appreciated. Thanks, Josh -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From wfjohnny at gmail.com Sun Jun 6 19:02:47 2010 From: wfjohnny at gmail.com (Johnny) Date: Sun, 6 Jun 2010 12:02:47 -0700 Subject: How to display trail number beginning with a certain number? Message-ID: Hi, I am designing a simple experiment in which there are two seperate blocks, each has a list of 20 stimuli. For the first block, I use the following inline script to display the trial number successfully: c.setattrib "TrialNumber", c.getattrib(c.getattrib("Running") & ".Sample") And, added this [TrialNumber] to my text display. But, for the second block, it restart counting from 'one' again. But, in order not to let the participants notice that this is actually the second block, I intend to make the second block begin the number with 20 (not 1). Could any one please tell me how to do it? Thanks a lot. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From h.witherstone at googlemail.com Sun Jun 6 20:22:13 2010 From: h.witherstone at googlemail.com (Hannah Witherstone) Date: Sun, 6 Jun 2010 13:22:13 -0700 Subject: Minimising E-Prime and running two E-Prime experiments Message-ID: Hi all I have several long e-prime experiments that I am running with 5-year- olds. There are 40 trials in each experiment. I have written-in a text object between each trial which requires a mouse-click to move on to the next - this acts a pause or wait function. However, sometimes I wish to do something completely different after, say, 20 trials to give my kids a little break. This 'something' different can be another e-prime task or another task that is also on my laptop. My question is whether I can leave the experiment running on the text pause object and do another, shorter e-prime task or something else on the laptop all together and then resume the original experiment? I know I can exit out of e-prime using "ctrl, alt, shift' but this crashes the experiment and I cannot pick up where I left off. If anyone could help that would be great! Thanks, Hannah Witherstone -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From wfjohnny at gmail.com Mon Jun 7 06:16:32 2010 From: wfjohnny at gmail.com (Johnny) Date: Sun, 6 Jun 2010 23:16:32 -0700 Subject: How to display trail number beginning with a certain number? In-Reply-To: Message-ID: I think I just found the inline script that would do the total trial number count. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Jun 7 19:25:46 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 7 Jun 2010 15:25:46 -0400 Subject: starting & stopping other program actions & microphone issues In-Reply-To: <8c9c0f14-4a35-43a1-a5d4-515e31e6afa7@m4g2000vbl.googlegrou ps.com> Message-ID: Josh, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours (although latest reports indicate more like 10 days) -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... 1. Can't help you with the voice key sensitivity issue, contact PST Web Support for that. As to the blank audio files, AFAIK when you connect a microphone to the SRBox for use as a voice key, it does *not* also send the audio to the computer. For that you would need two microphones, or use a cable splitter to send the microphone output to both the SRBox and to the sound in on your PC. But don't take my word for this, please consult PST (and then report back here for the rest of us). 2. We worked with the MindWare psychophysiology equipment a couple years ago. Starting MindWare (or more accurately, the BioNex hardware) from E-Prime was a simple matter of using WritePort (in a bit of inline code) to send a pulse to the appropriate bit at the appropriate time. In our case MindWare supplied a cable to go from the parallel port of the E-Prime PC to the inputs of the BioNex hardware, and supplied a sample E-Prime program, so you should consult MindWare directly for more help there. I found it best to always reset all the output bits to 0 at the start my program; then to start BioNex recording I would WritePort the proper bit, Sleep for about 20 seconds, then WritePort 0 again. However, the BioNex hardware did not include any automated means for *stopping* the recording. That had to be done manually at the end of each session. BioNex did include a means for getting a number of event pulses from E-Prime, which promised a way to divide the data for analysis later. But we could not get the analysis software at the time to use the event markers in the desired way, so that was futile. In the end, we just used E-Prime to start the BioNex recording at the desired moment, manually stopped BioNex recording at the end of the session, and used times from the E-Prime data to direct analysis of the physiological records. -- David McFarlane, Professional Faultfinder At 6/4/2010 04:17 PM Friday, you wrote: >I am not an e-prime programmer, but I have been designated as the e- >prime frontliner for my study. My team has asked me to track down the >answer for two issues. I could not find a clear solution in the >archives: > >1. In our piloting of three e-prime 2.0 release candidate experiments >this week, the performance of the microphone & serial response box was >inadequate & variable. We are using the microphone to record responses >and response times to two affective stroop experiments. Often subjects >had to repeat their answer to a given stimulus before the microphone >would signal the program to move on to the next stimulus. When we >turned the sound sensitivity screw on the serial response box, >movements from onlookers during the piloting would sometimes trigger >the program to move on to the next stimulus. In addition, most audio >files for each response were empty/blank. Any helpful suggestions >would be much appreciated. > >2. We are recording respiration and heart rate data using MindWare >software & associated hardware. Ideally, we would like e-prime to tell >MindWare when to begin and end recording heart data for each section >of each experiment. Does anyone know if this is possible? Again, any >direction to an archive or tutorial would be much appreciated. Thanks, > >Josh -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Jun 7 19:45:11 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 7 Jun 2010 15:45:11 -0400 Subject: Minimising E-Prime and running two E-Prime experiments In-Reply-To: Message-ID: Hannah, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours (although latest reports indicate more like 10 days) -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... I have never done any of this, so if you pioneer this please write back and let us know how it works. 1. You can actually Alt+Tab out of a running experiment. No telling what you could run then, or how easily you could get back to and resume your experiment program. 2. As I recall, the online E-Basic Help has some functions for launching external applications, although I cannot recall them at the moment. 3. For yet another more controlled programmatic method, try the SuspendResume example downloadable from PST. This makes use of a couple of Windows API calls, as well as a couple methods of Rte.DeviceManager. 4. Finally, if your "break" task is unrelated to the main task, why not just go low tech? Set up a second laptop (computers are cheap these days, buy a used one on eBay or CraigsList) with a separate task and move them to that for a moment, or just give the kids some blocks to play with, etc. When I taught Sunday school to 4th graders (admittedly 9-year-olds, not 5-year-olds), we found it useful to frequently move the kids to a new venue to keep them engaged. -- David McFarlane, Professional Faultfinder At 6/6/2010 04:22 PM Sunday, you wrote: >I have several long e-prime experiments that I am running with 5-year- >olds. There are 40 trials in each experiment. I have written-in a >text object between each trial which requires a mouse-click to move on >to the next - this acts a pause or wait function. However, sometimes >I wish to do something completely different after, say, 20 trials to >give my kids a little break. This 'something' different can be >another e-prime task or another task that is also on my laptop. > >My question is whether I can leave the experiment running on the text >pause object and do another, shorter e-prime task or something else on >the laptop all together and then resume the original experiment? > >I know I can exit out of e-prime using "ctrl, alt, shift' but this >crashes the experiment and I cannot pick up where I left off. > >If anyone could help that would be great! > >Thanks, > >Hannah Witherstone -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mpaffel at gmail.com Wed Jun 9 20:46:02 2010 From: mpaffel at gmail.com (Matt Paffel) Date: Wed, 9 Jun 2010 13:46:02 -0700 Subject: increasing/decreasing percentage - pie chart/ circular graph In-Reply-To: <2624ca14-bb84-4dcb-8ba4-2f7ed73ffea1@24g2000yqy.googlegroups.com> Message-ID: from PST: Since you're keeping your bmps with pie slices in a folder called pie, you need to add this layer of the path to the image files into the code. The new code should look like this (all I did was change c.SetAttrib "myPicture", "pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" to c.SetAttrib "myPicture", "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" ) : If (mySlide.resp = 1) Then ' decrease pie slice If c.GetAttrib("CurrentPerc") > 1 Then _ c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) - 1 c.SetAttrib "myPicture", _ "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" goto Label1 ElseIf (mySlide.resp = 2) Then ' increase pie slice If c.GetAttrib("CurrentPerc") < 100 Then _ c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) + 1 c.SetAttrib "myPicture", _ "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" goto Label1 End If You need to add 3 to the Allowable field on mySlide's Duration/Input tab of the Property Pages or the "3 to confirm" option on your pictures will not work. Thank you again everyone. On May 13, 4:43?pm, Matt Paffel wrote: > Hello...again. Sorry for taking up so much time with this but I?ve > entered the code and when I generate it, there seems to be no problem, > the code generates just fine. However, when I try to run the program, > I keep getting the error message 13, ?type mismatch?. I then put all > the various 1?s and 2?s in quotation marks which allow me to not only > generate the code, but also run the program. However, the program does > not respond to any of the keys pressed, which inevitably leads me to > have to ctrl, alt, shift out of the program. After looking at it, one > of my colleagues suggested I place the entire code online for whomever > to look at and see if they can make it work. I?m not sure of the > etiquette of this and have opted against doing so but if anyone would > be willing to take a shot at it I can certainly do so. Does anyone > have a suggestion of where to go from here? > > On May 13, 2:04?pm, David McFarlane wrote: > > > > > > > OK, by now you are all sick of this, but I couldn't let that last > > sample code sit, so as yet another exercise I revised it so that it > > will use .RESP = 1 for decrease and .RESP = 2 for increase (but as a > > further exercise, think through what happens if .RESP goes outside > > that range; of course one could prevent that by proper use of > > Allowable). ?Note the use of CSng(). ?Remember, you are responsible > > for catching typos and making your own corrections in any of the free > > and hastily-produced sample code posted here. > > > Dim ?currentPerc as Integer, newPerc as Integer > > If IsNumeric(mySlide.RESP) Then > > ? ? ?newPerc = currentPerc + (2 * ( CSng(mySlide.RESP) - 1.5 )) > > ? ? ?If (0 <= newPerc) and (newPerc <= 100) Then > > ? ? ? ? ?currentPerc = newPerc > > ? ? ? ? ?c.SetAttrib "myPicture", "pie" & Cstr(newPerc) & ".bmp" > > ? ? ?End If > > ? ? ?goto Label1 > > End if > > > -- David McFarlane, Professional Faultfinder > > > At 5/12/2010 03:35 PM Wednesday, David McFarlane wrote: > > > >Susan, > > > >Good catch, I obviously missed that when I made & posted my > > >revisions! Just for the record (and because I am such a pedant) here > > >are all the code samples again with corrections > > >made. ?AFAIK E-Basic/Visual Basic is the only language > > >that has this silly rule about parentheses around Function arguments > > >but not Sub arguments, which causes much pain for no useful > > >purpose. ?(For that matter, more rational languages such as C do > > >away with the useless distinction between functions and subroutines > > >altogether.) > > > >First, my base revision of Mich's code (also adding more parentheses > > >around conditional clauses, and putting tests into numerical order > > >just because I think it reads better) (and please pay attention to > > >the underscore "_" that I use at the end of some lines, yet another > > >silly affectation of Basic)... > > > >If (mySlide.resp = 1) then ?' decrease pie slice > > > ? ? If c.GetAttrib("CurrentPerc") > 1 then _ > > > ? ? ? ? c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) - 1 > > > ? ? c.SetAttrib "myPicture", _ > > > ? ? ? ? "pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" > > > ? ? goto Label1 > > >ElseIf (mySlide.resp = 2) then ?' increase pie slice > > > ? ? If c.GetAttrib("CurrentPerc") < 100 then _ > > > ? ? ? ? c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) + 1 > > > ? ? c.SetAttrib "myPicture", _ > > > ? ? ? ? "pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" > > > ? ? goto Label1 > > >End If > > > >Then, my revision using a variable instead of an attribute reference for > > >CurrentPerc (and this time giving a type to the variable)... > > > >Dim ?currentPerc as Integer ?' Single would allow fractional changes > > >If (mySlide.resp = 1) then ?' decrease pie slice > > > ? ? If (currentPerc > 1) then currentPerc = currentPerc - 1 > > > ? ? c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > > ? ? goto Label1 > > >ElseIf (mySlide.resp = 2) then ?' increase pie slice > > > ? ? If (currentPerc < 100) then currentPerc = currentPerc + 1 > > > ? ? c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > > ? ? goto Label1 > > >End If > > > >Then my exercise using Select...Case... > > > >Dim ?currentPerc as Integer > > >Select Case mySlide.RESP > > >Case 1 ?' decrease pie slice > > > ? ? If (currentPerc > 1) then currentPerc = currentPerc - 1 > > > ? ? c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > > ? ? goto Label1 > > >Case 2 ?' increase pie slice > > > ? ? If (currentPerc < 100) then currentPerc = currentPerc + 1 > > > ? ? c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > > ? ? goto Label1 > > >End Select > > > >And finally, Mich reduced it all to (with me now adding the Dim, and > > >making a correction to his literal constant value)... > > > >' Assumes .RESP = 1 for decrease, .RESP = 3 for increase, otherwise > > >' algorithm will fail. > > >Dim ?currentPerc as Integer > > >If IsNumeric(mySlide.RESP) then > > > ? ? If ((currentPerc + cint(mySlide.RESP) - 2) > 0) AND _ > > > ? ? ? ? ((currentPerc + cint(mySlide.RESP) - 2) < 100) then _ > > > ? ? ? ? currentPerc = currentPerc + cint(mySlide.RESP)- 2 > > > ? ? c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > > ? ? goto Label1 > > >End if > > > >Note that this all assumes that the Procedure runs until we are done > > >with pie slices, otherwise we would have to work with a global variable. > > > >-- David McFarlane, Professional Faultfinder > > > >>Here's a thought: while c.GetAttrib takes parens, c.SetAttrib does > > >>not; I believe the general form should be: > > >>c.SetAttrib "CurrentPerc", "12" > > >>or whatever. That should fix that particular error. You may also have > > >>a problem because all attributes are strings, so conversion to integer > > >>may be necessary in some places. > > >>HTH, > > >>Susan > > >>On May 12, 12:37 pm, Matt Paffel wrote: > > >>>Arrrgggh!!! > > > >>>So I've spent the last couple of days trying to place the various code > > >>>within the experiment. every time i try to do so i get the error > > >>>messages "SetAttrib is not a property of the object" when i put any of > > >>>the above script in or "CurrentPerc is not an assignable property of > > >>>the object" when i try to set CurrentPerc as an attribute, any > > >>>suggestions? > > > >-- > > >You received this message because you are subscribed to the Google > > >Groups "E-Prime" group. > > >To post to this group, send email to e-prime at googlegroups.com. > > >To unsubscribe from this group, send email to > > >e-prime+unsubscribe at googlegroups.com. > > >For more options, visit this group at > > >http://groups.google.com/group/e-prime?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en.-Hide quoted text - > > > - Show quoted text - > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Thu Jun 10 02:03:43 2010 From: sombrenote at gmail.com (SombreNote) Date: Wed, 9 Jun 2010 19:03:43 -0700 Subject: Easy Multiple Rungroups Question Message-ID: In superlab I was able to specify in the same experiment which blocks I wanted to run depended on the rungroup people would pick in the beginning of the experiment. When you have multiple permutations of the same experiment, you can see whey this is important. My issue with E-Prime is that I know it does much the same thing, but I can not find where it explains how the subject number thing works, and how the session number works. As well as all the other stuff. Where do I go in the guides or help documentation that gives me what I need to know to get a bunch of variations in the same experiment? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From ashtyster at gmail.com Thu Jun 10 14:09:05 2010 From: ashtyster at gmail.com (Ashtyster) Date: Thu, 10 Jun 2010 07:09:05 -0700 Subject: recording mouse movements Message-ID: For one of my studies, I would like to record mouse movements (I'm using a touch pad, but it doesn't make a difference here) over a certain period of time. No clicks, just the movements. I was wondering whether it's possible to do it with E-Prime, and if yes - then how? I will appreciate any help and advice regarding this issue. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From baltimore.ben at gmail.com Thu Jun 10 15:41:01 2010 From: baltimore.ben at gmail.com (ben robinson) Date: Thu, 10 Jun 2010 11:41:01 -0400 Subject: recording mouse movements In-Reply-To: Message-ID: i think the syntax is Mouse.GetCursorPos (search for that in the Help file), and you could GetCursorPos every x number of milliseconds using a loop in an Inline, depending on the temporal resolution you desire. that would be one, obvious way, though there may be better ways... On Thu, Jun 10, 2010 at 10:09 AM, Ashtyster wrote: > For one of my studies, I would like to record mouse movements (I'm > using a touch pad, but it doesn't make a difference here) over a > certain period of time. No clicks, just the movements. I was wondering > whether it's possible to do it with E-Prime, and if yes - then how? > > I will appreciate any help and advice regarding this issue. > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marina.faveri at gmail.com Thu Jun 10 19:01:16 2010 From: marina.faveri at gmail.com (Marina O) Date: Thu, 10 Jun 2010 12:01:16 -0700 Subject: replacement for wrong trials Message-ID: Hi, I'm intersted in replacing only wrong trials in a block. The block is setted to chose trials randomly (without replacement). My goal is to have the same number of correct trials for each condition, since I'm also collecting EEG data and it would be better for comparisons of the electrophysiological data to have the same number of epochs. I'm collecting reaction time data from all of the 10 hand fingers, and it's already known (from previous experiments we've made) that the probability of wrong responses are different for each finger. Is there an easy way to do it? A hard one would be usefull as well, but my programming skills are (very) limmited. I deeply appreciate your help, Marina -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 10 20:11:25 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Jun 2010 16:11:25 -0400 Subject: recording mouse movements In-Reply-To: Message-ID: Once you get the mouse coordinates (following Ben's sage advice) you will want to save them somewhere. You can store them directly in the .edat file using some combination of c.SetAttrib and c.Log (see the Context topic in the online E-Basic Help), or to any text file of your choosing using something like Print# (again, see the E-Basic Help). Finally, don't overlook PST Web Support at http://support.pstnet.com/e%2Dprime/support/login.asp , they like to help out with this sort of thing. -- David McFarlane, Professional Faultfinder At 6/10/2010 11:41 AM Thursday, you wrote: >i think the syntax is Mouse.GetCursorPos (search for that in the >Help file), and you could GetCursorPos every x number of >milliseconds using a loop in an Inline, depending on the temporal >resolution you desire. that would be one, obvious way, though there >may be better ways... > >On Thu, Jun 10, 2010 at 10:09 AM, Ashtyster ><ashtyster at gmail.com> wrote: >For one of my studies, I would like to record mouse movements (I'm >using a touch pad, but it doesn't make a difference here) over a >certain period of time. No clicks, just the movements. I was wondering >whether it's possible to do it with E-Prime, and if yes - then how? > >I will appreciate any help and advice regarding this issue. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 10 20:20:35 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Jun 2010 16:20:35 -0400 Subject: Easy Multiple Rungroups Question In-Reply-To: <75e5b2e3-d723-4f44-a111-9d7a717bb776@k39g2000yqb.googlegro ups.com> Message-ID: Offhand, I would say you could use the Counterbalance option for this. With that in mind, you might use "Counterbalance" as a search term either here in the Google Group or over at the PST Forum, or look in the index of the E-Prime Guides. But I find the coverage in the Guides rather scant on this topic, which brings us to another issue: In general, PST prefers to provide individualized technical support rather than produce generalized documentation, so you should also take questions like this directly to PST Web Support at http://support.pstnet.com/e%2Dprime/support/login.asp . -- David McFarlane, Professional Faultfinder At 6/9/2010 10:03 PM Wednesday, you wrote: >In superlab I was able to specify in the same experiment which blocks >I wanted to run depended on the rungroup people would pick in the >beginning of the experiment. When you have multiple permutations of >the same experiment, you can see whey this is important. > >My issue with E-Prime is that I know it does much the same thing, but >I can not find where it explains how the subject number thing works, >and how the session number works. As well as all the other stuff. > >Where do I go in the guides or help documentation that gives me what I >need to know to get a bunch of variations in the same experiment? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 10 20:27:24 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Jun 2010 16:27:24 -0400 Subject: Easy Multiple Rungroups Question In-Reply-To: <4c114914.84c9e70a.5f0e.2e3cSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Oh, note that PST also has a Counterbalance example program that you may download from their site. >Offhand, I would say you could use the Counterbalance option for >this. With that in mind, you might use "Counterbalance" as a search >term either here in the Google Group or over at the PST Forum, or >look in the index of the E-Prime Guides. > >But I find the coverage in the Guides rather scant on this topic, >which brings us to another issue: In general, PST prefers to >provide individualized technical support rather than produce >generalized documentation, so you should also take questions like >this directly to PST Web Support at >http://support.pstnet.com/e%2Dprime/support/login.asp . > >-- David McFarlane, Professional Faultfinder > > >At 6/9/2010 10:03 PM Wednesday, you wrote: >>In superlab I was able to specify in the same experiment which blocks >>I wanted to run depended on the rungroup people would pick in the >>beginning of the experiment. When you have multiple permutations of >>the same experiment, you can see whey this is important. >> >>My issue with E-Prime is that I know it does much the same thing, but >>I can not find where it explains how the subject number thing works, >>and how the session number works. As well as all the other stuff. >> >>Where do I go in the guides or help documentation that gives me what I >>need to know to get a bunch of variations in the same experiment? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From ashtyster at gmail.com Thu Jun 10 20:41:40 2010 From: ashtyster at gmail.com (Olga V. Chelnokova) Date: Thu, 10 Jun 2010 22:41:40 +0200 Subject: recording mouse movements In-Reply-To: <4c1146ef.84c9e70a.5f0e.2d67SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Great ideas! Thank you for your help! On Thu, Jun 10, 2010 at 10:11 PM, David McFarlane wrote: > Once you get the mouse coordinates (following Ben's sage advice) you will > want to save them somewhere. You can store them directly in the .edat file > using some combination of c.SetAttrib and c.Log (see the Context topic in > the online E-Basic Help), or to any text file of your choosing using > something like Print# (again, see the E-Basic Help). > > Finally, don't overlook PST Web Support at > http://support.pstnet.com/e%2Dprime/support/login.asp , they like to help > out with this sort of thing. > > -- David McFarlane, Professional Faultfinder > > > > At 6/10/2010 11:41 AM Thursday, you wrote: > >> i think the syntax is Mouse.GetCursorPos (search for that in the Help >> file), and you could GetCursorPos every x number of milliseconds using a >> loop in an Inline, depending on the temporal resolution you desire. that >> would be one, obvious way, though there may be better ways... >> >> On Thu, Jun 10, 2010 at 10:09 AM, Ashtyster < >> ashtyster at gmail.com> wrote: >> For one of my studies, I would like to record mouse movements (I'm >> using a touch pad, but it doesn't make a difference here) over a >> certain period of time. No clicks, just the movements. I was wondering >> whether it's possible to do it with E-Prime, and if yes - then how? >> >> I will appreciate any help and advice regarding this issue. >> > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu Jun 10 20:35:00 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Jun 2010 16:35:00 -0400 Subject: replacement for wrong trials In-Reply-To: <836b5487-1670-4c7e-a118-506b18d6fc39@35g2000vbj.googlegrou ps.com> Message-ID: Marina, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... So you want to rerun only trials with incorrect responses until the subject responds correctly? I don't see any way to do that without some inline code. For examples, look at the CriterionForExit and and RerunErrors examples downloadable from the PST web site (warning: in general PST programmers are pretty sloppy, so do not take these as models of proper programming practice, take them only as rough exercises to illustrate certain features and then abstract from there). -- David McFarlane, Professional Faultfinder "When all is said and told, the 'naturalness' with which we use our native tongues boils down to the ease with which we can use them for making statements the nonsense of which is not obvious." -- Edsger W. Dijkstra, "On the foolishness of 'natural language programming'" (http://www.cs.utexas.edu/users/EWD/transcriptions/EWD06xx/EWD667.html) >Hi, I'm intersted in replacing only wrong trials in a block. The block >is setted to chose trials randomly (without replacement). My goal is >to have the same number of correct trials for each condition, since >I'm also collecting EEG data and it would be better for comparisons of >the electrophysiological data to have the same number of epochs. I'm >collecting reaction time data from all of the 10 hand fingers, and >it's already known (from previous experiments we've made) that the >probability of wrong responses are different for each finger. Is there >an easy way to do it? A hard one would be usefull as well, but my >programming skills are (very) limmited. > >I deeply appreciate your help, > >Marina -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 10 20:42:54 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Jun 2010 16:42:54 -0400 Subject: replacement for wrong trials In-Reply-To: <4c114c75.dfc3e70a.5e46.3094SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Oh, the StudyRecall example might also help out here. >Marina, > >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >takes any and all questions at >http://support.pstnet.com/e%2Dprime/support/login.asp , and they >strive to respond to all requests in 24-48 hours -- this is pretty >much their substitute for proper documentation, so make full use of >it. 3) If you do get an answer from PST Web Support, please extend >the courtesy of posting their reply back here for the sake of others. > >That said, here is my take... > >So you want to rerun only trials with incorrect responses until the >subject responds correctly? I don't see any way to do that without >some inline code. For examples, look at the CriterionForExit and >and RerunErrors examples downloadable from the PST web site >(warning: in general PST programmers are pretty sloppy, so do not >take these as models of proper programming practice, take them only >as rough exercises to illustrate certain features and then abstract >from there). > >-- David McFarlane, Professional Faultfinder >"When all is said and told, the 'naturalness' with which we use our >native tongues boils down to the ease with which we can use them for >making statements the nonsense of which is not obvious." -- Edsger >W. Dijkstra, "On the foolishness of 'natural language programming'" >(http://www.cs.utexas.edu/users/EWD/transcriptions/EWD06xx/EWD667.html) > > >>Hi, I'm intersted in replacing only wrong trials in a block. The block >>is setted to chose trials randomly (without replacement). My goal is >>to have the same number of correct trials for each condition, since >>I'm also collecting EEG data and it would be better for comparisons of >>the electrophysiological data to have the same number of epochs. I'm >>collecting reaction time data from all of the 10 hand fingers, and >>it's already known (from previous experiments we've made) that the >>probability of wrong responses are different for each finger. Is there >>an easy way to do it? A hard one would be usefull as well, but my >>programming skills are (very) limmited. >> >>I deeply appreciate your help, >> >>Marina -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 10 21:50:09 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 10 Jun 2010 17:50:09 -0400 Subject: recording mouse movements In-Reply-To: Message-ID: Oh, I should mention that PST has an example TrackMouseCoordinates program on their web site that you may find useful to look at. (And then I must warn you, as I did in another post today, that in general PST programmers are pretty sloppy, so do not take their example programs as models of proper programming practice. Instead, take them only as rough examples of particular features and then abstract the useful parts and recode it properly for yourself.) -- David McFarlane, Professional Faultfinder At 6/10/2010 04:41 PM Thursday, you wrote: >Great ideas! Thank you for your help! > > > >On Thu, Jun 10, 2010 at 10:11 PM, David McFarlane ><mcfarla9 at msu.edu> wrote: >Once you get the mouse coordinates (following Ben's sage advice) you >will want to save them somewhere. You can store them directly in >the .edat file using some combination of c.SetAttrib and c.Log (see >the Context topic in the online E-Basic Help), or to any text file >of your choosing using something like Print# (again, see the E-Basic Help). > >Finally, don't overlook PST Web Support at >http://support.pstnet.com/e%2Dprime/support/login.asp >, they like to help out with this sort of thing. > >-- David McFarlane, Professional Faultfinder > > > >At 6/10/2010 11:41 AM Thursday, you wrote: >i think the syntax is Mouse.GetCursorPos (search for that in the >Help file), and you could GetCursorPos every x number of >milliseconds using a loop in an Inline, depending on the temporal >resolution you desire. that would be one, obvious way, though there >may be better ways... > >On Thu, Jun 10, 2010 at 10:09 AM, Ashtyster ><ashtyster at gmail.com> >wrote: >For one of my studies, I would like to record mouse movements (I'm >using a touch pad, but it doesn't make a difference here) over a >certain period of time. No clicks, just the movements. I was wondering >whether it's possible to do it with E-Prime, and if yes - then how? > >I will appreciate any help and advice regarding this issue. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From marina.faveri at gmail.com Fri Jun 11 02:45:07 2010 From: marina.faveri at gmail.com (Marina O) Date: Thu, 10 Jun 2010 19:45:07 -0700 Subject: replacement for wrong trials In-Reply-To: <4c114e50.5577e70a.05b9.2f0bSMTPIN_ADDED@gmr-mx.google.com> Message-ID: That's what I was afraid of... I'm kind of already terrified by the fact that I'll have to program the TTL pulses to neuroscan (wich, as a matter in fact, I already saw that was discussed here). I'm aware of the PST web support, but I've been in contact with them to get the technical manual of the SRBox, and it took almost a month to get it. Is good to know that's ok to share the material I've got with you, I'll post it in a separate subject, so it will be easier for others to find it. After making some tutorials to improve my (at the moment inexistent) programming skills, I'll tell you what's the solution for this kind of issue! Thanks for the tips! Marina On 10 jun, 17:42, David McFarlane wrote: > Oh, the StudyRecall example might also help out here. > > >Marina, > > >Stock reminder: ?1) I do not work for PST. ?2) PST's trained staff > >takes any and all questions at > >http://support.pstnet.com/e%2Dprime/support/login.asp, and they > >strive to respond to all requests in 24-48 hours -- this is pretty > >much their substitute for proper documentation, so make full use of > >it. ?3) If you do get an answer from PST Web Support, please extend > >the courtesy of posting their reply back here for the sake of others. > > >That said, here is my take... > > >So you want to rerun only trials with incorrect responses until the > >subject responds correctly? ?I don't see any way to do that without > >some inline code. ?For examples, look at the CriterionForExit and > >and RerunErrors examples downloadable from the PST web site > >(warning: ?in general PST programmers are pretty sloppy, so do not > >take these as models of proper programming practice, take them only > >as rough exercises to illustrate certain features and then abstract > >from there). > > >-- David McFarlane, Professional Faultfinder > >"When all is said and told, the 'naturalness' with which we use our > >native tongues boils down to the ease with which we can use them for > >making statements the nonsense of which is not obvious." ?-- Edsger > >W. Dijkstra, "On the foolishness of 'natural language programming'" > >(http://www.cs.utexas.edu/users/EWD/transcriptions/EWD06xx/EWD667.html) > > >>Hi, I'm intersted in replacing only wrong trials in a block. The block > >>is setted to chose trials randomly (without replacement). My goal is > >>to have the same number of correct trials for each condition, since > >>I'm also collecting EEG data and it would be better for comparisons of > >>the electrophysiological data to have the same number of epochs. I'm > >>collecting reaction time data from all of the 10 hand fingers, and > >>it's already known (from previous experiments we've made) that the > >>probability of wrong responses are different for each finger. Is there > >>an easy way to do it? A hard one would be usefull as well, but my > >>programming skills are (very) limmited. > > >>I deeply appreciate your help, > > >>Marina -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Fri Jun 11 13:01:50 2010 From: sombrenote at gmail.com (SombreNote) Date: Fri, 11 Jun 2010 06:01:50 -0700 Subject: Easy Multiple Rungroups Question In-Reply-To: <4c114aae.5577e70a.0e73.2da2SMTPIN_ADDED@gmr-mx.google.com> Message-ID: Thank you so much for your replies. So they language they use is "Counterbalance". And this refers to making variations of run-groups with difference lists, orders, or procedures? "But I find the coverage in the Guides rather scant on this topic, which brings us to another issue: In general, PST prefers to provide individualized technical support rather than produce generalized documentation, so you should also take questions like this directly to PST Web Support at http://support.pstnet.com/e%2Dprime/support/login.asp . " This was my first instinct. If it was not for the fact that I have had two tickets posted for a week with no help (or even a comment from their staff), it makes me suspect that I should find help elsewhere. I wish there were more guides. There seems to be so much power in the window where you assign subjects, sessions, groups. etc. I just wish I knew a place where I could learn about it. On Jun 10, 4:27?pm, David McFarlane wrote: > Oh, note that PST also has a Counterbalance example program that you > may download from their site. > > > > >Offhand, I would say you could use the Counterbalance option for > >this. ?With that in mind, you might use "Counterbalance" as a search > >term either here in the Google Group or over at the PST Forum, or > >look in the index of the E-Prime Guides. > > >But I find the coverage in the Guides rather scant on this topic, > >which brings us to another issue: ?In general, PST prefers to > >provide individualized technical support rather than produce > >generalized documentation, so you should also take questions like > >this directly to PST Web Support at > >http://support.pstnet.com/e%2Dprime/support/login.asp. > > >-- David McFarlane, Professional Faultfinder > > >At 6/9/2010 10:03 PM Wednesday, you wrote: > >>In superlab I was able to specify in the same experiment which blocks > >>I wanted to run depended on the rungroup people would pick in the > >>beginning of the experiment. When you have multiple permutations of > >>the same experiment, you can see whey this is important. > > >>My issue with E-Prime is that I know it does much the same thing, but > >>I can not find where it explains how the subject number thing works, > >>and how the session number works. As well as all the other stuff. > > >>Where do I go in the guides or help documentation that gives me what I > >>need to know to get a bunch of variations in the same experiment? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Fri Jun 11 14:58:56 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 11 Jun 2010 10:58:56 -0400 Subject: replacement for wrong trials In-Reply-To: Message-ID: Marina, At 6/10/2010 10:45 PM Thursday, you wrote: >I'm aware of the PST web support, but I've been in contact with them >to get the >technical manual of the SRBox, and it took almost a month to get it. You don't say. This is exactly the sort of issue that started me on a feud with PST in October of last year (2009). I complained to good old Cindy Carper at Web Support (request #18444, if anyone wants the reference) that they removed documentation for the SRBox from the Getting Started Guide for EP2, which as a result would increase my work load as a conscientious, unrecognized, unpaid, but de facto member of the PST support team. Here is her reply in full [note that "forum" there refers to the PST Forum, not the Google Group]: /====================== From Cindy Carper on 10/16/2009 4:52:00 PM David, Please note that the PST Web Support site is PST's primary means of support for E-Prime users. Users who are requesting support should post their questions to the support site in order to communicate with PST technical consultants, as we do not follow the same guidelines for responding to forum posts as we do for the support site (e.g., 24-48 hour response times, responding to all requests, etc.). The forum was created to allow users to share information with each other, not as the primary means for getting support from PST representatives. As such, when purchasing E-Prime, users are instructed to contact the support site first with any questions they may have. If users have questions about setting up an experiment to use the SRBox, our technical consultants will either provide the 1.x documentation as a reference (until the v2.0 documentation is finished), or provide step-by-step instructions and/or samples that will illustrate how to add the SRBox to the experiment. Since the time the SRBox Tutorial was removed from the Getting Started Guide, we have not had any support requests asking for SRBox documentation because the user was not able to locate the information on his own. Note, also, that when users purchase the SRBox, our Sales department directs them to the SRBox page of our website, which includes information on the SRBox and the SRBox Utilities experiment for reference. If you are finding that there are many users on the forum who are asking these types of questions about the SRBox, and you would like to respond to them, you can certainly suggest that they contact PST Web Support to speak with one of our technical consultants, as we are always happy to answer any questions our users have about either version of E-Prime. I hope this helps clarify things a bit. Let me know if you have any further questions. Sincerely, Cindy \====================== PST makes a great product, but they run a lousy company. -- David McFarlane, Professional Faultfinder "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." (Richard Feynman, Nobel prize-winning physicist) -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mpaffel at gmail.com Fri Jun 11 16:02:46 2010 From: mpaffel at gmail.com (Matt Paffel) Date: Fri, 11 Jun 2010 09:02:46 -0700 Subject: increasing/decreasing percentage - pie chart/ circular graph In-Reply-To: <5a8f21bf-569a-40ac-896f-aab0880334e7@k39g2000yqb.googlegroups.com> Message-ID: Here's an update on the script which allows the participant to go between 0 and 100 and vice versa: If (mySlide.resp = 1) Then ' decrease pie slice If c.GetAttrib("CurrentPerc") > 0 Then c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) - 1 Else c.SetAttrib "CurrentPerc", CInt(100) End If c.SetAttrib "myPicture", _ "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" goto Label1 ElseIf (mySlide.resp = 2) Then ' increase pie slice If c.GetAttrib("CurrentPerc") < 100 Then c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) + 1 Else c.SetAttrib "CurrentPerc", CInt(0) End If c.SetAttrib "myPicture", _ "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" goto Label1 End If Also, if anyone knows how i could get the program to start at say, 50% on each trial I woudl greatly appreciate your help. On Jun 9, 3:46?pm, Matt Paffel wrote: > from PST: > > Since you're keeping your bmps with pie slices in a folder called pie, > you need to add this layer of the path to the image files into the > code. The new code should look like this (all I did was change > c.SetAttrib "myPicture", "pie" & cstr(c.GetAttrib("CurrentPerc")) & > ".bmp" > to > c.SetAttrib "myPicture", "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) > & ".bmp" > ) : > > If (mySlide.resp = 1) Then ' decrease pie slice > If c.GetAttrib("CurrentPerc") > 1 Then _ > c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) - 1 > c.SetAttrib "myPicture", _ > "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" > goto Label1 > ElseIf (mySlide.resp = 2) Then ' increase pie slice > If c.GetAttrib("CurrentPerc") < 100 Then _ > c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) + 1 > c.SetAttrib "myPicture", _ > "pie/pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" > goto Label1 > End If > > You need to add 3 to the Allowable field on mySlide's Duration/Input > tab of the Property Pages or the "3 to confirm" option on your > pictures will not work. > > Thank you again everyone. > > On May 13, 4:43?pm, Matt Paffel wrote: > > > > > Hello...again. Sorry for taking up so much time with this but I?ve > > entered the code and when I generate it, there seems to be no problem, > > the code generates just fine. However, when I try to run the program, > > I keep getting the error message 13, ?type mismatch?. I then put all > > the various 1?s and 2?s in quotation marks which allow me to not only > > generate the code, but also run the program. However, the program does > > not respond to any of the keys pressed, which inevitably leads me to > > have to ctrl, alt, shift out of the program. After looking at it, one > > of my colleagues suggested I place the entire code online for whomever > > to look at and see if they can make it work. I?m not sure of the > > etiquette of this and have opted against doing so but if anyone would > > be willing to take a shot at it I can certainly do so. Does anyone > > have a suggestion of where to go from here? > > > On May 13, 2:04?pm, David McFarlane wrote: > > > > OK, by now you are all sick of this, but I couldn't let that last > > > sample code sit, so as yet another exercise I revised it so that it > > > will use .RESP = 1 for decrease and .RESP = 2 for increase (but as a > > > further exercise, think through what happens if .RESP goes outside > > > that range; of course one could prevent that by proper use of > > > Allowable). ?Note the use of CSng(). ?Remember, you are responsible > > > for catching typos and making your own corrections in any of the free > > > and hastily-produced sample code posted here. > > > > Dim ?currentPerc as Integer, newPerc as Integer > > > If IsNumeric(mySlide.RESP) Then > > > ? ? ?newPerc = currentPerc + (2 * ( CSng(mySlide.RESP) - 1.5 )) > > > ? ? ?If (0 <= newPerc) and (newPerc <= 100) Then > > > ? ? ? ? ?currentPerc = newPerc > > > ? ? ? ? ?c.SetAttrib "myPicture", "pie" & Cstr(newPerc) & ".bmp" > > > ? ? ?End If > > > ? ? ?goto Label1 > > > End if > > > > -- David McFarlane, Professional Faultfinder > > > > At 5/12/2010 03:35 PM Wednesday, David McFarlane wrote: > > > > >Susan, > > > > >Good catch, I obviously missed that when I made & posted my > > > >revisions! Just for the record (and because I am such a pedant) here > > > >are all the code samples again with corrections > > > >made. ?AFAIK E-Basic/Visual Basic is the only language > > > >that has this silly rule about parentheses around Function arguments > > > >but not Sub arguments, which causes much pain for no useful > > > >purpose. ?(For that matter, more rational languages such as C do > > > >away with the useless distinction between functions and subroutines > > > >altogether.) > > > > >First, my base revision of Mich's code (also adding more parentheses > > > >around conditional clauses, and putting tests into numerical order > > > >just because I think it reads better) (and please pay attention to > > > >the underscore "_" that I use at the end of some lines, yet another > > > >silly affectation of Basic)... > > > > >If (mySlide.resp = 1) then ?' decrease pie slice > > > > ? ? If c.GetAttrib("CurrentPerc") > 1 then _ > > > > ? ? ? ? c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) - 1 > > > > ? ? c.SetAttrib "myPicture", _ > > > > ? ? ? ? "pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" > > > > ? ? goto Label1 > > > >ElseIf (mySlide.resp = 2) then ?' increase pie slice > > > > ? ? If c.GetAttrib("CurrentPerc") < 100 then _ > > > > ? ? ? ? c.SetAttrib "CurrentPerc", CInt(c.GetAttrib("CurrentPerc")) + 1 > > > > ? ? c.SetAttrib "myPicture", _ > > > > ? ? ? ? "pie" & cstr(c.GetAttrib("CurrentPerc")) & ".bmp" > > > > ? ? goto Label1 > > > >End If > > > > >Then, my revision using a variable instead of an attribute reference for > > > >CurrentPerc (and this time giving a type to the variable)... > > > > >Dim ?currentPerc as Integer ?' Single would allow fractional changes > > > >If (mySlide.resp = 1) then ?' decrease pie slice > > > > ? ? If (currentPerc > 1) then currentPerc = currentPerc - 1 > > > > ? ? c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > > > ? ? goto Label1 > > > >ElseIf (mySlide.resp = 2) then ?' increase pie slice > > > > ? ? If (currentPerc < 100) then currentPerc = currentPerc + 1 > > > > ? ? c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > > > ? ? goto Label1 > > > >End If > > > > >Then my exercise using Select...Case... > > > > >Dim ?currentPerc as Integer > > > >Select Case mySlide.RESP > > > >Case 1 ?' decrease pie slice > > > > ? ? If (currentPerc > 1) then currentPerc = currentPerc - 1 > > > > ? ? c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > > > ? ? goto Label1 > > > >Case 2 ?' increase pie slice > > > > ? ? If (currentPerc < 100) then currentPerc = currentPerc + 1 > > > > ? ? c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > > > ? ? goto Label1 > > > >End Select > > > > >And finally, Mich reduced it all to (with me now adding the Dim, and > > > >making a correction to his literal constant value)... > > > > >' Assumes .RESP = 1 for decrease, .RESP = 3 for increase, otherwise > > > >' algorithm will fail. > > > >Dim ?currentPerc as Integer > > > >If IsNumeric(mySlide.RESP) then > > > > ? ? If ((currentPerc + cint(mySlide.RESP) - 2) > 0) AND _ > > > > ? ? ? ? ((currentPerc + cint(mySlide.RESP) - 2) < 100) then _ > > > > ? ? ? ? currentPerc = currentPerc + cint(mySlide.RESP)- 2 > > > > ? ? c.SetAttrib "myPicture", "pie" & cstr(currentPerc) & ".bmp" > > > > ? ? goto Label1 > > > >End if > > > > >Note that this all assumes that the Procedure runs until we are done > > > >with pie slices, otherwise we would have to work with a global variable. > > > > >-- David McFarlane, Professional Faultfinder > > > > >>Here's a thought: while c.GetAttrib takes parens, c.SetAttrib does > > > >>not; I believe the general form should be: > > > >>c.SetAttrib "CurrentPerc", "12" > > > >>or whatever. That should fix that particular error. You may also have > > > >>a problem because all attributes are strings, so conversion to integer > > > >>may be necessary in some places. > > > >>HTH, > > > >>Susan > > > >>On May 12, 12:37 pm, Matt Paffel wrote: > > > >>>Arrrgggh!!! > > > > >>>So I've spent the last couple of days trying to place the various code > > > >>>within the experiment. every time i try to do so i get the error > > > >>>messages "SetAttrib is not a property of the object" when i put any of > > > >>>the above script in or "CurrentPerc is not an assignable property of > > > >>>the object" when i try to set CurrentPerc as an attribute, any > > > >>>suggestions? > > > > >-- > > > >You received this message because you are subscribed to the Google > > > >Groups "E-Prime" group. > > > >To post to this group, send email to e-prime at googlegroups.com. > > > >To unsubscribe from this group, send email to > > > >e-prime+unsubscribe at googlegroups.com. > > > >For more options, visit this group at > > > >http://groups.google.com/group/e-prime?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > > To post to this group, send email to e-prime at googlegroups.com. > > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en.-Hidequoted text - > > > > - Show quoted text - > > > -- > > You received this message because you are subscribed to the Google Groups "E-Prime" group. > > To post to this group, send email to e-prime at googlegroups.com. > > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en.-Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mpaffel at gmail.com Fri Jun 11 18:48:46 2010 From: mpaffel at gmail.com (Matt Paffel) Date: Fri, 11 Jun 2010 11:48:46 -0700 Subject: adding and subtracting Message-ID: Hello, Quick question for anyone; I?m looking to perform some basic arithmetic operations within a lottery experiment. There are four values in the lottery 10, 8, 5, and 3 and each value currently contains 10 trials which range from .10, .20, ? to 1.00. On each trial, the value will be either increased or decreased dependent upon which trial is currently operating, e.g. .10 will increase or decrease the value of 10. Thus, after decreasing the value five times, the new value would be 9.50. Is there a way to accomplish this without the use of an inline and if not, can anyone direct me to some script that adds or subtracts? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Fri Jun 11 19:45:56 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Fri, 11 Jun 2010 15:45:56 -0400 Subject: adding and subtracting In-Reply-To: <3fb401f1-40e4-4a28-93b2-9f3eda9f8c5b@i28g2000yqa.googlegro ups.com> Message-ID: Matt, >Quick question for anyone; I?m looking to perform some basic >arithmetic operations within a lottery experiment. There are four >values in the lottery 10, 8, 5, and 3 and each value currently >contains 10 trials which range from .10, .20, ? to 1.00. On each >trial, the value will be either increased or decreased dependent upon >which trial is currently operating, e.g. .10 will increase or decrease >the value of 10. Thus, after decreasing the value five times, the new >value would be 9.50. Is there a way to accomplish this without the use >of an inline and if not Only if you can assign each sequence in advance withouth regard to subject responses. In that case you might just put each possible sequence of values in a List and roll out the chosen sequence as needed. Otherwise, you will need inline code. >, can anyone direct me to some script that adds or subtracts? Not me. Best to take care of that yourself, start studying Chapter 4 of the User Guide that came with E-Prime, you will need some inline code, as well as some global variables defined in the User Script area. Even better, start with an Introduction to Computer Programming class to get some basic computer programming concepts. Good luck, -- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mpaffel at gmail.com Fri Jun 11 20:23:40 2010 From: mpaffel at gmail.com (Matt Paffel) Date: Fri, 11 Jun 2010 13:23:40 -0700 Subject: adding and subtracting In-Reply-To: <4c129277.dfc3e70a.5e46.ffffb083SMTPIN_ADDED@gmr-mx.google.com> Message-ID: thats kind of what i was expecting. so far I've looked through the pages here, the PST user forum, and the VBA for dummies book but I'm unable to find an example of hwo to perform a simple calculation. I'm assuming the variables have to be declared and it would require a cGetAttib and c.SetAttrib If...Then statement. however, being "green" to programming I'm not 100% sure if that's in fact correct. am i on the right track at least? On Jun 11, 2:45?pm, David McFarlane wrote: > Matt, > > >Quick question for anyone; I?m looking to perform some basic > >arithmetic operations within a lottery experiment. There are four > >values in the lottery 10, 8, 5, and 3 and each value currently > >contains 10 trials which range from .10, .20, ? to 1.00. On each > >trial, the value will be either increased or decreased dependent upon > >which trial is currently operating, e.g. .10 will increase or decrease > >the value of 10. Thus, after decreasing the value five times, the new > >value would be 9.50. Is there a way to accomplish this without the use > >of an inline and if not > > Only if you can assign each sequence in advance > withouth regard to subject responses. ?In that > case you might just put each possible sequence of > values in a List and roll out the chosen sequence > as needed. ?Otherwise, you will need inline code. > > >, can anyone direct me to some script that adds or subtracts? > > Not me. ?Best to take care of that yourself, > start studying Chapter 4 of the User Guide that > came with E-Prime, you will need some inline > code, as well as some global variables defined in > the User Script area. ?Even better, start with an > Introduction to Computer Programming class to get > some basic computer programming concepts. > > Good luck, > -- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Sat Jun 12 13:19:18 2010 From: sombrenote at gmail.com (SombreNote) Date: Sat, 12 Jun 2010 06:19:18 -0700 Subject: Obscuring Black Software/Hardware Issue in E-Run Message-ID: I have contacted PST about this issues, and they have not yet had the time to look at it on Friday or the weekend. The phone tech I spoke to really has no idea. All of a sudden I am finding that the display in E-RUN is now being nearly entirely covered but a obscuring black box border with covers all but a little bit of the text in the middle. This happened after a downloaded and ran the counterbalance example; though I doubt it is related. Now every e-prime experiment I run has this problem, EVEN the basic (professional) file generated from New. I talked to tech support online, and they suggested is use your MSCONFIG walkthrough to remove any other programs that might be effecting E-Prime while it E-Runs. I currently have all external programs off, and the issue remains. This also was not even a problem with the same computer a few days ago. I have attached a picture of what it looks like while running Basic(prof) generated new file. http://yfrog.com/eu0611001601aj http://yfrog.com/9h0611001601j I am using windows 7 64 bit. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From pedrofilipecustodio at gmail.com Mon Jun 14 13:50:18 2010 From: pedrofilipecustodio at gmail.com (p_e_t_e) Date: Mon, 14 Jun 2010 06:50:18 -0700 Subject: Error on Inline Message-ID: Hi everyone! I am doing a thesis where I will be recording EEGs during the presentation of some movies. The paradigm is: Documentary part 1 Ad 1 Ad 2 Ad 3 Documentary part 2 Ad 4 Ad 5 Ad 6 ... My question is how do I signal the beginning of each movie? I was told to use InLine with this code: PreStim.OnsetSignalEnabled = True PreStim.OnsetSignalPort = &H378 PreStim.OnsetSignalData = &H01 PreStim.OffsetSignalEnabled = True PreStim.OffsetSignalPort = &H378 PreStim.OffsetSignalData = &H01 But it gives an error saying that left of "." must be an object, structure or dialog. Is there any other way to send a signal identifying the stimulus? Thanks! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Mon Jun 14 15:24:16 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Mon, 14 Jun 2010 16:24:16 +0100 Subject: Error on Inline In-Reply-To: Message-ID: Hi, This code is okay, as long as you have a PreStim object. Just call your stimulusobject (say, the fixation cross or whatever) PreStim, or dump a textdisplay with onset/offset sync disabled and of about 4 ms immediately before the stimulus. That is, onsetsignalenabled-etc sends data (onsetsignaldata) over the parallelport (&H378) at the onset of PreStim. PreStim is just the object (textdisplay, slide, movie, sound, etc) preceding the stimulus (presumably) used by whoever wrote this code. Another possibility is just using the writeport command (found in help). Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of p_e_t_e Sent: 14 June 2010 14:50 To: E-Prime Subject: Error on Inline Hi everyone! I am doing a thesis where I will be recording EEGs during the presentation of some movies. The paradigm is: Documentary part 1 Ad 1 Ad 2 Ad 3 Documentary part 2 Ad 4 Ad 5 Ad 6 ... My question is how do I signal the beginning of each movie? I was told to use InLine with this code: PreStim.OnsetSignalEnabled = True PreStim.OnsetSignalPort = &H378 PreStim.OnsetSignalData = &H01 PreStim.OffsetSignalEnabled = True PreStim.OffsetSignalPort = &H378 PreStim.OffsetSignalData = &H01 But it gives an error saying that left of "." must be an object, structure or dialog. Is there any other way to send a signal identifying the stimulus? Thanks! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Jun 14 18:00:12 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 14 Jun 2010 14:00:12 -0400 Subject: adding and subtracting In-Reply-To: <6714aa44-265e-48b9-8fb0-a044392d0921@k39g2000yqd.googlegro ups.com> Message-ID: Matt, This is not an E-Prime question, this is a general computer programming question. So I repeat my earlier advice -- sign up for an introductory class on computer programming. If you cannot bring yourself to do that, then it is time to hire this work out to someone else. -- David McFarlane, Professional Faultfinder At 6/11/2010 04:23 PM Friday, you wrote: >thats kind of what i was expecting. so far I've looked through the >pages here, the PST user forum, and the VBA for dummies book but I'm >unable to find an example of hwo to perform a simple calculation. I'm >assuming the variables have to be declared and it would require a >cGetAttib and c.SetAttrib If...Then statement. however, being "green" >to programming I'm not 100% sure if that's in fact correct. am i on >the right track at least? > >On Jun 11, 2:45 pm, David McFarlane wrote: > > Matt, > > > > >Quick question for anyone; I?m looking to perform some basic > > >arithmetic operations within a lottery experiment. There are four > > >values in the lottery 10, 8, 5, and 3 and each value currently > > >contains 10 trials which range from .10, .20, ? to 1.00. On each > > >trial, the value will be either increased or decreased dependent upon > > >which trial is currently operating, e.g. .10 will increase or decrease > > >the value of 10. Thus, after decreasing the value five times, the new > > >value would be 9.50. Is there a way to accomplish this without the use > > >of an inline and if not > > > > Only if you can assign each sequence in advance > > withouth regard to subject responses. In that > > case you might just put each possible sequence of > > values in a List and roll out the chosen sequence > > as needed. Otherwise, you will need inline code. > > > > >, can anyone direct me to some script that adds or subtracts? > > > > Not me. Best to take care of that yourself, > > start studying Chapter 4 of the User Guide that > > came with E-Prime, you will need some inline > > code, as well as some global variables defined in > > the User Script area. Even better, start with an > > Introduction to Computer Programming class to get > > some basic computer programming concepts. > > > > Good luck, > > -- David McFarlane, Professional Faultfinder -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Jun 14 18:08:07 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 14 Jun 2010 14:08:07 -0400 Subject: Obscuring Black Software/Hardware Issue in E-Run In-Reply-To: Message-ID: Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours (although current estimates are more like 10 days) -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... 1) Offhand, I would suspect a video driver issue. Did this start after last Tue (8 Jun 2010)? Note that the second Tuesday of the month is when Microsoft releases its monthly updates, and sometimes this breaks things. You might try using System Restore to roll your system back to a configuration before last Tue. 2) Windows 7 64-bit? In that case, all bets are off! If you want to do anything serious with E-Prime, then you have to get a computer that runs good old Windows XP. PST staff should have told you this. -- David McFarlane, Professional Faultfinder "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." (Richard Feynman, Nobel prize-winning physicist) At 6/12/2010 09:19 AM Saturday, you wrote: >I have contacted PST about this issues, and they have not yet had the >time to look at it on Friday or the weekend. The phone tech I spoke to >really has no idea. > >All of a sudden I am finding that the display in E-RUN is now being >nearly entirely covered but a obscuring black box border with covers >all but a little bit of the text in the middle. > >This happened after a downloaded and ran the counterbalance example; >though I doubt it is related. > >Now every e-prime experiment I run has this problem, EVEN the basic >(professional) file generated from New. > >I talked to tech support online, and they suggested is use your >MSCONFIG walkthrough to remove any other programs that might be >effecting E-Prime while it E-Runs. I currently have all external >programs off, and the issue remains. This also was not even a problem >with the same computer a few days ago. > >I have attached a picture of what it looks like while running >Basic(prof) generated new file. > >http://yfrog.com/eu0611001601aj > >http://yfrog.com/9h0611001601j > >I am using windows 7 64 bit. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From grighi at gmail.com Mon Jun 14 21:03:12 2010 From: grighi at gmail.com (grighi) Date: Mon, 14 Jun 2010 14:03:12 -0700 Subject: faulty event duration Message-ID: Hi all i am sorry to bug you with what may be a trivial problem, but i am really not sure how to fix it. I have an experiment programmed in Eprime and running concurrenlty with Tobii Studio, using the tobii studion extensions for Eprime. Note that this paradigm is meant to be used with infants The paradigm is composed of two main parts. In the first part the subject is shown a series of short videos that serve the function of attention getters followed by a slide that contains two faces. Within that slide we have defined a gaze contingent zone, in order to have the infants look at the faces for 10 seconds. This first part all seems to run fine. However some timing problems arise in the second part. In the second part the infant is exposed to 8 trials that have the following structure: a short video is presented to get their attention, followed by a face (a familiarization stimulus) that is set up to be gaze contingent so that all the infants will look at it for the same amount of time. The face is followed by another short video, which is followed by a test trial, which is a slide containing two faces side by side. This slide is up for 5 seconds, and is the followed by another short video. The problem arise on the final slide in each trials which follows this last video and contains two more faces. This slide is set up identically to the one occurring above. However, instead of remaining on the screen for only 5 seconds, which is the time indicated in the settings, it appears to remain on the screen for twice that amount. This appears to be true regardless of the provided durations, such that 2 seconds turn into 4 and so on. Any suggestions on what may be happening? thank you giulia Children's Hospital Boston Laboratories of Cognitive Neuroscience -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Tue Jun 15 12:11:48 2010 From: sombrenote at gmail.com (SombreNote) Date: Tue, 15 Jun 2010 05:11:48 -0700 Subject: Obscuring Black Software/Hardware Issue in E-Run In-Reply-To: <4c16700b.5577e70a.05b9.ffffdd23SMTPIN_ADDED@gmr-mx.google.com> Message-ID: I figured out what the issue was on my own. It was the computer using crossfire mode. once turned off the problem went away. On Jun 14, 2:08?pm, David McFarlane wrote: > Stock reminder: ?1) I do not work for PST. ?2) PST's trained staff > takes any and all questions athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they > strive to respond to all requests in 24-48 hours (although current > estimates are more like 10 days) -- this is pretty much their > substitute for proper documentation, so make full use of it. ?3) If > you do get an answer from PST Web Support, please extend the courtesy > of posting their reply back here for the sake of others. > > That said, here is my take... > > 1) Offhand, I would suspect a video driver issue. ?Did this start > after last Tue (8 Jun 2010)? ?Note that the second Tuesday of the > month is when Microsoft releases its monthly updates, and sometimes > this breaks things. ?You might try using System Restore to roll your > system back to a configuration before last Tue. > > 2) Windows 7 64-bit? ?In that case, all bets are off! ?If you want to > do anything serious with E-Prime, then you have to get a computer > that runs good old Windows XP. ?PST staff should have told you this. > > -- David McFarlane, Professional Faultfinder > "For a successful technology, reality must take precedence over > public relations, for nature cannot be fooled." ?(Richard Feynman, > Nobel prize-winning physicist) > > At 6/12/2010 09:19 AM Saturday, you wrote: > > > > >I have contacted PST about this issues, and they have not yet had the > >time to look at it on Friday or the weekend. The phone tech I spoke to > >really has no idea. > > >All of a sudden I am finding that the display in E-RUN is now being > >nearly entirely covered but a obscuring black box border with covers > >all but a little bit of the text in the middle. > > >This happened after a downloaded and ran the counterbalance example; > >though I doubt it is related. > > >Now every e-prime experiment I run has this problem, EVEN the basic > >(professional) file generated from New. > > >I talked to tech support online, and they suggested is use your > >MSCONFIG walkthrough to remove any other programs that might be > >effecting E-Prime while it E-Runs. I currently have all external > >programs off, and the issue remains. This also was not even a problem > >with the same computer a few days ago. > > >I have attached a picture of what it looks like while running > >Basic(prof) generated new file. > > >http://yfrog.com/eu0611001601aj > > >http://yfrog.com/9h0611001601j > > >I am using windows 7 64 bit. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Tue Jun 15 13:38:42 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 15 Jun 2010 09:38:42 -0400 Subject: Obscuring Black Software/Hardware Issue in E-Run In-Reply-To: <08a36097-85d7-4b2d-bbd1-d70b7482f7df@y11g2000yqm.googlegro ups.com> Message-ID: IOW, it was a video driver issue (ATI Technologies CrossFire (aka CrossFireX) technology, see http://en.wikipedia.org/wiki/ATI_CrossFire ), as I suspected. How did you get that turned on in the first place (and how did you turn it off)? >I figured out what the issue was on my own. > >It was the computer using crossfire mode. once turned off the problem >went away. > >On Jun 14, 2:08 pm, David McFarlane wrote: > > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > > takes any and all questions > athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they > > strive to respond to all requests in 24-48 hours (although current > > estimates are more like 10 days) -- this is pretty much their > > substitute for proper documentation, so make full use of it. 3) If > > you do get an answer from PST Web Support, please extend the courtesy > > of posting their reply back here for the sake of others. > > > > That said, here is my take... > > > > 1) Offhand, I would suspect a video driver issue. Did this start > > after last Tue (8 Jun 2010)? Note that the second Tuesday of the > > month is when Microsoft releases its monthly updates, and sometimes > > this breaks things. You might try using System Restore to roll your > > system back to a configuration before last Tue. > > > > 2) Windows 7 64-bit? In that case, all bets are off! If you want to > > do anything serious with E-Prime, then you have to get a computer > > that runs good old Windows XP. PST staff should have told you this. > > > > -- David McFarlane, Professional Faultfinder > > "For a successful technology, reality must take precedence over > > public relations, for nature cannot be fooled." (Richard Feynman, > > Nobel prize-winning physicist) > > > > At 6/12/2010 09:19 AM Saturday, you wrote: > > > > > > > > >I have contacted PST about this issues, and they have not yet had the > > >time to look at it on Friday or the weekend. The phone tech I spoke to > > >really has no idea. > > > > >All of a sudden I am finding that the display in E-RUN is now being > > >nearly entirely covered but a obscuring black box border with covers > > >all but a little bit of the text in the middle. > > > > >This happened after a downloaded and ran the counterbalance example; > > >though I doubt it is related. > > > > >Now every e-prime experiment I run has this problem, EVEN the basic > > >(professional) file generated from New. > > > > >I talked to tech support online, and they suggested is use your > > >MSCONFIG walkthrough to remove any other programs that might be > > >effecting E-Prime while it E-Runs. I currently have all external > > >programs off, and the issue remains. This also was not even a problem > > >with the same computer a few days ago. > > > > >I have attached a picture of what it looks like while running > > >Basic(prof) generated new file. > > > > >http://yfrog.com/eu0611001601aj > > > > >http://yfrog.com/9h0611001601j > > > > >I am using windows 7 64 bit. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From cmarker1 at gmail.com Tue Jun 15 17:05:24 2010 From: cmarker1 at gmail.com (Craig) Date: Tue, 15 Jun 2010 10:05:24 -0700 Subject: Looming pictures Message-ID: Hello, I am trying to program a task in which there are looming pictures that change depending on the person's response with the joystick. I am currently trying to program an experiment in which pictures are presented on the screen, and participants are required to push or pull a joystick and squeeze the trigger based on the color of the background (e.g., a blue background means push the joystick away). When the joystick is pushed, the image size needs to gradually decrease (to strengthen the feeling that the picture is pushed away). When the joystick is pulled, the image size should increase. I am using E-prime version 2.0. Professional. I found a similar question on the list, but I didn't see an answer. I was wondering whether: 1) anyone has programmed a looming task where pictures get bigger or smaller (I think I need to use the Object Slide, but I am not so sure how to do it) and 2) whether anyone has programmed a task where pressing a joystick in a particular direction and squeezing the trigger causes a picture to change (i.e., how can I collect joystick-movement-data and how I can subsequently use this information to present the next picture.). Thanks so much in advance. Craig -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From grighi at gmail.com Tue Jun 15 18:16:19 2010 From: grighi at gmail.com (grighi) Date: Tue, 15 Jun 2010 11:16:19 -0700 Subject: Eprime output with eye tracking help Message-ID: Hi all i was wondering if anybody could tell me how the eye coordinates are reported in the gazedata file. Mostly i am not sure what the reference is. Are they expressed in pixel locations (although they do no look to be to me)? The reason why i would like to know this is to be able to run some post hoc analysis on specific portions of the stimuli in the screen thanks giulia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Tue Jun 15 19:02:34 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 15 Jun 2010 15:02:34 -0400 Subject: Eprime output with eye tracking help In-Reply-To: Message-ID: Giulia, I do not use such a system, so I have no answers for you. But your question raises a host of other questions in my mind. Isn't this covered in the documentation that came with the system? I mean, it's an *eyetracker*, it's whole purpose is to record & report eye gaze positions, surely the manufacturer would document the measurement units, wouldn't they? Couldn't you get this information directly from the company? -- David McFarlane, Professional Faultfinder >i was wondering if anybody could tell me how the eye coordinates are >reported in the gazedata file. >Mostly i am not sure what the reference is. Are they expressed in >pixel locations (although they do no look to be to me)? > >The reason why i would like to know this is to be able to run some >post hoc analysis on specific portions of the stimuli in the screen > >thanks >giulia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Tue Jun 15 18:58:15 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 15 Jun 2010 14:58:15 -0400 Subject: faulty event duration In-Reply-To: Message-ID: Giulia, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours (although current estimates are more like 10 days) -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... Hmm, that is a new one. Are you sure that you do not have two of those Slides in a row, or end the trial with that Slide and then start the next Trial with the same Slide? That's all I can come up with based on the description. -- David McFarlane, Professional Faultfinder At 6/14/2010 05:03 PM Monday, you wrote: >i am sorry to bug you with what may be a trivial problem, but i am >really not sure how to fix it. > >I have an experiment programmed in Eprime and running concurrenlty >with Tobii Studio, using the tobii studion extensions for Eprime. Note >that this paradigm is meant to be used with infants > >The paradigm is composed of two main parts. In the first part the >subject is shown a series of short videos that serve the function of >attention getters followed by a slide that contains two faces. Within >that slide we have defined a gaze contingent zone, in order to have >the infants look at the faces for 10 seconds. This first part all >seems to run fine. > >However some timing problems arise in the second part. In the second >part the infant is exposed to 8 trials that have the following >structure: a short video is presented to get their attention, followed >by a face (a familiarization stimulus) that is set up to be gaze >contingent so that all the infants will look at it for the same amount >of time. The face is followed by another short video, which is >followed by a test trial, which is a slide containing two faces side >by side. This slide is up for 5 seconds, and is the followed by >another short video. The problem arise on the final slide in each >trials which follows this last video and contains two more faces. This >slide is set up identically to the one occurring above. However, >instead of remaining on the screen for only 5 seconds, which is the >time indicated in the settings, it appears to remain on the screen for >twice that amount. This appears to be true regardless of the provided >durations, such that 2 seconds turn into 4 and so on. > >Any suggestions on what may be happening? > >thank you > >giulia > >Children's Hospital Boston >Laboratories of Cognitive Neuroscience -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From ashtyster at gmail.com Tue Jun 15 19:24:27 2010 From: ashtyster at gmail.com (Ashtyster) Date: Tue, 15 Jun 2010 12:24:27 -0700 Subject: Eprime output with eye tracking help In-Reply-To: Message-ID: Hi Giulia, I've worked with eye-tracking for quite a bit of time. A gaze data file should contain X and Y values (in pixel locations) for both the pupil and corneal reflection. You can check the documentation that came with eye-tracking software for further reference. It's eye-tracking software that creates the dat file with gaze info, not E-Prime. Good luck! -Ashtyster On Jun 15, 8:16?pm, grighi wrote: > Hi all > > i was wondering if anybody could tell me how the eye coordinates are > reported in the gazedata file. > Mostly i am not sure what the reference is. Are they expressed in > pixel locations (although they do no look to be to me)? > > The reason why i would like to know this is to be able to run some > post hoc analysis on specific portions of the stimuli in the screen > > thanks > giulia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From ashtyster at gmail.com Tue Jun 15 19:06:19 2010 From: ashtyster at gmail.com (Ashtyster) Date: Tue, 15 Jun 2010 12:06:19 -0700 Subject: recording mouse movements In-Reply-To: <4c115e13.84c9e70a.6bd5.34d7SMTPIN_ADDED@gmr-mx.google.com> Message-ID: I've been able to make E-Prime record cursor movements. However, after looking at the recorded values, I realized it would be ideal if I could record finger movements on the touch pad directly instead of movements of the cursor on the screen. Does anyone know whether it's possible to do it with E-Prime. I know I should address this question to E-Prime tech support (which I've done already), but maybe somebody has done this before and could give me some tips. Thank you. -Ashtyster On Jun 10, 11:50?pm, David McFarlane wrote: > Oh, I should mention that PST has an example TrackMouseCoordinates > program on their web site that you may find useful to look at. ?(And > then I must warn you, as I did in another post today, that in general > PST programmers are pretty sloppy, so do not take their example > programs as models of proper programming practice. ?Instead, take > them only as rough examples of particular features and then abstract > the useful parts and recode it properly for yourself.) > > -- David McFarlane, Professional Faultfinder > > At 6/10/2010 04:41 PM Thursday, you wrote: > > > > >Great ideas! Thank you for your help! > > >On Thu, Jun 10, 2010 at 10:11 PM, David McFarlane > ><mcfar... at msu.edu> wrote: > >Once you get the mouse coordinates (following Ben's sage advice) you > >will want to save them somewhere. ?You can store them directly in > >the .edat file using some combination of c.SetAttrib and c.Log (see > >the Context topic in the online E-Basic Help), or to any text file > >of your choosing using something like Print# (again, see the E-Basic Help). > > >Finally, ?don't overlook PST Web Support at > >http://support.pstnet.com/e%2Dprime/support/login.asp > >, they like to help out with this sort of thing. > > >-- David McFarlane, Professional Faultfinder > > >At 6/10/2010 11:41 AM Thursday, you wrote: > >i think the syntax is Mouse.GetCursorPos (search for that in the > >Help file), and you could GetCursorPos every x number of > >milliseconds using a loop in an Inline, depending on the temporal > >resolution you desire. ?that would be one, obvious way, though there > >may be better ways... > > >On Thu, Jun 10, 2010 at 10:09 AM, Ashtyster > ><ashtys... at gmail.com> > >wrote: > >For one of my studies, I would like to record mouse movements (I'm > >using a touch pad, but it doesn't make a difference here) over a > >certain period of time. No clicks, just the movements. I was wondering > >whether it's possible to do it with E-Prime, and if yes - then how? > > >I will appreciate any help and advice regarding this issue. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From grighi at gmail.com Tue Jun 15 22:06:08 2010 From: grighi at gmail.com (grighi) Date: Tue, 15 Jun 2010 15:06:08 -0700 Subject: Eprime output with eye tracking help In-Reply-To: <6ae28c21-ae7a-4e25-a60d-3d4fa598be8a@s9g2000yqd.googlegroups.com> Message-ID: Thank you for the replies. Unfortunately the information is very scarce and the format of the coordinates differs between experiments run using Tobii Studio (the eye tracking proprietary software) and Eprime with the extensions. While the tobii studio ones are expressed in pixels values, the eprime ones are express like 0.5557 and so on. thanks giulia On Jun 15, 3:24?pm, Ashtyster wrote: > Hi Giulia, > > I've worked with eye-tracking for quite a bit of time. A gaze data > file should contain X and Y values (in pixel locations) for both the > pupil and corneal reflection. > You can check the documentation that came with eye-tracking software > for further reference. It's eye-tracking software that creates the dat > file with gaze info, not E-Prime. > > Good luck! > > -Ashtyster > > On Jun 15, 8:16?pm, grighi wrote: > > > > > Hi all > > > i was wondering if anybody could tell me how the eye coordinates are > > reported in the gazedata file. > > Mostly i am not sure what the reference is. Are they expressed in > > pixel locations (although they do no look to be to me)? > > > The reason why i would like to know this is to be able to run some > > post hoc analysis on specific portions of the stimuli in the screen > > > thanks > > giulia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Wed Jun 16 10:34:11 2010 From: sombrenote at gmail.com (SombreNote) Date: Wed, 16 Jun 2010 03:34:11 -0700 Subject: Obscuring Black Software/Hardware Issue in E-Run In-Reply-To: <4c178267.dfc3e70a.66b4.40faSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Well, my system has dual radeon 5770 in it. When the computer was setup it was set to be crossfired (crossfirex). E-prime was installed and running fine until one day out of the blue it seems the second stopped rendering the bottom half. I have no idea why this is; i made no changes. So i turned off crossfire and it fixed the issue. It is just annoying i have to turn it on and off now. On Jun 15, 9:38?am, David McFarlane wrote: > IOW, it was a video driver issue (ATI Technologies CrossFire (aka > CrossFireX) technology, seehttp://en.wikipedia.org/wiki/ATI_CrossFire), as I suspected. ?How > did you get that turned on in the first place (and how did you turn it off)? > > > > >I figured out what the issue was on my own. > > >It was the computer using crossfire mode. once turned off the problem > >went away. > > >On Jun 14, 2:08 pm, David McFarlane wrote: > > > Stock reminder: ?1) I do not work for PST. ?2) PST's trained staff > > > takes any and all questions > > athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they > > > strive to respond to all requests in 24-48 hours (although current > > > estimates are more like 10 days) -- this is pretty much their > > > substitute for proper documentation, so make full use of it. ?3) If > > > you do get an answer from PST Web Support, please extend the courtesy > > > of posting their reply back here for the sake of others. > > > > That said, here is my take... > > > > 1) Offhand, I would suspect a video driver issue. ?Did this start > > > after last Tue (8 Jun 2010)? ?Note that the second Tuesday of the > > > month is when Microsoft releases its monthly updates, and sometimes > > > this breaks things. ?You might try using System Restore to roll your > > > system back to a configuration before last Tue. > > > > 2) Windows 7 64-bit? ?In that case, all bets are off! ?If you want to > > > do anything serious with E-Prime, then you have to get a computer > > > that runs good old Windows XP. ?PST staff should have told you this. > > > > -- David McFarlane, Professional Faultfinder > > > "For a successful technology, reality must take precedence over > > > public relations, for nature cannot be fooled." ?(Richard Feynman, > > > Nobel prize-winning physicist) > > > > At 6/12/2010 09:19 AM Saturday, you wrote: > > > > >I have contacted PST about this issues, and they have not yet had the > > > >time to look at it on Friday or the weekend. The phone tech I spoke to > > > >really has no idea. > > > > >All of a sudden I am finding that the display in E-RUN is now being > > > >nearly entirely covered but a obscuring black box border with covers > > > >all but a little bit of the text in the middle. > > > > >This happened after a downloaded and ran the counterbalance example; > > > >though I doubt it is related. > > > > >Now every e-prime experiment I run has this problem, EVEN the basic > > > >(professional) file generated from New. > > > > >I talked to tech support online, and they suggested is use your > > > >MSCONFIG walkthrough to remove any other programs that might be > > > >effecting E-Prime while it E-Runs. I currently have all external > > > >programs off, and the issue remains. This also was not even a problem > > > >with the same computer a few days ago. > > > > >I have attached a picture of what it looks like while running > > > >Basic(prof) generated new file. > > > > >http://yfrog.com/eu0611001601aj > > > > >http://yfrog.com/9h0611001601j > > > > >I am using windows 7 64 bit. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From ashtyster at gmail.com Wed Jun 16 11:19:25 2010 From: ashtyster at gmail.com (Ashtyster) Date: Wed, 16 Jun 2010 04:19:25 -0700 Subject: Eprime output with eye tracking help In-Reply-To: <638682b2-95c7-4744-bd5c-60560b68842b@3g2000vbf.googlegroups.com> Message-ID: Well, I've never used E-Prime's output to look at the eye data. So I have no idea what it looks like. But why do you need to look at E-Prime output anyway, if you use Tobii Studio (which allows you not only to get eye coordinates, but also analyze eye data)? -Ashtyster On 16 Jun, 00:06, grighi wrote: > Thank you for the replies. > > Unfortunately the information is very scarce and the format of the > coordinates differs between experiments run using Tobii Studio (the > eye tracking proprietary software) and Eprime with the extensions. > While the tobii studio ones are expressed in pixels values, the eprime > ones are express like 0.5557 and so on. > > thanks > giulia > > On Jun 15, 3:24?pm, Ashtyster wrote: > > > > > Hi Giulia, > > > I've worked with eye-tracking for quite a bit of time. A gaze data > > file should contain X and Y values (in pixel locations) for both the > > pupil and corneal reflection. > > You can check the documentation that came with eye-tracking software > > for further reference. It's eye-tracking software that creates the dat > > file with gaze info, not E-Prime. > > > Good luck! > > > -Ashtyster > > > On Jun 15, 8:16?pm, grighi wrote: > > > > Hi all > > > > i was wondering if anybody could tell me how the eye coordinates are > > > reported in the gazedata file. > > > Mostly i am not sure what the reference is. Are they expressed in > > > pixel locations (although they do no look to be to me)? > > > > The reason why i would like to know this is to be able to run some > > > post hoc analysis on specific portions of the stimuli in the screen > > > > thanks > > > giulia? Skjul sitert tekst ? > > ? Vis sitert tekst ? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From tobias.fw at gmail.com Wed Jun 16 11:14:33 2010 From: tobias.fw at gmail.com (Tobias) Date: Wed, 16 Jun 2010 04:14:33 -0700 Subject: Draw bitmaps pixel by pixel Message-ID: Hej together, I want to program a random mask for a visual attention experiment. The idea is, that the mask should be randomly created each trial because there are some hints that subjects "learn" to ignore a mask if it is repeatedly used. So what I think of is a white noise or something. Is there a way in E-Prime to create bitmaps pixel by pixel with an inline? Cheers, Tobias -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From baltimore.ben at gmail.com Wed Jun 16 13:56:57 2010 From: baltimore.ben at gmail.com (ben robinson) Date: Wed, 16 Jun 2010 09:56:57 -0400 Subject: Draw bitmaps pixel by pixel In-Reply-To: Message-ID: how about: For y = 1 to 5 For x = 1 to 5 Select Case CInt(Rnd(1)) Case 0 cnvs.SetPixel x, y, CColor("black") Case 1 cnvs.SetPixel x, y, CColor("white") End Select Next x Next y On Wed, Jun 16, 2010 at 7:14 AM, Tobias wrote: > Hej together, > > I want to program a random mask for a visual attention experiment. The > idea is, that the mask should be randomly created each trial because > there are some hints that subjects "learn" to ignore a mask if it is > repeatedly used. So what I think of is a white noise or something. Is > there a way in E-Prime to create bitmaps pixel by pixel with an > inline? > > Cheers, > Tobias > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to > e-prime+unsubscribe at googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/e-prime?hl=en. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From manutd107 at gmail.com Wed Jun 16 14:37:28 2010 From: manutd107 at gmail.com (John) Date: Wed, 16 Jun 2010 07:37:28 -0700 Subject: Forcing a certain outcome Message-ID: First, I apologize if I haven't given enough information to solve this problem. Please let me know if you need more information! I am trying to force an outcome in this game I've designed, but only for the very first trial. Basically I have the program randomly choose a number 0-99 and for that to decide the outcome, but for the first trial I want to make sure that the initial choice and then outcome is always the same. I have created some code that usually leads to the outcome I want, but 1/10 times it seems to not work. More specifically, sometimes both the "actor" and "participant" are gaining points, which I don't want. Instead, I want the "actor" to always gain points and the "participant" to always lose points, but just for the very first trial. After that, I want to use the code I've created to determine the subsequent decisions. My failed solution: instead of allowing the computer to randomly generate a number, I tried to force it to use 0, but only for the first trial. This doesn't seem to work in about 1/10 times for some reason. So in an initial InLine object I state: FirstTrial = true Then in the Procedure I have: If FirstTrial Then c.SetAttrib "ActorValue", "50/50" c.SetAttrib "PartValue", "Bad" took = true End If Then in the general User script I have: Dim FirstTrial as Boolean 'Calculates how much someone's points will change if they took Function PointMod(Value as String, FirstTrial as Boolean) as Integer Randomize Dim percent as Integer percent = Random(0, 99) If FirstTrial Then percent = 0 End If Select Case Value Case "Good" If percent < 85 Then pointMod = 10 Else pointMod = -10 End If Case "Bad" If percent < 85 Then pointMod = -10 Else pointMod = 10 End If Case "50/50" If percent < 50 Then pointMod = 10 Else pointMod = -10 End If End Select End Function -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From grighi at gmail.com Wed Jun 16 14:47:31 2010 From: grighi at gmail.com (grighi) Date: Wed, 16 Jun 2010 07:47:31 -0700 Subject: Eprime output with eye tracking help In-Reply-To: <327f0564-3720-4ecc-9d56-e86dac775294@h13g2000yqm.googlegroups.com> Message-ID: Hi sorry,maybe i was not clear. The experiment is programmed in Eprime and i am using the extension for Tobii in order to record eye movements. Given the structure of the experiment, it actually made a lot more sense to program it in eprime. The save gaze data file, which is somewhat analogous to a tobii studio output is the one that contains the puzzling coordinates. thanks giulia On Jun 16, 7:19?am, Ashtyster wrote: > Well, I've never used E-Prime's output to look at the eye data. So I > have no idea what it looks like. > > But why do you need to look at E-Prime output anyway, if you use Tobii > Studio (which allows you not only to get eye coordinates, but also > analyze eye data)? > > -Ashtyster > > On 16 Jun, 00:06, grighi wrote: > > > > > Thank you for the replies. > > > Unfortunately the information is very scarce and the format of the > > coordinates differs between experiments run using Tobii Studio (the > > eye tracking proprietary software) and Eprime with the extensions. > > While the tobii studio ones are expressed in pixels values, the eprime > > ones are express like 0.5557 and so on. > > > thanks > > giulia > > > On Jun 15, 3:24?pm, Ashtyster wrote: > > > > Hi Giulia, > > > > I've worked with eye-tracking for quite a bit of time. A gaze data > > > file should contain X and Y values (in pixel locations) for both the > > > pupil and corneal reflection. > > > You can check the documentation that came with eye-tracking software > > > for further reference. It's eye-tracking software that creates the dat > > > file with gaze info, not E-Prime. > > > > Good luck! > > > > -Ashtyster > > > > On Jun 15, 8:16?pm, grighi wrote: > > > > > Hi all > > > > > i was wondering if anybody could tell me how the eye coordinates are > > > > reported in the gazedata file. > > > > Mostly i am not sure what the reference is. Are they expressed in > > > > pixel locations (although they do no look to be to me)? > > > > > The reason why i would like to know this is to be able to run some > > > > post hoc analysis on specific portions of the stimuli in the screen > > > > > thanks > > > > giulia? Skjul sitert tekst ? > > > ? Vis sitert tekst ? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From giladsabo at gmail.com Wed Jun 16 15:44:55 2010 From: giladsabo at gmail.com (gilis) Date: Wed, 16 Jun 2010 08:44:55 -0700 Subject: Problem with collecting voice response Message-ID: In my experiment prticipants have to respond to stimuli both with mouse click and voice response, there is no importance to what come first (mouse click or voice response) but the program excpecting two responses (manual and vocal) in each trial. If on click the mouse more than once, then the program will collcet only his or her first response and regardless if he/she continue clicking the mouse, the next trial will start only after he/she will also give vocal response. And vice versa, the same goes in case when the vocal response came first. To make this, I wrote these three inlines: 'This inline is the first and main inline, it checks what was the first response in the trial, collect it and then go to the device yet not was used (i.e., mouse or SRB). Dim theResponseObject As RteRunnableInputObject Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("Stimuli")) 'If the assert below fires, then the object named in the line above does not exist Debug.Assert Not theResponseObject Is Nothing Dim nIndex AS Integer For nIndex = 1 To theResponseObject.InputMasks.Responses.Count 'Access the response and check to see if it is a mouse response. Dim theSRBoxData As SRboxResponseData Set theSRBoxData = CSRBoxResponseData (theResponseObject.InputMasks.Responses(1)) If Not theSRBoxData Is Nothing Then c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP Goto MouseLabel End If 'Access the response and check to see if it is a mouse response. Dim theMouseResponseData As MouseResponseData Set theMouseResponseData = CMouseResponseData(theResponseObject.InputMasks.Responses(1)) If Not theMouseResponseData Is Nothing Then c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP Goto SRBoxLabel End If NEXT nIndex 'These are the second and the third inlines: 'If in the first inline, the SRBox Data was not nothing then collect the mouse response now: Dim theResponseObject As RteRunnableInputObject Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("MouseStimuli")) 'If the assert below fires, then the object named in the line above does not exist Debug.Assert Not theResponseObject Is Nothing Dim nIndex as Integer Dim theMouseResponseData As MouseResponseData Set theMouseResponseData = CMouseResponseData(theResponseObject.InputMasks.Responses(1)) If Not theMouseResponseData Is Nothing Then 'Log reaction time and response for each mouse click. c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP End If 'The third inline do the same as the second inline, but for the SRBox: Dim theResponseObject As RteRunnableInputObject Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("SRBoxStimuli")) 'If the assert below fires, then the object named in the line above does not exist Debug.Assert Not theResponseObject Is Nothing Dim theSRBoxData As SRboxResponseData Set theSRBoxData = CSRBoxResponseData(theResponseObject.InputMasks.Responses(1)) If Not theSRBoxData Is Nothing Then c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP End if Now, in when I used keyboard input instead of SRB, it worked fine. But now I get strange bug: Everything works well aside for trials where the participant first respond vocally-in this case the following mouse click is considered as the first response and then the program wait to another vocal response and the next trial start only after it's given. I understand where the problem is, would appreciate your help. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Wed Jun 16 16:38:23 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Wed, 16 Jun 2010 17:38:23 +0100 Subject: Draw bitmaps pixel by pixel In-Reply-To: Message-ID: That's better than mine - but I think my comments on issues of timing, need for pre-writing canvas, &c., might still be useful. Cheers, Mich Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of ben robinson Sent: 16 June 2010 14:57 To: e-prime at googlegroups.com Subject: Re: Draw bitmaps pixel by pixel how about: For y = 1 to 5 For x = 1 to 5 Select Case CInt(Rnd(1)) Case 0 cnvs.SetPixel x, y, CColor("black") Case 1 cnvs.SetPixel x, y, CColor("white") End Select Next x Next y On Wed, Jun 16, 2010 at 7:14 AM, Tobias wrote: Hej together, I want to program a random mask for a visual attention experiment. The idea is, that the mask should be randomly created each trial because there are some hints that subjects "learn" to ignore a mask if it is repeatedly used. So what I think of is a white noise or something. Is there a way in E-Prime to create bitmaps pixel by pixel with an inline? Cheers, Tobias -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com . For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michiel.Spape at nottingham.ac.uk Wed Jun 16 16:36:17 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Wed, 16 Jun 2010 17:36:17 +0100 Subject: Draw bitmaps pixel by pixel In-Reply-To: Message-ID: Hi, Drawing things pixel by pixel is quite easily implemented, given you know enough about programming (I seem to remember you do) - drawing bmp's pixel for pixel is more difficult, I expect (since A: you'd have to randomise pixels B: fill a file with it, then C: draw the file, whereas just doing the whole randomising in canvas saves step B and C). I think I even have something: Dim canvasmask as Mask Dim cnvs as Canvas Sub buildMask (masksize as integer, nCircles as integer, circlesize as integer) dim functiondur as long functiondur = clock.read dim cCircle as integer dim onetothree as integer dim ppoint as point for cCircle = 1 to nCircles onetothree = random (1,3) if onetothree = 1 then cnvsmask.FillColor = CColor("black") if onetothree = 2 then cnvsmask.FillColor = CColor("white") if onetothree = 3 then cnvsmask.FillColor = CColor("gray") cnvsmask.Circle random (display.xres / 2 - masksize / 2, display.xres / 2 + masksize / 2), random (display.yres / 2 - masksize / 2, display.yres / 2 + masksize / 2), circlesize / 2 next cCircle debug.print "Mask took " & (clock.read - functiondur) & " ms to build" End Sub Sub drawmask (masksize as integer) dim midrect as rect midRect.Left = display.xres / 2 - masksize/2 midRect.Right = display.xres / 2 + masksize/2 midRect.Top = display.yres / 2 - masksize/2 midRect.Bottom = display.yres / 2 + masksize /2 cnvs.copy cnvsmask, midrect, midrect End Sub ... I think that should work. Anyway, dump the whole thing into your userscript, then use the following in an inline to A: build the mask (might take some time, hence the debugging script), B: show the mask (it's useful to do this separately for timing issues) 'probably do this at the beginning of the trial buildMask 100, 50, 10 'draws 50 circles of size 10 in a mask of size 100 (all pixels) 'do this when you want to show stuff Display.waitforverticalblank 'for sync issues, not sure about exact syntax. Drawmask 100 ...of course, my code here was mainly written (and subsequently abolished) for shape-based (circle) masking. More effective code can be written if you just want to do pixel-by-pixel colouring. I imagine you get the picture. Cheers, Mich Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Tobias Sent: 16 June 2010 12:15 To: E-Prime Subject: Draw bitmaps pixel by pixel Hej together, I want to program a random mask for a visual attention experiment. The idea is, that the mask should be randomly created each trial because there are some hints that subjects "learn" to ignore a mask if it is repeatedly used. So what I think of is a white noise or something. Is there a way in E-Prime to create bitmaps pixel by pixel with an inline? Cheers, Tobias -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Wed Jun 16 16:44:30 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Wed, 16 Jun 2010 17:44:30 +0100 Subject: Eprime output with eye tracking help In-Reply-To: <327f0564-3720-4ecc-9d56-e86dac775294@h13g2000yqm.googlegroups.com> Message-ID: Hi, It's a Tobii, yes? The values between 0 and 1 (reported as XY coordinates) are a function of the screen: 0 is left (pixel 1), 1 is right (pixel 640 in 640x480 resolution). This is all thoroughly explained in the documentation. Tobii Extensions for E-Prime also give you, by default, the pixel coordinates themselves; I don't know why you chose not to record these. Anyway, my suggestion: open a BIG .gazedata file in Excel, look at the column variables, put the manual next to it, and see what it means. Personally, I'd suggest learning Matlab to analyse the data, though I know people who have successfully used Excel, SPSS and even BrainVisionAnalyzer instead. Let us know how you get on with this! Best, Mich Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Ashtyster Sent: 16 June 2010 12:19 To: E-Prime Subject: Re: Eprime output with eye tracking help Well, I've never used E-Prime's output to look at the eye data. So I have no idea what it looks like. But why do you need to look at E-Prime output anyway, if you use Tobii Studio (which allows you not only to get eye coordinates, but also analyze eye data)? -Ashtyster On 16 Jun, 00:06, grighi wrote: > Thank you for the replies. > > Unfortunately the information is very scarce and the format of the > coordinates differs between experiments run using Tobii Studio (the > eye tracking proprietary software) and Eprime with the extensions. > While the tobii studio ones are expressed in pixels values, the eprime > ones are express like 0.5557 and so on. > > thanks > giulia > > On Jun 15, 3:24?pm, Ashtyster wrote: > > > > > Hi Giulia, > > > I've worked with eye-tracking for quite a bit of time. A gaze data > > file should contain X and Y values (in pixel locations) for both the > > pupil and corneal reflection. > > You can check the documentation that came with eye-tracking software > > for further reference. It's eye-tracking software that creates the dat > > file with gaze info, not E-Prime. > > > Good luck! > > > -Ashtyster > > > On Jun 15, 8:16?pm, grighi wrote: > > > > Hi all > > > > i was wondering if anybody could tell me how the eye coordinates are > > > reported in the gazedata file. > > > Mostly i am not sure what the reference is. Are they expressed in > > > pixel locations (although they do no look to be to me)? > > > > The reason why i would like to know this is to be able to run some > > > post hoc analysis on specific portions of the stimuli in the screen > > > > thanks > > > giulia- Skjul sitert tekst - > > - Vis sitert tekst - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From manutd107 at gmail.com Wed Jun 16 17:15:42 2010 From: manutd107 at gmail.com (John) Date: Wed, 16 Jun 2010 10:15:42 -0700 Subject: Forcing a certain outcome In-Reply-To: <48e3ce30-ecb2-42c5-b6be-ed51ca0bfc80@i31g2000yqm.googlegroups.com> Message-ID: I think I narrowed down the problem. I declared this in an initial InLine object (outside of the trial loop): FirstTrial = true Then I negated that in an InLine object within the loop: FirstTrial = false It seems that negating it within the loop lead the program to ignore my If statement, but only for issuing the outcome of the trial. The code: If FirstTrial Then c.SetAttrib "ActorValue", "50/50" c.SetAttrib "PartValue", "Bad" took = true End If always seemed to be read though (it does come before the FirstTrial = false statement though). After reading this, does anyone have any idea what I'm talking about? I think that my design may be too complicated to communicate on the forum! On Jun 16, 10:37?am, John wrote: > First, I apologize if I haven't given enough information to solve this > problem. Please let me know if you need more information! > > I am trying to force an outcome in this game I've designed, but only > for the very first trial. > > Basically I have the program randomly choose a number 0-99 and for > that to decide the outcome, but for the first trial I want to make > sure that the initial choice and then outcome is always the same. I > have created some code that usually leads to the outcome I want, but > 1/10 times it seems to not work. > > More specifically, sometimes both the "actor" and "participant" are > gaining points, which I don't want. Instead, I want the "actor" to > always gain points and the "participant" to always lose points, but > just for the very first trial. After that, I want to use the code I've > created to determine the subsequent decisions. > > My failed solution: instead of allowing the computer to randomly > generate a number, I tried to force it to use 0, but only for the > first trial. This doesn't seem to work in about 1/10 times for some > reason. > > So in an initial InLine object I state: > > FirstTrial = true > > Then in the Procedure I have: > > If FirstTrial Then > c.SetAttrib "ActorValue", "50/50" > c.SetAttrib "PartValue", "Bad" > took = true > End If > > Then in the general User script I have: > > Dim FirstTrial as Boolean > 'Calculates how much someone's points will change if they took > Function PointMod(Value as String, FirstTrial as Boolean) as Integer > Randomize > Dim percent as Integer > percent = Random(0, 99) > If FirstTrial Then > ? ? ? ? percent = 0 > End If > Select Case Value > ? ? ? ? Case "Good" > ? ? ? ? ? ? ? ? If percent < 85 Then > ? ? ? ? ? ? ? ? ? ? ? ? pointMod = 10 > ? ? ? ? ? ? ? ? Else > ? ? ? ? ? ? ? ? ? ? ? ? pointMod = -10 > ? ? ? ? ? ? ? ? End If > ? ? ? ? Case "Bad" > ? ? ? ? ? ? ? ? If percent < 85 Then > ? ? ? ? ? ? ? ? ? ? ? ? pointMod = -10 > ? ? ? ? ? ? ? ? Else > ? ? ? ? ? ? ? ? ? ? ? ? pointMod = 10 > ? ? ? ? ? ? ? ? End If > ? ? ? ? Case "50/50" > ? ? ? ? ? ? ? ? If percent < 50 Then > ? ? ? ? ? ? ? ? ? ? ? ? pointMod = 10 > ? ? ? ? ? ? ? ? Else > ? ? ? ? ? ? ? ? ? ? ? ? pointMod = -10 > ? ? ? ? ? ? ? ? End If > End Select > End Function -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From tobias.fw at gmail.com Thu Jun 17 09:49:42 2010 From: tobias.fw at gmail.com (Tobias) Date: Thu, 17 Jun 2010 02:49:42 -0700 Subject: Draw bitmaps pixel by pixel In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF03766B49@VUIEXCHC.ad.nottingham.ac.uk> Message-ID: Thanks a lot for your detailed help. I am wondering how to implement that code in my program. For now, I have a line calling for a certain mask (which is always the same): if c.getattrib("TargPos") = (i-1) then CueDisplay_SlideImage.Filename = "mask.bmp" So instead of this mask.bmp I would have need of the randomly generated bitmap. I am not quite sure how to implement your code at this place. Thanks a lot in advance, Tobias On Jun 16, 6:36?pm, Michiel Spape wrote: > Hi, > Drawing things pixel by pixel is quite easily implemented, given you know enough about programming (I seem to remember you do) - drawing bmp's pixel for pixel is more difficult, I expect (since A: you'd have to randomise pixels B: fill a file with it, then C: draw the file, whereas just doing the whole randomising in canvas saves step B and C). I think I even have something: > > Dim canvasmask as Mask > Dim cnvs as Canvas > > Sub buildMask (masksize as integer, nCircles as integer, circlesize as integer) > ? ? ? ? dim functiondur as long > ? ? ? ? functiondur = clock.read > ? ? ? ? dim cCircle as integer > ? ? ? ? dim onetothree as integer > ? ? ? ? dim ppoint as point > ? ? ? ? for cCircle = 1 to nCircles > ? ? ? ? ? ? ? ? onetothree = random (1,3) > ? ? ? ? ? ? ? ? if onetothree = 1 then cnvsmask.FillColor = CColor("black") ? > ? ? ? ? ? ? ? ? if onetothree = 2 then cnvsmask.FillColor = CColor("white") ? > ? ? ? ? ? ? ? ? if onetothree = 3 then cnvsmask.FillColor = CColor("gray") ? ? > ? ? ? ? ? ? ? ? cnvsmask.Circle random (display.xres / 2 - masksize / 2, display.xres / 2 + masksize / 2), random (display.yres / 2 - masksize / 2, display.yres / 2 + masksize / 2), circlesize / 2 > ? ? ? ? next cCircle > ? ? ? ? debug.print "Mask took " & (clock.read - functiondur) & " ms to build" > End Sub > > Sub drawmask (masksize as integer) > ? ? ? ? dim midrect as rect > ? ? ? ? midRect.Left = display.xres / 2 - masksize/2 > ? ? ? ? midRect.Right = display.xres / 2 + masksize/2 > ? ? ? ? midRect.Top = display.yres / 2 - masksize/2 > ? ? ? ? midRect.Bottom = display.yres / 2 + masksize /2 > ? ? ? ? cnvs.copy cnvsmask, midrect, midrect > End Sub > > ... I think that should work. Anyway, dump the whole thing into your userscript, then use the following in an inline to A: build the mask (might take some time, hence the debugging script), B: show the mask (it's useful to do this separately for timing issues) > > 'probably do this at the beginning of the trial > buildMask 100, 50, 10 'draws 50 circles of size 10 in a mask of size 100 (all pixels) > > 'do this when you want to show stuff > Display.waitforverticalblank 'for sync issues, not sure about exact syntax. > Drawmask 100 > > ...of course, my code here was mainly written (and subsequently abolished) for shape-based (circle) masking. More effective code can be written if you just want to do pixel-by-pixel colouring. I imagine you get the picture. > > Cheers, > Mich > > Michiel Spap? > Research Fellow > Perception & Action group > University of Nottingham > School of Psychology > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Tobias > Sent: 16 June 2010 12:15 > To: E-Prime > Subject: Draw bitmaps pixel by pixel > > Hej together, > > I want to program a random mask for a visual attention experiment. The > idea is, that the mask should be randomly created each trial because > there are some hints that subjects "learn" to ignore a mask if it is > repeatedly used. So what I think of is a white noise or something. Is > there a way in E-Prime to create bitmaps pixel by pixel with an > inline? > > Cheers, > Tobias > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Thu Jun 17 10:35:46 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Thu, 17 Jun 2010 11:35:46 +0100 Subject: Draw bitmaps pixel by pixel In-Reply-To: Message-ID: Hi Tobias, I'm sorry, but if you want to accomplish advanced things in programming, you'll often have to abandon your previous - perfectly okay - code. As said, I'm quite sure you might achieve writing a BMP file to disk, of a random mask, within E-Prime, then later using that, but I'm unsure of the specifics regarding BMPs. I do find it unlikely you'll end up writing fewer code than my suggestion. Anyway, having a little bit more time, I found a few bugs in my code and here's a step-by-step implementation guide. 1. Start with A NEW EXPERIMENT. After finishing all steps, you should be able to integrate the code within your existing experiment, but do that afterwards - for now, start from a clean slate. 2. Enter a text display at the beginning of the (only) procedure, make it infinitely long in duration and add keyboard response. 3. Enter one inline object after this text display. 4. Go to the user script (alt+5, user tab) and write the following: Dim cnvsmask as Canvas Dim cnvs as Canvas Sub buildMask (masksize as integer, nCircles as integer, circlesize as integer) dim functiondur as long functiondur = clock.read dim cCircle as integer cnvsmask.FillColor = CColor("black") dim onetothree as integer dim ppoint as point for cCircle = 1 to nCircles onetothree = random (1,3) 'Apologies to David for writing a really ugly if-statement! if onetothree = 1 then cnvsmask.FillColor = CColor("black") if onetothree = 2 then cnvsmask.FillColor = CColor("white") if onetothree = 3 then cnvsmask.FillColor = CColor("gray") cnvsmask.Circle random (display.xres / 2 - masksize / 2, display.xres / 2 + masksize / 2), random (display.yres / 2 - masksize / 2, display.yres / 2 + masksize / 2), circlesize / 2 next cCircle debug.print "Mask took " & (clock.read - functiondur) & " ms to build" End Sub Sub drawmask (masksize as integer) dim midrect as rect midRect.Left = display.xres / 2 - masksize/2 midRect.Right = display.xres / 2 + masksize/2 midRect.Top = display.yres / 2 - masksize/2 midRect.Bottom = display.yres / 2 + masksize /2 cnvs.copy cnvsmask, midrect, midrect End Sub 5. Go to the one inline you inserted after the textdisplay and write the following: Set cnvs = Display.Canvas 'sets canvas to active canvas (i.e. what you write to it will be shown on the screen) Set cnvsmask = Display.CreateCanvas() 'sets the canvas mask as a secondary canvas (i.e. what you write to it will only be shown to the screen after copying it to cnvs) buildMask 100, 50, 10 'builds a mask of size 100 with 50 circles of size 10. Try 1000 circles as well and see what it does to your timing! Display.waitforverticalblank 'to avoid syncing problems Drawmask 100 'draws the mask of size 100 sleep 1000 'keeps the mask 1000 ms on the screen 6. Also, read my comments above. I've just tested all this and works fine. ... finally, once you get all the above, getting the above to run within your programme will merely make your line: if c.getattrib("TargPos") = (i-1) then CueDisplay_SlideImage.Filename = "mask.bmp" into if c.getattrib("TargPos") = (i-1) then Display.waitforverticalblank drawmask 100 end if PROVIDED the mask is already built, of course. Cheers, Mich Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Tobias Sent: 17 June 2010 10:50 To: E-Prime Subject: Re: Draw bitmaps pixel by pixel Thanks a lot for your detailed help. I am wondering how to implement that code in my program. For now, I have a line calling for a certain mask (which is always the same): if c.getattrib("TargPos") = (i-1) then CueDisplay_SlideImage.Filename = "mask.bmp" So instead of this mask.bmp I would have need of the randomly generated bitmap. I am not quite sure how to implement your code at this place. Thanks a lot in advance, Tobias On Jun 16, 6:36?pm, Michiel Spape wrote: > Hi, > Drawing things pixel by pixel is quite easily implemented, given you know enough about programming (I seem to remember you do) - drawing bmp's pixel for pixel is more difficult, I expect (since A: you'd have to randomise pixels B: fill a file with it, then C: draw the file, whereas just doing the whole randomising in canvas saves step B and C). I think I even have something: > > Dim canvasmask as Mask > Dim cnvs as Canvas > > Sub buildMask (masksize as integer, nCircles as integer, circlesize as integer) > ? ? ? ? dim functiondur as long > ? ? ? ? functiondur = clock.read > ? ? ? ? dim cCircle as integer > ? ? ? ? dim onetothree as integer > ? ? ? ? dim ppoint as point > ? ? ? ? for cCircle = 1 to nCircles > ? ? ? ? ? ? ? ? onetothree = random (1,3) > ? ? ? ? ? ? ? ? if onetothree = 1 then cnvsmask.FillColor = CColor("black") ? > ? ? ? ? ? ? ? ? if onetothree = 2 then cnvsmask.FillColor = CColor("white") ? > ? ? ? ? ? ? ? ? if onetothree = 3 then cnvsmask.FillColor = CColor("gray") ? ? > ? ? ? ? ? ? ? ? cnvsmask.Circle random (display.xres / 2 - masksize / 2, display.xres / 2 + masksize / 2), random (display.yres / 2 - masksize / 2, display.yres / 2 + masksize / 2), circlesize / 2 > ? ? ? ? next cCircle > ? ? ? ? debug.print "Mask took " & (clock.read - functiondur) & " ms to build" > End Sub > > Sub drawmask (masksize as integer) > ? ? ? ? dim midrect as rect > ? ? ? ? midRect.Left = display.xres / 2 - masksize/2 > ? ? ? ? midRect.Right = display.xres / 2 + masksize/2 > ? ? ? ? midRect.Top = display.yres / 2 - masksize/2 > ? ? ? ? midRect.Bottom = display.yres / 2 + masksize /2 > ? ? ? ? cnvs.copy cnvsmask, midrect, midrect > End Sub > > ... I think that should work. Anyway, dump the whole thing into your userscript, then use the following in an inline to A: build the mask (might take some time, hence the debugging script), B: show the mask (it's useful to do this separately for timing issues) > > 'probably do this at the beginning of the trial > buildMask 100, 50, 10 'draws 50 circles of size 10 in a mask of size 100 (all pixels) > > 'do this when you want to show stuff > Display.waitforverticalblank 'for sync issues, not sure about exact syntax. > Drawmask 100 > > ...of course, my code here was mainly written (and subsequently abolished) for shape-based (circle) masking. More effective code can be written if you just want to do pixel-by-pixel colouring. I imagine you get the picture. > > Cheers, > Mich > > Michiel Spap? > Research Fellow > Perception & Action group > University of Nottingham > School of Psychology > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Tobias > Sent: 16 June 2010 12:15 > To: E-Prime > Subject: Draw bitmaps pixel by pixel > > Hej together, > > I want to program a random mask for a visual attention experiment. The > idea is, that the mask should be randomly created each trial because > there are some hints that subjects "learn" to ignore a mask if it is > repeatedly used. So what I think of is a white noise or something. Is > there a way in E-Prime to create bitmaps pixel by pixel with an > inline? > > Cheers, > Tobias > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From giladsabo at gmail.com Thu Jun 17 10:55:25 2010 From: giladsabo at gmail.com (gilis) Date: Thu, 17 Jun 2010 03:55:25 -0700 Subject: Looming pictures In-Reply-To: Message-ID: Never tried to do something like this, but it seems that if the picture size is increasing or decreasing in constant rate for each pull, then you have to build set of stimuli with the different possible sizes (a lot of work, there is possibly much easier way if you have the time and knowledge to program it all into inline that change the size of given pictures in accordance with its present size and the direction in which the joystick was pulled) for each picture. Then, you name each stimulus x as x&"y", with y representing number in a given direction. Say that if subject pull the joystick six times in one direction then y=6 and the size of the stimulus is corresponding to that. Y=0 stand for the stimuli initial size and numbers preceded by "-", for instance, represent the number of pullings in the opposite dierction.Then, if the subject pulled the joystick in the positive numbers direction three times (y=3) and then in the following trial pulled it in the negative numbers direction you set the Y attrbiute to Y-1, or to Y+1 in the opposite case. You always have to update your programe after each trial what is the value of Y. You do that by setting an attribute called y (c.setattrib "Y", 0+z), with z dimmed as integer. You have to tell your computer that z=1 in case of pulling in one direction and -1 in the other direction. It's only on the surface of the things, and it may be that I'm over simplfying them, but I think this is a start. Rgds Gilis On Jun 15, 8:05?pm, Craig wrote: > Hello, > ?I am trying to program a task in which there are looming pictures > that change depending on the person's response with the joystick. ?I > am currently trying to program an experiment in which pictures are > presented on the screen, and participants are required to push or pull > a joystick and squeeze the trigger based on the color of the > background (e.g., a blue background means push the joystick away). > When the joystick is pushed, the image size needs to gradually > decrease (to strengthen the feeling that the picture is pushed > away). When the joystick is pulled, the image size should increase. > > I am using E-prime version 2.0. Professional. ?I found a similar > question on the list, but I didn't see an answer. > > I was wondering whether: > 1) anyone has programmed a looming task where pictures get bigger or > smaller (I think I need to use the Object Slide, but I am not so sure > how to do it) > and > 2) whether anyone has programmed a task where pressing a joystick in a > particular direction and squeezing the trigger causes a picture to > change (i.e., ?how can I collect joystick-movement-data and how I can > subsequently use this information to present the next picture.). > ? Thanks so much in advance. > ?Craig -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Thu Jun 17 17:02:56 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Thu, 17 Jun 2010 18:02:56 +0100 Subject: Looming pictures In-Reply-To: <434bbc97-bce1-47f5-9e2d-7319c4e7328c@y11g2000yqm.googlegroups.com> Message-ID: Hiya all, Not sure whether this has been said already, but one of the questions was regarding polling the direction of joystick presses. I do know someone else asked this question not too long ago, and also went to e-prime support to ask this. The answer, apparently, was this: ------------- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Nick Sent: 04 February 2010 22:10 To: E-Prime Subject: Re: Joystick direction as response & RT Hi All, Below is the great solution I received from E-Prime support. Does exactly what I need it to, I hope it helps others as well. If you do not want subjects to press a button after moving the joystick to the desired position, you can simply access the cursor position directly instead of checking for a button press. This means that you should set the Duration of Stimulus to zero so that the script can be processed immediately; for an example of this method, please see SAMPLE:Process Responses Template. By constantly checking the Y position of the cursor, you can determine whether the subject has responded. Here is an example of the script to use: Dim nInitY As Integer Dim nCurrentY As Integer Dim nDiff As Integer nInitY = Joystick.CursorY Do nCurrentY = Joystick.CursorY nDiff = nInitY - nCurrentY Loop Until Abs(nDiff) > 50 Stimulus.RTTime = Clock.Read Stimulus.RT = Stimulus.RTTime - Stimulus.OnsetTime If nDiff > 0 Then Stimulus.RESP = "Up" Else Stimulus.RESP = "Down" End If ----------------------- Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of gilis Sent: 17 June 2010 11:55 To: E-Prime Subject: Re: Looming pictures Never tried to do something like this, but it seems that if the picture size is increasing or decreasing in constant rate for each pull, then you have to build set of stimuli with the different possible sizes (a lot of work, there is possibly much easier way if you have the time and knowledge to program it all into inline that change the size of given pictures in accordance with its present size and the direction in which the joystick was pulled) for each picture. Then, you name each stimulus x as x&"y", with y representing number in a given direction. Say that if subject pull the joystick six times in one direction then y=6 and the size of the stimulus is corresponding to that. Y=0 stand for the stimuli initial size and numbers preceded by "-", for instance, represent the number of pullings in the opposite dierction.Then, if the subject pulled the joystick in the positive numbers direction three times (y=3) and then in the following trial pulled it in the negative numbers direction you set the Y attrbiute to Y-1, or to Y+1 in the opposite case. You always have to update your programe after each trial what is the value of Y. You do that by setting an attribute called y (c.setattrib "Y", 0+z), with z dimmed as integer. You have to tell your computer that z=1 in case of pulling in one direction and -1 in the other direction. It's only on the surface of the things, and it may be that I'm over simplfying them, but I think this is a start. Rgds Gilis On Jun 15, 8:05?pm, Craig wrote: > Hello, > ?I am trying to program a task in which there are looming pictures > that change depending on the person's response with the joystick. ?I > am currently trying to program an experiment in which pictures are > presented on the screen, and participants are required to push or pull > a joystick and squeeze the trigger based on the color of the > background (e.g., a blue background means push the joystick away). > When the joystick is pushed, the image size needs to gradually > decrease (to strengthen the feeling that the picture is pushed > away). When the joystick is pulled, the image size should increase. > > I am using E-prime version 2.0. Professional. ?I found a similar > question on the list, but I didn't see an answer. > > I was wondering whether: > 1) anyone has programmed a looming task where pictures get bigger or > smaller (I think I need to use the Object Slide, but I am not so sure > how to do it) > and > 2) whether anyone has programmed a task where pressing a joystick in a > particular direction and squeezing the trigger causes a picture to > change (i.e., ?how can I collect joystick-movement-data and how I can > subsequently use this information to present the next picture.). > ? Thanks so much in advance. > ?Craig -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 17 19:27:19 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 17 Jun 2010 15:27:19 -0400 Subject: Draw bitmaps pixel by pixel In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF03766C8A@VUIEXCHC.ad.notti ngham.ac.uk> Message-ID: Look at the Canvas.SaveImage and Canvas.LoadImage topics in the online E-Basic Help for information on how to save & reuse images drawn using Canvas methods. Of course, you would not have to use Canvas.LoadImage if you just loaded the stored .bmp file as a regular ImageDisplay or SlideImage object. Along those lines, for performance reasons, instead of generating your random bitmaps on-the-fly for each session, you might write one program (in E-Prime if you must, or pick a better system like MatLab) to generate your random bitmaps ahead of time, and then just call on them in E-Prime for your experiment. -- David McFarlane, Professional Faultfinder At 6/17/2010 06:35 AM Thursday, Michiel Spape wrote: >As said, I'm quite sure you might achieve writing a BMP file to >disk, of a random mask, within E-Prime, then later using that, but >I'm unsure of the specifics regarding BMPs. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 17 19:43:20 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 17 Jun 2010 15:43:20 -0400 Subject: Forcing a certain outcome In-Reply-To: <17b1357f-e141-4f2f-80ea-b3b8523ea8e0@u7g2000yqm.googlegrou ps.com> Message-ID: It seems to me that something is missing from your description. In particular, you define a function called "PointMod()", but I do not see where you use that function. Also, I do not see where you set FirstTrial to False after the first trial. Beyond that, PointMod() re-initializes the PRNG on each call (see the Randomize topic in the online E-Basic Help), this is poor programming form. This is all elementary computer programming stuff that would be covered in any intro class. So I wonder, what training do you have in computer programming? -- David McFarlane, Professional Faultfinder At 6/16/2010 01:15 PM Wednesday, you wrote: >I think I narrowed down the problem. > >I declared this in an initial InLine object (outside of the trial >loop): FirstTrial = true > >Then I negated that in an InLine object within the loop: FirstTrial = >false > >It seems that negating it within the loop lead the program to ignore >my If statement, but only for issuing the outcome of the trial. The >code: > >If FirstTrial Then >c.SetAttrib "ActorValue", "50/50" >c.SetAttrib "PartValue", "Bad" >took = true >End If > >always seemed to be read though (it does come before the FirstTrial = >false statement though). > >After reading this, does anyone have any idea what I'm talking about? >I think that my design may be too complicated to communicate on the >forum! > >On Jun 16, 10:37 am, John wrote: > > First, I apologize if I haven't given enough information to solve this > > problem. Please let me know if you need more information! > > > > I am trying to force an outcome in this game I've designed, but only > > for the very first trial. > > > > Basically I have the program randomly choose a number 0-99 and for > > that to decide the outcome, but for the first trial I want to make > > sure that the initial choice and then outcome is always the same. I > > have created some code that usually leads to the outcome I want, but > > 1/10 times it seems to not work. > > > > More specifically, sometimes both the "actor" and "participant" are > > gaining points, which I don't want. Instead, I want the "actor" to > > always gain points and the "participant" to always lose points, but > > just for the very first trial. After that, I want to use the code I've > > created to determine the subsequent decisions. > > > > My failed solution: instead of allowing the computer to randomly > > generate a number, I tried to force it to use 0, but only for the > > first trial. This doesn't seem to work in about 1/10 times for some > > reason. > > > > So in an initial InLine object I state: > > > > FirstTrial = true > > > > Then in the Procedure I have: > > > > If FirstTrial Then > > c.SetAttrib "ActorValue", "50/50" > > c.SetAttrib "PartValue", "Bad" > > took = true > > End If > > > > Then in the general User script I have: > > > > Dim FirstTrial as Boolean > > 'Calculates how much someone's points will change if they took > > Function PointMod(Value as String, FirstTrial as Boolean) as Integer > > Randomize > > Dim percent as Integer > > percent = Random(0, 99) > > If FirstTrial Then > > percent = 0 > > End If > > Select Case Value > > Case "Good" > > If percent < 85 Then > > pointMod = 10 > > Else > > pointMod = -10 > > End If > > Case "Bad" > > If percent < 85 Then > > pointMod = -10 > > Else > > pointMod = 10 > > End If > > Case "50/50" > > If percent < 50 Then > > pointMod = 10 > > Else > > pointMod = -10 > > End If > > End Select > > End Function -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From giladsabo at gmail.com Thu Jun 17 20:25:28 2010 From: giladsabo at gmail.com (gilis) Date: Thu, 17 Jun 2010 13:25:28 -0700 Subject: Problem with collecting voice response In-Reply-To: <5df3ccaa-1788-4961-9139-7b8ecbaf3fe7@w31g2000yqb.googlegroups.com> Message-ID: No answer? Anyone? On Jun 16, 6:44?pm, gilis wrote: > In my experiment prticipants have to respond to stimuli both with > mouse click and voice response, there is no importance to what come > first (mouse click or voice response) but the program excpecting two > responses (manual and vocal) in each trial. > > If on click the mouse more than once, then the program will collcet > only his or her first response and regardless if he/she continue > clicking the mouse, the next trial will start only after he/she will > also give vocal response. And vice versa, the same goes in case when > the vocal response came first. > > To make this, I wrote these three inlines: > > 'This inline is the first and main inline, it checks what was the > first response in the trial, collect it and then go to the device yet > not was used (i.e., mouse or SRB). > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = > CRteRunnableInputObject(Rte.GetObject("Stimuli")) > > 'If the assert below fires, then the object named in the line above > does not exist > Debug.Assert Not theResponseObject Is Nothing > > ?Dim nIndex AS Integer > > For nIndex = 1 To theResponseObject.InputMasks.Responses.Count > > 'Access the response and check to see if it is a mouse response. > > Dim theSRBoxData As SRboxResponseData > ? Set theSRBoxData = CSRBoxResponseData > (theResponseObject.InputMasks.Responses(1)) > > If Not theSRBoxData Is Nothing Then > > c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT > c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP > > Goto MouseLabel > End If > > 'Access the response and check to see if it is a mouse response. > Dim theMouseResponseData As MouseResponseData > ? Set theMouseResponseData = > CMouseResponseData(theResponseObject.InputMasks.Responses(1)) > > If Not theMouseResponseData Is Nothing Then > > ?c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT > c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP > > Goto SRBoxLabel > End If > NEXT nIndex > > 'These are the second and the third inlines: > > 'If in the first inline, the SRBox Data was not nothing then collect > the mouse response now: > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = > CRteRunnableInputObject(Rte.GetObject("MouseStimuli")) > > 'If the assert below fires, then the object named in the line above > does not exist > Debug.Assert Not theResponseObject Is Nothing > > Dim nIndex as Integer > > Dim theMouseResponseData As MouseResponseData > Set theMouseResponseData = > CMouseResponseData(theResponseObject.InputMasks.Responses(1)) > > If Not theMouseResponseData Is Nothing Then > > 'Log reaction time and response for each mouse click. > c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT > c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP > > End If > > 'The third inline do the same as the second inline, but for the SRBox: > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = > CRteRunnableInputObject(Rte.GetObject("SRBoxStimuli")) > > 'If the assert below fires, then the object named in the line above > does not exist > Debug.Assert Not theResponseObject Is Nothing > > Dim theSRBoxData As SRboxResponseData > Set theSRBoxData = > CSRBoxResponseData(theResponseObject.InputMasks.Responses(1)) > > If Not theSRBoxData Is Nothing Then > > c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT > c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP > > End if > > Now, in when I used keyboard input instead of SRB, it worked fine. But > now I get strange bug: Everything works well aside for trials where > the participant first respond vocally-in this case the ?following > mouse click is considered as the first response and then the program > wait to another vocal response and the next trial start only after > it's given. I understand where the problem is, would appreciate your > help. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From grighi at gmail.com Thu Jun 17 21:45:39 2010 From: grighi at gmail.com (grighi) Date: Thu, 17 Jun 2010 14:45:39 -0700 Subject: faulty event duration In-Reply-To: <4c17cd4c.65bae70a.0c8c.646dSMTPIN_ADDED@gmr-mx.google.com> Message-ID: Hi David unfortunately the PST staff is a bit too overwhelmed and i was hoping to figure out what may be happening more quickly. In answer to your question, the slide showing duration issues is the last one in a trial and is followed by a user operated break before the beginning of the next trial. The other thing that is very puzzling to me is that if i go and look in the gazedata file which writes out a line of data for each 17ms time point (we are using a 60Hz eyetracker) the program thinks that the duration os this slide is 5 seconds, when in fact we have timed it and it stays on the screen between 8 and 10 seconds. thanks again giulia On Jun 15, 2:58?pm, David McFarlane wrote: > Giulia, > > Stock reminder: ?1) I do not work for PST. ?2) PST's trained staff > takes any and all questions athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they > strive to respond to all requests in 24-48 hours (although current > estimates are more like 10 days) -- this is pretty much their > substitute for proper documentation, so make full use of it. ?3) If > you do get an answer from PST Web Support, please extend the courtesy > of posting their reply back here for the sake of others. > > That said, here is my take... > > Hmm, that is a new one. ?Are you sure that you do not have two of > those Slides in a row, or end the trial with that Slide and then > start the next Trial with the same Slide? ?That's all I can come up > with based on the description. > > -- David McFarlane, Professional Faultfinder > > At 6/14/2010 05:03 PM Monday, you wrote: > > > > >i am sorry to bug you with what may be a trivial problem, but i am > >really not sure how to fix it. > > >I have an experiment programmed in Eprime and running concurrenlty > >with Tobii Studio, using the tobii studion extensions for Eprime. Note > >that this paradigm is meant to be used with infants > > >The paradigm is composed of two main parts. In the first part the > >subject is shown a series of short videos that serve the function of > >attention getters followed by a slide that contains two faces. Within > >that slide we have defined a gaze contingent zone, in order to have > >the infants look at the faces for 10 seconds. This first part all > >seems to run fine. > > >However some timing problems arise in the second part. In the second > >part the infant is exposed to 8 trials that have the following > >structure: a short video is presented to get their attention, followed > >by a face (a familiarization stimulus) that is set up to be gaze > >contingent so that all the infants will look at it for the same amount > >of time. The face is followed by another short video, which is > >followed by a test trial, which is a slide containing two faces side > >by side. This slide is up for 5 seconds, and is the followed by > >another short video. The problem arise on the final slide in each > >trials which follows this last video and contains two more faces. This > >slide is set up identically to the one occurring above. However, > >instead of remaining on the screen for only 5 seconds, which is the > >time indicated in the settings, it appears to remain on the screen for > >twice that amount. This appears to be true regardless of the provided > >durations, such that 2 seconds turn into 4 and so on. > > >Any suggestions on what may be happening? > > >thank you > > >giulia > > >Children's Hospital Boston > >Laboratories of Cognitive Neuroscience -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Thu Jun 17 19:15:44 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 17 Jun 2010 15:15:44 -0400 Subject: Looming pictures In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF03766E74@VUIEXCHC.ad.notti ngham.ac.uk> Message-ID: Craig, When I want to manipulate the size of images (either an ImageDisplay or a SlideImage on a Slide), I do the following: - Open the property pages for the image. On the General tab, set Stretch to Yes. On the Frame tab, enter attribute references for Width and Height (e.g., [StimWidth], [StimHeight]). - On the User tab of the Script window, add a global variable to hold the latest value of width & height (see Chapter 4 of the User Guide that came with E-Prime). E.g. (note that variables and attributes may use the same name with no conflict, as long as you can keep track of which is which), Dim StimHeight as Single, StimWidth as Single - In inline code before the image object, update the width & height as needed and use c.SetAttrib to set the attribute values for use. You may use units of either % or pixels, as you like. E.g., ' Magnify geometrically (i.e., constant factor)... Const ImageFactor as Single = 1.5 ' might instead make this global StimHeight = StimHeight * ImageFactor StimWidth = StimWidth * ImageFactor c.SetAttrib "StimHeight", StimHeight c.SetAttrib "StimWidth", StimWidth or ' Increment arithmetically... Const ImageIncrement as Integer = 50 ' might instead make this global StimHeight = StimHeight + ImageIncrement StimWidth = StimWidth + ImageIncrement c.SetAttrib "StimHeight", StimHeight c.SetAttrib "StimWidth", StimWidth You would still have to wrap these in the appropriate If...Then...Else clauses, etc. I think this makes the code more manageable, although there are probably methods with better performance if you don't mind more code. -- David McFarlane, Professional Faultfinder At 6/17/2010 01:02 PM Thursday, you wrote: >Hiya all, >Not sure whether this has been said already, but >one of the questions was regarding polling the >direction of joystick presses. I do know someone >else asked this question not too long ago, and >also went to e-prime support to ask this. The answer, apparently, was this: > >------------- >From: e-prime at googlegroups.com >[mailto:e-prime at googlegroups.com] On Behalf Of Nick >Sent: 04 February 2010 22:10 >To: E-Prime >Subject: Re: Joystick direction as response & RT > >Hi All, > >Below is the great solution I received from E-Prime support. Does >exactly what I need it to, I hope it helps others as well. > >If you do not want subjects to press a button after moving the >joystick to the desired position, you can simply access the cursor >position directly instead of checking for a button press. This means >that you should set the Duration of Stimulus to zero so that the >script can be processed immediately; for an example of this method, >please see SAMPLE:Process Responses Template. By constantly checking >the Y position of the cursor, you can determine whether the subject >has responded. Here is an example of the script to use: > >Dim nInitY As Integer >Dim nCurrentY As Integer >Dim nDiff As Integer > >nInitY = Joystick.CursorY > >Do > nCurrentY = Joystick.CursorY > nDiff = nInitY - nCurrentY > >Loop Until Abs(nDiff) > 50 > >Stimulus.RTTime = Clock.Read >Stimulus.RT = Stimulus.RTTime - Stimulus.OnsetTime > >If nDiff > 0 Then > Stimulus.RESP = "Up" >Else > Stimulus.RESP = "Down" >End If >----------------------- > > > >Michiel Spap? >Research Fellow >Perception & Action group >University of Nottingham >School of Psychology > > >-----Original Message----- >From: e-prime at googlegroups.com >[mailto:e-prime at googlegroups.com] On Behalf Of gilis >Sent: 17 June 2010 11:55 >To: E-Prime >Subject: Re: Looming pictures > >Never tried to do something like this, but it seems that if the >picture size is increasing or decreasing in constant rate for each >pull, then you have to build set of stimuli with the different >possible sizes (a lot of work, there is possibly much easier way if >you have the time and knowledge to program it all into inline that >change the size of given pictures in accordance with its present size >and the direction in which the joystick was pulled) for each picture. > >Then, you name each stimulus x as x&"y", with y representing number in >a given direction. Say that if subject pull the joystick six times in >one direction then y=6 and the size of the stimulus is corresponding >to that. Y=0 stand for the stimuli initial size and numbers preceded >by "-", for instance, represent the number of pullings in the opposite >dierction.Then, if the subject pulled the joystick in the positive >numbers direction three times (y=3) and then in the following trial >pulled it in the negative numbers direction you set the Y attrbiute to >Y-1, or to Y+1 in the opposite case. You always have to update your >programe after each trial what is the value of Y. > >You do that by setting an attribute called y (c.setattrib "Y", 0+z), >with z dimmed as integer. You have to tell your computer that z=1 in >case of pulling in one direction and -1 in the other direction. > >It's only on the surface of the things, and it may be that I'm over >simplfying them, but I think this is a start. > >Rgds >Gilis > >On Jun 15, 8:05 pm, Craig wrote: > > Hello, > > I am trying to program a task in which there are looming pictures > > that change depending on the person's response with the joystick. I > > am currently trying to program an experiment in which pictures are > > presented on the screen, and participants are required to push or pull > > a joystick and squeeze the trigger based on the color of the > > background (e.g., a blue background means push the joystick away). > > When the joystick is pushed, the image size needs to gradually > > decrease (to strengthen the feeling that the picture is pushed > > away). When the joystick is pulled, the image size should increase. > > > > I am using E-prime version 2.0. Professional. I found a similar > > question on the list, but I didn't see an answer. > > > > I was wondering whether: > > 1) anyone has programmed a looming task where pictures get bigger or > > smaller (I think I need to use the Object Slide, but I am not so sure > > how to do it) > > and > > 2) whether anyone has programmed a task where pressing a joystick in a > > particular direction and squeezing the trigger causes a picture to > > change (i.e., how can I collect joystick-movement-data and how I can > > subsequently use this information to present the next picture.). > > Thanks so much in advance. > > Craig -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Fri Jun 18 09:56:17 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Fri, 18 Jun 2010 10:56:17 +0100 Subject: Problem with collecting voice response In-Reply-To: Message-ID: Hi Gilis, The problem, I expect, is that you wrote quite a number of lines of code and I, for one, can't really bring up the time to go through them and sort out what seems to be the problem. Without looking at your code, however, I don't immediately see why so much of it is necessary however. Given that the voicekey, at least in my previous lab, was routed to E-Prime as a SRBox code of 5, and that the mouse-clicks are either one or two, it shouldn't be too hard to have the following: 1: FirstStimulus: both SRBOX and mouse are input devices, SRBox allowable 5, Mouse 1 or 2 2: inline code: If FirstStimulus.Resp = 5 then goto AfterVoice 3: VoiceStimulus with only SRBox as input device and JumpLabel: AfterMouse 4: label AfterVoice 5: MouseStimulus with only Mouse as input device 6: label AfterMouse Shouldn't that do the trick? I'm sorry about not taking the time to go through your code; it's just a bit too much. Try to start simple and see where exactly it is you go wrong. Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of gilis Sent: 17 June 2010 21:25 To: E-Prime Subject: Re: Problem with collecting voice response No answer? Anyone? On Jun 16, 6:44?pm, gilis wrote: > In my experiment prticipants have to respond to stimuli both with > mouse click and voice response, there is no importance to what come > first (mouse click or voice response) but the program excpecting two > responses (manual and vocal) in each trial. > > If on click the mouse more than once, then the program will collcet > only his or her first response and regardless if he/she continue > clicking the mouse, the next trial will start only after he/she will > also give vocal response. And vice versa, the same goes in case when > the vocal response came first. > > To make this, I wrote these three inlines: > > 'This inline is the first and main inline, it checks what was the > first response in the trial, collect it and then go to the device yet > not was used (i.e., mouse or SRB). > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = > CRteRunnableInputObject(Rte.GetObject("Stimuli")) > > 'If the assert below fires, then the object named in the line above > does not exist > Debug.Assert Not theResponseObject Is Nothing > > ?Dim nIndex AS Integer > > For nIndex = 1 To theResponseObject.InputMasks.Responses.Count > > 'Access the response and check to see if it is a mouse response. > > Dim theSRBoxData As SRboxResponseData > ? Set theSRBoxData = CSRBoxResponseData > (theResponseObject.InputMasks.Responses(1)) > > If Not theSRBoxData Is Nothing Then > > c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT > c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP > > Goto MouseLabel > End If > > 'Access the response and check to see if it is a mouse response. > Dim theMouseResponseData As MouseResponseData > ? Set theMouseResponseData = > CMouseResponseData(theResponseObject.InputMasks.Responses(1)) > > If Not theMouseResponseData Is Nothing Then > > ?c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT > c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP > > Goto SRBoxLabel > End If > NEXT nIndex > > 'These are the second and the third inlines: > > 'If in the first inline, the SRBox Data was not nothing then collect > the mouse response now: > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = > CRteRunnableInputObject(Rte.GetObject("MouseStimuli")) > > 'If the assert below fires, then the object named in the line above > does not exist > Debug.Assert Not theResponseObject Is Nothing > > Dim nIndex as Integer > > Dim theMouseResponseData As MouseResponseData > Set theMouseResponseData = > CMouseResponseData(theResponseObject.InputMasks.Responses(1)) > > If Not theMouseResponseData Is Nothing Then > > 'Log reaction time and response for each mouse click. > c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT > c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP > > End If > > 'The third inline do the same as the second inline, but for the SRBox: > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = > CRteRunnableInputObject(Rte.GetObject("SRBoxStimuli")) > > 'If the assert below fires, then the object named in the line above > does not exist > Debug.Assert Not theResponseObject Is Nothing > > Dim theSRBoxData As SRboxResponseData > Set theSRBoxData = > CSRBoxResponseData(theResponseObject.InputMasks.Responses(1)) > > If Not theSRBoxData Is Nothing Then > > c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT > c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP > > End if > > Now, in when I used keyboard input instead of SRB, it worked fine. But > now I get strange bug: Everything works well aside for trials where > the participant first respond vocally-in this case the ?following > mouse click is considered as the first response and then the program > wait to another vocal response and the next trial start only after > it's given. I understand where the problem is, would appreciate your > help. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From melissa.dewolf at gmail.com Mon Jun 21 14:27:52 2010 From: melissa.dewolf at gmail.com (melissa) Date: Mon, 21 Jun 2010 07:27:52 -0700 Subject: implement change blindness flicker paradigm Message-ID: Hi, I am trying to implement the classic flicker paradigm for a change blindness study. I would like to oscillate between a picture and its mask for 40 seconds or until a participant hits a button. I think the best way to do this would be to use one slide object and oscillate between slide states (1 state for the picture, 1 state for the mask) in order to keep track of RT for the user response. Is this possible? Thank you, Melissa -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Jun 21 17:36:20 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 21 Jun 2010 13:36:20 -0400 Subject: implement change blindness flicker paradigm In-Reply-To: <0839e371-cb14-4228-a603-fbbcdb2f76a2@c33g2000yqm.googlegro ups.com> Message-ID: Melissa, Stock reminder: 1) I do not work for PST. 2) PST's trained staff takes any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours (although current estimates are more like 10 days) -- this is pretty much their substitute for proper documentation, so make full use of it. 3) If you do get an answer from PST Web Support, please extend the courtesy of posting their reply back here for the sake of others. That said, here is my take... Yes, that is possible, to a point. However, if you use an input mask on the Slide and just rapidly re-run that Slide, you will have some trouble with RTs. That is because the input mask will not be armed in the short intervals between each running of the Slide object, and if a response comes in during those intervals then it will be missed. And the more rapidly you cycle through your Slide, the greater the effect. (I know, because I ran into this with an experiment a few years ago.) For something like this, better to use "extended response" (see Appendix C of the User's Guide that came with E-Prime). Implement your flicker loop however you like, and just before your flicker loop add a Wait object. Set its Duration to 0, give it an appropriate input mask, and set the Time Limit to (infinite), or a time limit that you choose. Set End Action to Terminate or (none), as seems appropriate. Now the input mask from the Wait object will run over all the iterations of your flicker loop and will catch a response at any time. If you want the flicker loop to then react to the response, use some inline code such as (assuming you name your Wait object RespWait) If Not(RespWait.InputMasks.IsPending()) Then ... If RespWait.RT <> 0 Then ... If RespWait.RTTime <> 0 Then ... If RespWait.RESP <> "" Then ... Finally, given that the Wait object takes care of getting the response, I would probably dispense with the two-state Slide (which requires even more inline code) and just use a pair of ordinary stimulus objects for the flicker loop. -- David McFarlane, Professional Faultfinder >I am trying to implement the classic flicker paradigm for a change >blindness study. I would like to oscillate between a picture and its >mask for 40 seconds or until a participant hits a button. I think the >best way to do this would be to use one slide object and oscillate >between slide states (1 state for the picture, 1 state for the mask) >in order to keep track of RT for the user response. Is this possible? > >Thank you, >Melissa -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From enfuego1578 at gmail.com Mon Jun 21 18:03:51 2010 From: enfuego1578 at gmail.com (Mike) Date: Mon, 21 Jun 2010 11:03:51 -0700 Subject: Sidman Avoidance Paradigm Message-ID: To any and all that may be able to help, I am attempting to program a Sidman Avoidance paradigm. The idea here is that a subject is learning 2 instrumental associations. In this task, they are told that they are being attacked by two vehicles, and only by pushing a button can they delay this attack. They do not know which of the buttons delays which of the two attacks - but they are told that they must figure both buttons out in order to advance to the next round. When they push a button, the attack is delayed by 5 seconds. If they do not, they are attacked every 2 seconds. This happens independently and simultaneously for each vehicle. Other facts about the task: - The subjects will be able to respond at any time. - They will respond during both attacks and fixation (ie, the break between attacks). - There is no maximum to the amount of responses they can give. - However, there IS a maximum delay period. That period is 5 seconds. So, the subject can push a button that delays a certain attack 50 times, and during the time that they are pressing that button, they will never see the attack that is pushed back by that specific button - but after the 50th response, that attack will appear 5 seconds later. So, the timing should actually be rather easy to program. The real challenge comes in displaying the two attacks that subjects are delaying. So, think about the situation I described above - where one type of vehicle (a tank, for example) is attacking the subject. They can delay this attack with the push of a button. Now add another vehicle (a plane, for example) that behaves in the same exact way. The only difference between these two vehicles is that they are delayed by two different buttons. So, even if the subject is pressing the button that delays the tank, they can still be attacked by the plane every 2 seconds, unless they push that button as well. So, I need to keep track of 2 keyboard responses, and two display screens - and the real kicker is that they should be able to be displayed simultaneously. The attack should begin with subjects being attacked simultaneously by these two vehicles, and they will know that the buttons at their disposal correspond to one of the vehicles. Again, their task is to figure out which of these buttons corresponds to each vehicle. I know that is a lot to process, but I really appreciate your help. Thank you, Mike -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From melissa.dewolf at gmail.com Mon Jun 21 19:11:56 2010 From: melissa.dewolf at gmail.com (melissa) Date: Mon, 21 Jun 2010 12:11:56 -0700 Subject: implement change blindness flicker paradigm In-Reply-To: <4c1fa316.dfc3e70a.5e46.ffffd5eaSMTPIN_ADDED@gmr-mx.google.com> Message-ID: David, Thank you. That solves the problem of getting the response time while the flickering is occurring. However, I am still having issues with how to create a loop that will loop the two stimulus objects back and forth for either 40 secs or until user input. First off, how would I implement this type of loop? With an inline object? Secondly, guess I could have the loop end when the wait object ends or unless there is user input? I am not quite sure how this would be done in Eprime. Thank you for the help! Melissa On Jun 21, 1:36?pm, David McFarlane wrote: > Melissa, > > Stock reminder: ?1) I do not work for PST. ?2) PST's trained staff > takes any and all questions athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they > strive to respond to all requests in 24-48 hours (although current > estimates are more like 10 days) -- this is pretty much their > substitute for proper documentation, so make full use of it. ?3) If > you do get an answer from PST Web Support, please extend the courtesy > of posting their reply back here for the sake of others. > > That said, here is my take... > > Yes, that is possible, to a point. ?However, if you use an input mask > on the Slide and just rapidly re-run that Slide, you will have some > trouble with RTs. ?That is because the input mask will not be armed > in the short intervals between each running of the Slide object, and > if a response comes in during those intervals then it will be > missed. ?And the more rapidly you cycle through your Slide, the > greater the effect. ?(I know, because I ran into this with an > experiment a few years ago.) > > For something like this, better to use "extended response" (see > Appendix C of the User's Guide that came with E-Prime). ?Implement > your flicker loop however you like, and just before your flicker loop > add a Wait object. ?Set its Duration to 0, give it an appropriate > input mask, and set the Time Limit to (infinite), or a time limit > that you choose. ?Set End Action to Terminate or (none), as seems > appropriate. ?Now the input mask from the Wait object will run over > all the iterations of your flicker loop and will catch a response at > any time. ?If you want the flicker loop to then react to the > response, use some inline code such as (assuming you name your Wait > object RespWait) > > If Not(RespWait.InputMasks.IsPending()) Then ... > If RespWait.RT <> 0 Then ... > If RespWait.RTTime <> 0 Then ... > If RespWait.RESP <> "" Then ... > > Finally, given that the Wait object takes care of getting the > response, I would probably dispense with the two-state Slide (which > requires even more inline code) and just use a pair of ordinary > stimulus objects for the flicker loop. > > -- David McFarlane, Professional Faultfinder > > > > >I am trying to implement the classic flicker paradigm for a change > >blindness study. ?I would like to oscillate between a picture and its > >mask for 40 seconds or until a participant hits a button. ?I think the > >best way to do this would be to use one slide object and oscillate > >between slide states (1 state for the picture, 1 state for the mask) > >in order to keep track of RT for the user response. ?Is this possible? > > >Thank you, > >Melissa -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From mcfarla9 at msu.edu Mon Jun 21 19:40:09 2010 From: mcfarla9 at msu.edu (David McFarlane) Date: Mon, 21 Jun 2010 15:40:09 -0400 Subject: implement change blindness flicker paradigm In-Reply-To: Message-ID: Melissa, Look at the InputMask.IsPending topic in the online E-Basic Help. See that the RespWait.InputMasks.IsPending() test will detect whether RespWait has timed out (e.g., set Time Limit to 40000) or has received a response, as I mentioned earlier. So you may use that in inline code to end your flicker loop. Many ways to implement this loop. E.g., put a label like FlickerLoopLabel in front of your flicker stimuli, and some inline right after the stimuli, such as If RespWait.InputMasks.IsPending() Then Goto FlickerLoopLabel Alternatively, use a List (e.g., FlickerList) to run your loop. Set the FlickerList to run for some long time, put your flicker stimuli into a List Procedure (e.g., FlickerProc), and in inline right after the stimuli do If Not(RespWait.InputMasks.IsPending()) Then FlickerList.Terminate More generally, first work through Chapter 4 of the User's Guide for some exercises on using inline code. And get familiar with the online E-Basic Help. -- David McFarlane, Professional Faultfinder >David, > >Thank you. That solves the problem of getting the response time while >the flickering is occurring. However, I am still having issues with >how to create a loop that will loop the two stimulus objects back and >forth for either 40 secs or until user input. First off, how would I >implement this type of loop? With an inline object? Secondly, guess >I could have the loop end when the wait object ends or unless there is >user input? I am not quite sure how this would be done in Eprime. > >Thank you for the help! >Melissa > >On Jun 21, 1:36 pm, David McFarlane wrote: > > Melissa, > > > > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > > takes any and all questions > athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they > > strive to respond to all requests in 24-48 hours (although current > > estimates are more like 10 days) -- this is pretty much their > > substitute for proper documentation, so make full use of it. 3) If > > you do get an answer from PST Web Support, please extend the courtesy > > of posting their reply back here for the sake of others. > > > > That said, here is my take... > > > > Yes, that is possible, to a point. However, if you use an input mask > > on the Slide and just rapidly re-run that Slide, you will have some > > trouble with RTs. That is because the input mask will not be armed > > in the short intervals between each running of the Slide object, and > > if a response comes in during those intervals then it will be > > missed. And the more rapidly you cycle through your Slide, the > > greater the effect. (I know, because I ran into this with an > > experiment a few years ago.) > > > > For something like this, better to use "extended response" (see > > Appendix C of the User's Guide that came with E-Prime). Implement > > your flicker loop however you like, and just before your flicker loop > > add a Wait object. Set its Duration to 0, give it an appropriate > > input mask, and set the Time Limit to (infinite), or a time limit > > that you choose. Set End Action to Terminate or (none), as seems > > appropriate. Now the input mask from the Wait object will run over > > all the iterations of your flicker loop and will catch a response at > > any time. If you want the flicker loop to then react to the > > response, use some inline code such as (assuming you name your Wait > > object RespWait) > > > > If Not(RespWait.InputMasks.IsPending()) Then ... > > If RespWait.RT <> 0 Then ... > > If RespWait.RTTime <> 0 Then ... > > If RespWait.RESP <> "" Then ... > > > > Finally, given that the Wait object takes care of getting the > > response, I would probably dispense with the two-state Slide (which > > requires even more inline code) and just use a pair of ordinary > > stimulus objects for the flicker loop. > > > > -- David McFarlane, Professional Faultfinder > > > > > > > > >I am trying to implement the classic flicker paradigm for a change > > >blindness study. I would like to oscillate between a picture and its > > >mask for 40 seconds or until a participant hits a button. I think the > > >best way to do this would be to use one slide object and oscillate > > >between slide states (1 state for the picture, 1 state for the mask) > > >in order to keep track of RT for the user response. Is this possible? > > > > >Thank you, > > >Melissa -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From beth_the_tree at hotmail.com Tue Jun 22 10:02:47 2010 From: beth_the_tree at hotmail.com (beththetree) Date: Tue, 22 Jun 2010 03:02:47 -0700 Subject: Visual/dot probe experiment Message-ID: Hi there, I'm reasonably new to E-Prime and have been tasked with setting up a visual probe/ dot-probe experiment from scratch and am getting nowhere fast with it. Does anyone know of anywhere that I can download samples/ versions of such an experiment to use as a reference or adapt? Thank you Bethrm -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From lordoftheshortpeople at hotmail.com Tue Jun 22 23:42:18 2010 From: lordoftheshortpeople at hotmail.com (Little Moo) Date: Tue, 22 Jun 2010 16:42:18 -0700 Subject: Trouble with randomisaton Message-ID: I'm hoping someone can help. Has anyone else had a problem with randomisation, or am I doing something wrong. In the final phase of an experiment, I have a list of 27 target images, and 3 lists of distractor images. The list is set as:- 27 Samples (1 cycle x 27 samples/cycle) 1 Cycle equals 27 samples Random Selection In a small, but significant, number of experimental runs, one level is omitted and one level is repeated e.g. red_squr_straight.jpg blck_tri_squig.jpg <------------First Show blue_tri_round.jpg blue_tri_straight.jpg red_circ_straight.jpg red_squr_squig.jpg blue_squr_squig.jpg red_tri_round.jpg blue_circ_squig.jpg blue_circ_straight.jpg blck_squr_round.jpg blue_tri_squig.jpg red_squr_squig.jpg blck_circ_round.jpg blck_tri_squig.jpg <------------Repeated blck_circ_straight.jpg blue_squr_straight.jpg red_tri_squig.jpg red_tri_straight.jpg red_squr_round.jpg blue_tri_squig.jpg blue_squr_round.jpg blck_tri_straight.jpg blue_circ_round.jpg blue_tri_straight.jpg blck_squr_straight.jpg red_tri_squig.jpg and in this case blck_circ_squig.jpg was omitted - that is for this case only, the level omitted/repeated is random. Has any else noticed this, or have I made a mistake with my selection criteria? Reset is set to All samples (27), and the list object does have 27 unique filenames. This is central to my experiment but nothing I have tried works. Laura -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From andrea-laura at gmx.ch Wed Jun 23 07:02:39 2010 From: andrea-laura at gmx.ch (miamalika) Date: Wed, 23 Jun 2010 00:02:39 -0700 Subject: Target ACC (DataAid) all displayed as 0=incorrect. why? Message-ID: Hello everybody I have a Problem with the TargetACC in DataAid. In my Experiment I have 384 trials, 2 answer buttons. I'm sure I programmed the CorrectAnswer correctly also I chose "Standard" Target Logging. Anybody knows why in the DataAid file the TargetACC is always 0? It's not possible that all answers are wrong since it's an easy experiment and I tested it myself. Thanks for advice!! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From giladsabo at gmail.com Wed Jun 23 09:21:32 2010 From: giladsabo at gmail.com (gilis) Date: Wed, 23 Jun 2010 02:21:32 -0700 Subject: Problem with collecting voice response In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF03766F81@VUIEXCHC.ad.nottingham.ac.uk> Message-ID: Thanks Michiel, That's make the trick, my programming as well, but in much complicated way...Had I notice before that I could register SRBox and mouse reponses as sign response it would save me a lot of time... Anyway, eventually it works in both ways, but I yet don't know what was the problem before... Regards and thanks for sharing your wisdom Gili On Jun 18, 12:56?pm, Michiel Spape wrote: > Hi Gilis, > The problem, I expect, is that you wrote quite a number of lines of code and I, for one, can't really bring up the time to go through them and sort out what seems to be the problem. Without looking at your code, however, I don't immediately see why so much of it is necessary however. Given that the voicekey, at least in my previous lab, was routed to E-Prime as a SRBox code of 5, and that the mouse-clicks are either one or two, it shouldn't be too hard to have the following: > 1: FirstStimulus: both SRBOX and mouse are input devices, SRBox allowable 5, Mouse 1 or 2 > 2: inline code: > If FirstStimulus.Resp = 5 then goto AfterVoice > 3: VoiceStimulus with only SRBox as input device and JumpLabel: AfterMouse > 4: label AfterVoice > 5: MouseStimulus with only Mouse as input device > 6: label AfterMouse > > Shouldn't that do the trick? I'm sorry about not taking the time to go through your code; it's just a bit too much. Try to start simple and see where exactly it is you go wrong. > > Michiel Spap? > Research Fellow > Perception & Action group > University of Nottingham > School of Psychology > > > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of gilis > Sent: 17 June 2010 21:25 > To: E-Prime > Subject: Re: Problem with collecting voice response > > No answer? Anyone? > > On Jun 16, 6:44?pm, gilis wrote: > > In my experiment prticipants have to respond to stimuli both with > > mouse click and voice response, there is no importance to what come > > first (mouse click or voice response) but the program excpecting two > > responses (manual and vocal) in each trial. > > > If on click the mouse more than once, then the program will collcet > > only his or her first response and regardless if he/she continue > > clicking the mouse, the next trial will start only after he/she will > > also give vocal response. And vice versa, the same goes in case when > > the vocal response came first. > > > To make this, I wrote these three inlines: > > > 'This inline is the first and main inline, it checks what was the > > first response in the trial, collect it and then go to the device yet > > not was used (i.e., mouse or SRB). > > > Dim theResponseObject As RteRunnableInputObject > > Set theResponseObject = > > CRteRunnableInputObject(Rte.GetObject("Stimuli")) > > > 'If the assert below fires, then the object named in the line above > > does not exist > > Debug.Assert Not theResponseObject Is Nothing > > > ?Dim nIndex AS Integer > > > For nIndex = 1 To theResponseObject.InputMasks.Responses.Count > > > 'Access the response and check to see if it is a mouse response. > > > Dim theSRBoxData As SRboxResponseData > > ? Set theSRBoxData = CSRBoxResponseData > > (theResponseObject.InputMasks.Responses(1)) > > > If Not theSRBoxData Is Nothing Then > > > c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT > > c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP > > > Goto MouseLabel > > End If > > > 'Access the response and check to see if it is a mouse response. > > Dim theMouseResponseData As MouseResponseData > > ? Set theMouseResponseData = > > CMouseResponseData(theResponseObject.InputMasks.Responses(1)) > > > If Not theMouseResponseData Is Nothing Then > > > ?c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT > > c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP > > > Goto SRBoxLabel > > End If > > NEXT nIndex > > > 'These are the second and the third inlines: > > > 'If in the first inline, the SRBox Data was not nothing then collect > > the mouse response now: > > > Dim theResponseObject As RteRunnableInputObject > > Set theResponseObject = > > CRteRunnableInputObject(Rte.GetObject("MouseStimuli")) > > > 'If the assert below fires, then the object named in the line above > > does not exist > > Debug.Assert Not theResponseObject Is Nothing > > > Dim nIndex as Integer > > > Dim theMouseResponseData As MouseResponseData > > Set theMouseResponseData = > > CMouseResponseData(theResponseObject.InputMasks.Responses(1)) > > > If Not theMouseResponseData Is Nothing Then > > > 'Log reaction time and response for each mouse click. > > c.SetAttrib "MouseClick" & 1 & "RT", theMouseResponseData.RT > > c.SetAttrib "MouseClick" & 1 & "RESP", theMouseResponseData.RESP > > > End If > > > 'The third inline do the same as the second inline, but for the SRBox: > > > Dim theResponseObject As RteRunnableInputObject > > Set theResponseObject = > > CRteRunnableInputObject(Rte.GetObject("SRBoxStimuli")) > > > 'If the assert below fires, then the object named in the line above > > does not exist > > Debug.Assert Not theResponseObject Is Nothing > > > Dim theSRBoxData As SRboxResponseData > > Set theSRBoxData = > > CSRBoxResponseData(theResponseObject.InputMasks.Responses(1)) > > > If Not theSRBoxData Is Nothing Then > > > c.SetAttrib "VocalResponse" & 1 & "RT", theSRBoxData.RT > > c.SetAttrib "KeyPress" & 1 & "RESP", theSRBoxData.RESP > > > End if > > > Now, in when I used keyboard input instead of SRB, it worked fine. But > > now I get strange bug: Everything works well aside for trials where > > the participant first respond vocally-in this case the ?following > > mouse click is considered as the first response and then the program > > wait to another vocal response and the next trial start only after > > it's given. I understand where the problem is, would appreciate your > > help. > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From eleaves at gmail.com Wed Jun 23 15:20:00 2010 From: eleaves at gmail.com (eleaves) Date: Wed, 23 Jun 2010 08:20:00 -0700 Subject: Contingent branching with slidestates Message-ID: Anyone ever do contingent branching using a Slide with different slide states... idea being that the active slide state is dependent on subject response. I also have a total of two possible slide state sub-objects for each of the two slide states... Anyone know how to incorporate this either via nesting or something else?? Thanks! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From neuropsych76 at gmail.com Thu Jun 24 15:20:49 2010 From: neuropsych76 at gmail.com (cogneuroisfun) Date: Thu, 24 Jun 2010 08:20:49 -0700 Subject: help a beginner :) Message-ID: I'm glad I found this group! I'm new to using e-prime but I know the some of basics. However, I'm getting an error message which doesn't make any sense to me. It says "The following runtime error occurred Unable to load image file Filename picture.bmp Current folder C: ect Open 1 Found 1 last error 0 return code Filename2 c:/ documents/ ect. picture.bmp Current folder C: ect Open 1 Found 1 last error 0 return code error number 11043" So what I don't get is why I'm having this problem. I have 100 pictures in the same folder as my program. The first 5 work but the rest do not even though they are all in the same folder and are spelled correctly when I entered them into my list! I have no idea why it can't find them. The filename1 is the actually file name but then the filename2 is where the file is? Could that be what its looking for? This is probably something silly but I don't know how to fix it! Please help, thank you :) -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From dpschpak at gmail.com Fri Jun 25 19:20:36 2010 From: dpschpak at gmail.com (dpschpak) Date: Fri, 25 Jun 2010 12:20:36 -0700 Subject: How to create a reusable template? Message-ID: I was wondering if there is a way I can create my own template to show up as an option in the dialog box when I start up E-Studio? The options would read for example: Blank Blank(Professional) Basic Basic(Professional) PersonalizedTemplate I am trying to avoid the potential for future RAs to accidentally Save over a template file that is just in a folder rather than Save As, and subsequently having their world collapse around them. Any help would be greatly appreciated! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From cblais at berkeley.edu Fri Jun 25 19:36:06 2010 From: cblais at berkeley.edu (Chris Blais) Date: Fri, 25 Jun 2010 12:36:06 -0700 Subject: How to create a reusable template? In-Reply-To: Message-ID: Perhaps more primitive, but when I want to do that, I just set the file to readonly at the OS level (i.e., right click, properties, readonly). If you try to save over it, it won't let you. On Jun 25, 2010, at 12:20 PM, dpschpak wrote: > I was wondering if there is a way I can create my own template to show > up as an option in the dialog box when I start up E-Studio? The > options would read for example: > > Blank Blank(Professional) Basic Basic(Professional) > PersonalizedTemplate > > I am trying to avoid the potential for future RAs to accidentally Save > over a template file that is just in a folder rather than Save As, and > subsequently having their world collapse around them. > Any help would be greatly appreciated! > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From rmutreja at gmail.com Fri Jun 25 20:38:52 2010 From: rmutreja at gmail.com (Rachna) Date: Fri, 25 Jun 2010 13:38:52 -0700 Subject: Mental Number Line Task Message-ID: Has anyone ever created a mental number line task in Eprime? Essentially the line will range from 0 to 1000 and the participant is given a number. They have to place a line/arrow on the line indicating where they think it belongs. I appreciate the help! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Sat Jun 26 00:01:40 2010 From: sombrenote at gmail.com (SombreNote) Date: Fri, 25 Jun 2010 17:01:40 -0700 Subject: Slide Advancement Contingent on Correct Answer Message-ID: I am using a PST's sample Mouse Click Response to make a mouse- clicking task. They will be clicking on a few boxes with answers. There might be one correct answer or many but I think I will be able to figure out how to make more then one correct answer from the material from this thread (multiple correct responses: http://support.pstnet.com/forum/Topic1072-5-1.aspx?Highlight=correct). What I cannot seem to get it to do is advance ONLY when the answer is correct. I tried modifying allowable responses but that seem to be only input types. The "Correct" box is only for specifying what is correct, and has not control over the advancement of the slide. I also looked in the advanced and tried to mess around with Termination Response, it seems to also be a specific key, and not a type of answer. Does anyone have any ideas? This seems like a really easy thing to do. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Sat Jun 26 00:09:52 2010 From: sombrenote at gmail.com (SombreNote) Date: Fri, 25 Jun 2010 17:09:52 -0700 Subject: Slide Advancement Contingent on Correct Answer In-Reply-To: <5ce35785-48bd-4376-9492-cefc061c9e7f@k39g2000yqb.googlegroups.com> Message-ID: Note: The only reason I really need this is because I want to make sure that people click only on the buttons; which is why I need multiple correct responses. Later in the experiment they will be selecting 1 of 6 buttons, and I do not want the screen to advance unless they select at least an answer, otherwise it would just go on with presumably a "No Response" -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sombrenote at gmail.com Sat Jun 26 01:55:41 2010 From: sombrenote at gmail.com (SombreNote) Date: Fri, 25 Jun 2010 18:55:41 -0700 Subject: Slide Advancement Contingent on Correct Answer In-Reply-To: Message-ID: In the mouse tracking sample it checks to see if correct or not by; If strHit = c.GetAttrib("CorrectAnswer") Then PrTsSlides.ACC = 1 Else PrTsSlides.ACC = 0 End If This value is used when it tries to figure out feedback; it just checks the accuracy. I am thinking I could get it to check this in an inline code and redo the slide. Right now there is an example something like this in the userguide page 52 (feedback.ACCStats.Reset EndPrac.Run), but it makes it redo the total whole block. I just need it to keep backing up one I guess. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From eleaves at gmail.com Sat Jun 26 22:17:20 2010 From: eleaves at gmail.com (eleaves) Date: Sat, 26 Jun 2010 15:17:20 -0700 Subject: InLine not recognized_ Contingent Branching via Jump Object Message-ID: Hi, I need to make a program where the subject response determines the feedback (which is a picture (slide object)) that is presented. I want to do this with jump labels for each "correct" "incorrect" and "no response" conditions which would point to the appropriate slide object. That slide object would then jump again to the inter trial delay and then the whole sequence would repeat. My problem is that the program does not seem to read in my inline commands. My inline is: If StimObject.RESP = ("CorrectAnswer") Then Goto CorLabel Elseif StimObject.RESP = ("InCorrectAnswer") Then Goto InCorLabel Else Goto NoRespLabel End If Do I have to 'Dim" something first? Also, there if I do not comment the Else statement, the program gets stuck on that NoResp screen... But it's like eprime doesn't even take into account the other if then statements... Any ideas??? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From candy.patterson at hotmail.co.uk Mon Jun 28 11:56:13 2010 From: candy.patterson at hotmail.co.uk (Candy Patterson) Date: Mon, 28 Jun 2010 04:56:13 -0700 Subject: help a beginner :) In-Reply-To: <123b50c6-83db-4dc2-855d-7f5f246555e9@w31g2000yqb.googlegroups.com> Message-ID: I'm also a new user so not sure if this answer is correct but hopefully will make some sense: My understanding is all the images need to be in the same folder as the E-Prime script and cannot be in any sub-folders. For the Object display in a trial (filename1) you just need to list the file name as found in the folder (e.g. object1.bmp) and therefore there is no need to have a second attribute with the file path (filename2). Also, need to ensure in the 'Procedure' line-up that the attribute [filename1] is associated to an "ImageDisplay". The ImageDisplay should display the words: Your image '[filename1]' will appear here. Hope this helps Candy -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From candy.patterson at hotmail.co.uk Mon Jun 28 12:15:19 2010 From: candy.patterson at hotmail.co.uk (Candy Patterson) Date: Mon, 28 Jun 2010 05:15:19 -0700 Subject: Interfacing E-Prime v.1 with EyeLink SR1000 Message-ID: I have an E-Prime script (several in fact) for an experiment that I have been running successfully and now wish to collect eye movement pattern data for these studies using an EyeLink SR1000 eye tracker. However, despite the EyeLink saying it supports E-Prime I cannot find an example script that successfully interfaces the two and my attempt keeps coming back with the same error. All examples seem to begin with the command 'Sub' which is what is coming back as the error as an unrecognised command. Not sure if the rest of the script works as this is the first command that is given both in the SR manual and other websites. Does anyone know whether it is possible to use E-Prime on an EyeLink and more importantly has anyone been able to successfully run a study using the two? I have a pile of experiments waiting to gain eye data that I would like to keep as E-Prime scripts. Using version 1 as the EyeLink host computer is not networked so unable to install version 2. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From candy.patterson at hotmail.co.uk Mon Jun 28 12:24:32 2010 From: candy.patterson at hotmail.co.uk (Candy Patterson) Date: Mon, 28 Jun 2010 05:24:32 -0700 Subject: Target ACC (DataAid) all displayed as 0=incorrect. why? In-Reply-To: Message-ID: Best to check first what your response keys are: under 'Properties' for the 'ImageDisplay' that the response is made in do to the 'Duration/Input' tab and check that in the following boxes you have the correct information: - DEVICES - keyboard, mouse, etc. whichever applies to your response method - ALLOWABLE - the buttons that the Ss respond with that are outlined in your 'CorrectAnswer' attribute, e.g. dk - CORRECT - [CorrectAnswer] or what you have named this attribute as This should hopefully then give a 1 for correct answers and 0 for incorrect. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From d.vinson at ucl.ac.uk Mon Jun 28 15:09:50 2010 From: d.vinson at ucl.ac.uk (David Vinson) Date: Mon, 28 Jun 2010 16:09:50 +0100 Subject: E-Prime: sampling half of the items in a list, then coming back for the rest later (+nesting) Message-ID: Dear List, I am running into a brick wall in E-Prime design/setup and I suspect I am missing something obvious. My experiment has two blocks: one block uses words of type A, and one block uses words of type B. Both blocks also include words of type C, sampled from a list twice as large as A or B. To complicate matters (of course), all words are paired with pictures within a block, three repetitions of each word with one (and only one) picture of type P, one of type Q and one of type R. My current experimental design has two levels of nested lists for a given block. For block type A, the relevant parts of the List look something like this: Top level List for block 1: Weight Nested 24 WordListA 24 WordListC WordListA Weight Nested String 1 PictureP foo 1 PictureQ foo 1 PictureR foo 1 PictureP bar 1 PictureQ bar 1 PictureR bar etc Word lists B and C are also structured in the same manner, thus specifying that each word will appear with one example of PictureP, one example of pictureQ, and one example of pictureR in the course of the experiment (we don't care which pictures within a group). All lists are sampled randomly without replacement, and each word occurs three times in the course of the experiment. Our problem is related to trying to balance degree of word repetition within a block. With the above setup, block 1 will include exactly 3 occurrences of each word of type A, paired with a picture of the desired type (that is, WordListA will be completely exhausted). However, the same block will include variable numbers of occurrences of word type C since only half this list is being sampled. We wish instead to include only half the words of type C in a given block, thus fully exhausting the word-picturetype combinations before moving to the second block. That is, subdividing list C into two equally sized sublists, with different items assigned randomly per subject. So, does anyone have suggestions of how we might do this? I know one way - create a mess of separate .es files, one for each subject, randomly generating C-sub-1 and C-sub-2 for each. But I would really like to do this within a single .es file if (reasonably) possible. Any suggestions would be very welcome indeed. Thanks! david -- David Vinson, Ph.D. Senior Postdoctoral Researcher Cognitive, Perceptual and Brain Sciences Research Department University College London 26 Bedford Way, London WC1H 0AP Tel +44 (0)20 7679 5311 (UCL internal ext. 25311) -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From sravaniv at gmail.com Mon Jun 28 18:15:48 2010 From: sravaniv at gmail.com (Sravani Vinapamula) Date: Mon, 28 Jun 2010 14:15:48 -0400 Subject: Pausing with a procedure in E-prime Message-ID: Hi, I am running an experiment with kids and I need to pause it as needed. The problem is I would like to run a proc (with moviedisplay and some other code in it) during the GetUserBreakState. How do I do this? I think it needs an input to get out of the pause, but I think since the proc cannot have an input it is giving an error. Any help is appreciated. Thank you Sravani -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michiel.Spape at nottingham.ac.uk Tue Jun 29 10:28:46 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 29 Jun 2010 11:28:46 +0100 Subject: help a beginner :) In-Reply-To: <03ba11da-29a2-400a-b551-7b41a82830d4@u26g2000yqu.googlegroups.com> Message-ID: Hi Candy & OP, This is not exactly the case; files should be accessible anywhere on the system, the only problem is that it is A) difficult to move experiments around like that (since the structure on the other computer would need to be exactly the same) and B) for some people difficult in terms of syntax. The second one seems to be the problem here, with several basic things going wrong: - Windows tends to use back-slash syntax for files that are on the current PC i.e. C:\windows\system32, rather than c:/windows/system32. - \ is also an escape character and writing addresses very often goes wrong because of it. In inline, for example, you'd have to use c:\\windows\\system32 to produce c:\windows\system32 ... Because of all this often goes wrong, it's usually better to do it like Candy suggested: just dump everything in the same folder as the experiment and never mind about writing down paths. The only good reason for doing it otherwise is that one might want to have some organisation: sad faces 1-100 go in folder 'sad', happy faces 1-100 go in folder happy. Have these folders, then, as subfolders of the place where your experiment is located and use relative paths: sad\\face1.bmp, happy\\face8.bmp. This is also convenient if you then have two attributes, say: TypeOfFace and FaceNumber, because then you can just assign the current face as CurrentFace.filename = c.GetAttrib("TypeOfFace") & "\\" & c.GetAttrib("FaceNumber") Or something like that. Best, Mich Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Candy Patterson Sent: 28 June 2010 12:56 To: E-Prime Subject: Re: help a beginner :) I'm also a new user so not sure if this answer is correct but hopefully will make some sense: My understanding is all the images need to be in the same folder as the E-Prime script and cannot be in any sub-folders. For the Object display in a trial (filename1) you just need to list the file name as found in the folder (e.g. object1.bmp) and therefore there is no need to have a second attribute with the file path (filename2). Also, need to ensure in the 'Procedure' line-up that the attribute [filename1] is associated to an "ImageDisplay". The ImageDisplay should display the words: Your image '[filename1]' will appear here. Hope this helps Candy -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Tue Jun 29 10:38:21 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 29 Jun 2010 11:38:21 +0100 Subject: Interfacing E-Prime v.1 with EyeLink SR1000 In-Reply-To: <5fcf4294-7ef0-4b59-a318-7e94ccb05b55@b35g2000yqi.googlegroups.com> Message-ID: Hi, Please name the exact error (copy paste it from your debug output). Despite me guessing here, I think it's pretty likely that your error is caused by an unfinished line of code, for example: If [condition] then Statement End If Or Sub [myGreatFunction] End Etc. The problem is not that E-Prime doesn't do 'Sub' - it means subroutine (or, procedure, if you like). Two possibilities as to what happened here: - they've made bad examples. Always first try if you get their examples to work, only THEN see if you can implement them in your own code. How else can you know if your EyeLink works? - your implementation is invalid; somewhere, an if statement is unfinished (it happens quite a lot with my own code as well), or, worse, ended twice (leading the other end to be the end of all code) or ended when it wasn't necessary, as in: If [condition] then [Statement] End if ... The above is what my students do a lot, and, to be frank, it's very understandable and I don't see what visual basic's preoccupation with new lines is. However, if you write the whole bit in one line, this, to basic means, it is also ended in one go. Pretty frustrating if you're used to C or other programming languages. I don't know EyeLink, only Tobii, but I assume that if they say their software is e-prime compatible (do they have eye-prime add-ons?), I assume it is... Best, Michiel Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Candy Patterson Sent: 28 June 2010 13:15 To: E-Prime Subject: Interfacing E-Prime v.1 with EyeLink SR1000 I have an E-Prime script (several in fact) for an experiment that I have been running successfully and now wish to collect eye movement pattern data for these studies using an EyeLink SR1000 eye tracker. However, despite the EyeLink saying it supports E-Prime I cannot find an example script that successfully interfaces the two and my attempt keeps coming back with the same error. All examples seem to begin with the command 'Sub' which is what is coming back as the error as an unrecognised command. Not sure if the rest of the script works as this is the first command that is given both in the SR manual and other websites. Does anyone know whether it is possible to use E-Prime on an EyeLink and more importantly has anyone been able to successfully run a study using the two? I have a pile of experiments waiting to gain eye data that I would like to keep as E-Prime scripts. Using version 1 as the EyeLink host computer is not networked so unable to install version 2. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From dwivedilab at gmail.com Tue Jun 29 14:00:02 2010 From: dwivedilab at gmail.com (Dwivedi Lab) Date: Tue, 29 Jun 2010 07:00:02 -0700 Subject: Residual Reading Time for Self-Paced Reading Experiments Message-ID: We are doing a series of self-paced reading experiments and need to calculate the residual reading times for each individual participant then combine all the participant data into one group file for analysis. So far we've been importing the data into excel and manipulating it there in order to get residual reading time values. We have created a series of excel files to streamline this process, however these files are prone to error and end up taking more time to fix than they actually save. Is there a way to calculate residual reading time data from within E-Prime? Or is there a faster, fool- proof way to calculate residual reading time in general? Any help is appreciated! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Tue Jun 29 14:22:47 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 29 Jun 2010 15:22:47 +0100 Subject: InLine not recognized_ Contingent Branching via Jump Object In-Reply-To: Message-ID: Hi, It seems you've missed something - If StimObject.Resp = ("CorrectAnswer") means the RESP is checked against each letter in CorrectAnswer: C O R R E ... etc. I assume you mean: If Stimobject.RESP = C.GetAttrib("CorrectAnswer") instead? Furthermore, make your sequence first simple, then figure out what goes wrong: If StimObject.RESP = "" then goto NoRespLabel Else If StimObject.RESP = C.GetAttrib("CorrectAnswer") then goto CorLabel else goto IncorLabel end if end if ... also, it makes sense to first check whether someone actually gave an answer, THEN wonder whether the answer is wrong or right. Best, Michiel Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of eleaves Sent: 26 June 2010 23:17 To: E-Prime Subject: InLine not recognized_ Contingent Branching via Jump Object Hi, I need to make a program where the subject response determines the feedback (which is a picture (slide object)) that is presented. I want to do this with jump labels for each "correct" "incorrect" and "no response" conditions which would point to the appropriate slide object. That slide object would then jump again to the inter trial delay and then the whole sequence would repeat. My problem is that the program does not seem to read in my inline commands. My inline is: If StimObject.RESP = ("CorrectAnswer") Then Goto CorLabel Elseif StimObject.RESP = ("InCorrectAnswer") Then Goto InCorLabel Else Goto NoRespLabel End If Do I have to 'Dim" something first? Also, there if I do not comment the Else statement, the program gets stuck on that NoResp screen... But it's like eprime doesn't even take into account the other if then statements... Any ideas??? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Tue Jun 29 14:24:50 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Tue, 29 Jun 2010 15:24:50 +0100 Subject: Residual Reading Time for Self-Paced Reading Experiments In-Reply-To: <6a803433-99cb-462c-b6aa-a3ec9f92a54e@x21g2000yqa.googlegroups.com> Message-ID: Perhaps you can start by saying what residual reading times are? Sorry, I'm more used to cognitive fields than psycholinguistics (I assume residual reading, as a concept, is commonly known there?) Best, Mich Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Dwivedi Lab Sent: 29 June 2010 15:00 To: E-Prime Subject: Residual Reading Time for Self-Paced Reading Experiments We are doing a series of self-paced reading experiments and need to calculate the residual reading times for each individual participant then combine all the participant data into one group file for analysis. So far we've been importing the data into excel and manipulating it there in order to get residual reading time values. We have created a series of excel files to streamline this process, however these files are prone to error and end up taking more time to fix than they actually save. Is there a way to calculate residual reading time data from within E-Prime? Or is there a faster, fool- proof way to calculate residual reading time in general? Any help is appreciated! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From dwivedilab at gmail.com Tue Jun 29 15:00:11 2010 From: dwivedilab at gmail.com (Dwivedi Lab) Date: Tue, 29 Jun 2010 08:00:11 -0700 Subject: Residual Reading Time for Self-Paced Reading Experiments In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF038290B9@VUIEXCHC.ad.nottingham.ac.uk> Message-ID: Residual reading time (RRT) is a way to correct for sentence length, word length, and individual differences between participants' reading speeds. For example, a sentence with five words is read faster than one with 10; a sentence with 10 long words is read faster than one with 10 short words; etc. Since we're using a self-paced design, naturally some people will read and progress through the sentences faster than others. By calculating RRT, we can eliminate this bias. First thing we do is plot all of the raw reading times against the number of characters per word for each participant and create a line of best fit. This line represents the average speed that that particular person reads depending on the number of characters (ie word length). The general trend is that as the number of characters increase, so does reading time. We do this for every participant, resulting in average reading times that are specific to every participant. Using the formula of the line of best fit, we can determine the average reading time for words that have 2 characters, 3 characters, 14 characters, etc. From there we compare the actual raw reading time to the average value. The amount by which the raw value deviates from our calculated value (ie the line) is known as the residual reading time. These values appear as plus or minus values (+/-). This way, two participants may read the same word at completely different speeds, but now we compare that value to their own reading pace in order to determine whether they're taking longer to read that word or not instead of comparing it to a group average which is less accurate. Our method for calculating RRT was adopted from the following article, explained in the appendix: ?Semantic Influences on Parsing: Use of Thematic Role Information in Syntactic Ambiguity Resolution? Trueswell and Tanenhaus, 1994 Hopefully this makes sense On Jun 29, 10:24 am, Michiel Spape wrote: > Perhaps you can start by saying what residual reading times are? > Sorry, I'm more used to cognitive fields than psycholinguistics (I assume residual reading, as a concept, is commonly known there?) > Best, > Mich > > Michiel Spap? > Research Fellow > Perception & Action group > University of Nottingham > School of Psychology > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Dwivedi Lab > Sent: 29 June 2010 15:00 > To: E-Prime > Subject: Residual Reading Time for Self-Paced Reading Experiments > > We are doing a series of self-paced reading experiments and need to > calculate the residual reading times for each individual participant > then combine all the participant data into one group file for > analysis. So far we've been importing the data into excel and > manipulating it there in order to get residual reading time values. We > have created a series of excel files to streamline this process, > however these files are prone to error and end up taking more time to > fix than they actually save. Is there a way to calculate residual > reading time data from within E-Prime? Or is there a faster, fool- > proof way to calculate residual reading time in general? > > Any help is appreciated! > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From cm396j at nih.gov Tue Jun 29 22:09:46 2010 From: cm396j at nih.gov (Carol) Date: Tue, 29 Jun 2010 15:09:46 -0700 Subject: use mouse as response device for visual analog scales Message-ID: I don't know much about writing programs and have run into a big snag. I have an eprime file written to use a joystick type device and I want to revise the program to use a mouse instead. Something like, hold the left mouse button down to scroll across a line (visual analog scale) and the right mouse button to select the desired spot along the line. Here are the two scripts, not sure if both need to be revised.... I would be forever grateful if someone can help me with this. 1st script: ZeroWheel Pos = 400 PrevPos = -1 MaxPos = 400 MinPos = -400 'Draw main bar cnvs.PenWidth = 1 cnvs.PenColor = CColor("blue") cnvs.FillColor = CColor("blue") cnvs.Rectangle 110, 350, 804, 40 'Draw box around the bar that they have to move out of cnvs.PenWidth = 5 cnvs.PenColor = CColor("black") cnvs.line 503, 330, 503, 409 cnvs.line 504, 330, 520, 330 cnvs.line 521, 330, 521, 409 cnvs.line 504, 410, 520, 410 moved = FALSE 'get the scale from the list xscale = c.getattrib("scale") xdivisor = c.getattrib("divisor") 'start the timer starttime = Clock.Read 2nd script: Dim x as long Dim b as long Dim err1 as integer 'Get New pos err1 = ReadWheel(x,b,FALSE) if (err1 = -1) then Debug.Print "Died with err1 = -1" Questions.terminate End if x = Cint(x/xdivisor) * xscale if (x < MinPos) then MinPos = x MaxPos = MinPos + 800 Pos = 800 elseif (x > MaxPos) then MaxPos = x MinPos = MaxPos - 800 Pos = 0 else Pos = MaxPos - x End if if (Pos <> PrevPos) Then cnvs.PenWidth = 1 'is this the first move? if so erase the box if (Not moved) AND Pos <> 400 then moved = TRUE cnvs.PenColor = CColor("white") cnvs.FillColor = CColor("white") cnvs.rectangle 500, 327, 28, 23 cnvs.rectangle 500, 390, 28, 23 cnvs.PenColor = CColor("blue") cnvs.FillColor = CColor("blue") cnvs.rectangle 500, 350, 28, 40 end if 'Erase old tab cnvs.PenColor = CColor("blue") cnvs.FillColor = CColor("blue") cnvs.Rectangle 110+PrevPos, 350, 5, 40 cnvs.PenColor = CColor("white") cnvs.FillColor = CColor("white") cnvs.Rectangle 110+PrevPos, 340, 5, 10 cnvs.Rectangle 110+PrevPos, 390, 5, 10 'Draw New Tab cnvs.PenColor = CColor("black") cnvs.FillColor = CColor("black") cnvs.Rectangle 110+Pos, 340, 5, 60 PrevPos = Pos End if 'timed out with no button press if ((b = 0) AND (Clock.Read - starttime) > CLng(c.getattrib("duration"))) then c.setattrib "wheelpos", -1*pos c.setattrib "responsetime", starttime-Clock.Read goto timeout End if 'no button press, so end if (b = 0) then goto loopstart End if 'pushed button, but no move (bastard) if (b <> 0) AND NOT moved then goto loopstart End if 'pushed a button, so we are done c.setattrib "wheelpos", pos c.setattrib "responsetime", Clock.Read - starttime -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Wed Jun 30 10:50:02 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Wed, 30 Jun 2010 11:50:02 +0100 Subject: Residual Reading Time for Self-Paced Reading Experiments In-Reply-To: Message-ID: Hi, I see, it sounds quite useful! Anyway, so what you need is A) reading times for various words; I don't know how you obtain these exactly, but I guess from E-Prime, before the rest of the experiment starts or something B) average reading times for each word-length ... such that you can calculate by means of simple linear regression the 'line', and therefore, later on, the residual. What exactly is the problem? You just make something like an array (or a dozen of variables: sum2, sum3.. sum14) where you keep the sum of each reading time for each wordlength, then after all reading times are known, you divide them by the amount of reading times encountered, and then you calculate a linear regression. It's a bit of work, I grant you that, and if you're not brilliant with statistics, you will have to look up how these work exactly (I think there are decent articles with examples on Wikipedia), but I think you're right in saying that it makes sense to do this within E-Prime rather than afterwards. How far do you get, though, and where do you get stuck? Best, Michiel Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Dwivedi Lab Sent: 29 June 2010 16:00 To: E-Prime Subject: Re: Residual Reading Time for Self-Paced Reading Experiments Residual reading time (RRT) is a way to correct for sentence length, word length, and individual differences between participants' reading speeds. For example, a sentence with five words is read faster than one with 10; a sentence with 10 long words is read faster than one with 10 short words; etc. Since we're using a self-paced design, naturally some people will read and progress through the sentences faster than others. By calculating RRT, we can eliminate this bias. First thing we do is plot all of the raw reading times against the number of characters per word for each participant and create a line of best fit. This line represents the average speed that that particular person reads depending on the number of characters (ie word length). The general trend is that as the number of characters increase, so does reading time. We do this for every participant, resulting in average reading times that are specific to every participant. Using the formula of the line of best fit, we can determine the average reading time for words that have 2 characters, 3 characters, 14 characters, etc. From there we compare the actual raw reading time to the average value. The amount by which the raw value deviates from our calculated value (ie the line) is known as the residual reading time. These values appear as plus or minus values (+/-). This way, two participants may read the same word at completely different speeds, but now we compare that value to their own reading pace in order to determine whether they're taking longer to read that word or not instead of comparing it to a group average which is less accurate. Our method for calculating RRT was adopted from the following article, explained in the appendix: "Semantic Influences on Parsing: Use of Thematic Role Information in Syntactic Ambiguity Resolution" Trueswell and Tanenhaus, 1994 Hopefully this makes sense On Jun 29, 10:24 am, Michiel Spape wrote: > Perhaps you can start by saying what residual reading times are? > Sorry, I'm more used to cognitive fields than psycholinguistics (I assume residual reading, as a concept, is commonly known there?) > Best, > Mich > > Michiel Spap? > Research Fellow > Perception & Action group > University of Nottingham > School of Psychology > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Dwivedi Lab > Sent: 29 June 2010 15:00 > To: E-Prime > Subject: Residual Reading Time for Self-Paced Reading Experiments > > We are doing a series of self-paced reading experiments and need to > calculate the residual reading times for each individual participant > then combine all the participant data into one group file for > analysis. So far we've been importing the data into excel and > manipulating it there in order to get residual reading time values. We > have created a series of excel files to streamline this process, > however these files are prone to error and end up taking more time to > fix than they actually save. Is there a way to calculate residual > reading time data from within E-Prime? Or is there a faster, fool- > proof way to calculate residual reading time in general? > > Any help is appreciated! > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From jjt379 at googlemail.com Wed Jun 30 12:10:25 2010 From: jjt379 at googlemail.com (Jakke Tamminen) Date: Wed, 30 Jun 2010 05:10:25 -0700 Subject: Pseudorandom selection from a nested list Message-ID: Hi, I have an experiment where I present two stimuli on the screen: a target and a distractor. On each trial, I want to be able to pseudorandomly select the distractor from a nested list. This nested list however includes the target (it includes all stimuli in the experiment). I want to tell E-prime to randomly pick an item from the nested list but it must NOT be the target in the current trial. Any ideas on how to do this? Thanks, Jakke -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From Michiel.Spape at nottingham.ac.uk Wed Jun 30 17:03:21 2010 From: Michiel.Spape at nottingham.ac.uk (Michiel Spape) Date: Wed, 30 Jun 2010 18:03:21 +0100 Subject: Visual/dot probe experiment In-Reply-To: <403f9f94-d3b1-43a7-8e0d-4da99568bc5d@g19g2000yqc.googlegroups.com> Message-ID: Hi, If you look in the archives, you find quite a number of people (posted 24/05/2010, and 07/05/2009, for example) who also did dot-probe tasks in e-prime. I assume they succeeded by now, so you might contact them? Off topically: By the way, it would be brilliant if we could update experiments here, but I think at the moment, one has to be moderator in order to do this. This is really a shame as it stops this group from reaching its full potential as a board of discussion and international collaboration in psychology and associated sciences. Best, Michiel Michiel Spap? Research Fellow Perception & Action group University of Nottingham School of Psychology -----Original Message----- From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of beththetree Sent: 22 June 2010 11:03 To: E-Prime Subject: Visual/dot probe experiment Hi there, I'm reasonably new to E-Prime and have been tasked with setting up a visual probe/ dot-probe experiment from scratch and am getting nowhere fast with it. Does anyone know of anywhere that I can download samples/ versions of such an experiment to use as a reference or adapt? Thank you Bethrm -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From neuropsych76 at gmail.com Wed Jun 30 18:33:43 2010 From: neuropsych76 at gmail.com (cogneuroisfun) Date: Wed, 30 Jun 2010 11:33:43 -0700 Subject: help a beginner :) In-Reply-To: <0CA8E1B4EC20D743912B980E486C5CAF03828F50@VUIEXCHC.ad.nottingham.ac.uk> Message-ID: Thank you both very much for the help! It was actually I couldn't use 20 Bit bitmap files in my version of E- Prime. I had to change them all to 256 color!! It took me a long time to figure that out lol Thanks anyway :) On Jun 29, 6:28?am, Michiel Spape wrote: > Hi Candy & OP, > This is not exactly the case; files should be accessible anywhere on the system, the only problem is that it is A) difficult to move experiments around like that (since the structure on the other computer would need to be exactly the same) and B) for some people difficult in terms of syntax. The second one seems to be the problem here, with several basic things going wrong: > - Windows tends to use back-slash syntax for files that are on the current PC i.e. C:\windows\system32, rather than c:/windows/system32. > - \ is also an escape character and writing addresses very often goes wrong because of it. In inline, for example, you'd have to use c:\\windows\\system32 to produce c:\windows\system32 > ... > Because of all this often goes wrong, it's usually better to do it like Candy suggested: just dump everything in the same folder as the experiment and never mind about writing down paths. The only good reason for doing it otherwise is that one might want to have some organisation: sad faces 1-100 go in folder 'sad', happy faces 1-100 go in folder happy. Have these folders, then, as subfolders of the place where your experiment is located and use relative paths: sad\\face1.bmp, happy\\face8.bmp. This is also convenient if you then have two attributes, say: TypeOfFace and FaceNumber, because then you can just assign the current face as > CurrentFace.filename = c.GetAttrib("TypeOfFace") & "\\" & c.GetAttrib("FaceNumber") > Or something like that. > > Best, > Mich > > Michiel Spap? > Research Fellow > Perception & Action group > University of Nottingham > School of Psychology > > -----Original Message----- > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Candy Patterson > Sent: 28 June 2010 12:56 > To: E-Prime > Subject: Re: help a beginner :) > > I'm also a new user so not sure if this answer is correct but > hopefully will make some sense: > > My understanding is all the images need to be in the same folder as > the E-Prime script and cannot be in any sub-folders. For the Object > display in a trial (filename1) you just need to list the file name as > found in the folder (e.g. object1.bmp) and therefore there is no need > to have a second attribute with the file path (filename2). > > Also, need to ensure in the 'Procedure' line-up that the attribute > [filename1] is associated to an "ImageDisplay". The ImageDisplay > should display the words: Your image '[filename1]' will appear here. > > Hope this helps > > Candy > > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To post to this group, send email to e-prime at googlegroups.com. > To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/e-prime?hl=en. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en. From neuropsych76 at gmail.com Wed Jun 30 18:37:58 2010 From: neuropsych76 at gmail.com (cogneuroisfun) Date: Wed, 30 Jun 2010 11:37:58 -0700 Subject: Clearing half a screen Message-ID: Hi all, Another noobie question here. I have a picture up while I have my participants answer questions about the picture. I want this picture to stay up as they answer 3 questions (the questions are on a grid survey so the questions cant all fit on one screen) My question is how do I clear the previous question with keeping the picture in tact? The call clearscreen command clears everything and if I just keep everything from clearing the previous question overlaps the next question. The picture is at the top of the screen and the survey takes up the bottom of the screen so is there anyway to clear just the bottom of the screen? Thank you! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To post to this group, send email to e-prime at googlegroups.com. To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com. For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.