From seif1301 at uni-trier.de Wed Feb 6 14:28:37 2002 From: seif1301 at uni-trier.de (Jan Seifert) Date: Wed, 6 Feb 2002 15:28:37 +0100 Subject: Presentation of film clips (part II) Message-ID: Dear E-Prime users We need to play digital video clips for one of our upcoming experiments. According to a message of this EPrime discussion list, there is no possibility to do that with EPrime itself. Nonetheless we tried to get around with this problem. For this part of the experiment, a precise timing in millisecond range is not that important for us. So we thought it to be possible, that we play films via MCI or Windows Media Player. I’ll send our two code examples along with this message, that you can see, what we have done. The code works well up to the end of the presentation. In both cases we get an error message then, which none of us exactly understands: "Internal Error: Drawing Error 0x887601c2" First we thought, the problems are due to the "E-Prime Experiment Window" losing the focus. But a "WinActivate"-command after presentation doesn’t prove any success. Maybe there is someone out there, who can help us out? Any help would be greatly appreciated. Thanks awfully... Jan Seifert '******** Filmclips via MCI *********************************************** '**** User Section Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As Any, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long Declare Function mciGetErrorString Lib "winmm.dll" Alias "mciGetErrorStringA" (ByVal fdwError As Long, ByVal lpszErrorText As String, ByVal cchErrorText As Long) As Long '**** Inline Movie via mci **** Dim R&, AA$, L&, ReturnStr$ Dim VideoHandle, ERunHandle R = mciSendString("open mall.mov alias mall style 4", 0&, 0, 0&) If (R <> 0) Then AA = Space(128) L = mciGetErrorString(R, AA, 100) MsgBox AA & ": " & R End If R = mciSendString("play mall fullscreen", 0&, 0, 0&) If (R <> 0) Then AA = Space(128) L = mciGetErrorString(R, AA, 100) MsgBox AA & ": " & R End If Sleep (7000) R = mciSendString("close mall", 0&, 0, 0&) If (R <> 0) Then AA = Space(128) L = mciGetErrorString(R, AA, 100) MsgBox AA & ": " & R End If '*** Filmclips via MediaPlayer **************************************************** '*** User Section **** Declare Function OpenProcess Lib "Kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Declare Function GetExitCodeProcess Lib "Kernel32" (ByVal hProcess As Long, lpExitCode As Long) As Long Declare Sub Sleep Lib "Kernel32" (ByVal dwMilliseconds As Long) Const STILL_ACTIVE = &H103 Const PROCESS_QUERY_INFORMATION = &H400 Sub Shell32Bit(ByVal JobToDo As String) '********************* Dim Dummy As Long Dim hProcess As Long Dim RetVal As Long 'The next line launches JobToDo as icon, 'captures process ID hProcess = OpenProcess(PROCESS_QUERY_INFORMATION, False, Shell(JobToDo, ebMaximizedFocus)) ', Do 'Get the status of the process Dummy = GetExitCodeProcess(hProcess, RetVal) 'Sleep command recommended as well as DoEvents DoEvents: Sleep 100 'Loop while the process is active Loop While RetVal = STILL_ACTIVE ' get the focus back; but that doesn’t help WinActivate("E-Run Experiment Window") End Sub **** Inline MediaPlayer **** Shell32Bit("mplayer2.exe /fullscreen /play /close mall.mov") / \ Jan Seifert \ \ Universität Trier \ FB I - Psychologie \ Gebäude D, Room D217 \ 54296 Trier \ \ Phone: +49 (0)651 201-2896 \ E-Mail: seif1301 at uni-trier.de / From mrichter at Princeton.EDU Tue Feb 12 19:10:25 2002 From: mrichter at Princeton.EDU (Marlene Richter) Date: Tue, 12 Feb 2002 14:10:25 -0500 Subject: reading the status bits of parallel port continuously? Message-ID: Hello everyone, I am new to E-Prime (about 2 weeks) so perhaps someone with more experience can answer this question. However I did not see it in any of the manuals, discussions or on the E-Prime website. I have been able to successfully use the WritePort command to trigger an external device (address &H378), and the ReadPort command to receive a trigger from an external device on the parallel port (address:&H379) as described on the E-Prime website. For the ReadPort command, I kept cycling through an "If Then Else, Else loop" until the 4th bit (pin 15) changed its state, and then exited the label loop to start the main portion of the code (my paradigm). However, I would like to continually poll the status pins at address &H379 to know when changes in state occur throughout the experiment. I would like to use the first TTL input pulse from an external device to trigger the main paradigm of the experiment, but I would like to keep continuing the experiment (without any interruptions) as I record additional TTL signals from the external device. For example, if my external device is putting out 100 TTL pulses, I would like to start the main portion of my paradigm presentation immediately after the first pulse, and record all the subsequent 99 pulses and their timing in the E-DataAid file without disrupting my paradigm timing. Can anyone provide me with some help or advice? Will E-Prime even permit this? Any suggestions would be greatly appreciated. Thanks for any suggestions you may be able to provide! P.S. I am still using the Beta 5.0 version. Marlene Richter mrichter at princeton.edu From katerina at andrew.cmu.edu Wed Feb 13 16:44:18 2002 From: katerina at andrew.cmu.edu (Katerina Avramides) Date: Wed, 13 Feb 2002 11:44:18 -0500 Subject: read attributes from file Message-ID: I'm using a text (tab delimited) excel file, but an error comes up that there is an invalid attribute when reading the file (error: -999). I think the problem is the value for the nested attribute - I don't know what value I should assign (leaving it blank doesn't seem to work). Any suggestions would be greatly appreciated! Katerina From anthony.zuccolotto at pstnet.com Wed Feb 13 18:43:19 2002 From: anthony.zuccolotto at pstnet.com (Tony Zuccolotto) Date: Wed, 13 Feb 2002 13:43:19 -0500 Subject: read attributes from file Message-ID: Katerina, I think you need to just make sure there are two tabs generated back to back. I just tried this by creating the cells (first row with Attribute names on it) and leaving the cell blank for Nested using Excel. I did a Save As... from Excel and saved it as tab delimited text. I ran with E-Prime and it worked. Perhaps that's not the true cause of the error you are seeing. Are you sure the exact number of attributes (and their names) are the same between the spreadsheet and the List that you are trying to load them into? nothing scrolled off to one side of the List that you didn't see? any hidden columns that are causing miss matches (Weight, Procedure, Nested)? Hope that helps. Tony << ALL VIEWS EXPRESSED ARE MY OWN AND DO NOT NECESSARILY REFLECT THE OPINIONS OF PSYCHOLOGY SOFTWARE TOOLS, INC. >> Anthony P. Zuccolotto Vice President of Operations Psychology Software Tools, Inc. 2050 Ardmore Boulevard Suite 200 Pittsburgh, PA 15221-4610 Phone 412-271-5040 FAX 412-271-7077 Email anthony.zuccolotto at pstnet.com Internet http://www.pstnet.com/ > -----Original Message----- > From: Katerina Avramides [mailto:katerina at andrew.cmu.edu] > Sent: Wednesday, February 13, 2002 11:44 AM > To: eprime at mail.talkbank.org > Subject: read attributes from file > > > I'm using a text (tab delimited) excel file, but an error > comes up that > there is an invalid attribute when reading the file (error: > -999). I think > the problem is the value for the nested attribute - I don't > know what value > I should assign (leaving it blank doesn't seem to work). > Any suggestions would be greatly appreciated! > > Katerina > > > > From carne006 at umn.edu Wed Feb 13 19:18:01 2002 From: carne006 at umn.edu (Edward Carney) Date: Wed, 13 Feb 2002 13:18:01 -0600 Subject: read attributes from file In-Reply-To: <6D8910A1FAF7E347B5C617CDE86FF4CD1F41C2@mercury.pstmail> Message-ID: A good way to view the lines in these tab-delimited files is to read them into MS-Word (or whatever) and make TAB characters visible. In MS-Word you do this by going to Tools/Options and checking "Tab characters" under "Nonprinting characters" on the View tab. Any discrepancies will show up more clearly this way. Edward Carney Research Assoc. Univ. of Minnesota From Btomlow at chdr.nl Mon Feb 18 12:39:21 2002 From: Btomlow at chdr.nl (Benjamin Tomlow) Date: Mon, 18 Feb 2002 13:39:21 +0100 Subject: question about e-prime Message-ID: Can somebody help me. I am working on a specific test called the digital symbol substitution test. It has to provide (on 1 screen at a time) 9 different stimulus which require 9 answers. The correctness of these responses must be seen in E-dataaid in the same manner as it is done normally. Can somebody tell me if this is possible and how it is done. Benjamin Tomlow E-mail: BTomlow at chdr.nl From claudia.waldmann at vuw.ac.nz Mon Feb 18 23:08:07 2002 From: claudia.waldmann at vuw.ac.nz (claudia) Date: Tue, 19 Feb 2002 12:08:07 +1300 Subject: parallel port Message-ID: Question: Does - and if so, how - eprime accept input from a parallel port? -------------- next part -------------- An HTML attachment was scrubbed... URL: From claudia.waldmann at vuw.ac.nz Wed Feb 20 00:55:47 2002 From: claudia.waldmann at vuw.ac.nz (claudia) Date: Wed, 20 Feb 2002 13:55:47 +1300 Subject: correct response Message-ID: Hi there, for my experiment the participant's response may either be 1 or 2. What should the correct input into the "CorrectAnswer" column in the List Object be? Thanks for your suggestions! -------------- next part -------------- An HTML attachment was scrubbed... URL: From susanc at andrew.cmu.edu Wed Feb 20 19:37:03 2002 From: susanc at andrew.cmu.edu (Susan Campbell) Date: Wed, 20 Feb 2002 14:37:03 -0500 Subject: correct response Message-ID: I looked at this, hoping there would be an easy answer (like putting both inputs in the CorrectAnswer column). Unfortunately, I couldn't find one. What I ended up doing was creating a seperate input object for each correct answer, and having the allowable in those input objects not include the other correct answer. The downside to this is that you would need to specify each correct answer seperately, and specify all of the incorrect responses as well. So, to display something that has two correct answers, "1" and "2" and two incorrect answers, "3" and "4", would take three columns, one for each correct answer and one for all incorrect answers. The test script is at http://step.psy.cmu.edu/script_samples/dual_response.zip if you'd like to see if it works for what you're doing. Hope this helps, Susan Campbell STEP Programmer, Carnegie Mellon claudia wrote: > Hi there, > > for my experiment the participant's response may either be 1 or 2. What > should the correct input into the "CorrectAnswer" column in the List > Object be? > > Thanks for your suggestions! > From Jenny.Thomson at psyka.jyu.fi Fri Feb 22 08:47:33 2002 From: Jenny.Thomson at psyka.jyu.fi (Jenny Thomson) Date: Fri, 22 Feb 2002 10:47:33 +0200 Subject: Pausing experiments and sound stimuli question Message-ID: We are currently developing a paradigm where a series of sounds are presented to children as part of an ERP study (i.e. long blocks of sounds not requiring behavioural responses for continuation) 1. We need a possibility of pausing the experiment if the child needs a break, but can only seem to find the abort command (Ctrl+Alt+Shift ) to do this - has anyone got a more elegant way to pause experiments mid flow? 2. We are also thinking of using continuous sound waves in some conditions - has anyone tried this with EGI/Netstation and know of a way of sending trigger tags to Netstation WITHIN the course of one sound wav.? Thanks, Jenny Thomson Psychology Dept., University of Jyväskylä, Finland From jsmaxwell at students.wisc.edu Fri Feb 22 18:02:00 2002 From: jsmaxwell at students.wisc.edu (Jeff Maxwell) Date: Fri, 22 Feb 2002 12:02:00 -0600 Subject: Pausing experiments and sound stimuli question In-Reply-To: Message-ID: regarding the pause issue, i haven't tested this and there might be a much easier way :) try creating a very simple procedure in your experiment consisting of a blank or "pause" text object (-1 ms [infinite] duration, set to terminate with a particular response]. you wouldn't call this procedure in your normal list of events. then setup your experimental procedure(s) to allow input (such as "P") into an object that is routinely called (e.g. a wait object used to separate trials; "ITIinterval"). follow ITIinterval with a script object and use an "if then else" statement to monitor input to ITIinterval (e.g. ITIobject.RESP value) and whenever that value is equal to your pause command ("P"), jump/goto a couple of additional lines of script that invoke the PauseProc procedure. good luck, and if you learn of a way to send multiple event markers during the course of a single long event, please let me know. cheers, max -----Original Message----- From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On Behalf Of Jenny Thomson Sent: Friday, February 22, 2002 2:48 AM To: eprime at mail.talkbank.org Subject: Pausing experiments and sound stimuli question We are currently developing a paradigm where a series of sounds are presented to children as part of an ERP study (i.e. long blocks of sounds not requiring behavioural responses for continuation) 1. We need a possibility of pausing the experiment if the child needs a break, but can only seem to find the abort command (Ctrl+Alt+Shift ) to do this - has anyone got a more elegant way to pause experiments mid flow? 2. We are also thinking of using continuous sound waves in some conditions - has anyone tried this with EGI/Netstation and know of a way of sending trigger tags to Netstation WITHIN the course of one sound wav.? Thanks, Jenny Thomson Psychology Dept., University of Jyväskylä, Finland From anthony.zuccolotto at pstnet.com Fri Feb 22 19:18:39 2002 From: anthony.zuccolotto at pstnet.com (Tony Zuccolotto) Date: Fri, 22 Feb 2002 14:18:39 -0500 Subject: Pausing experiments and sound stimuli question Message-ID: Hi, The other way to do this is to look in the E-Basic under Get/SetUserBreakState. This is built in functionality in E-Prime to set a flag anytime the key sequence is hit. This is different than the sequence. Using GetUserBreakState you can determine if the sequence has been hit and use InLine script to take action. The flag will stay set until you manually reset it using SetUserBreakState. If trials are relatively short then just having an InLine at the beginning of end of a trial that checks for this and then puts up a TextDisplay that waits for a key from you to resume should work fine. Regards, Tony *** DISCLAIMER: VIEWS EXPRESSED ARE MY OWN AND DO NOT NECESSARY REFLECT THOSE OF MY EMPLOYER *** Anthony P. Zuccolotto Vice President of Operations Psychology Software Tools, Inc. 2050 Ardmore Boulevard Suite 200 Pittsburgh, PA 15221-4610 Phone 412-271-5040 FAX 412-271-7077 Email anthony.zuccolotto at pstnet.com Internet http://www.pstnet.com/ > -----Original Message----- > From: Jeff Maxwell [mailto:jsmaxwell at students.wisc.edu] > Sent: Friday, February 22, 2002 1:02 PM > To: 'Jenny Thomson' > Cc: eprime at mail.talkbank.org > Subject: RE: Pausing experiments and sound stimuli question > > > regarding the pause issue, i haven't tested this and there might be a > much easier way :) try creating a very simple procedure in your > experiment consisting of a blank or "pause" text object (-1 ms > [infinite] duration, set to terminate with a particular > response]. you > wouldn't call this procedure in your normal list of events. > > then setup your experimental procedure(s) to allow input (such as "P") > into an object that is routinely called (e.g. a wait object used to > separate trials; "ITIinterval"). follow ITIinterval with a script > object and use an "if then else" statement to monitor input to > ITIinterval (e.g. ITIobject.RESP value) and whenever that > value is equal > to your pause command ("P"), jump/goto a couple of additional lines of > script that invoke the PauseProc procedure. > > good luck, and if you learn of a way to send multiple event markers > during the course of a single long event, please let me know. > > cheers, > max > > > > -----Original Message----- > From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On > Behalf Of Jenny Thomson > Sent: Friday, February 22, 2002 2:48 AM > To: eprime at mail.talkbank.org > Subject: Pausing experiments and sound stimuli question > > > We are currently developing a paradigm where a series of sounds are > presented to children as part of an ERP study (i.e. long blocks of > sounds not requiring behavioural responses for continuation) > > 1. We need a possibility of pausing the experiment if the > child needs a > break, but can only seem to find the abort command > (Ctrl+Alt+Shift ) to > do this - has anyone got a more elegant way to pause experiments mid > flow? > > 2. We are also thinking of using continuous sound waves in some > conditions - has anyone tried this with EGI/Netstation and > know of a way > of sending trigger tags to Netstation WITHIN the course of one sound > wav.? > > Thanks, > Jenny Thomson > Psychology Dept., > University of Jyväskylä, Finland > > > > From anthony.zuccolotto at pstnet.com Fri Feb 22 19:43:12 2002 From: anthony.zuccolotto at pstnet.com (Tony Zuccolotto) Date: Fri, 22 Feb 2002 14:43:12 -0500 Subject: correct response Message-ID: Hi, I would suggest writing some inline script to recode the response at the end of the trial. Hard code correct response to something that you aren't using so it is always coded as inaccurate. Then keep another attribute that is a comma separated list of the correct answers. Look in the E-Basic help for the Item$() function that retrieves items from a comma separated list. The code would be something like the following. Dim i As Integer Dim strCorrects As String strCorrects = c.GetAttrib( "CorrectAnswers" ) ' = "1,2" For i = 1 To ItemCount( strCorrects ) If Probe.RESP = Item$( strCorrects, i ) Then Probe.ACC = 1 End If Next i Probe.ACC will automatically be put back in the context at the end of the trial prior to logging (assuming standard logging is turned on), but if you need it sooner you should also throw in a c.SetAttrib "Probe.ACC", Probe.ACC line after the new value is assigned. If the list is long you might also want to use a goto to jump out of the loop (or use a Do-Loop Until construct) so that you don't continue to go through the list after the correct answer is found. Regards, Tony *** DISCLAIMER: VIEWS EXPRESSED ARE MY OWN AND DO NOT NECESSARILY REFLECT THOSE OF MY EMPLOYER *** Anthony P. Zuccolotto Vice President of Operations Psychology Software Tools, Inc. 2050 Ardmore Boulevard Suite 200 Pittsburgh, PA 15221-4610 Phone 412-271-5040 FAX 412-271-7077 Email anthony.zuccolotto at pstnet.com Internet http://www.pstnet.com/ > -----Original Message----- > From: Susan Campbell [mailto:susanc at andrew.cmu.edu] > Sent: Wednesday, February 20, 2002 2:37 PM > To: eprime at mail.talkbank.org > Subject: Re: correct response > > > I looked at this, hoping there would be an easy answer (like putting > both inputs in the CorrectAnswer column). Unfortunately, I couldn't > find one. What I ended up doing was creating a seperate input object > for each correct answer, and having the allowable in those > input objects > not include the other correct answer. > > The downside to this is that you would need to specify each correct > answer seperately, and specify all of the incorrect responses > as well. > So, to display something that has two correct answers, "1" > and "2" and > two incorrect answers, "3" and "4", would take three columns, one for > each correct answer and one for all incorrect answers. > > The test script is at > http://step.psy.cmu.edu/script_samples/dual_response.zip if > you'd like > to see if it works for what you're doing. > > Hope this helps, > Susan Campbell > STEP Programmer, Carnegie Mellon > > > claudia wrote: > > > Hi there, > > > > for my experiment the participant's response may either be > 1 or 2. What > > should the correct input into the "CorrectAnswer" column in > the List > > Object be? > > > > Thanks for your suggestions! > > > > > > From anthony.zuccolotto at pstnet.com Fri Feb 22 19:58:29 2002 From: anthony.zuccolotto at pstnet.com (Tony Zuccolotto) Date: Fri, 22 Feb 2002 14:58:29 -0500 Subject: question about e-prime Message-ID: You should be able to do this with 9 different text displays in sequence if the each display requires 1 response in sequence. If all 9 inputs are to be enabled at once you can make separate input masks for each one and start them all at the same time. Alternatively you can increase the max input count to 9 and only have one input - you then have to rip through the Responses collection and perhaps call c.Log yourself to get things logged as you require. All the building blocks are there in E-Prime to handle this situation. Thanks, Tony *** DISCLAIMER: VIEWS EXPRESSED ARE MY OWN AND DO NOT NECESSARILY REFLECT THOSE OF MY EMPLOYER *** Anthony P. Zuccolotto Vice President of Operations Psychology Software Tools, Inc. 2050 Ardmore Boulevard Suite 200 Pittsburgh, PA 15221-4610 Phone 412-271-5040 FAX 412-271-7077 Email anthony.zuccolotto at pstnet.com Internet http://www.pstnet.com/ > -----Original Message----- > From: Benjamin Tomlow [mailto:Btomlow at chdr.nl] > Sent: Monday, February 18, 2002 7:39 AM > To: eprime at mail.talkbank.org > Subject: question about e-prime > > > Can somebody help me. I am working on a specific test called > the digital symbol substitution test. It has to provide (on 1 > screen at a time) 9 different stimulus which require 9 > answers. The correctness of these responses must be seen in > E-dataaid in the same manner as it is done normally. Can > somebody tell me if this is possible and how it is done. > > Benjamin Tomlow > E-mail: BTomlow at chdr.nl > > > > > From seif1301 at uni-trier.de Wed Feb 6 14:28:37 2002 From: seif1301 at uni-trier.de (Jan Seifert) Date: Wed, 6 Feb 2002 15:28:37 +0100 Subject: Presentation of film clips (part II) Message-ID: Dear E-Prime users We need to play digital video clips for one of our upcoming experiments. According to a message of this EPrime discussion list, there is no possibility to do that with EPrime itself. Nonetheless we tried to get around with this problem. For this part of the experiment, a precise timing in millisecond range is not that important for us. So we thought it to be possible, that we play films via MCI or Windows Media Player. I?ll send our two code examples along with this message, that you can see, what we have done. The code works well up to the end of the presentation. In both cases we get an error message then, which none of us exactly understands: "Internal Error: Drawing Error 0x887601c2" First we thought, the problems are due to the "E-Prime Experiment Window" losing the focus. But a "WinActivate"-command after presentation doesn?t prove any success. Maybe there is someone out there, who can help us out? Any help would be greatly appreciated. Thanks awfully... Jan Seifert '******** Filmclips via MCI *********************************************** '**** User Section Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As Any, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long Declare Function mciGetErrorString Lib "winmm.dll" Alias "mciGetErrorStringA" (ByVal fdwError As Long, ByVal lpszErrorText As String, ByVal cchErrorText As Long) As Long '**** Inline Movie via mci **** Dim R&, AA$, L&, ReturnStr$ Dim VideoHandle, ERunHandle R = mciSendString("open mall.mov alias mall style 4", 0&, 0, 0&) If (R <> 0) Then AA = Space(128) L = mciGetErrorString(R, AA, 100) MsgBox AA & ": " & R End If R = mciSendString("play mall fullscreen", 0&, 0, 0&) If (R <> 0) Then AA = Space(128) L = mciGetErrorString(R, AA, 100) MsgBox AA & ": " & R End If Sleep (7000) R = mciSendString("close mall", 0&, 0, 0&) If (R <> 0) Then AA = Space(128) L = mciGetErrorString(R, AA, 100) MsgBox AA & ": " & R End If '*** Filmclips via MediaPlayer **************************************************** '*** User Section **** Declare Function OpenProcess Lib "Kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Declare Function GetExitCodeProcess Lib "Kernel32" (ByVal hProcess As Long, lpExitCode As Long) As Long Declare Sub Sleep Lib "Kernel32" (ByVal dwMilliseconds As Long) Const STILL_ACTIVE = &H103 Const PROCESS_QUERY_INFORMATION = &H400 Sub Shell32Bit(ByVal JobToDo As String) '********************* Dim Dummy As Long Dim hProcess As Long Dim RetVal As Long 'The next line launches JobToDo as icon, 'captures process ID hProcess = OpenProcess(PROCESS_QUERY_INFORMATION, False, Shell(JobToDo, ebMaximizedFocus)) ', Do 'Get the status of the process Dummy = GetExitCodeProcess(hProcess, RetVal) 'Sleep command recommended as well as DoEvents DoEvents: Sleep 100 'Loop while the process is active Loop While RetVal = STILL_ACTIVE ' get the focus back; but that doesn?t help WinActivate("E-Run Experiment Window") End Sub **** Inline MediaPlayer **** Shell32Bit("mplayer2.exe /fullscreen /play /close mall.mov") / \ Jan Seifert \ \ Universit?t Trier \ FB I - Psychologie \ Geb?ude D, Room D217 \ 54296 Trier \ \ Phone: +49 (0)651 201-2896 \ E-Mail: seif1301 at uni-trier.de / From mrichter at Princeton.EDU Tue Feb 12 19:10:25 2002 From: mrichter at Princeton.EDU (Marlene Richter) Date: Tue, 12 Feb 2002 14:10:25 -0500 Subject: reading the status bits of parallel port continuously? Message-ID: Hello everyone, I am new to E-Prime (about 2 weeks) so perhaps someone with more experience can answer this question. However I did not see it in any of the manuals, discussions or on the E-Prime website. I have been able to successfully use the WritePort command to trigger an external device (address &H378), and the ReadPort command to receive a trigger from an external device on the parallel port (address:&H379) as described on the E-Prime website. For the ReadPort command, I kept cycling through an "If Then Else, Else loop" until the 4th bit (pin 15) changed its state, and then exited the label loop to start the main portion of the code (my paradigm). However, I would like to continually poll the status pins at address &H379 to know when changes in state occur throughout the experiment. I would like to use the first TTL input pulse from an external device to trigger the main paradigm of the experiment, but I would like to keep continuing the experiment (without any interruptions) as I record additional TTL signals from the external device. For example, if my external device is putting out 100 TTL pulses, I would like to start the main portion of my paradigm presentation immediately after the first pulse, and record all the subsequent 99 pulses and their timing in the E-DataAid file without disrupting my paradigm timing. Can anyone provide me with some help or advice? Will E-Prime even permit this? Any suggestions would be greatly appreciated. Thanks for any suggestions you may be able to provide! P.S. I am still using the Beta 5.0 version. Marlene Richter mrichter at princeton.edu From katerina at andrew.cmu.edu Wed Feb 13 16:44:18 2002 From: katerina at andrew.cmu.edu (Katerina Avramides) Date: Wed, 13 Feb 2002 11:44:18 -0500 Subject: read attributes from file Message-ID: I'm using a text (tab delimited) excel file, but an error comes up that there is an invalid attribute when reading the file (error: -999). I think the problem is the value for the nested attribute - I don't know what value I should assign (leaving it blank doesn't seem to work). Any suggestions would be greatly appreciated! Katerina From anthony.zuccolotto at pstnet.com Wed Feb 13 18:43:19 2002 From: anthony.zuccolotto at pstnet.com (Tony Zuccolotto) Date: Wed, 13 Feb 2002 13:43:19 -0500 Subject: read attributes from file Message-ID: Katerina, I think you need to just make sure there are two tabs generated back to back. I just tried this by creating the cells (first row with Attribute names on it) and leaving the cell blank for Nested using Excel. I did a Save As... from Excel and saved it as tab delimited text. I ran with E-Prime and it worked. Perhaps that's not the true cause of the error you are seeing. Are you sure the exact number of attributes (and their names) are the same between the spreadsheet and the List that you are trying to load them into? nothing scrolled off to one side of the List that you didn't see? any hidden columns that are causing miss matches (Weight, Procedure, Nested)? Hope that helps. Tony << ALL VIEWS EXPRESSED ARE MY OWN AND DO NOT NECESSARILY REFLECT THE OPINIONS OF PSYCHOLOGY SOFTWARE TOOLS, INC. >> Anthony P. Zuccolotto Vice President of Operations Psychology Software Tools, Inc. 2050 Ardmore Boulevard Suite 200 Pittsburgh, PA 15221-4610 Phone 412-271-5040 FAX 412-271-7077 Email anthony.zuccolotto at pstnet.com Internet http://www.pstnet.com/ > -----Original Message----- > From: Katerina Avramides [mailto:katerina at andrew.cmu.edu] > Sent: Wednesday, February 13, 2002 11:44 AM > To: eprime at mail.talkbank.org > Subject: read attributes from file > > > I'm using a text (tab delimited) excel file, but an error > comes up that > there is an invalid attribute when reading the file (error: > -999). I think > the problem is the value for the nested attribute - I don't > know what value > I should assign (leaving it blank doesn't seem to work). > Any suggestions would be greatly appreciated! > > Katerina > > > > From carne006 at umn.edu Wed Feb 13 19:18:01 2002 From: carne006 at umn.edu (Edward Carney) Date: Wed, 13 Feb 2002 13:18:01 -0600 Subject: read attributes from file In-Reply-To: <6D8910A1FAF7E347B5C617CDE86FF4CD1F41C2@mercury.pstmail> Message-ID: A good way to view the lines in these tab-delimited files is to read them into MS-Word (or whatever) and make TAB characters visible. In MS-Word you do this by going to Tools/Options and checking "Tab characters" under "Nonprinting characters" on the View tab. Any discrepancies will show up more clearly this way. Edward Carney Research Assoc. Univ. of Minnesota From Btomlow at chdr.nl Mon Feb 18 12:39:21 2002 From: Btomlow at chdr.nl (Benjamin Tomlow) Date: Mon, 18 Feb 2002 13:39:21 +0100 Subject: question about e-prime Message-ID: Can somebody help me. I am working on a specific test called the digital symbol substitution test. It has to provide (on 1 screen at a time) 9 different stimulus which require 9 answers. The correctness of these responses must be seen in E-dataaid in the same manner as it is done normally. Can somebody tell me if this is possible and how it is done. Benjamin Tomlow E-mail: BTomlow at chdr.nl From claudia.waldmann at vuw.ac.nz Mon Feb 18 23:08:07 2002 From: claudia.waldmann at vuw.ac.nz (claudia) Date: Tue, 19 Feb 2002 12:08:07 +1300 Subject: parallel port Message-ID: Question: Does - and if so, how - eprime accept input from a parallel port? -------------- next part -------------- An HTML attachment was scrubbed... URL: From claudia.waldmann at vuw.ac.nz Wed Feb 20 00:55:47 2002 From: claudia.waldmann at vuw.ac.nz (claudia) Date: Wed, 20 Feb 2002 13:55:47 +1300 Subject: correct response Message-ID: Hi there, for my experiment the participant's response may either be 1 or 2. What should the correct input into the "CorrectAnswer" column in the List Object be? Thanks for your suggestions! -------------- next part -------------- An HTML attachment was scrubbed... URL: From susanc at andrew.cmu.edu Wed Feb 20 19:37:03 2002 From: susanc at andrew.cmu.edu (Susan Campbell) Date: Wed, 20 Feb 2002 14:37:03 -0500 Subject: correct response Message-ID: I looked at this, hoping there would be an easy answer (like putting both inputs in the CorrectAnswer column). Unfortunately, I couldn't find one. What I ended up doing was creating a seperate input object for each correct answer, and having the allowable in those input objects not include the other correct answer. The downside to this is that you would need to specify each correct answer seperately, and specify all of the incorrect responses as well. So, to display something that has two correct answers, "1" and "2" and two incorrect answers, "3" and "4", would take three columns, one for each correct answer and one for all incorrect answers. The test script is at http://step.psy.cmu.edu/script_samples/dual_response.zip if you'd like to see if it works for what you're doing. Hope this helps, Susan Campbell STEP Programmer, Carnegie Mellon claudia wrote: > Hi there, > > for my experiment the participant's response may either be 1 or 2. What > should the correct input into the "CorrectAnswer" column in the List > Object be? > > Thanks for your suggestions! > From Jenny.Thomson at psyka.jyu.fi Fri Feb 22 08:47:33 2002 From: Jenny.Thomson at psyka.jyu.fi (Jenny Thomson) Date: Fri, 22 Feb 2002 10:47:33 +0200 Subject: Pausing experiments and sound stimuli question Message-ID: We are currently developing a paradigm where a series of sounds are presented to children as part of an ERP study (i.e. long blocks of sounds not requiring behavioural responses for continuation) 1. We need a possibility of pausing the experiment if the child needs a break, but can only seem to find the abort command (Ctrl+Alt+Shift ) to do this - has anyone got a more elegant way to pause experiments mid flow? 2. We are also thinking of using continuous sound waves in some conditions - has anyone tried this with EGI/Netstation and know of a way of sending trigger tags to Netstation WITHIN the course of one sound wav.? Thanks, Jenny Thomson Psychology Dept., University of Jyv?skyl?, Finland From jsmaxwell at students.wisc.edu Fri Feb 22 18:02:00 2002 From: jsmaxwell at students.wisc.edu (Jeff Maxwell) Date: Fri, 22 Feb 2002 12:02:00 -0600 Subject: Pausing experiments and sound stimuli question In-Reply-To: Message-ID: regarding the pause issue, i haven't tested this and there might be a much easier way :) try creating a very simple procedure in your experiment consisting of a blank or "pause" text object (-1 ms [infinite] duration, set to terminate with a particular response]. you wouldn't call this procedure in your normal list of events. then setup your experimental procedure(s) to allow input (such as "P") into an object that is routinely called (e.g. a wait object used to separate trials; "ITIinterval"). follow ITIinterval with a script object and use an "if then else" statement to monitor input to ITIinterval (e.g. ITIobject.RESP value) and whenever that value is equal to your pause command ("P"), jump/goto a couple of additional lines of script that invoke the PauseProc procedure. good luck, and if you learn of a way to send multiple event markers during the course of a single long event, please let me know. cheers, max -----Original Message----- From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On Behalf Of Jenny Thomson Sent: Friday, February 22, 2002 2:48 AM To: eprime at mail.talkbank.org Subject: Pausing experiments and sound stimuli question We are currently developing a paradigm where a series of sounds are presented to children as part of an ERP study (i.e. long blocks of sounds not requiring behavioural responses for continuation) 1. We need a possibility of pausing the experiment if the child needs a break, but can only seem to find the abort command (Ctrl+Alt+Shift ) to do this - has anyone got a more elegant way to pause experiments mid flow? 2. We are also thinking of using continuous sound waves in some conditions - has anyone tried this with EGI/Netstation and know of a way of sending trigger tags to Netstation WITHIN the course of one sound wav.? Thanks, Jenny Thomson Psychology Dept., University of Jyv?skyl?, Finland From anthony.zuccolotto at pstnet.com Fri Feb 22 19:18:39 2002 From: anthony.zuccolotto at pstnet.com (Tony Zuccolotto) Date: Fri, 22 Feb 2002 14:18:39 -0500 Subject: Pausing experiments and sound stimuli question Message-ID: Hi, The other way to do this is to look in the E-Basic under Get/SetUserBreakState. This is built in functionality in E-Prime to set a flag anytime the key sequence is hit. This is different than the sequence. Using GetUserBreakState you can determine if the sequence has been hit and use InLine script to take action. The flag will stay set until you manually reset it using SetUserBreakState. If trials are relatively short then just having an InLine at the beginning of end of a trial that checks for this and then puts up a TextDisplay that waits for a key from you to resume should work fine. Regards, Tony *** DISCLAIMER: VIEWS EXPRESSED ARE MY OWN AND DO NOT NECESSARY REFLECT THOSE OF MY EMPLOYER *** Anthony P. Zuccolotto Vice President of Operations Psychology Software Tools, Inc. 2050 Ardmore Boulevard Suite 200 Pittsburgh, PA 15221-4610 Phone 412-271-5040 FAX 412-271-7077 Email anthony.zuccolotto at pstnet.com Internet http://www.pstnet.com/ > -----Original Message----- > From: Jeff Maxwell [mailto:jsmaxwell at students.wisc.edu] > Sent: Friday, February 22, 2002 1:02 PM > To: 'Jenny Thomson' > Cc: eprime at mail.talkbank.org > Subject: RE: Pausing experiments and sound stimuli question > > > regarding the pause issue, i haven't tested this and there might be a > much easier way :) try creating a very simple procedure in your > experiment consisting of a blank or "pause" text object (-1 ms > [infinite] duration, set to terminate with a particular > response]. you > wouldn't call this procedure in your normal list of events. > > then setup your experimental procedure(s) to allow input (such as "P") > into an object that is routinely called (e.g. a wait object used to > separate trials; "ITIinterval"). follow ITIinterval with a script > object and use an "if then else" statement to monitor input to > ITIinterval (e.g. ITIobject.RESP value) and whenever that > value is equal > to your pause command ("P"), jump/goto a couple of additional lines of > script that invoke the PauseProc procedure. > > good luck, and if you learn of a way to send multiple event markers > during the course of a single long event, please let me know. > > cheers, > max > > > > -----Original Message----- > From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On > Behalf Of Jenny Thomson > Sent: Friday, February 22, 2002 2:48 AM > To: eprime at mail.talkbank.org > Subject: Pausing experiments and sound stimuli question > > > We are currently developing a paradigm where a series of sounds are > presented to children as part of an ERP study (i.e. long blocks of > sounds not requiring behavioural responses for continuation) > > 1. We need a possibility of pausing the experiment if the > child needs a > break, but can only seem to find the abort command > (Ctrl+Alt+Shift ) to > do this - has anyone got a more elegant way to pause experiments mid > flow? > > 2. We are also thinking of using continuous sound waves in some > conditions - has anyone tried this with EGI/Netstation and > know of a way > of sending trigger tags to Netstation WITHIN the course of one sound > wav.? > > Thanks, > Jenny Thomson > Psychology Dept., > University of Jyv?skyl?, Finland > > > > From anthony.zuccolotto at pstnet.com Fri Feb 22 19:43:12 2002 From: anthony.zuccolotto at pstnet.com (Tony Zuccolotto) Date: Fri, 22 Feb 2002 14:43:12 -0500 Subject: correct response Message-ID: Hi, I would suggest writing some inline script to recode the response at the end of the trial. Hard code correct response to something that you aren't using so it is always coded as inaccurate. Then keep another attribute that is a comma separated list of the correct answers. Look in the E-Basic help for the Item$() function that retrieves items from a comma separated list. The code would be something like the following. Dim i As Integer Dim strCorrects As String strCorrects = c.GetAttrib( "CorrectAnswers" ) ' = "1,2" For i = 1 To ItemCount( strCorrects ) If Probe.RESP = Item$( strCorrects, i ) Then Probe.ACC = 1 End If Next i Probe.ACC will automatically be put back in the context at the end of the trial prior to logging (assuming standard logging is turned on), but if you need it sooner you should also throw in a c.SetAttrib "Probe.ACC", Probe.ACC line after the new value is assigned. If the list is long you might also want to use a goto to jump out of the loop (or use a Do-Loop Until construct) so that you don't continue to go through the list after the correct answer is found. Regards, Tony *** DISCLAIMER: VIEWS EXPRESSED ARE MY OWN AND DO NOT NECESSARILY REFLECT THOSE OF MY EMPLOYER *** Anthony P. Zuccolotto Vice President of Operations Psychology Software Tools, Inc. 2050 Ardmore Boulevard Suite 200 Pittsburgh, PA 15221-4610 Phone 412-271-5040 FAX 412-271-7077 Email anthony.zuccolotto at pstnet.com Internet http://www.pstnet.com/ > -----Original Message----- > From: Susan Campbell [mailto:susanc at andrew.cmu.edu] > Sent: Wednesday, February 20, 2002 2:37 PM > To: eprime at mail.talkbank.org > Subject: Re: correct response > > > I looked at this, hoping there would be an easy answer (like putting > both inputs in the CorrectAnswer column). Unfortunately, I couldn't > find one. What I ended up doing was creating a seperate input object > for each correct answer, and having the allowable in those > input objects > not include the other correct answer. > > The downside to this is that you would need to specify each correct > answer seperately, and specify all of the incorrect responses > as well. > So, to display something that has two correct answers, "1" > and "2" and > two incorrect answers, "3" and "4", would take three columns, one for > each correct answer and one for all incorrect answers. > > The test script is at > http://step.psy.cmu.edu/script_samples/dual_response.zip if > you'd like > to see if it works for what you're doing. > > Hope this helps, > Susan Campbell > STEP Programmer, Carnegie Mellon > > > claudia wrote: > > > Hi there, > > > > for my experiment the participant's response may either be > 1 or 2. What > > should the correct input into the "CorrectAnswer" column in > the List > > Object be? > > > > Thanks for your suggestions! > > > > > > From anthony.zuccolotto at pstnet.com Fri Feb 22 19:58:29 2002 From: anthony.zuccolotto at pstnet.com (Tony Zuccolotto) Date: Fri, 22 Feb 2002 14:58:29 -0500 Subject: question about e-prime Message-ID: You should be able to do this with 9 different text displays in sequence if the each display requires 1 response in sequence. If all 9 inputs are to be enabled at once you can make separate input masks for each one and start them all at the same time. Alternatively you can increase the max input count to 9 and only have one input - you then have to rip through the Responses collection and perhaps call c.Log yourself to get things logged as you require. All the building blocks are there in E-Prime to handle this situation. Thanks, Tony *** DISCLAIMER: VIEWS EXPRESSED ARE MY OWN AND DO NOT NECESSARILY REFLECT THOSE OF MY EMPLOYER *** Anthony P. Zuccolotto Vice President of Operations Psychology Software Tools, Inc. 2050 Ardmore Boulevard Suite 200 Pittsburgh, PA 15221-4610 Phone 412-271-5040 FAX 412-271-7077 Email anthony.zuccolotto at pstnet.com Internet http://www.pstnet.com/ > -----Original Message----- > From: Benjamin Tomlow [mailto:Btomlow at chdr.nl] > Sent: Monday, February 18, 2002 7:39 AM > To: eprime at mail.talkbank.org > Subject: question about e-prime > > > Can somebody help me. I am working on a specific test called > the digital symbol substitution test. It has to provide (on 1 > screen at a time) 9 different stimulus which require 9 > answers. The correctness of these responses must be seen in > E-dataaid in the same manner as it is done normally. Can > somebody tell me if this is possible and how it is done. > > Benjamin Tomlow > E-mail: BTomlow at chdr.nl > > > > >