From tamar.kolodny at gmail.com Wed May 1 11:09:07 2013 From: tamar.kolodny at gmail.com (Tamar) Date: Wed, 1 May 2013 04:09:07 -0700 Subject: Canvas.Copy is taking too long to complete In-Reply-To: <023501ce427d$3aad8a80$b0089f80$@eu> Message-ID: Mystery solved - Michiel was right! In the current version of EP (2.0.10.242) canvas calls internally wait for the vertical blank. Too bad that PST didn't consider it worth a comment in the canvas documentation... Here is the answer I got from PST, followed by my own conclusions: ============================================================================================================================================================ In E-Prime 2.0.10.242, the default setting for flipping is enabled. You can disable this in the Experiment Object Property Pages > Devices tab. E-Prime 2.0 offers the ability to use Display flipping to perform any drawing operations. The use of flipping is recommended to reduce the possibility of display tearing. Use of flipping will require a PreRelease value approximately of one refresh duration for the object that precedes the drawing object to ensure proper scheduling. Without ample PreRelease, the object will schedule for the following refresh period. This would be reflected in the OnseTime and OnsetDelay properties. When flipping is enabled, all E-Basic Canvas calls targeting the on-screen canvas will internally wait for the vertical blank refresh period. The use of Display.WaitForVerticalBlank will thus not be necessary and if used would cause the Canvas operation to draw a refresh later. Whether using flipping or not, it is recommend when performing any drawing commands to do so on an offscreen canvas and then use one Canvas.Copy operation to update the screen. ================================================================================================================================================================= Upon receiving this answer, I first tried to cancel my dispaly.WaitForVerticalBlank lines, preceding the canvas operations. Unfortunately, this didn't work very well either, and yielded smaller but more inconsistent delays in timing... Eventually, the only solution I could find to overcome the delays and get my desired precise timing, was to disable the flipping and go back to the good old waitForVerticalBlank. I don't know exactly what the flipping does (couldn't find any word about it in the E-prime knowledge base or in the user guide, apart from the paragraph that appears in PST's response to my question) - but it didn't work out good enough for me. I hope all this correspondence will help others in the future... Thank you all for your help. And if you know something more about flipping - please share... Tamar On Friday, April 26, 2013 3:54:45 PM UTC+3, Michiel Sovijärvi-Spapé wrote: > > Hi, > So, for anyone who'd like to test this. I use win7, 64bits (to do the > coding > anyway), EP2.0.10.242. This is the full code of the experiment and should > work on any E-Prime with just a single inline bit in which you can paste > the > following: > > > ------------------------ > > Dim cnvs As Canvas 'the active display > Dim cnvsnext As Canvas 'the buffered canvas > Dim j As Integer > Dim clocktimes(1 To 100,1 To 4) As Long > > Set cnvs = Display.Canvas > Set cnvsnext = Display.CreateCanvas() > sleep 8000 'this is required for early experiment timing errors > > debug.print "*****WAIT BEFORE CNVSCOPY****" > For j = 1 To 100 > clocktimes(j,1) = clock.read > cnvsnext.Line random(0,100), random(0,100), random(0,100), > random(0,100) > clocktimes(j,2) = clock.read - clocktimes(j,1) > display.waitforverticalblank > clocktimes(j,3) = clock.read - clocktimes(j,1) > cnvs.copy cnvsnext > clocktimes(j,4) = clock.read - clocktimes(j,1) > Next j > > For j = 1 To 100 > debug.print "Trial " &CStr(j) & ": " & CStr(clocktimes(j,1)) & " " > & > CStr(clocktimes(j,2)) & " " & CStr(clocktimes(j,3)) & " " & > CStr(clocktimes(j,4)) > Next j > debug.print "Debug printing took " & CStr(clock.read - > (clocktimes(100,1)+clocktimes(100,4))) > For j = 1 To 100 > clocktimes(j,1) = clock.read > cnvsnext.Line random(100,200), random(0,100), random(100,200), > random(0,100) > clocktimes(j,2) = clock.read - clocktimes(j,1) > cnvs.copy cnvsnext > clocktimes(j,3) = clock.read - clocktimes(j,1) > display.waitforverticalblank > clocktimes(j,4) = clock.read - clocktimes(j,1) > Next j > debug.print "*****WAIT AFTER CNVSCOPY****" > For j = 1 To 100 > debug.print "Trial " &CStr(j) & ": " & CStr(clocktimes(j,1)) & " " > & > CStr(clocktimes(j,2)) & " " & CStr(clocktimes(j,3)) & " " & > CStr(clocktimes(j,4)) > Next j > > --------------------------- > > Apart from showing beautiful lines, it gives me the following info in the > debug output: > > *****WAIT BEFORE CNVSCOPY**** > Trial 1: 15854 1 7 24 > Trial 2: 15878 2 17 33 > Trial 3: 15912 1 16 33 > Trial 4: 15945 1 16 33 > Trial 5: 15978 2 17 33 > Trial 6: 16012 1 16 33 > Trial 7: 16045 1 16 33 > Trial 8: 16078 1 17 33 > Trial 9: 16111 2 17 34 > Trial 10: 16145 1 16 33 > Trial 11: 16178 1 17 33 > Trial 12: 16211 2 17 34 > Trial 13: 16245 1 16 33 > Trial 14: 16278 1 17 33 > Trial 15: 16311 2 17 34 > Trial 16: 16345 1 16 33 > Trial 17: 16378 2 17 33 > Trial 18: 16411 2 17 34 > Trial 19: 16445 1 16 33 > Trial 20: 16478 1 17 33 > Trial 21: 16511 2 17 34 > Trial 22: 16545 1 16 33 > Trial 23: 16578 1 17 33 > Trial 24: 16611 2 17 34 > Trial 25: 16645 1 16 33 > Trial 26: 16678 2 17 33 > Trial 27: 16711 2 17 34 > Trial 28: 16745 1 16 33 > Trial 29: 16778 1 17 33 > Trial 30: 16811 2 17 34 > Trial 31: 16845 1 16 33 > Trial 32: 16878 1 17 33 > Trial 33: 16911 2 17 34 > Trial 34: 16945 1 16 33 > Trial 35: 16978 1 17 33 > Trial 36: 17011 2 17 34 > Trial 37: 17045 1 16 33 > Trial 38: 17078 2 17 33 > Trial 39: 17111 2 17 34 > Trial 40: 17145 1 16 33 > Trial 41: 17178 1 17 33 > Trial 42: 17211 2 17 34 > Trial 43: 17245 1 16 33 > Trial 44: 17278 1 16 33 > Trial 45: 17311 2 17 34 > Trial 46: 17345 1 16 33 > Trial 47: 17378 1 16 33 > Trial 48: 17411 2 17 33 > Trial 49: 17445 1 16 33 > Trial 50: 17478 1 16 33 > Trial 51: 17511 2 17 34 > Trial 52: 17545 1 16 33 > Trial 53: 17578 2 17 33 > Trial 54: 17611 2 17 34 > Trial 55: 17645 1 16 33 > Trial 56: 17678 1 16 33 > Trial 57: 17711 2 17 33 > Trial 58: 17745 1 16 33 > Trial 59: 17778 1 16 33 > Trial 60: 17812 1 16 32 > Trial 61: 17845 1 16 33 > Trial 62: 17878 1 16 33 > Trial 63: 17911 2 17 33 > Trial 64: 17944 2 17 34 > Trial 65: 17978 1 16 33 > Trial 66: 18011 2 17 33 > Trial 67: 18044 2 17 34 > Trial 68: 18078 1 16 33 > Trial 69: 18111 1 17 33 > Trial 70: 18144 2 17 34 > Trial 71: 18178 1 16 33 > Trial 72: 18211 1 17 33 > Trial 73: 18244 2 17 34 > Trial 74: 18278 1 16 33 > Trial 75: 18311 2 17 33 > Trial 76: 18344 2 17 34 > Trial 77: 18378 1 16 33 > Trial 78: 18411 2 17 33 > Trial 79: 18444 2 17 34 > Trial 80: 18478 1 16 33 > Trial 81: 18511 2 17 33 > Trial 82: 18544 2 17 34 > Trial 83: 18578 1 16 33 > Trial 84: 18611 2 17 33 > Trial 85: 18644 2 17 34 > Trial 86: 18678 1 16 33 > Trial 87: 18711 1 17 33 > Trial 88: 18744 2 17 34 > Trial 89: 18778 1 16 33 > Trial 90: 18811 1 17 33 > Trial 91: 18844 2 17 34 > Trial 92: 18878 1 16 33 > Trial 93: 18911 1 17 33 > Trial 94: 18944 2 17 34 > Trial 95: 18978 1 16 33 > Trial 96: 19011 1 17 33 > Trial 97: 19044 2 17 34 > Trial 98: 19078 1 16 33 > Trial 99: 19111 2 17 33 > Trial 100: 19144 2 17 33 > Debug printing took 214 > *****WAIT AFTER CNVSCOPY**** > Trial 1: 19393 2 18 18 > Trial 2: 19411 1 16 17 > Trial 3: 19428 1 16 16 > Trial 4: 19445 1 16 16 > Trial 5: 19461 1 16 17 > Trial 6: 19478 1 16 16 > Trial 7: 19495 1 16 16 > Trial 8: 19511 2 17 17 > Trial 9: 19528 2 16 16 > Trial 10: 19544 2 17 17 > Trial 11: 19561 1 16 17 > Trial 12: 19578 1 16 16 > Trial 13: 19594 2 17 17 > Trial 14: 19611 1 16 17 > Trial 15: 19628 1 16 16 > Trial 16: 19644 2 17 17 > Trial 17: 19661 1 16 17 > Trial 18: 19678 1 16 16 > Trial 19: 19694 2 17 17 > Trial 20: 19711 1 16 17 > Trial 21: 19728 1 16 16 > Trial 22: 19744 2 17 17 > Trial 23: 19761 2 16 17 > Trial 24: 19778 1 16 16 > Trial 25: 19794 2 17 17 > Trial 26: 19811 1 16 17 > Trial 27: 19828 1 16 16 > Trial 28: 19844 2 17 17 > Trial 29: 19861 1 16 17 > Trial 30: 19878 1 16 16 > Trial 31: 19894 2 17 17 > Trial 32: 19911 1 16 17 > Trial 33: 19928 1 16 16 > Trial 34: 19944 2 17 17 > Trial 35: 19961 1 16 16 > Trial 36: 19978 1 16 16 > Trial 37: 19994 2 17 17 > Trial 38: 20011 1 16 17 > Trial 39: 20028 1 16 16 > Trial 40: 20044 2 17 17 > Trial 41: 20061 1 16 17 > Trial 42: 20078 1 16 16 > Trial 43: 20094 2 17 17 > Trial 44: 20111 1 16 16 > Trial 45: 20128 1 16 16 > Trial 46: 20144 2 17 17 > Trial 47: 20161 1 16 16 > Trial 48: 20178 1 16 16 > Trial 49: 20194 2 17 17 > Trial 50: 20211 1 16 17 > Trial 51: 20228 1 16 16 > Trial 52: 20244 2 17 17 > Trial 53: 20261 1 16 17 > Trial 54: 20278 1 16 16 > Trial 55: 20294 1 17 17 > Trial 56: 20311 1 16 16 > Trial 57: 20328 1 16 16 > Trial 58: 20344 2 17 17 > Trial 59: 20361 1 16 16 > Trial 60: 20377 2 17 17 > Trial 61: 20394 2 17 17 > Trial 62: 20411 1 16 16 > Trial 63: 20427 2 17 17 > Trial 64: 20444 2 17 17 > Trial 65: 20461 1 16 16 > Trial 66: 20478 1 16 16 > Trial 67: 20494 2 17 17 > Trial 68: 20511 1 16 16 > Trial 69: 20528 1 16 16 > Trial 70: 20544 1 17 17 > Trial 71: 20561 1 16 16 > Trial 72: 20577 2 17 17 > Trial 73: 20594 2 17 17 > Trial 74: 20611 1 16 16 > Trial 75: 20627 2 17 17 > Trial 76: 20644 1 17 17 > Trial 77: 20661 1 16 16 > Trial 78: 20677 2 17 17 > Trial 79: 20694 1 17 17 > Trial 80: 20711 1 16 16 > Trial 81: 20728 1 16 16 > Trial 82: 20744 2 17 17 > Trial 83: 20761 1 16 16 > Trial 84: 20778 1 16 16 > Trial 85: 20794 2 17 17 > Trial 86: 20811 1 16 16 > Trial 87: 20828 1 16 16 > Trial 88: 20844 2 17 17 > Trial 89: 20861 1 16 16 > Trial 90: 20877 2 17 17 > Trial 91: 20894 1 17 17 > Trial 92: 20911 1 16 16 > Trial 93: 20928 1 16 16 > Trial 94: 20944 1 17 17 > Trial 95: 20961 1 16 16 > Trial 96: 20977 2 17 17 > Trial 97: 20994 2 17 17 > Trial 98: 21011 1 16 16 > Trial 99: 21027 2 17 17 > Trial 100: 21044 1 16 17 > > ---- > Clearly then, something strange is going on. If anyone would like to > verify > this on their own PC/E-Prime, be my guest. > Best, > Michiel > > > > > -----Original Message----- > From: e-p... at googlegroups.com [mailto: > e-p... at googlegroups.com ] On Behalf > Of David McFarlane > Sent: 25. April 2013 18:16 > To: e-p... at googlegroups.com ; e-p... at googlegroups.com > Subject: Re: Canvas.Copy is taking too long to complete > > Tamar, > > Very curious indeed, I wish I had the time to explore this further myself. > You should definitely take this now to PST Web Support at > http://support.pstnet.com/e%2Dprime/support/login.asp > , and send them a link to this discussion (for your convenience, that link > is https://groups.google.com/d/topic/e-prime/OX528cBioek > ). And then please post back with the results. > > Thanks, > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) > > > At 4/25/2013 03:24 AM Thursday, Peter Quain wrote: > > >there must be some interfacing routines we can't > >see in the *.ebs files that differ between v1.? > >and v.2.?, and that e-prime calls when the > >scripts are run??? They both(?) must be > >allowable, and they must call upon different > >routines in e-prime that communicate with the hardware? > > > >At 05:08 PM 25/04/2013, you wrote: > >>o.k., here is what I found, following your input: > >> > >>In any experiment I create in EP1 (in a > >>neighboring lab...), canvas.copy takes under 1 ms. > >>In any experiment I create in EP2, canvas.copy takes a whole refresh > cycle. > >>If I take an experiment created in EP1 and > >>convert it to EP2 - then canvas.copy time is > >>under 1 ms... although nothing in the inline changed... > >>How can that be? > >> > >> > >> > >>On Thursday, April 25, 2013 8:29:06 AM UTC+3, Peter Quain wrote: > >>I haven't tested any code examples, but have a > >>lot of data showing canvas.copy in v.1.?.? > >>takes under a ms, supporting David's > >>observations. Perhaps something here is less > >>instant in v2.?, and a bug has been identified? > >>At 03:19 PM 25/04/2013, you wrote: > >>>Thank you both your replies! > >>>I am using E-prime 2.0.10, and a CRT iiyama > >>>Vision Master screen, with display resolution > >>>of 1024 x 768 and a refresh rate of 100 Hz. My > >>>operating system is windows XP. > >>>I'm troubled with this timing issue because my > >>>experiment includes EEG recording, thus the > >>>synchronization is terribly important. I need > >>>to send triggers via the parallel port exactly at the > >>>onset of each stimulus, or else my EEG signal > >>>might be smeared. Considering that the canvas.copy > >>>takes a refresh cycle to complete - I'm not > >>>sure what time ought to be considered the stimulus onset... > >>>Anyhow, David, I've tried running your code - > >>>and I get dt's of 13-14ms. Do you think that all the difference > >>>between your 0.22ms to my 13-14ms is due to > >>>E-prime1 vs. E-prime2 differences? That's shocking... > >>>I get the same results as Michiel for the loop > >>>codes, as puzzling as they are... > >>>Thanks again for your help, > >>>Tamar > >>> > >>> > >>> > >>>On Wednesday, April 24, 2013 4:44:46 PM UTC+3, McFarlane, David wrote: > >>>Hmm. I explored this issue myself three years ago, using EP1 (still my > >>>favorite version for this type of exploration). I just dug up my test > >>>program and ran it again on my trusty old XP laptop at home after > >>>breakfast, and got times of 0.22 ms even for full screen copies, much > as > >>>I remember from before (where full screen means 1024 x 768; and yes, > >>>that is less than a millisecond). To be sure, here is the core of my > >>>test code: > >>> t0 = clock.readmicrosec > >>> dcnvs.copy cnvs > >>> dt = clock.readmicrosec - t0 > >>> msgbox format$( dt/1000, "Standard" ) & " ms" > >>>where all variables are defined and initialized earlier as expected > >>>(dcnvs is set to Display.Canvas just for notational convenience). > >>>Also, I looked at the Canvas.Copy topic in the E-Basic Help -- no > >>>evidence that .Copy includes an implicit Display.WaitForVerticalBlank, > >>>to the contrary, the code example there includes an explicit > >>>Display.WaitForVerticalBlank just before the cnvs.Copy. I would be > >>>*extremely* surprised if Canvas.Copy included a > >>>Display.WaitForVerticalBlank, as that would greatly compromise its > >>>utility (e.g., when wanting to Copy several segments to an offscreen > >>>Canvas before copying the complete result to Display.Canvas). > >>>So I do not know how to account for your results. Mind you, I did all > >>>my tests using good-old EP1 with 1024x768 display resolution. For all > I > >>>know things changed with the latest EP version, or things get slower > >>>with larger display resolutions. What EP version do you use? What > >>>display resolution? > >>>Michiel, I am especially puzzled by your results. Both of your tests > >>>measure the total time to perform a Canvas.Copy and > >>>Display.WaitForVerticalBlank, only in different orders. So you should > >>>get the same time for both tests, regardless of whether Canvas.Copy > >>>includes its own Display.WaitForVerticalBlank. What am I missing? > >>>Nevertheless, Michiel's advice still stands -- as long as your program > >>>does everything it needs to do within one screen refresh (and assuming > >>>that you *do* synchronize visual displays to the screen refresh, as you > >>>should), then that is good enough. > >>>----- > >>>David McFarlane > >>>E-Prime training online: > >>> > http://psycholog > y.msu.edu/Workshops_Courses/eprime.aspx > >>> > >>>Twitter: @EPrimeMaster > >>>(twitter.com/EPrimeMaster) > >>>/----------- > >>>Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > >>>any and all questions at > >>> > http://support.pst > net.com/e%2Dprime/support/login.asp > >>>, and they strive > >>>to respond to all requests in 24-48 hours, so make full use of it. 3) > >>>In addition, PST takes questions at their Facebook page > >>>( > http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 > >>>), and offers several instructional videos there and on their YouTube > >>>channel ( http://www.youtube.com/user/PSTNET ) (no Twitter feed yet, > >>>though). 4) If you do get an answer from PST staff, please extend the > >>>courtesy of posting their reply back here for the sake of others. > >>>\----------- > >>>Cognitology wrote: > >>> > Hi, > >>> > > >>> > A quick look, but I think that you pretty much nailed it: it can > take > >>> > quite long to do any canvas operation. Given that your screen > refresh > >>> > rate presumably isn�t more than 100 Hz (and in any ways, your > foveal > >>> > vision isn�t), I don�t see the problem? > >>> Indeed, if you were to draw many > >>> > things to the main canvas, one after the other, then indeed, it gets > to > >>> > be a problem, but as long as the only > >>> operation is copying a �preloaded� > >>> > canvas to the shown one, it doesn�t > >>> matter all that much. Notice, given > >>> > that you�re not using E-Prime�s > >>> stimdisplays, it�s not clear at what > >>> > time the stimulus is actually displayed � > >>> only when it�s done sending > >>> > the command. I think it�s generally better for critical timing > aspects > >>> > of your experiment to avoid canvas as much as possible. Personally, > I > >>> > think �critical timing� is when it concerns a subliminal vs > barely > >>> > supraliminal prime or some such, for other types of stimuli the 10 > ms > of > >>> > (constant, therefore presumably stimulus independent) delay is of > >>> > trivial concern. > >>> > > >>> > > >>> > > >>> > Just testing some of it myself, and I get values ranging between 15 > and > >>> > 17 � which is funny, given that my refresh rate is indeed 60, so > it > >>> > seems a bit like there�s some sort of > >>> display.waitforverticalblank built > >>> > into canvas.copy. Curiously, this: > >>> > > >>> > For j = 1 To 100 > >>> > > >>> > DrawFixation �this is just a custom function drawing a line > to > >>> > cnvsnext > >>> > > >>> > cnvs.copy cnvsnext > >>> > > >>> > display.waitforverticalblank > >>> > > >>> > debug.print clock.read - clocktime > >>> > > >>> > clocktime = clock.read > >>> > > >>> > Next j > >>> > > >>> > > >>> > > >>> > Gives me latencies equal to refresh rates (+- 1 ms). > >>> > > >>> > Whereas: > >>> > > >>> > > >>> > > >>> > For j = 1 To 100 > >>> > > >>> > DrawFixation �this is just a custom function drawing a line > to > >>> > cnvsnext > >>> > > >>> > display.waitforverticalblank > >>> > > >>> > cnvs.copy cnvsnext > >>> > > >>> > debug.print clock.read - clocktime > >>> > > >>> > clocktime = clock.read > >>> > > >>> > Next j > >>> > > >>> > > >>> > > >>> > Gives me latencies equal to 2xrefresh rates. Somebody with young > eyes > >>> > should tell us if the first one doesn�t have cutting-off errors, > >>> > otherwise I�d suggest there might be some sort of > waitforverticalblank > >>> > built into canvas.copy. > >>> > > >>> > Best, > >>> > > >>> > > >>> > > >>> > Michiel Sovij�rvi-Spap� > >>> > > >>> > > >>> > > >>> > Helsinki Institute for Information Technology > >>> > > >>> > Aalto & University of Helsinki > >>> > > >>> > Finland > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > BTW: notice that using debug.print also incurs a delay (last > measured > at > >>> > 0.7 ms). > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > *From:* e-p... at googlegroups.com [ mailto:e-p... at googlegroups.com] > *On > >>> > Behalf Of *Tamar > >>> > *Sent:* 24. April 2013 08:33 > >>> > *To:* e-p... at googlegroups.com > >>> > *Subject:* Canvas.Copy is taking too long to complete > >>> > > >>> > > >>> > > >>> > I'm programming a visual experiment, and suffering from some timing > >>> > issues. It seems that the line presenting the stimuli (canvas.copy) > is > >>> > considerably time consuming: 10-12 ms. I can't figure out the cause > for > >>> > this delay, and I would appreciate any help... > >>> > > >>> > Here is the relevant piece of code: > >>> > > >>> > ====== in an initializing inline script, at the begining of > SessionProc: > >>> > ====== > >>> > Set MainCanvas = Display.Canvas > >>> > MainCanvas.fillColor = CColor(background_color) > >>> > MainCanvas.clear > >>> > > >>> > For i = 1 To NumStim > >>> > Set StimCanvases(i) = Display.CreateCanvas > >>> > > >>> > 'define destination rect as center of screen > >>> > destRects(i).Left = Display.XRes/2-stim_w/2 > >>> > destRects(i).Top = Display.YRes/2-stim_h/2 > >>> > destRects(i).Right = Display.XRes/2+stim_w/2 > >>> > destRects(i).Bottom = Display.YRes/2+stim_h/2 > >>> > > >>> > 'define source rect as upper left corner > >>> > srcRects(i).Left = 0 > >>> > srcRects(i).Top = 0 > >>> > srcRects(i).Right = stim_w > >>> > srcRects(i).Bottom = stim_h > >>> > > >>> > 'Load the image file > >>> > StimCanvases(i).LoadImage "Stimuli/" & FileNames(i) & ".bmp" > >>> > > >>> > Next i > >>> > > >>> > ====== in the inline of TrialProc: ======= > >>> > Debug.Print "1:" & clock.read > >>> > StartTrialTime = clock.read > >>> > n = c.GetAttrib("CanvasNum") > >>> > c.SetAttrib "TrialStart", StartTrialTime > >>> > display.WaitForVerticalBlank > >>> > Debug.Print "4:" & clock.read > >>> > StartStimTime = clock.read > >>> > c.SetAttrib "StimStart", StartStimTime > >>> > Debug.Print "5:" & clock.read > >>> > mainCanvas.copy StimCanvases(n),srcRects(n),destRects(n) > >>> > Debug.Print "6:" & clock.read > >>> > > >>> > > >>> > I've tried a few things: > >>> > - to create variables taking the values of > >>> > StimCanvases(n),srcRects(n),destRects(n) in the beginning of the > trial, > >>> > so the mainCanvas.copy line would not need to approach the arrays. > >>> > - to present other simple canvases instead of my real stimuli (just > a > >>> > fixation, for example. or an empty canvas) > >>> > - to draw something on the mainCanvas rather than copy a new canvas > to > >>> > it (e.g. mainCanvas.Circle). > >>> > > >>> > All of these takes 10-12 ms! (as calculated by subtracting time5 > from > >>> > time6). The only way I managed to get rid of the delay was to erase > the > >>> > entire row... > >>> > > >>> > Am I missing something here?... > >>> > > >>> > Thanks, > >>> > Tamar > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+u... at googlegroups.com . > To post to this group, send email to e-p... at googlegroups.com . > > For more options, visit https://groups.google.com/groups/opt_out. > > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/RlvWoU9cqxYJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.biscione at gmail.com Thu May 2 11:45:44 2013 From: valerio.biscione at gmail.com (Valerio Biscione) Date: Thu, 2 May 2013 04:45:44 -0700 Subject: Strange problem Message-ID: Hi, I am experiencing a really strange problem with e prime. It is something simple like this: Debug.print "1 WhiteDot ACC=" & whiteDot.ACC If whiteDot.ACC=1 Then Debug.print "2 WhiteDot ACC=" & whiteDot.ACC end if What the debug print is sometimes 1 WhiteDot ACC=1 2 WhiteDot ACC=1 and sometimes 1 WhiteDot ACC=0 2 WhiteDot ACC=1 and sometimes 1 WhiteDot ACC=0 2 WhiteDot ACC=0 Assuming that the answer to WhiteDot is always ACCurate and that if I print the whiteDot.ACC in a following inline function it always returns 1, i think that the problem is that ACC value of WhiteDot slide doesn't update instantly. The problem is that in the real inline function I have to do an operation if whiteDot.ACC=0, so it has to be updated instantly after the slide! How can I be sure that this occours? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/SobbgTsCHeUJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu May 2 15:38:23 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 2 May 2013 11:38:23 -0400 Subject: Strange problem In-Reply-To: <765487a4-3651-4c42-9b73-68f24374fdde@googlegroups.com> Message-ID: Strange indeed. First, just to clarify, given your described design you expect to get either 1 WhiteDot ACC=1 2 WhiteDot ACC=1 or 1 WhiteDot ACC=0 nothing else. Then a few questions come to mind. 1) What Duration do you use for whiteDot? 2) What PreRelease do you use for whiteDot? 3) What Time Limit do you use for the input mask on whiteDot? 4) What responses are you entering to get these results, and when do the responses occur relative to whiteDot? 5) Could you write and described a stripped-down program that exhibits this phenomenon so that we might try to duplicate it? Thanks. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 5/2/2013 07:45 AM Thursday, Valerio Biscione wrote: >Hi, I am experiencing a really strange problem with e prime. > >It is something simple like this: > > >Debug.print "1 WhiteDot ACC=" & whiteDot.ACC > >If whiteDot.ACC=1 Then > > >Debug.print "2 WhiteDot ACC=" & whiteDot.ACC >end if > >What the debug print is sometimes > >1 WhiteDot ACC=1 >2 WhiteDot ACC=1 > >and sometimes > >1 WhiteDot ACC=0 >2 WhiteDot ACC=1 > >and sometimes > >1 WhiteDot ACC=0 >2 WhiteDot ACC=0 > > > >Assuming that the answer to WhiteDot is always ACCurate and that if >I print the whiteDot.ACC in a following inline function it always >returns 1, i think that the problem is that ACC value of WhiteDot >slide doesn't update instantly. The problem is that in the real >inline function I have to do an operation if whiteDot.ACC=0, so it >has to be updated instantly after the slide! How can I be sure that >this occours? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. From valerio.biscione at gmail.com Thu May 2 19:05:26 2013 From: valerio.biscione at gmail.com (Vaaal) Date: Thu, 2 May 2013 12:05:26 -0700 Subject: Reading more than one response Message-ID: Hi, I know that I have already opened a topic today, but I am working on more than one problem at time and I really need your help! So I have this experiment in which the subject has to press a button (on a slide that we'll call "Waiting Slide"), then when the stimulus appears the subject releases that button and presses ANOTHER button. I want to record the time between the stimulus out and the release of the button (we'll call this *decision time*) and the time between the release of the button and the pressing of the other button (we'll call this *movement time*). The first button is 2 and the second one is 4. In order to do so I added in the "alloweable keys" in the Stimulus slide this two keys: {-2}4 and in "correct" only 4. Then I changed the Max Count to 2. What happens is that everything works right, but there is a little bug that I am afraid the subject could learn. In the subject, on the Stimulus Slide, release key 2, and then PRESS AGAIN AND RELEASE AGAIN key 2, the slide will terminate. What I would like to do is just to ignore any other keys but 4, once that 2 has been released. I cannot come up with any answer. I can think to do something that involves the creation of two different slides, one that reads -2 and the other 4, but I don't like that solution because this would mean to change a lot of things in the rest of the experiment.. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/8zHp3ooCYv8J. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.biscione at gmail.com Thu May 2 19:12:11 2013 From: valerio.biscione at gmail.com (Vaaal) Date: Thu, 2 May 2013 12:12:11 -0700 Subject: Strange problem In-Reply-To: <765487a4-3651-4c42-9b73-68f24374fdde@googlegroups.com> Message-ID: You are right, I wasn't clear, and plus I think that there is a more easy way to explain it. I have a slide called WhiteDot. Assuming that I always give it the correct response (ACC=1). If I read the whiteDot.ACC just after the slide, the value is (most of the time but not always!) 0. If I read it after some other slides, the value is 1. Of course nothing change in the inline script about the ACC of the whitedot slide. The post run of whitedot slide is *afterObjectRun*, the prerun is *beforeObjectRun*. The duration of "WhiteDot" is a random variable called DurationA. In the field "Duration" I wrote [DurationA]. -What Time Limit do you use for the input mask on whiteDot? <-I am not sure I understand this one. Time Limit of the response is (same as duration). The correct response is to do nothing (just to way DurationA milliseconds) (actually, to be more precise, the subject is asked to press a button on a previous slide, and to keep the button pressed during WhiteDot. If the subject releases the button there is an incorrect resposne, otherwise a correct one). When I say "assuming that I always give the correct response" I mean: assuming that I always wait the right amount of time without doing anything but keep the button pressed. Could you write and described a stripped-down program that exhibits this phenomenon so that we might try to duplicate it? - Yes I can, but only tomorrow. Maybe you are able to help with the information that I have provided you now? Thank you very much! :-) On Thursday, 2 May 2013 12:45:44 UTC+1, Vaaal wrote: > > Hi, I am experiencing a really strange problem with e prime. > > It is something simple like this: > > > Debug.print "1 WhiteDot ACC=" & whiteDot.ACC > > If whiteDot.ACC=1 Then > > > Debug.print "2 WhiteDot ACC=" & whiteDot.ACC > end if > > What the debug print is sometimes > > 1 WhiteDot ACC=1 > 2 WhiteDot ACC=1 > > and sometimes > > 1 WhiteDot ACC=0 > 2 WhiteDot ACC=1 > > and sometimes > > 1 WhiteDot ACC=0 > 2 WhiteDot ACC=0 > > > > Assuming that the answer to WhiteDot is always ACCurate and that if I > print the whiteDot.ACC in a following inline function it always returns 1, > i think that the problem is that ACC value of WhiteDot slide doesn't > update instantly. The problem is that in the real inline function I have > to do an operation if whiteDot.ACC=0, so it has to be updated instantly > after the slide! How can I be sure that this occours? > > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/BZHVkRR3qu8J. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu May 2 19:32:53 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 2 May 2013 15:32:53 -0400 Subject: Strange problem In-Reply-To: <2bd98e19-db38-44fa-b13e-bab631433595@googlegroups.com> Message-ID: Thanks, this helps a little, although I still need more. Also (1) you really should take this to PST Web Support, and (2) when you reply here, *please* include the preceeding thread in full, otherwise it is hard for others (and me) to follow along later. Anyway, I still want to know the PreRelease value, that is critical to my thinking. If you are using EP2.0.8.10 then you probably use the default of "same as duration". I also need to know more about the structure of your Procedure. E.g., I assume that your inline immediately follows your WhiteDot, but I need you to confirm or correct that. And please give more concrete, explicit descriptions of your responses, not just "correct", but what counts as correct. I would like to see a better step-by-step description of what the subject is supposed to do on each trial, and some concrete examples of trial stimuli & responses. Best if you work out a stripped-down version to demonstrate this issue. But now I may not get back to this again until next week. Best, -- David McFarlane At 5/2/2013 03:12 PM Thursday, Vaaal wrote: >You are right, I wasn't clear, and plus I think that there is a more >easy way to explain it. >I have a slide called WhiteDot. Assuming that I always give it the >correct response (ACC=1). If I read the whiteDot.ACC just after the >slide, the value is (most of the time but not always!) 0. If I read >it after some other slides, the value is 1. Of course nothing change >in the inline script about the ACC of the whitedot slide. > >The post run of whitedot slide is *afterObjectRun*, the prerun is >*beforeObjectRun*. >The duration of "WhiteDot" is a random variable called DurationA. In >the field "Duration" I wrote [DurationA]. >-What Time Limit do you use for the input mask on whiteDot? <-I am >not sure I understand this one. Time Limit of the response is (same >as duration). The correct response is to do nothing (just to way >DurationA milliseconds) (actually, to be more precise, the subject >is asked to press a button on a previous slide, and to keep the >button pressed during WhiteDot. If the subject releases the button >there is an incorrect resposne, otherwise a correct one). >When I say "assuming that I always give the correct response" I >mean: assuming that I always wait the right amount of time without >doing anything but keep the button pressed. > >Could you write and described a stripped-down program that >exhibits this phenomenon so that we might try to duplicate it? - Yes >I can, but only tomorrow. Maybe you are able to help with the >information that I have provided you now? >Thank you very much! :-) > > >On Thursday, 2 May 2013 12:45:44 UTC+1, Vaaal wrote: >Hi, I am experiencing a really strange problem with e prime. > >It is something simple like this: > > >Debug.print "1 WhiteDot ACC=" & whiteDot.ACC > >If whiteDot.ACC=1 Then > > >Debug.print "2 WhiteDot ACC=" & whiteDot.ACC >end if > >What the debug print is sometimes > >1 WhiteDot ACC=1 >2 WhiteDot ACC=1 > >and sometimes > >1 WhiteDot ACC=0 >2 WhiteDot ACC=1 > >and sometimes > >1 WhiteDot ACC=0 >2 WhiteDot ACC=0 > > > >Assuming that the answer to WhiteDot is always ACCurate and that if >I print the whiteDot.ACC in a following inline function it always >returns 1, i think that the problem is that ACC value of WhiteDot >slide doesn't update instantly. The problem is that in the real >inline function I have to do an operation if whiteDot.ACC=0, so it >has to be updated instantly after the slide! How can I be sure that >this occours? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. From baltimore.ben at gmail.com Thu May 2 19:59:39 2013 From: baltimore.ben at gmail.com (ben robinson) Date: Thu, 2 May 2013 15:59:39 -0400 Subject: Reading more than one response In-Reply-To: <1144edab-5f8f-4ab0-9cce-056eb030fb9b@googlegroups.com> Message-ID: You can also set up your single slide with two separate Input Masks. add a second device under your Input Masks, so now you have two different keyboard devices listed. the first keyboard device has only {-2} as its allowable, with End Action (none). the second keyboard device has only 4 as its allowable, with End Action Terminate. Does that work? On Thu, May 2, 2013 at 3:05 PM, Vaaal wrote: > Hi, I know that I have already opened a topic today, but I am working on > more than one problem at time and I really need your help! > > So I have this experiment in which the subject has to press a button (on a > slide that we'll call "Waiting Slide"), then when the stimulus appears the > subject releases that button and presses ANOTHER button. > I want to record the time between the stimulus out and the release of the > button (we'll call this *decision time*) and the time between the release > of the button and the pressing of the other button (we'll call this > *movement time*). > The first button is 2 and the second one is 4. > > In order to do so I added in the "alloweable keys" in the Stimulus slide > this two keys: {-2}4 and in "correct" only 4. Then I changed the Max Count > to 2. > What happens is that everything works right, but there is a little bug > that I am afraid the subject could learn. In the subject, on the Stimulus > Slide, release key 2, and then PRESS AGAIN AND RELEASE AGAIN key 2, the > slide will terminate. > What I would like to do is just to ignore any other keys but 4, once that > 2 has been released. I cannot come up with any answer. > > I can think to do something that involves the creation of two different > slides, one that reads -2 and the other 4, but I don't like that solution > because this would mean to change a lot of things in the rest of the > experiment.. > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msg/e-prime/-/8zHp3ooCYv8J. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.biscione at gmail.com Thu May 2 20:46:01 2013 From: valerio.biscione at gmail.com (Vaaal) Date: Thu, 2 May 2013 13:46:01 -0700 Subject: Reading more than one response In-Reply-To: Message-ID: No, it doesn't work. If I do exactly what you described, and plus I have changed the MaxCount to 1 instead of the 2 that I have previously, for the first Input Mask. I have no response neither when I release 2 nor when I press 4. If I set in the {-2} input mask the EndAction (terminate), it will terminate when I release 2, so I assume that the response 4 is completely ignored, and only the -2 is read. Anyway I have read around that with multiple input masks e-prime stores only the last value, and I think this could be a problem for my purpose.. Now, the fact is that I don't really need to put that {-2}. But I *have* to record when 2 is released. Is I don't put {-2} in my "allowable response" I won't have the problem described in this topic (if the subject press again 2 or any other keys, it will just ignore it, and I am fine with this), but THEN I won't be able to read that value. This is true at least whit the inline function that I use. If you know any way to read a response also if it is not in allowable response, this may solve the problem. On Thursday, 2 May 2013 20:59:39 UTC+1, ben wrote: > > You can also set up your single slide with two separate Input Masks. > add a second device under your Input Masks, so now you have two different > keyboard devices listed. the first keyboard device has only {-2} as its > allowable, with End Action (none). the second keyboard device has only 4 as > its allowable, with End Action Terminate. > Does that work? > > > On Thu, May 2, 2013 at 3:05 PM, Vaaal > > wrote: > >> Hi, I know that I have already opened a topic today, but I am working on >> more than one problem at time and I really need your help! >> >> So I have this experiment in which the subject has to press a button (on >> a slide that we'll call "Waiting Slide"), then when the stimulus appears >> the subject releases that button and presses ANOTHER button. >> I want to record the time between the stimulus out and the release of the >> button (we'll call this *decision time*) and the time between the release >> of the button and the pressing of the other button (we'll call this >> *movement time*). >> The first button is 2 and the second one is 4. >> >> In order to do so I added in the "alloweable keys" in the Stimulus slide >> this two keys: {-2}4 and in "correct" only 4. Then I changed the Max Count >> to 2. >> What happens is that everything works right, but there is a little bug >> that I am afraid the subject could learn. In the subject, on the Stimulus >> Slide, release key 2, and then PRESS AGAIN AND RELEASE AGAIN key 2, the >> slide will terminate. >> What I would like to do is just to ignore any other keys but 4, once that >> 2 has been released. I cannot come up with any answer. >> >> I can think to do something that involves the creation of two different >> slides, one that reads -2 and the other 4, but I don't like that solution >> because this would mean to change a lot of things in the rest of the >> experiment.. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "E-Prime" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to e-prime+u... at googlegroups.com . >> To post to this group, send email to e-p... at googlegroups.com >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msg/e-prime/-/8zHp3ooCYv8J. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/SDlaLxMOrWUJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From molinae at gmail.com Thu May 2 21:31:22 2013 From: molinae at gmail.com (molinae) Date: Thu, 2 May 2013 14:31:22 -0700 Subject: Reading more than one response In-Reply-To: <6080023f-6f38-4f05-8957-b38a6e64cbca@googlegroups.com> Message-ID: Hi, wouldn't it work if you just set the Termination Response to 4 and the Max Count to, say, 10 or 20? El jueves, 2 de mayo de 2013 22:46:01 UTC+2, Vaaal escribió: > > No, it doesn't work. > If I do exactly what you described, and plus I have changed the MaxCount > to 1 instead of the 2 that I have previously, for the first Input Mask. I > have no response neither when I release 2 nor when I press 4. > If I set in the {-2} input mask the EndAction (terminate), it will > terminate when I release 2, so I assume that the response 4 is completely > ignored, and only the -2 is read. > > Anyway I have read around that with multiple input masks e-prime stores > only the last value, and I think this could be a problem for my purpose.. > Now, the fact is that I don't really need to put that {-2}. But I *have* > to record when 2 is released. Is I don't put {-2} in my "allowable > response" I won't have the problem described in this topic (if the subject > press again 2 or any other keys, it will just ignore it, and I am fine with > this), but THEN I won't be able to read that value. This is true at least > whit the inline function that I use. If you know any way to read a response > also if it is not in allowable response, this may solve the problem. > > > On Thursday, 2 May 2013 20:59:39 UTC+1, ben wrote: >> >> You can also set up your single slide with two separate Input Masks. >> add a second device under your Input Masks, so now you have two different >> keyboard devices listed. the first keyboard device has only {-2} as its >> allowable, with End Action (none). the second keyboard device has only 4 as >> its allowable, with End Action Terminate. >> Does that work? >> >> >> On Thu, May 2, 2013 at 3:05 PM, Vaaal wrote: >> >>> Hi, I know that I have already opened a topic today, but I am working >>> on more than one problem at time and I really need your help! >>> >>> So I have this experiment in which the subject has to press a button (on >>> a slide that we'll call "Waiting Slide"), then when the stimulus appears >>> the subject releases that button and presses ANOTHER button. >>> I want to record the time between the stimulus out and the release of >>> the button (we'll call this *decision time*) and the time between the >>> release of the button and the pressing of the other button (we'll call this >>> *movement time*). >>> The first button is 2 and the second one is 4. >>> >>> In order to do so I added in the "alloweable keys" in the Stimulus slide >>> this two keys: {-2}4 and in "correct" only 4. Then I changed the Max Count >>> to 2. >>> What happens is that everything works right, but there is a little bug >>> that I am afraid the subject could learn. In the subject, on the Stimulus >>> Slide, release key 2, and then PRESS AGAIN AND RELEASE AGAIN key 2, the >>> slide will terminate. >>> What I would like to do is just to ignore any other keys but 4, once >>> that 2 has been released. I cannot come up with any answer. >>> >>> I can think to do something that involves the creation of two different >>> slides, one that reads -2 and the other 4, but I don't like that solution >>> because this would mean to change a lot of things in the rest of the >>> experiment.. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "E-Prime" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to e-prime+u... at googlegroups.com. >>> To post to this group, send email to e-p... at googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msg/e-prime/-/8zHp3ooCYv8J. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/h5g1XyTVfc0J. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.biscione at gmail.com Thu May 2 21:48:26 2013 From: valerio.biscione at gmail.com (Vaaal) Date: Thu, 2 May 2013 14:48:26 -0700 Subject: Reading more than one response In-Reply-To: <1114ca92-c33f-40d9-8069-ce3cf6a2216e@googlegroups.com> Message-ID: Wow, it work this way!!! Thank you very much! :-) Thank you to ben as well!! On Thursday, 2 May 2013 22:31:22 UTC+1, molinae wrote: > > Hi, > > wouldn't it work if you just set the Termination Response to 4 and the Max > Count to, say, 10 or 20? > > > > El jueves, 2 de mayo de 2013 22:46:01 UTC+2, Vaaal escribió: >> >> No, it doesn't work. >> If I do exactly what you described, and plus I have changed the MaxCount >> to 1 instead of the 2 that I have previously, for the first Input Mask. I >> have no response neither when I release 2 nor when I press 4. >> If I set in the {-2} input mask the EndAction (terminate), it will >> terminate when I release 2, so I assume that the response 4 is completely >> ignored, and only the -2 is read. >> >> Anyway I have read around that with multiple input masks e-prime stores >> only the last value, and I think this could be a problem for my purpose.. >> Now, the fact is that I don't really need to put that {-2}. But I *have* >> to record when 2 is released. Is I don't put {-2} in my "allowable >> response" I won't have the problem described in this topic (if the subject >> press again 2 or any other keys, it will just ignore it, and I am fine with >> this), but THEN I won't be able to read that value. This is true at least >> whit the inline function that I use. If you know any way to read a response >> also if it is not in allowable response, this may solve the problem. >> >> >> On Thursday, 2 May 2013 20:59:39 UTC+1, ben wrote: >>> >>> You can also set up your single slide with two separate Input Masks. >>> add a second device under your Input Masks, so now you have two >>> different keyboard devices listed. the first keyboard device has only {-2} >>> as its allowable, with End Action (none). the second keyboard device has >>> only 4 as its allowable, with End Action Terminate. >>> Does that work? >>> >>> >>> On Thu, May 2, 2013 at 3:05 PM, Vaaal wrote: >>> >>>> Hi, I know that I have already opened a topic today, but I am working >>>> on more than one problem at time and I really need your help! >>>> >>>> So I have this experiment in which the subject has to press a button >>>> (on a slide that we'll call "Waiting Slide"), then when the stimulus >>>> appears the subject releases that button and presses ANOTHER button. >>>> I want to record the time between the stimulus out and the release of >>>> the button (we'll call this *decision time*) and the time between the >>>> release of the button and the pressing of the other button (we'll call this >>>> *movement time*). >>>> The first button is 2 and the second one is 4. >>>> >>>> In order to do so I added in the "alloweable keys" in the Stimulus >>>> slide this two keys: {-2}4 and in "correct" only 4. Then I changed the Max >>>> Count to 2. >>>> What happens is that everything works right, but there is a little bug >>>> that I am afraid the subject could learn. In the subject, on the Stimulus >>>> Slide, release key 2, and then PRESS AGAIN AND RELEASE AGAIN key 2, the >>>> slide will terminate. >>>> What I would like to do is just to ignore any other keys but 4, once >>>> that 2 has been released. I cannot come up with any answer. >>>> >>>> I can think to do something that involves the creation of two different >>>> slides, one that reads -2 and the other 4, but I don't like that solution >>>> because this would mean to change a lot of things in the rest of the >>>> experiment.. >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "E-Prime" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to e-prime+u... at googlegroups.com. >>>> To post to this group, send email to e-p... at googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msg/e-prime/-/8zHp3ooCYv8J. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>>> >>> >>> -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/cyOzm4KlgTcJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From julf at pdx.edu Fri May 3 18:53:32 2013 From: julf at pdx.edu (Julia Fernandez) Date: Fri, 3 May 2013 11:53:32 -0700 Subject: Problem when sequence is shorter than maximum allowable? Message-ID: I've designed an experiment on artificial grammar learning where subjects need to replicate a sequence using an SR box. I changed the Maximum Allowable to 6 and everything works properly except that sequences of less than 6 come out as incorrect. Do I need a script for this? Julia Sent from my iPhone -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. From tobias.fw at gmail.com Mon May 6 13:39:19 2013 From: tobias.fw at gmail.com (Tobias) Date: Mon, 6 May 2013 06:39:19 -0700 Subject: Polhemus Message-ID: Dear all, Does anyone have experience with running Polhemus Liberty (the motion tracking system) with E-Prime? Best, Tobias -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/UIQsumyUIUAJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.biscione at gmail.com Mon May 6 21:00:50 2013 From: valerio.biscione at gmail.com (Vaaal) Date: Mon, 6 May 2013 14:00:50 -0700 Subject: Critical time delay after a subject's input Message-ID: Hello, I am trying to solve a timing problem. When the frame waits for the subject to press a button, a PreRelease procedure seems to be impossible for e-prime. This adds an unwanted onset delay to the next frame. This is quite strange to me: couldn't e-prime start loading the following frame from the beginning of the first frame? Anyway, on the documentation (chapter 3, section 3.3.1.1, just before the next section) they address exactly this problem. It is written: "Similarly, PreRelease time can not be honored by E-Prime in the case that the current object is terminated by a response input (i.e., because the system cannot possibly predict when a subject will respond, it cannot react to the response until after it occurs). This also is typically not a problem for most paradigms, as once a display is terminated, subsequent displays are not often viewed as time critical. Note, even if they are, they are minimally likely to be out of sync with the vertical refresh cycle, and incur some amount of unwanted delay. For paradigms in which this is a problem, it is recommended that the input specifications be set so that the display is NOT terminated upon response. This will allow the response to be time-stamped, scored, and logged properly, and the timing of the display sequence will remain accurate." I don't clearly understand the solution proposed here. I am exactly in the case in which, after the subject response, the timing precision is critical. I would like to have an onset delay close to zero, if this is possible. What does it mean that the display should NOT be terminated upon response? If my design requires that, what should I do? I came up with something, but first I need to be more specific. In particular, imagine that I have 3 frames. Frame1 waits for the subject to press a button. After that, Frame2 appears and stays on the screen for a duration specified in an attribute (DurationA), then Frame3 appears on the screen. Assuming that the OnsetDelay of Frame3 is negligible, but the OnSetDelay of Frame2 goes from 15 to 35ms (too much for my purpose) (this onsetDelay is exactly what I want to reduce as much as possible). I want to be sure that the time from the pressure of the button in Frame1, until the start of Frame3, is exactly DurationA (best case, let's call it CASE1). Let's call the REAL duration from the pressing of the button until the start of Frame3 REALdurationA. Can I manage to have DurationA (the supposed time from the pressing of the button to the start of Frame3) roughly equal to REALDurationA? At least, I want to calculate REALdurationA (second best case, CASE2). I came up with this idea. I could use the cumulative timing system. After frame1, there is a delay before the onset of frame2 (from 16ms to 30ms). With the cumulative timing mode, the frame2 is on the screen for durationA-onSetDelay time. But the total time from the pressure of the button in Frame1, until the onset of Frame3 (which onsetDelay is assumed to be close to 0) should be equal to DurationA. This means that DurationA is roughly equal to REALDurationA. My question is: is this reasoning correct, or I made some silly mistake? Now, assume that the problem cannot be addressed, so I'll settle for just knowing the REALDurationA (CASE2). Like before, assume that the onsetDelay of Frame2 is negligible. Would the REALDurationA just be DurationA+Frame2.onsetDealy, or there is still something else? For example, maybe there are more milliseconds from the moment in which the button is pressed until the moment frame1 ( NOT 2) disappears, and these milliseconds will not be recorded in Frame2.OnsetDelay. If this is specified later in the text, I apologize and come back to reading the manual. Thank you very much, Valerio -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/q8Pf1O7k4rMJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.biscione at gmail.com Mon May 6 21:04:43 2013 From: valerio.biscione at gmail.com (Vaaal) Date: Mon, 6 May 2013 14:04:43 -0700 Subject: dsadsa Message-ID: ddfsfdf -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/s6n9CuqVvfcJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobias.fw at gmail.com Tue May 7 10:31:12 2013 From: tobias.fw at gmail.com (Tobias) Date: Tue, 7 May 2013 03:31:12 -0700 Subject: Polhemus In-Reply-To: Message-ID: To be more precisely: What I need to do is to start a matlab script from E-Prime. "Presentation" has some plugin to connect with Matlab, but E-Prime seems not to have that. But there may be another way... Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: > > Dear all, > > Does anyone have experience with running Polhemus Liberty (the motion > tracking system) with E-Prime? > > Best, > Tobias > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/GxclTVJPyVEJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mspape at cognitology.eu Tue May 7 14:08:28 2013 From: mspape at cognitology.eu (Cognitology) Date: Tue, 7 May 2013 17:08:28 +0300 Subject: FW: Polhemus Message-ID: Hi, Never heard of a way to interface matlab from E-Prime, I’d be interested if anyone would have a way. Of course, you could compile from within matlab and try to go from there, but I suspect the amount of effort would really not be worth it. You could, of course, just forego e-prime and try Psychtoolbox. Best, Michiel From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Tobias Sent: 7. May 2013 13:31 To: e-prime at googlegroups.com Subject: Re: Polhemus To be more precisely: What I need to do is to start a matlab script from E-Prime. "Presentation" has some plugin to connect with Matlab, but E-Prime seems not to have that. But there may be another way... Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: Dear all, Does anyone have experience with running Polhemus Liberty (the motion tracking system) with E-Prime? Best, Tobias -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/GxclTVJPyVEJ. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue May 7 14:26:08 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 7 May 2013 10:26:08 -0400 Subject: FW: Polhemus In-Reply-To: <000e01ce4b2c$5a0f4f00$0e2ded00$@eu> Message-ID: Can you start your MATLAB script from a command line? If so, then you might try using the E-Basic "Shell()" function, see that topic in the E-Basic Help facility. For a user example of this, see http://support.pstnet.com/forum/Topic1338-8-2.aspx . This still leaves a lot to be desired, and beyond that I have no idea. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: >Hi, >Never heard of a way to interface matlab from E-Prime, I'd be >interested if anyone would have a way. Of course, you could compile >from within matlab and try to go from there, but I suspect the >amount of effort would really not be worth it. You could, of course, >just forego e-prime and try Psychtoolbox. >Best, >Michiel > >From: e-prime at googlegroups.com >[mailto:e-prime at googlegroups.com] On Behalf Of Tobias >Sent: 7. May 2013 13:31 >To: e-prime at googlegroups.com >Subject: Re: Polhemus > >To be more precisely: What I need to do is to start a matlab script >from E-Prime. >"Presentation" has some plugin to connect with Matlab, but E-Prime >seems not to have that. But there may be another way... > >Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: >Dear all, > >Does anyone have experience with running Polhemus Liberty (the >motion tracking system) with E-Prime? > >Best, >Tobias -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. From pfc.groot at gmail.com Tue May 7 15:01:32 2013 From: pfc.groot at gmail.com (Paul Groot) Date: Tue, 7 May 2013 17:01:32 +0200 Subject: FW: Polhemus In-Reply-To: <51890f0f.c287ec0a.6c9b.78abSMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: I don't think eprime requires a special plugin like presentation, because matlab can also be started as a so called COM server: Dim MatLab As Object Dim Result As String Dim MReal(1, 3) As Double Dim MImag(1, 3) As Double Set MatLab = CreateObject("Matlab.Application") 'Executing other MATLAB commands Result = MatLab.Execute("surf(peaks)") Debug.Print Result Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8]") Debug.Print Result Result = MatLab.Execute("b = a + a ") Debug.Print Result 'Bring matrix b into VB program MatLab.GetFullMatrix "b", "base", MReal, MImag Debug.Print MReal(1,0) Debug.Print MReal(1,1) Debug.Print MReal(1,2) Debug.Print MReal(1,3) The above will print the following to the Debug window: a = 1 2 3 4 5 6 7 8 b = 2 4 6 8 10 12 14 16 10 12 14 16 The matlab figure window won't be visible though... Best, Paul On 7 May 2013 16:26, David McFarlane wrote: > Can you start your MATLAB script from a command line? If so, then you > might try using the E-Basic "Shell()" function, see that topic in the > E-Basic Help facility. For a user example of this, see > http://support.pstnet.com/**forum/Topic1338-8-2.aspx. This still leaves a lot to be desired, and beyond that I have no idea. > > ----- > David McFarlane > E-Prime training online: http://psychology.msu.edu/** > Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMaster > ) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > any and all questions at http://support.pstnet.com/e%** > 2Dprime/support/login.asp, and they strive to respond to all requests in 24-48 hours, so make full > use of it. 3) In addition, PST offers several instructional videos on > their YouTube channel (http://www.youtube.com/user/**PSTNET). 4) If you do get an answer from PST staff, please extend the courtesy > of posting their reply back here for the sake of others. > \---- > > > > At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: > >> Hi, >> Never heard of a way to interface matlab from E-Prime, I'd be interested >> if anyone would have a way. Of course, you could compile from within matlab >> and try to go from there, but I suspect the amount of effort would really >> not be worth it. You could, of course, just forego e-prime and try >> Psychtoolbox. >> Best, >> Michiel >> >> From: > >> e-prime at googlegroups.com [mailto:e-prime at googlegroups.**com] >> On Behalf Of Tobias >> >> Sent: 7. May 2013 13:31 >> To: > >> e-prime at googlegroups.com >> >> Subject: Re: Polhemus >> >> To be more precisely: What I need to do is to start a matlab script from >> E-Prime. >> "Presentation" has some plugin to connect with Matlab, but E-Prime seems >> not to have that. But there may be another way... >> >> Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: >> Dear all, >> >> Does anyone have experience with running Polhemus Liberty (the motion >> tracking system) with E-Prime? >> >> Best, >> Tobias >> > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe@**googlegroups.com > . > To post to this group, send email to e-prime at googlegroups.com. > For more options, visit https://groups.google.com/**groups/opt_out > . > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From caitlin.hudac at gmail.com Wed May 8 21:57:24 2013 From: caitlin.hudac at gmail.com (Caitlin) Date: Wed, 8 May 2013 14:57:24 -0700 Subject: NTP and TET servers -- Linking EEG and eyetracking Message-ID: Hi there, I've also posted this to the PST forum -- trying to cast a wide net! Appreciate your ideas: I am installing our new eye tracking system (Tobii TX300). I'd like to use a one-computer system (i.e., 1 computer to both run EPrime and Tobii). This would be ideal for us, because we plan on also sending events from EPrime 2 -> NetStation 4.4 (EEG acquisition software). I've run into an interesting conundrum: When I try to run the Tobii Eprime samples, it immediate throws an error, asking for the NTP server. Now, this is without the NetStation package being added to the EPrime experiment. If I open the Mac and start a NetStation session, this permits the EPrime to start the experiment (no NTP error). However, the TET server throws an error: Routine: TET_Connect() Error Script: 2 Error Text: Failed to communicate with server. Disconnected. TET support will now be disabled. The eye tracking connection will be closed and further errors will be suppressed. I'm a baffled. I've entered the correct server information (serverID.local.) is entered into the IP Address/Name box for the TobiiEye Tracker Device Properties. The other options I left to the default (Port = 4455, Sync mode=Local, Max count =4096). I've pinged the server from the command prompt, and it the PC and Tobii are connected just fine. So this all comes down to a few questions: 1. Why is EPrime requiring the NTP server when running an experiment without the NTP package or devices? Is there a clock setting that needs to be changed after adding the Tobii EPrime Extensions pack? 2. What is going on with the TET server? I'm out of ideas for troubleshooting. I've tried restarting the systems in different orders; I've double checked the serverID values, successfully ping the Tobii before running experiment, etc. I really appreciate your help! cheers, -Caitlin UNL, Graduate student -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/UtiPJa7AqhsJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobias.fw at gmail.com Thu May 9 19:47:22 2013 From: tobias.fw at gmail.com (Tobias) Date: Thu, 9 May 2013 12:47:22 -0700 Subject: FW: Polhemus In-Reply-To: <51890f0f.c287ec0a.6c9b.78abSMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks for your postings! I tried with the shell function first because that seems to be the easiest way. To begin with I just wanted to try starting matlab from within E-Prime, without any matlab script. I used this E-Prime script: Dim snd as String Dim MyAppID As String snd = "C:\Program Files\MATLAB\R2012a\bin\matlab.exe" MyAppID = Shell(snd) ... and the following error message occured: "The following runtume error occurred: Device I/O error, Line:205; Error Number 57" So I had a closer look at the link you posted (by this Matthias guy) and thought maybe I need to pause E-Prime. So I used this code: "Dim snd as String Dim MyAppID As String Rte.DeviceManager.Suspend snd = "C:\Program Files\MATLAB\R2012a\bin\matlab.exe" MyAppID = Shell(snd,0) 'use 0 instead of 1 hide the wmp sleep(10000)" However, same error message :-( According to the interwebs, this error message has to do with external devices. But I don't use any. Puzzling! Do you have any script for E-Prime that just starts some program, whatever it may be? Thanks a lot, Tobias Rte.DeviceManager.Resume Am Dienstag, 7. Mai 2013 16:26:08 UTC+2 schrieb McFarlane, David: > > Can you start your MATLAB script from a command line? If so, then > you might try using the E-Basic "Shell()" function, see that topic in > the E-Basic Help facility. For a user example of this, see > http://support.pstnet.com/forum/Topic1338-8-2.aspx . This still > leaves a lot to be desired, and beyond that I have no idea. > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at > http://support.pstnet.com/e%2Dprime/support/login.asp , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: > >Hi, > >Never heard of a way to interface matlab from E-Prime, I'd be > >interested if anyone would have a way. Of course, you could compile > >from within matlab and try to go from there, but I suspect the > >amount of effort would really not be worth it. You could, of course, > >just forego e-prime and try Psychtoolbox. > >Best, > >Michiel > > > >From: > > e-p... at googlegroups.com > >[mailto:e-p... at googlegroups.com ] On Behalf Of Tobias > >Sent: 7. May 2013 13:31 > >To: >e-p... at googlegroups.com > >Subject: Re: Polhemus > > > >To be more precisely: What I need to do is to start a matlab script > >from E-Prime. > >"Presentation" has some plugin to connect with Matlab, but E-Prime > >seems not to have that. But there may be another way... > > > >Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: > >Dear all, > > > >Does anyone have experience with running Polhemus Liberty (the > >motion tracking system) with E-Prime? > > > >Best, > >Tobias > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/q6fQNPzMg0UJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu May 9 20:06:50 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 9 May 2013 16:06:50 -0400 Subject: FW: Polhemus In-Reply-To: Message-ID: Tobias, The "AppActivate" topic in the E-Basic Help facility contains a complete code example. I went ahead and pasted the complete example into good-old EP1 E-Run to test it out myself. Sadly, it does not work. First, it fails to declare its "id" variable. Fixing that got me to a "Path/File access error". Substituting "notepad.exe" for "clock.exe" then got me to a "Can't find window" error on the AppActivate line. Using the id variable instead of a window name string there got me to a "Can't find window" error on the AppClose line. Once again using the id variable instead of a window name string got me a fully working example. So here is the fully working result: Sub Main() dim id id = Shell("notepad.exe",1) AppActivate id Sleep(2000) AppClose id End Sub Of course, to test this in an E-Studio inline object (instead of EP1 E-Run), you need to leave out the first and last lines (Sub Main(), End Sub). And that is everything I know about this business :). ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) At 5/9/2013 03:47 PM Thursday, Tobias wrote: >Thanks for your postings! > >I tried with the shell function first because that seems to be the >easiest way. To begin with I just wanted to try starting matlab from >within E-Prime, without any matlab script. > >I used this E-Prime script: > >Dim snd as String >Dim MyAppID As String >snd = "C:\Program Files\MATLAB\R2012a\bin\matlab.exe" >MyAppID = Shell(snd) > >... and the following error message occured: >"The following runtume error occurred: Device I/O error, Line:205; >Error Number 57" > >So I had a closer look at the link you posted (by this Matthias guy) >and thought maybe I need to pause E-Prime. So I used this code: > >"Dim snd as String >Dim MyAppID As String >Rte.DeviceManager.Suspend >snd = "C:\Program Files\MATLAB\R2012a\bin\matlab.exe" >MyAppID = Shell(snd,0) 'use 0 instead of 1 hide the wmp >sleep(10000)" > >However, same error message :-( > >According to the interwebs, this error message has to do with >external devices. But I don't use any. Puzzling! >Do you have any script for E-Prime that just starts some program, >whatever it may be? > >Thanks a lot, >Tobias >Rte.DeviceManager.Resume > > >Am Dienstag, 7. Mai 2013 16:26:08 UTC+2 schrieb McFarlane, David: >Can you start your MATLAB script from a command line? If so, then >you might try using the E-Basic "Shell()" function, see that topic in >the E-Basic Help facility. For a user example of this, see >http://support.pstnet.com/forum/Topic1338-8-2.aspx >. This still >leaves a lot to be desired, and beyond that I have no idea. > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx > >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at >http://support.pstnet.com/e%2Dprime/support/login.asp >, and they >strive to respond to all requests in 24-48 hours, so make full use of >it. 3) In addition, PST offers several instructional videos on their >YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do >get an answer from PST staff, please extend the courtesy of posting >their reply back here for the sake of others. >\---- > > >At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: > >Hi, > >Never heard of a way to interface matlab from E-Prime, I'd be > >interested if anyone would have a way. Of course, you could compile > >from within matlab and try to go from there, but I suspect the > >amount of effort would really not be worth it. You could, of course, > >just forego e-prime and try Psychtoolbox. > >Best, > >Michiel > > > >From: e-p... at googlegroups.com > >[mailto:e-p... at googlegroups.com] On Behalf Of Tobias > >Sent: 7. May 2013 13:31 > >To: e-p... at googlegroups.com > >Subject: Re: Polhemus > > > >To be more precisely: What I need to do is to start a matlab script > >from E-Prime. > >"Presentation" has some plugin to connect with Matlab, but E-Prime > >seems not to have that. But there may be another way... > > > >Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: > >Dear all, > > > >Does anyone have experience with running Polhemus Liberty (the > >motion tracking system) with E-Prime? > > > >Best, > >Tobias -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. From bsmith.lap at gmail.com Fri May 10 19:20:47 2013 From: bsmith.lap at gmail.com (Benjamin) Date: Fri, 10 May 2013 12:20:47 -0700 Subject: How do you tell which input device was used to make the most recent response to a slide? Message-ID: How do you tell which input device was used to make the most recent response to a slide or object? You do it with SlideNameGoesHere.Device , which will give you a lovely String. Just another note to myself and anyone else having trouble with E-Basic Help. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/cSsFaMwLURkJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From julf at pdx.edu Fri May 10 20:40:21 2013 From: julf at pdx.edu (Julia Fernandez) Date: Fri, 10 May 2013 13:40:21 -0700 Subject: Sequences experiment Message-ID: I'm an E-Prime newbie designing an artificial grammar experiment for my final Master's project. In this experiment, subjects see a string of symbols and have to recreate the sequence using an SR box marked with matching symbols, i.e. a subject could see a string of a circle, a diamond shape and a poundsign and need to press the corresponding buttons. In the program, this would be represented as numbers ("1" for a circle + "4" for diamond + "5" for a poundsign). I got everything up and running but hit a wall. The sequences are of different lengths, 3-6 digits. I changed the max allowable to 6 so now Eprime only accepts strings of 6 digits. If you correctly enter a 6-digit string then it gives a "correct" screen. If you have a shorter sequence, Eprime won't accept it until you add additional digits and then, of course, it's marked incorrect. Can anyone help? Thanks, Julia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobias.fw at gmail.com Sun May 12 14:16:05 2013 From: tobias.fw at gmail.com (Tobias) Date: Sun, 12 May 2013 07:16:05 -0700 Subject: FW: Polhemus In-Reply-To: <518c01f4.4e27320a.6f8f.3648SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: David, thanks for your suggestion. I used your code and it worked fine. However, the code does not work with matlab. The same error you had earlier ("Can't find window") appears. Nevertheless, Matlab starts and even executes a script if I am using sth like "id = Shell("matlab -r script.m",1) ". So in principle it works but of course I don't want to have this error message since that interrupts the whole program. Do you have any idea how to work around this window error problem? Best, Tobias Am Donnerstag, 9. Mai 2013 22:06:50 UTC+2 schrieb McFarlane, David: > > Tobias, > > The "AppActivate" topic in the E-Basic Help facility contains a > complete code example. I went ahead and pasted the complete example > into good-old EP1 E-Run to test it out myself. Sadly, it does not > work. First, it fails to declare its "id" variable. Fixing that got > me to a "Path/File access error". Substituting "notepad.exe" for > "clock.exe" then got me to a "Can't find window" error on the > AppActivate line. Using the id variable instead of a window name > string there got me to a "Can't find window" error on the AppClose > line. Once again using the id variable instead of a window name > string got me a fully working example. So here is the fully working > result: > > Sub Main() > dim id > id = Shell("notepad.exe",1) > AppActivate id > Sleep(2000) > AppClose id > End Sub > > Of course, to test this in an E-Studio inline object (instead of EP1 > E-Run), you need to leave out the first and last lines (Sub Main(), End > Sub). > > And that is everything I know about this business :). > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) > > > At 5/9/2013 03:47 PM Thursday, Tobias wrote: > >Thanks for your postings! > > > >I tried with the shell function first because that seems to be the > >easiest way. To begin with I just wanted to try starting matlab from > >within E-Prime, without any matlab script. > > > >I used this E-Prime script: > > > >Dim snd as String > >Dim MyAppID As String > >snd = "C:\Program Files\MATLAB\R2012a\bin\matlab.exe" > >MyAppID = Shell(snd) > > > >... and the following error message occured: > >"The following runtume error occurred: Device I/O error, Line:205; > >Error Number 57" > > > >So I had a closer look at the link you posted (by this Matthias guy) > >and thought maybe I need to pause E-Prime. So I used this code: > > > >"Dim snd as String > >Dim MyAppID As String > >Rte.DeviceManager.Suspend > >snd = "C:\Program Files\MATLAB\R2012a\bin\matlab.exe" > >MyAppID = Shell(snd,0) 'use 0 instead of 1 hide the wmp > >sleep(10000)" > > > >However, same error message :-( > > > >According to the interwebs, this error message has to do with > >external devices. But I don't use any. Puzzling! > >Do you have any script for E-Prime that just starts some program, > >whatever it may be? > > > >Thanks a lot, > >Tobias > >Rte.DeviceManager.Resume > > > > > >Am Dienstag, 7. Mai 2013 16:26:08 UTC+2 schrieb McFarlane, David: > >Can you start your MATLAB script from a command line? If so, then > >you might try using the E-Basic "Shell()" function, see that topic in > >the E-Basic Help facility. For a user example of this, see > > > http://support.pstnet.com/forum/Topic1338-8-2.aspx > >. This still > >leaves a lot to be desired, and beyond that I have no idea. > > > >----- > >David McFarlane > >E-Prime training > >online: > > > http://psychology.msu.edu/Workshops_Courses/eprime.aspx > > > >Twitter: @EPrimeMaster > >(https://twitter.com/EPrimeMaster) > > > >/---- > >Stock reminder: 1) I do not work for PST. 2) PST's trained staff > >take any and all questions at > > > http://support.pstnet.com/e%2Dprime/support/login.asp > >, and they > >strive to respond to all requests in 24-48 hours, so make full use of > >it. 3) In addition, PST offers several instructional videos on their > >YouTube channel > >(http://www.youtube.com/user/PSTNET > >). 4) If you do > >get an answer from PST staff, please extend the courtesy of posting > >their reply back here for the sake of others. > >\---- > > > > > >At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: > > >Hi, > > >Never heard of a way to interface matlab from E-Prime, I'd be > > >interested if anyone would have a way. Of course, you could compile > > >from within matlab and try to go from there, but I suspect the > > >amount of effort would really not be worth it. You could, of course, > > >just forego e-prime and try Psychtoolbox. > > >Best, > > >Michiel > > > > > >From: e-p... at googlegroups.com > > >[mailto:e-p... at googlegroups.com] On Behalf Of Tobias > > >Sent: 7. May 2013 13:31 > > >To: e-p... at googlegroups.com > > >Subject: Re: Polhemus > > > > > >To be more precisely: What I need to do is to start a matlab script > > >from E-Prime. > > >"Presentation" has some plugin to connect with Matlab, but E-Prime > > >seems not to have that. But there may be another way... > > > > > >Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: > > >Dear all, > > > > > >Does anyone have experience with running Polhemus Liberty (the > > >motion tracking system) with E-Prime? > > > > > >Best, > > >Tobias > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/XmE7DYWkE9EJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobias.fw at gmail.com Mon May 13 10:19:21 2013 From: tobias.fw at gmail.com (Tobias) Date: Mon, 13 May 2013 03:19:21 -0700 Subject: FW: Polhemus In-Reply-To: Message-ID: Dear Paul, thanks a lot for this code. It works very well. There are some issued I have, though. >From your script I understand that there are at least two ways of getting data from Matlab to E-Prime: Execute and getfullmatrix. Are there other ways? Also, it seems that there is no way of transmitting a variable from E-Prime to Matlab, only string values such as "b = a + a". Of course I could always use sth like Result = MatLab.Execute(CStr(eprimeVar)) If I wanted to get the variable eprimeVar from E-Prime to Matlab. But maybe there is an easier way? Best, Tobias Am Dienstag, 7. Mai 2013 17:01:32 UTC+2 schrieb Paul Groot: > > I don't think eprime requires a special plugin like presentation, because > matlab can also be started as a so called COM server: > > Dim MatLab As Object > Dim Result As String > Dim MReal(1, 3) As Double > Dim MImag(1, 3) As Double > > Set MatLab = CreateObject("Matlab.Application") > > 'Executing other MATLAB commands > Result = MatLab.Execute("surf(peaks)") > Debug.Print Result > > Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8]") > Debug.Print Result > > Result = MatLab.Execute("b = a + a ") > Debug.Print Result > > 'Bring matrix b into VB program > MatLab.GetFullMatrix "b", "base", MReal, MImag > > Debug.Print MReal(1,0) > Debug.Print MReal(1,1) > Debug.Print MReal(1,2) > Debug.Print MReal(1,3) > > > The above will print the following to the Debug window: > > a = > > 1 2 3 4 > 5 6 7 8 > > > > b = > > 2 4 6 8 > 10 12 14 16 > > > 10 > 12 > 14 > 16 > > The matlab figure window won't be visible though... > > Best, > Paul > > > > On 7 May 2013 16:26, David McFarlane >wrote: > >> Can you start your MATLAB script from a command line? If so, then you >> might try using the E-Basic "Shell()" function, see that topic in the >> E-Basic Help facility. For a user example of this, see >> http://support.pstnet.com/**forum/Topic1338-8-2.aspx. This still leaves a lot to be desired, and beyond that I have no idea. >> >> ----- >> David McFarlane >> E-Prime training online: http://psychology.msu.edu/** >> Workshops_Courses/eprime.aspx >> Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMaster >> ) >> >> /---- >> Stock reminder: 1) I do not work for PST. 2) PST's trained staff take >> any and all questions at http://support.pstnet.com/e%** >> 2Dprime/support/login.asp, and they strive to respond to all requests in 24-48 hours, so make full >> use of it. 3) In addition, PST offers several instructional videos on >> their YouTube channel (http://www.youtube.com/user/**PSTNET). 4) If you do get an answer from PST staff, please extend the courtesy >> of posting their reply back here for the sake of others. >> \---- >> >> >> >> At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: >> >>> Hi, >>> Never heard of a way to interface matlab from E-Prime, I'd be interested >>> if anyone would have a way. Of course, you could compile from within matlab >>> and try to go from there, but I suspect the amount of effort would really >>> not be worth it. You could, of course, just forego e-prime and try >>> Psychtoolbox. >>> Best, >>> Michiel >>> >>> From: > >>> e-p... at googlegroups.com [mailto:e-p... at googlegroups.**com] >>> On Behalf Of Tobias >>> >>> Sent: 7. May 2013 13:31 >>> To: > >>> e-p... at googlegroups.com >>> >>> Subject: Re: Polhemus >>> >>> To be more precisely: What I need to do is to start a matlab script from >>> E-Prime. >>> "Presentation" has some plugin to connect with Matlab, but E-Prime seems >>> not to have that. But there may be another way... >>> >>> Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: >>> Dear all, >>> >>> Does anyone have experience with running Polhemus Liberty (the motion >>> tracking system) with E-Prime? >>> >>> Best, >>> Tobias >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "E-Prime" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to e-prime+u...@**googlegroups.com . >> To post to this group, send email to e-p... at googlegroups.com >> . >> For more options, visit https://groups.google.com/**groups/opt_out >> . >> >> >> > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/kIUzT6nN__AJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From swathi.bwh at gmail.com Mon May 13 16:08:18 2013 From: swathi.bwh at gmail.com (Swathi) Date: Mon, 13 May 2013 09:08:18 -0700 Subject: Nordic Neuro Lab Sync Box Message-ID: Hello everyone, We are using Nordic NeuroLab's Sync Box to synchronize our Eprime experiment to the MRI trigger signal. Currently the Sync Box is setup in the USB Serial Mode and it sends ASCII code for the character "s" to the stimulus presentation PC when a trigger signal is received from MR scanner. I have setup a serial device in Eprime and have set the necessary parameters. But I dont exactly know how to bridge (what coding is required in Eprime) that signal into the Eprime script. Any help is appreciated. Thank you, Swathi -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/7PLTQsDsyWgJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pfc.groot at gmail.com Mon May 13 16:23:54 2013 From: pfc.groot at gmail.com (Paul Groot) Date: Mon, 13 May 2013 18:23:54 +0200 Subject: FW: Polhemus In-Reply-To: Message-ID: Hi Tobias, More detailed information about matlab's COM interface can be found here: http://www.mathworks.nl/help/matlab/call-matlab-com-automation-server.html There are a few functions available to pass variables, character array's, matrices and workspaces between the two applications, without the need to convert strings. The execute command should be used to execute scripts; not for passing variables (although you can do this off course). Large objects (like bitmap images) could also be passed by using external files (i.e. only passing the name of the created file). Best Paul On 13 May 2013 12:19, Tobias wrote: > Dear Paul, > > thanks a lot for this code. It works very well. There are some issued I > have, though. > > From your script I understand that there are at least two ways of getting > data from Matlab to E-Prime: Execute and getfullmatrix. Are there other > ways? > Also, it seems that there is no way of transmitting a variable from > E-Prime to Matlab, only string values such as "b = a + a". > Of course I could always use sth like > > Result = MatLab.Execute(CStr(eprimeVar)) > > If I wanted to get the variable eprimeVar from E-Prime to Matlab. But > maybe there is an easier way? > > Best, > Tobias > > > > Am Dienstag, 7. Mai 2013 17:01:32 UTC+2 schrieb Paul Groot: >> >> I don't think eprime requires a special plugin like presentation, because >> matlab can also be started as a so called COM server: >> >> Dim MatLab As Object >> Dim Result As String >> Dim MReal(1, 3) As Double >> Dim MImag(1, 3) As Double >> >> Set MatLab = CreateObject("Matlab.**Application") >> >> 'Executing other MATLAB commands >> Result = MatLab.Execute("surf(peaks)") >> Debug.Print Result >> >> Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8]") >> Debug.Print Result >> >> Result = MatLab.Execute("b = a + a ") >> Debug.Print Result >> >> 'Bring matrix b into VB program >> MatLab.GetFullMatrix "b", "base", MReal, MImag >> >> Debug.Print MReal(1,0) >> Debug.Print MReal(1,1) >> Debug.Print MReal(1,2) >> Debug.Print MReal(1,3) >> >> >> The above will print the following to the Debug window: >> >> a = >> >> 1 2 3 4 >> 5 6 7 8 >> >> >> >> b = >> >> 2 4 6 8 >> 10 12 14 16 >> >> >> 10 >> 12 >> 14 >> 16 >> >> The matlab figure window won't be visible though... >> >> Best, >> Paul >> >> >> >> On 7 May 2013 16:26, David McFarlane wrote: >> >>> Can you start your MATLAB script from a command line? If so, then you >>> might try using the E-Basic "Shell()" function, see that topic in the >>> E-Basic Help facility. For a user example of this, see >>> http://support.pstnet.com/**foru**m/Topic1338-8-2.aspx. This still leaves a lot to be desired, and beyond that I have no idea. >>> >>> ----- >>> David McFarlane >>> E-Prime training online: http://psychology.msu.edu/**Wor** >>> kshops_Courses/eprime.aspx >>> Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMas**ter >>> ) >>> >>> /---- >>> Stock reminder: 1) I do not work for PST. 2) PST's trained staff take >>> any and all questions at http://support.pstnet.com/e%**2D** >>> prime/support/login.asp, and they strive to respond to all requests in 24-48 hours, so make full >>> use of it. 3) In addition, PST offers several instructional videos on >>> their YouTube channel (http://www.youtube.com/user/**P**STNET). 4) If you do get an answer from PST staff, please extend the courtesy >>> of posting their reply back here for the sake of others. >>> \---- >>> >>> >>> >>> At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: >>> >>>> Hi, >>>> Never heard of a way to interface matlab from E-Prime, I'd be >>>> interested if anyone would have a way. Of course, you could compile from >>>> within matlab and try to go from there, but I suspect the amount of effort >>>> would really not be worth it. You could, of course, just forego e-prime and >>>> try Psychtoolbox. >>>> Best, >>>> Michiel >>>> >>>> From: e-p... at googlegroups.com[mailto: >>>> e-p... at googlegroups.**c**om] On Behalf Of Tobias >>>> >>>> Sent: 7. May 2013 13:31 >>>> To: e-p... at googlegroups.com >>>> >>>> Subject: Re: Polhemus >>>> >>>> To be more precisely: What I need to do is to start a matlab script >>>> from E-Prime. >>>> "Presentation" has some plugin to connect with Matlab, but E-Prime >>>> seems not to have that. But there may be another way... >>>> >>>> Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: >>>> Dear all, >>>> >>>> Does anyone have experience with running Polhemus Liberty (the motion >>>> tracking system) with E-Prime? >>>> >>>> Best, >>>> Tobias >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "E-Prime" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to e-prime+u...@**googlegrou**ps.com. >>> To post to this group, send email to e-p... at googlegroups.com. >>> For more options, visit https://groups.google.com/**grou**ps/opt_out >>> . >>> >>> >>> >> -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msg/e-prime/-/kIUzT6nN__AJ. > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From elisellemoyne at gmail.com Wed May 15 21:41:52 2013 From: elisellemoyne at gmail.com (Elilab) Date: Wed, 15 May 2013 14:41:52 -0700 Subject: Two subjects at same time (prisoner's dilemma) Message-ID: We're trying to get e-prime to control the experiment for two subjects at the same time with a prisoner's dilemma task. Can it communicate between two computers? Should we simply have 2 screens for one computer? Can e-prime collect responses from 2 keyboards at the same time and present feedback according to both inputs? Has anyone done something similar to this in the past? Thanks -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5b9145bf-9d47-43c9-8e80-e65a94eb3f09%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From christina.tzeng at gmail.com Wed May 15 22:56:00 2013 From: christina.tzeng at gmail.com (Sound Experiment) Date: Wed, 15 May 2013 15:56:00 -0700 Subject: Opening Eprime 2 Professional files in Non-Professional version Message-ID: Hello, I currently have Eprime 2 (2.0.10.242) installed. I'm trying to open ebs2 and es2 files that were created in Eprime 2 Professional. Is there a way for me to do this? I can't seem to just double click on the files to open them. Thank you. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/d6d04012-ec4c-4350-bf19-817eab2a8b13%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pfc.groot at gmail.com Thu May 16 10:59:18 2013 From: pfc.groot at gmail.com (Paul Groot) Date: Thu, 16 May 2013 12:59:18 +0200 Subject: Two subjects at same time (prisoner's dilemma) In-Reply-To: <5b9145bf-9d47-43c9-8e80-e65a94eb3f09@googlegroups.com> Message-ID: Elise, Two displays: yes, that's possible (eprime 2 pro) Two keyboards: no (although combining different types of input devices is possible) Creating a parallel task in a single script will not be trivial, if not impossible in most cases. So, a single computer set-up would not be my favourite choice. Two separate computers will be more flexible. Communication between the systems can be done in several ways. A direct serial (RS232, using nulmodem cable) or network (TCP) connection is possible, but may be difficult to do if you're not already experienced with E-Basic scripting. Handling the (asynchronous) data stream will be the most difficult part. (Depending on the complexity of the exchanged information.) Another option is to create files on a network share that can be accessed from both computers. Although this seems easier to do, this not a very elegant and reliable method. In very specific cases a mixture of both methods might also work. For example: a simple TCP data stream for sending events or triggers, and a file share for exchanging more complex event related info using files. Best Paul On 15 May 2013 23:41, Elilab wrote: > We're trying to get e-prime to control the experiment for two subjects at > the same time with a prisoner's dilemma task. Can it communicate between > two computers? Should we simply have 2 screens for one computer? Can > e-prime collect responses from 2 keyboards at the same time and present > feedback according to both inputs? > > Has anyone done something similar to this in the past? > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/5b9145bf-9d47-43c9-8e80-e65a94eb3f09%40googlegroups.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu May 16 14:30:31 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 16 May 2013 10:30:31 -0400 Subject: Opening Eprime 2 Professional files in Non-Professional version In-Reply-To: Message-ID: No, you really need EP2 Pro in order to work with .es2 or .ebs2 files in the Pro format, the "base" edition of EP2 will not read them. But please do not take my word for that, contact PST Web Support yourself. I regularly advise everyone to spend the extra $200 for Pro, it is well worth the extra cost for many reasons. You might contact PST and see if you can buy an upgraded license. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 5/15/2013 06:56 PM Wednesday, Sound Experiment wrote: >I currently have Eprime 2 (2.0.10.242) installed. I'm trying to open >ebs2 and es2 files that were created in Eprime 2 Professional. Is >there a way for me to do this? I can't seem to just double click on >the files to open them. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. From christina.tzeng at gmail.com Thu May 16 14:57:07 2013 From: christina.tzeng at gmail.com (Christina Tzeng) Date: Thu, 16 May 2013 10:57:07 -0400 Subject: Opening Eprime 2 Professional files in Non-Professional version In-Reply-To: <5194ed8a.4262320a.22ee.1fa2SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thank you. I did come across this in a previous pst thread. Is the info here no longer relevant? _______ http://www.pstnet.com/forum/Topic884-12-1.aspx On Thu, May 16, 2013 at 10:30 AM, David McFarlane wrote: > No, you really need EP2 Pro in order to work with .es2 or .ebs2 files in > the Pro format, the "base" edition of EP2 will not read them. But please > do not take my word for that, contact PST Web Support yourself. I > regularly advise everyone to spend the extra $200 for Pro, it is well worth > the extra cost for many reasons. You might contact PST and see if you can > buy an upgraded license. > > ----- > David McFarlane > E-Prime training online: http://psychology.msu.edu/** > Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMaster > ) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > any and all questions at http://support.pstnet.com/e%** > 2Dprime/support/login.asp, and they strive to respond to all requests in 24-48 hours, so make full > use of it. 3) In addition, PST offers several instructional videos on > their YouTube channel (http://www.youtube.com/user/**PSTNET). 4) If you do get an answer from PST staff, please extend the courtesy > of posting their reply back here for the sake of others. > \---- > > > > At 5/15/2013 06:56 PM Wednesday, Sound Experiment wrote: > >> I currently have Eprime 2 (2.0.10.242) installed. I'm trying to open ebs2 >> and es2 files that were created in Eprime 2 Professional. Is there a way >> for me to do this? I can't seem to just double click on the files to open >> them. >> > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe@**googlegroups.com > . > To post to this group, send email to e-prime at googlegroups.com. > For more options, visit https://groups.google.com/**groups/opt_out > . > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu May 16 15:07:16 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 16 May 2013 11:07:16 -0400 Subject: Opening Eprime 2 Professional files in Non-Professional version In-Reply-To: Message-ID: AFAIK, everything in that earlier thread still applies. So I should slightly revise my earlier broad statement here: EP2 "base" *might* run .ebs2 Pro files as long as they do not use any Pro features. But I have not tested that lately, and do not guarantee it. Really, everyone should just spend the extra $200 for the Pro edition, Pro is the true "standard", while Standard is merely "base". -- dkm At 5/16/2013 10:57 AM Thursday, Christina Tzeng wrote: >Thank you. I did come across this in a previous pst thread. Is the >info here no longer relevant? >_______ > >http://www.pstnet.com/forum/Topic884-12-1.aspx > > >On Thu, May 16, 2013 at 10:30 AM, David McFarlane ><mcfarla9 at msu.edu> wrote: >No, you really need EP2 Pro in order to work with .es2 or .ebs2 >files in the Pro format, the "base" edition of EP2 will not read >them. But please do not take my word for that, contact PST Web >Support yourself. I regularly advise everyone to spend the extra >$200 for Pro, it is well worth the extra cost for many reasons. You >might contact PST and see if you can buy an upgraded license. > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at >http://support.pstnet.com/e%2Dprime/support/login.asp >, and they strive to respond to all requests in 24-48 hours, so make >full use of it. 3) In addition, PST offers several instructional >videos on their YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do get an answer from PST staff, please extend the >courtesy of posting their reply back here for the sake of others. >\---- > > > >At 5/15/2013 06:56 PM Wednesday, Sound Experiment wrote: >I currently have Eprime 2 (2.0.10.242) installed. I'm trying to open >ebs2 and es2 files that were created in Eprime 2 Professional. Is >there a way for me to do this? I can't seem to just double click on >the files to open them. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. From elisellemoyne at gmail.com Thu May 16 17:56:12 2013 From: elisellemoyne at gmail.com (Elilab) Date: Thu, 16 May 2013 10:56:12 -0700 Subject: Two subjects at same time (prisoner's dilemma) In-Reply-To: Message-ID: Thanks Paul, much more complicated than I expected! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/7cc20319-958e-4721-9eb4-de4fdaac8ae3%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. From sbeckett91 at gmail.com Fri May 17 17:52:33 2013 From: sbeckett91 at gmail.com (Shawn Byron Beckett) Date: Fri, 17 May 2013 10:52:33 -0700 Subject: Noob Trying to Program Auditory n-back task Message-ID: Hello, I am a complete E-Prime neophyte (a summer student), and so could use a bit of help to point me in the right direction. My experiment is composed of two (simultaneously presented) activities, to study the effects of divided attention: 1) I am trying to run an auditory 2-back task, where the Subject hears words belonging to different categories (e.g. ANIMALS, FRUIT, JOBS) at a specific rate (e.g. 1 word every 2 seconds). If they hear a word from the same category as the one presented 2 prior, they hit "Yes." Otherwise, they hit "No." For example, the sequence [WORD(correct response)]: COW(no) DOG(no) PEAR(no) LAWYER(no) BANANA(yes) PLUMBER(yes) NURSE(no) In this sequence, "banana" and "plumber" are both preceded 2 back by other items ("pear" and "lawyer" respectively) that belong to their same categories. 2) The difficulty with this is that I am going to have another task running at the same time, which is a visual task that is also presented in E-Prime. The Subject will have to discriminate between large and small objects on-screen, in which the correct answer must be given before progress can occur. The length of time that the Subject will be performing this task will be set by the length of time allotted to the auditory task above. So the whole procedure will be over in say, 1 minute. I am not sure how to model these, since they are two different tasks, ostensibly running on two machines, that would need to be syncronized so that they start and stop at the same time. Any ideas on how/if this is possible would be very helpful!! Thank you, Shawn -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/00daa798-3a03-44a2-90ff-bb316d85cba3%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cchristner91 at gmail.com Wed May 22 01:19:52 2013 From: cchristner91 at gmail.com (Corey Christner) Date: Tue, 21 May 2013 18:19:52 -0700 Subject: E prime casino game code Message-ID: Hey everyone, I'm a Junior psychology student, and am conducting an experiment dealing with Gambler's Fallacy this fall. I am trying to find code for a roulette wheel game, or at least get tips on how to write one. I'm brand new to the E prime program so any help would be appreciated. If you would like any more information or have any questions to ask, feel free! -Corey -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/c6cecb9a-c34f-4afd-a9b3-72178bd99bb7%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pipgriffiths86 at gmail.com Wed May 22 12:22:53 2013 From: pipgriffiths86 at gmail.com (Pip) Date: Wed, 22 May 2013 13:22:53 +0100 Subject: E prime casino game code In-Reply-To: Message-ID: What's your experimental procedure? Sent from my iPhone On 22 May 2013, at 02:19, Corey Christner wrote: > Hey everyone, > > I'm a Junior psychology student, and am conducting an experiment dealing with Gambler's Fallacy this fall. I am trying to find code for a roulette wheel game, or at least get tips on how to write one. I'm brand new to the E prime program so any help would be appreciated. If you would like any more information or have any questions to ask, feel free! > > -Corey > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/c6cecb9a-c34f-4afd-a9b3-72178bd99bb7%40googlegroups.com?hl=en-US. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/6473386F-B091-4054-8244-D52B4CAF48FE%40gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From baltimore.ben at gmail.com Wed May 22 13:36:10 2013 From: baltimore.ben at gmail.com (ben robinson) Date: Wed, 22 May 2013 09:36:10 -0400 Subject: E prime casino game code In-Reply-To: Message-ID: It won't be the easiest thing to do if you've never programmed before, but not impossible. Take it one step at a time. Here's how I made a roulette wheel recently: 1) Learn to drawn a circle onscreen in an inline. This will eventually be your roulette wheel. 2) Learn to drawn radii at regular intervals around the circle, for as many slices as you'll want on your wheel. Use code to iterate the drawing of the first radius as many times as you need around the circle (For radiusNumber = 1 to NUMBER_OF_TOTAL_RADII; Next radiusNumber). 3) Try to assign a different color to each slice for as many outcomes as you anticipate needing on your wheel - if it's just win vs not win, you'll only need two colors. 4) Now whatever code you've used to accomplish the above, try to make that iterative (using a similar For Loop) so that the same wheel you've just drawn can be drawn once for each step of a full rotation, because eventually the wheel will need to spin and you want the colors of your slices to travel with their respective slices around a full rotation. 5) Save each step of this iterative drawing process to a different offScreenCanvas so that you can later copy and paste the various offScreenCanvases onto your main cavas. 6) Draw a little arrow or something to indicate visually the location where a winning slice will be determined. You know, the ticker thing that goes tic-tic-tic-tic-tic like in The Price Is Right. 7) Write code to draw the wheel spinning for a period of time. Maybe find a .wav file online for the sound of a roulette wheel spinning, and draw the wheel spinning for as long as it takes the .wav file to play to completion. Make sure you add enough randomness to this spinning process or it will be easy for the participant to anticipate given the wheel's starting position, which slice will wind up a winner. 8) Write code to check the color of the pixel shown near the point of your arrow, and perform different actions given this color. This way, when the wheel finishes spinning, you check to see the color of the slice immediately in front of the arrow. This is the winning slice, and the color of the pixel should tell you what outcome to present the participant. Hope that helps. On Tue, May 21, 2013 at 9:19 PM, Corey Christner wrote: > Hey everyone, > > I'm a Junior psychology student, and am conducting an experiment dealing > with Gambler's Fallacy this fall. I am trying to find code for a roulette > wheel game, or at least get tips on how to write one. I'm brand new to the > E prime program so any help would be appreciated. If you would like any > more information or have any questions to ask, feel free! > > -Corey > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/c6cecb9a-c34f-4afd-a9b3-72178bd99bb7%40googlegroups.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CABkDJUd9cipoO-gUrw8ssoFMTYm3rcPOzmN4-gDKqkHRydp3Rg%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cchristner91 at gmail.com Thu May 23 03:31:18 2013 From: cchristner91 at gmail.com (Corey Christner) Date: Wed, 22 May 2013 20:31:18 -0700 Subject: E prime casino game code In-Reply-To: <6473386F-B091-4054-8244-D52B4CAF48FE@gmail.com> Message-ID: I am having subjects play and bet certain amounts of money based on their perception of riskiness. On Wednesday, May 22, 2013 8:22:53 AM UTC-4, pip griffiths wrote: > > What's your experimental procedure? > > Sent from my iPhone > > On 22 May 2013, at 02:19, Corey Christner > > wrote: > > Hey everyone, > > I'm a Junior psychology student, and am conducting an experiment dealing > with Gambler's Fallacy this fall. I am trying to find code for a roulette > wheel game, or at least get tips on how to write one. I'm brand new to the > E prime program so any help would be appreciated. If you would like any > more information or have any questions to ask, feel free! > > -Corey > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+u... at googlegroups.com . > To post to this group, send email to e-p... at googlegroups.com > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/c6cecb9a-c34f-4afd-a9b3-72178bd99bb7%40googlegroups.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/e752fbfa-000d-4879-bf85-bdc789db2289%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mspape at cognitology.eu Thu May 23 07:59:44 2013 From: mspape at cognitology.eu (Cognitology) Date: Thu, 23 May 2013 10:59:44 +0300 Subject: E prime casino game code In-Reply-To: Message-ID: Hi, Personally, I would just show a little movie (E-Prime 2, otherwise movie converted to BMP) of a roulette wheel (easy to make in flash, for instance), show that spinning for a bit and write a big number in a central square that is either black or red. More to the point, it seems to me like Corey has never used E-Prime before and should first work through the tutorial or http://step.psy.cmu.edu/materials/EPrimer.pdf because otherwise it’s a bit like telling an illiterate how to write an essay in ms word. (I did like your all-out canvas approach to the problem, btw) Best, Michiel From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of ben robinson Sent: 22. May 2013 16:36 To: eprime Subject: Re: E prime casino game code It won't be the easiest thing to do if you've never programmed before, but not impossible. Take it one step at a time. Here's how I made a roulette wheel recently: 1) Learn to drawn a circle onscreen in an inline. This will eventually be your roulette wheel. 2) Learn to drawn radii at regular intervals around the circle, for as many slices as you'll want on your wheel. Use code to iterate the drawing of the first radius as many times as you need around the circle (For radiusNumber = 1 to NUMBER_OF_TOTAL_RADII; Next radiusNumber). 3) Try to assign a different color to each slice for as many outcomes as you anticipate needing on your wheel - if it's just win vs not win, you'll only need two colors. 4) Now whatever code you've used to accomplish the above, try to make that iterative (using a similar For Loop) so that the same wheel you've just drawn can be drawn once for each step of a full rotation, because eventually the wheel will need to spin and you want the colors of your slices to travel with their respective slices around a full rotation. 5) Save each step of this iterative drawing process to a different offScreenCanvas so that you can later copy and paste the various offScreenCanvases onto your main cavas. 6) Draw a little arrow or something to indicate visually the location where a winning slice will be determined. You know, the ticker thing that goes tic-tic-tic-tic-tic like in The Price Is Right. 7) Write code to draw the wheel spinning for a period of time. Maybe find a .wav file online for the sound of a roulette wheel spinning, and draw the wheel spinning for as long as it takes the .wav file to play to completion. Make sure you add enough randomness to this spinning process or it will be easy for the participant to anticipate given the wheel's starting position, which slice will wind up a winner. 8) Write code to check the color of the pixel shown near the point of your arrow, and perform different actions given this color. This way, when the wheel finishes spinning, you check to see the color of the slice immediately in front of the arrow. This is the winning slice, and the color of the pixel should tell you what outcome to present the participant. Hope that helps. On Tue, May 21, 2013 at 9:19 PM, Corey Christner wrote: Hey everyone, I'm a Junior psychology student, and am conducting an experiment dealing with Gambler's Fallacy this fall. I am trying to find code for a roulette wheel game, or at least get tips on how to write one. I'm brand new to the E prime program so any help would be appreciated. If you would like any more information or have any questions to ask, feel free! -Corey -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com . To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/c6cecb9a-c34f-4afd-a9b3-72178bd99b b7%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CABkDJUd9cipoO-gUrw8ssoFMTYm3rcPOz mN4-gDKqkHRydp3Rg%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/001e01ce578b%247cfa1d40%2476ee57c0%24%40eu?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From arjavanbakht at gmail.com Thu May 23 13:53:18 2013 From: arjavanbakht at gmail.com (arash javanbakht) Date: Thu, 23 May 2013 06:53:18 -0700 Subject: E-Prime and Acknowledge Message-ID: Hey experts, I am a first timer, and have designed a fear conditioning (with loud noise) experiment which works well. To sync it with acknowledge (for skin conductance recording), I just copied the relevant parts of a friend's script (hers works well). Bad news: mine does not work. Error message: "Variable not defined"; Line 240 column 2: ON_OFF = c.GetAttrib("Trigger") Can anyone help me? The script is attached. Thank you, Arash -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/707ea2e5-268b-4c4e-9011-00ab3a540c79%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: AC1.es2 Type: application/octet-stream Size: 112540 bytes Desc: not available URL: From kmaayane at gmail.com Thu May 23 14:00:01 2013 From: kmaayane at gmail.com (Maayan Kedar) Date: Thu, 23 May 2013 17:00:01 +0300 Subject: E-Prime and Acknowledge In-Reply-To: <707ea2e5-268b-4c4e-9011-00ab3a540c79@googlegroups.com> Message-ID: Do you have an attribute named "trigger"? Or maybe you didnt created one using C. Setattrib, trigger ? בתאריך 2013 5 23 16:53, מאת "arash javanbakht" : > Hey experts, > > I am a first timer, and have designed a fear conditioning (with loud > noise) experiment which works well. To sync it with acknowledge (for skin > conductance recording), I just copied the relevant parts of a friend's > script (hers works well). Bad news: mine does not work. Error message: > "Variable not defined"; Line 240 column 2: ON_OFF = c.GetAttrib("Trigger") > > Can anyone help me? The script is attached. > > Thank you, > Arash > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/707ea2e5-268b-4c4e-9011-00ab3a540c79%40googlegroups.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CA%2B5t7Q5BMi%2BFmNcH4FptWu2Msr7%2BMCv7BYKTkcCLYsEU1J5ZcQ%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mspape at cognitology.eu Thu May 23 15:00:23 2013 From: mspape at cognitology.eu (Cognitology) Date: Thu, 23 May 2013 18:00:23 +0300 Subject: E-Prime and Acknowledge In-Reply-To: Message-ID: Hi, ON_OFF = … Suggests you have a variable defined called ON_OFF. I suspect you need to check the user script of your friend’s script, in which it says Dim ON_OFF as … Best, Michiel From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Maayan Kedar Sent: 23. May 2013 17:00 To: e-prime at googlegroups.com Subject: Re: E-Prime and Acknowledge Do you have an attribute named "trigger"? Or maybe you didnt created one using C. Setattrib, trigger ? בתאריך 2013 5 23 16:53, מאת "arash javanbakht" : Hey experts, I am a first timer, and have designed a fear conditioning (with loud noise) experiment which works well. To sync it with acknowledge (for skin conductance recording), I just copied the relevant parts of a friend's script (hers works well). Bad news: mine does not work. Error message: "Variable not defined"; Line 240 column 2: ON_OFF = c.GetAttrib("Trigger") Can anyone help me? The script is attached. Thank you, Arash -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com . To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/707ea2e5-268b-4c4e-9011-00ab3a540c79%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CA%2B5t7Q5BMi%2BFmNcH4FptWu2Msr7%2BMCv7BYKTkcCLYsEU1J5ZcQ%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/004901ce57c6%2440f62f60%24c2e28e20%24%40eu?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From arjavanbakht at gmail.com Thu May 23 16:59:16 2013 From: arjavanbakht at gmail.com (arash javanbakht) Date: Thu, 23 May 2013 12:59:16 -0400 Subject: E-Prime and Acknowledge In-Reply-To: <004901ce57c6$40f62f60$c2e28e20$@eu> Message-ID: Great, it worked!! Thank you On Thu, May 23, 2013 at 11:00 AM, Cognitology wrote: > Hi,**** > > ON_OFF = … **** > > Suggests you have a variable defined called ON_OFF. I suspect you need to > check the user script of your friend’s script, in which it says **** > > Dim ON_OFF as …**** > > Best,**** > > Michiel**** > > ** ** > > *From:* e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] *On > Behalf Of *Maayan Kedar > *Sent:* 23. May 2013 17:00 > *To:* e-prime at googlegroups.com > *Subject:* Re: E-Prime and Acknowledge**** > > ** ** > > Do you have an attribute named "trigger"? > Or maybe you didnt created one using > C. Setattrib, trigger > ?**** > > בתאריך 2013 5 23 16:53, מאת "arash javanbakht" :** > ** > > Hey experts,**** > > **** > > I am a first timer, and have designed a fear conditioning (with loud > noise) experiment which works well. To sync it with acknowledge (for skin > conductance recording), I just copied the relevant parts of a friend's > script (hers works well). Bad news: mine does not work. Error message: > "Variable not defined"; Line 240 column 2: ON_OFF = c.GetAttrib("Trigger") > **** > > **** > > Can anyone help me? The script is attached.**** > > **** > > Thank you,**** > > Arash **** > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/707ea2e5-268b-4c4e-9011-00ab3a540c79%40googlegroups.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > **** > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/CA%2B5t7Q5BMi%2BFmNcH4FptWu2Msr7%2BMCv7BYKTkcCLYsEU1J5ZcQ%40mail.gmail.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > **** > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/004901ce57c6%2440f62f60%24c2e28e20%24%40eu?hl=en-US > . > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Arash Javanbakht MD, Department of Psychiatry University of Michigan, MI, USA -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAAkgwzywUiCEozwogUCei2BeY1xmv0MHiQV2C%3DOewY3LTT%3DweA%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From arjavanbakht at gmail.com Thu May 23 17:00:11 2013 From: arjavanbakht at gmail.com (arash javanbakht) Date: Thu, 23 May 2013 10:00:11 -0700 Subject: E-Prime and Acknowledge In-Reply-To: <004901ce57c6$40f62f60$c2e28e20$@eu> Message-ID: Great, it worked. Thank you very much :) On Thursday, May 23, 2013 11:00:23 AM UTC-4, Michiel Sovijärvi-Spapé wrote: > > Hi, > > ON_OFF = … > > Suggests you have a variable defined called ON_OFF. I suspect you need to > check the user script of your friend’s script, in which it says > > Dim ON_OFF as … > > Best, > > Michiel > > > > *From:* e-p... at googlegroups.com [mailto: > e-p... at googlegroups.com ] *On Behalf Of *Maayan Kedar > *Sent:* 23. May 2013 17:00 > *To:* e-p... at googlegroups.com > *Subject:* Re: E-Prime and Acknowledge > > > > Do you have an attribute named "trigger"? > Or maybe you didnt created one using > C. Setattrib, trigger > ? > > בתאריך 2013 5 23 16:53, מאת "arash javanbakht" > >: > > Hey experts, > > > > I am a first timer, and have designed a fear conditioning (with loud > noise) experiment which works well. To sync it with acknowledge (for skin > conductance recording), I just copied the relevant parts of a friend's > script (hers works well). Bad news: mine does not work. Error message: > "Variable not defined"; Line 240 column 2: ON_OFF = c.GetAttrib("Trigger") > > > > Can anyone help me? The script is attached. > > > > Thank you, > > Arash > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+u... at googlegroups.com . > To post to this group, send email to e-p... at googlegroups.com > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/707ea2e5-268b-4c4e-9011-00ab3a540c79%40googlegroups.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+u... at googlegroups.com . > To post to this group, send email to e-p... at googlegroups.com > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/CA%2B5t7Q5BMi%2BFmNcH4FptWu2Msr7%2BMCv7BYKTkcCLYsEU1J5ZcQ%40mail.gmail.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/92666ad1-6bf9-46ff-b73d-0406befd48df%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobias.fw at gmail.com Sat May 25 17:53:47 2013 From: tobias.fw at gmail.com (Tobias) Date: Sat, 25 May 2013 10:53:47 -0700 Subject: FW: Polhemus In-Reply-To: Message-ID: Thanks for all the help. I have successfully implemented Polhemus in E-Prime. There is only one problem left: When a lot of data is recorded, which is not unusual for longer movements of particpants, the string becomes too long for E-Prime. I use this function: x = MatLab.Execute("dataCapture;") For longer recordings which makes data rather large the following error occurs: "Error number 14: Out of string space" The thing is, I don't really need any of the recorded data for E-Prime. But I can't find a way to not have E-Prime import the data into the variable x. Is there a way of executing MatLab function without forwarding data to Matlab? Best, Tobias Am Montag, 13. Mai 2013 18:23:54 UTC+2 schrieb Paul Groot: > > Hi Tobias, > > More detailed information about matlab's COM interface can be found here: > http://www.mathworks.nl/help/matlab/call-matlab-com-automation-server.html > > There are a few functions available to pass variables, character array's, > matrices and workspaces between the two applications, without the need to > convert strings. The execute command should be used to execute scripts; not > for passing variables (although you can do this off course). Large objects > (like bitmap images) could also be passed by using external files (i.e. > only passing the name of the created file). > > Best > Paul > > > > On 13 May 2013 12:19, Tobias > wrote: > >> Dear Paul, >> >> thanks a lot for this code. It works very well. There are some issued I >> have, though. >> >> From your script I understand that there are at least two ways of getting >> data from Matlab to E-Prime: Execute and getfullmatrix. Are there other >> ways? >> Also, it seems that there is no way of transmitting a variable from >> E-Prime to Matlab, only string values such as "b = a + a". >> Of course I could always use sth like >> >> Result = MatLab.Execute(CStr(eprimeVar)) >> >> If I wanted to get the variable eprimeVar from E-Prime to Matlab. But >> maybe there is an easier way? >> >> Best, >> Tobias >> >> >> >> Am Dienstag, 7. Mai 2013 17:01:32 UTC+2 schrieb Paul Groot: >>> >>> I don't think eprime requires a special plugin like presentation, >>> because matlab can also be started as a so called COM server: >>> >>> Dim MatLab As Object >>> Dim Result As String >>> Dim MReal(1, 3) As Double >>> Dim MImag(1, 3) As Double >>> >>> Set MatLab = CreateObject("Matlab.**Application") >>> >>> 'Executing other MATLAB commands >>> Result = MatLab.Execute("surf(peaks)") >>> Debug.Print Result >>> >>> Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8]") >>> Debug.Print Result >>> >>> Result = MatLab.Execute("b = a + a ") >>> Debug.Print Result >>> >>> 'Bring matrix b into VB program >>> MatLab.GetFullMatrix "b", "base", MReal, MImag >>> >>> Debug.Print MReal(1,0) >>> Debug.Print MReal(1,1) >>> Debug.Print MReal(1,2) >>> Debug.Print MReal(1,3) >>> >>> >>> The above will print the following to the Debug window: >>> >>> a = >>> >>> 1 2 3 4 >>> 5 6 7 8 >>> >>> >>> >>> b = >>> >>> 2 4 6 8 >>> 10 12 14 16 >>> >>> >>> 10 >>> 12 >>> 14 >>> 16 >>> >>> The matlab figure window won't be visible though... >>> >>> Best, >>> Paul >>> >>> >>> >>> On 7 May 2013 16:26, David McFarlane wrote: >>> >>>> Can you start your MATLAB script from a command line? If so, then you >>>> might try using the E-Basic "Shell()" function, see that topic in the >>>> E-Basic Help facility. For a user example of this, see >>>> http://support.pstnet.com/**foru**m/Topic1338-8-2.aspx. This still leaves a lot to be desired, and beyond that I have no idea. >>>> >>>> ----- >>>> David McFarlane >>>> E-Prime training online: http://psychology.msu.edu/**Wor** >>>> kshops_Courses/eprime.aspx >>>> Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMas**ter >>>> ) >>>> >>>> /---- >>>> Stock reminder: 1) I do not work for PST. 2) PST's trained staff take >>>> any and all questions at http://support.pstnet.com/e%**2D** >>>> prime/support/login.asp, and they strive to respond to all requests in 24-48 hours, so make full >>>> use of it. 3) In addition, PST offers several instructional videos on >>>> their YouTube channel (http://www.youtube.com/user/**P**STNET). 4) If you do get an answer from PST staff, please extend the courtesy >>>> of posting their reply back here for the sake of others. >>>> \---- >>>> >>>> >>>> >>>> At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: >>>> >>>>> Hi, >>>>> Never heard of a way to interface matlab from E-Prime, I'd be >>>>> interested if anyone would have a way. Of course, you could compile from >>>>> within matlab and try to go from there, but I suspect the amount of effort >>>>> would really not be worth it. You could, of course, just forego e-prime and >>>>> try Psychtoolbox. >>>>> Best, >>>>> Michiel >>>>> >>>>> From: e-p... at googlegroups.com[mailto: >>>>> e-p... at googlegroups.**c**om] On Behalf Of Tobias >>>>> >>>>> Sent: 7. May 2013 13:31 >>>>> To: e-p... at googlegroups.com >>>>> >>>>> Subject: Re: Polhemus >>>>> >>>>> To be more precisely: What I need to do is to start a matlab script >>>>> from E-Prime. >>>>> "Presentation" has some plugin to connect with Matlab, but E-Prime >>>>> seems not to have that. But there may be another way... >>>>> >>>>> Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: >>>>> Dear all, >>>>> >>>>> Does anyone have experience with running Polhemus Liberty (the motion >>>>> tracking system) with E-Prime? >>>>> >>>>> Best, >>>>> Tobias >>>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "E-Prime" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to e-prime+u...@**googlegrou**ps.com. >>>> To post to this group, send email to e-p... at googlegroups.com. >>>> For more options, visit https://groups.google.com/**grou**ps/opt_out >>>> . >>>> >>>> >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "E-Prime" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to e-prime+u... at googlegroups.com . >> To post to this group, send email to e-p... at googlegroups.com >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msg/e-prime/-/kIUzT6nN__AJ. >> >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/93e38bb4-7a0b-465d-94f5-42618affecd0%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pfc.groot at gmail.com Sat May 25 20:35:31 2013 From: pfc.groot at gmail.com (Paul Groot) Date: Sat, 25 May 2013 22:35:31 +0200 Subject: FW: Polhemus In-Reply-To: <93e38bb4-7a0b-465d-94f5-42618affecd0@googlegroups.com> Message-ID: I don't know anything about polhemus or the datacapture function, but it sounds like this function generates a lot of output in the matlab command window. You can capature this into a dummy variable by using evalc: x = MatLab.Execute("dummy=evalc('dataCapture;');") Mind the single and double quotes) best Paul On 25 May 2013 19:53, Tobias wrote: > Thanks for all the help. > > I have successfully implemented Polhemus in E-Prime. > > There is only one problem left: When a lot of data is recorded, which is > not unusual for longer movements of particpants, the string becomes too > long for E-Prime. > > I use this function: > > x = MatLab.Execute("dataCapture;") > > For longer recordings which makes data rather large the following error > occurs: > "Error number 14: Out of string space" > > The thing is, I don't really need any of the recorded data for E-Prime. > But I can't find a way to not have E-Prime import the data into the > variable x. > Is there a way of executing MatLab function without forwarding data to > Matlab? > > Best, > Tobias > > Am Montag, 13. Mai 2013 18:23:54 UTC+2 schrieb Paul Groot: >> >> Hi Tobias, >> >> More detailed information about matlab's COM interface can be found here: >> http://www.mathworks.nl/help/**matlab/call-matlab-com-** >> automation-server.html >> >> There are a few functions available to pass variables, character array's, >> matrices and workspaces between the two applications, without the need to >> convert strings. The execute command should be used to execute scripts; not >> for passing variables (although you can do this off course). Large objects >> (like bitmap images) could also be passed by using external files (i.e. >> only passing the name of the created file). >> >> Best >> Paul >> >> >> >> On 13 May 2013 12:19, Tobias wrote: >> >>> Dear Paul, >>> >>> thanks a lot for this code. It works very well. There are some issued I >>> have, though. >>> >>> From your script I understand that there are at least two ways of >>> getting data from Matlab to E-Prime: Execute and getfullmatrix. Are there >>> other ways? >>> Also, it seems that there is no way of transmitting a variable from >>> E-Prime to Matlab, only string values such as "b = a + a". >>> Of course I could always use sth like >>> >>> Result = MatLab.Execute(CStr(eprimeVar)**) >>> >>> If I wanted to get the variable eprimeVar from E-Prime to Matlab. But >>> maybe there is an easier way? >>> >>> Best, >>> Tobias >>> >>> >>> >>> Am Dienstag, 7. Mai 2013 17:01:32 UTC+2 schrieb Paul Groot: >>>> >>>> I don't think eprime requires a special plugin like presentation, >>>> because matlab can also be started as a so called COM server: >>>> >>>> Dim MatLab As Object >>>> Dim Result As String >>>> Dim MReal(1, 3) As Double >>>> Dim MImag(1, 3) As Double >>>> >>>> Set MatLab = CreateObject("Matlab.**Applicati**on") >>>> >>>> 'Executing other MATLAB commands >>>> Result = MatLab.Execute("surf(peaks)") >>>> Debug.Print Result >>>> >>>> Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8]") >>>> Debug.Print Result >>>> >>>> Result = MatLab.Execute("b = a + a ") >>>> Debug.Print Result >>>> >>>> 'Bring matrix b into VB program >>>> MatLab.GetFullMatrix "b", "base", MReal, MImag >>>> >>>> Debug.Print MReal(1,0) >>>> Debug.Print MReal(1,1) >>>> Debug.Print MReal(1,2) >>>> Debug.Print MReal(1,3) >>>> >>>> >>>> The above will print the following to the Debug window: >>>> >>>> a = >>>> >>>> 1 2 3 4 >>>> 5 6 7 8 >>>> >>>> >>>> >>>> b = >>>> >>>> 2 4 6 8 >>>> 10 12 14 16 >>>> >>>> >>>> 10 >>>> 12 >>>> 14 >>>> 16 >>>> >>>> The matlab figure window won't be visible though... >>>> >>>> Best, >>>> Paul >>>> >>>> >>>> >>>> On 7 May 2013 16:26, David McFarlane wrote: >>>> >>>>> Can you start your MATLAB script from a command line? If so, then you >>>>> might try using the E-Basic "Shell()" function, see that topic in the >>>>> E-Basic Help facility. For a user example of this, see >>>>> http://support.pstnet.com/**foru****m/Topic1338-8-2.aspx. This still leaves a lot to be desired, and beyond that I have no idea. >>>>> >>>>> ----- >>>>> David McFarlane >>>>> E-Prime training online: http://psychology.msu.edu/**Wor**** >>>>> kshops_Courses/eprime.aspx >>>>> Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMas****ter >>>>> ) >>>>> >>>>> /---- >>>>> Stock reminder: 1) I do not work for PST. 2) PST's trained staff >>>>> take any and all questions at http://support.pstnet.com/e%**2D**** >>>>> prime/support/login.asp, and they strive to respond to all requests in 24-48 hours, so make full >>>>> use of it. 3) In addition, PST offers several instructional videos on >>>>> their YouTube channel (http://www.youtube.com/user/**P****STNET). 4) If you do get an answer from PST staff, please extend the courtesy >>>>> of posting their reply back here for the sake of others. >>>>> \---- >>>>> >>>>> >>>>> >>>>> At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: >>>>> >>>>>> Hi, >>>>>> Never heard of a way to interface matlab from E-Prime, I'd be >>>>>> interested if anyone would have a way. Of course, you could compile from >>>>>> within matlab and try to go from there, but I suspect the amount of effort >>>>>> would really not be worth it. You could, of course, just forego e-prime and >>>>>> try Psychtoolbox. >>>>>> Best, >>>>>> Michiel >>>>>> >>>>>> From: e-p... at googlegroups.com[mailto: >>>>>> e-p... at googlegroups.**c**o**m] On Behalf Of Tobias >>>>>> >>>>>> Sent: 7. May 2013 13:31 >>>>>> To: e-p... at googlegroups.com >>>>>> >>>>>> Subject: Re: Polhemus >>>>>> >>>>>> To be more precisely: What I need to do is to start a matlab script >>>>>> from E-Prime. >>>>>> "Presentation" has some plugin to connect with Matlab, but E-Prime >>>>>> seems not to have that. But there may be another way... >>>>>> >>>>>> Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: >>>>>> Dear all, >>>>>> >>>>>> Does anyone have experience with running Polhemus Liberty (the motion >>>>>> tracking system) with E-Prime? >>>>>> >>>>>> Best, >>>>>> Tobias >>>>>> >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "E-Prime" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to e-prime+u...@**googlegrou**ps.com. >>>>> To post to this group, send email to e-p... at googlegroups.com. >>>>> For more options, visit https://groups.google.com/**grou****ps/opt_out >>>>> . >>>>> >>>>> >>>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "E-Prime" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to e-prime+u...@**googlegroups.com. >>> To post to this group, send email to e-p... at googlegroups.com. >>> To view this discussion on the web visit https://groups.google.com/d/** >>> msg/e-prime/-/kIUzT6nN__AJ >>> . >>> >>> For more options, visit https://groups.google.com/**groups/opt_out >>> . >>> >>> >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/93e38bb4-7a0b-465d-94f5-42618affecd0%40googlegroups.com?hl=en-US > . > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAKAdR-vEm0%2Bc%2B%2B8BJ8VWXTPC9qeDYtT5Jov90e369L%2BMTqzxEQ%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobias.fw at gmail.com Mon May 27 15:32:26 2013 From: tobias.fw at gmail.com (Tobias) Date: Mon, 27 May 2013 08:32:26 -0700 Subject: FW: Polhemus In-Reply-To: Message-ID: That worked! Great, thanks! Am Samstag, 25. Mai 2013 22:35:31 UTC+2 schrieb Paul Groot: > > I don't know anything about polhemus or the datacapture function, but it > sounds like this function generates a lot of output in the matlab command > window. You can capature this into a dummy variable by using evalc: > > x = MatLab.Execute("dummy=evalc('dataCapture;');") > > > Mind the single and double quotes) > > best > Paul > > > On 25 May 2013 19:53, Tobias > wrote: > >> Thanks for all the help. >> >> I have successfully implemented Polhemus in E-Prime. >> >> There is only one problem left: When a lot of data is recorded, which is >> not unusual for longer movements of particpants, the string becomes too >> long for E-Prime. >> >> I use this function: >> >> x = MatLab.Execute("dataCapture;") >> >> For longer recordings which makes data rather large the following error >> occurs: >> "Error number 14: Out of string space" >> >> The thing is, I don't really need any of the recorded data for E-Prime. >> But I can't find a way to not have E-Prime import the data into the >> variable x. >> Is there a way of executing MatLab function without forwarding data to >> Matlab? >> >> Best, >> Tobias >> >> Am Montag, 13. Mai 2013 18:23:54 UTC+2 schrieb Paul Groot: >>> >>> Hi Tobias, >>> >>> More detailed information about matlab's COM interface can be found here: >>> http://www.mathworks.nl/help/**matlab/call-matlab-com-** >>> automation-server.html >>> >>> There are a few functions available to pass variables, character >>> array's, matrices and workspaces between the two applications, without the >>> need to convert strings. The execute command should be used to execute >>> scripts; not for passing variables (although you can do this off course). >>> Large objects (like bitmap images) could also be passed by using external >>> files (i.e. only passing the name of the created file). >>> >>> Best >>> Paul >>> >>> >>> >>> On 13 May 2013 12:19, Tobias wrote: >>> >>>> Dear Paul, >>>> >>>> thanks a lot for this code. It works very well. There are some issued I >>>> have, though. >>>> >>>> From your script I understand that there are at least two ways of >>>> getting data from Matlab to E-Prime: Execute and getfullmatrix. Are there >>>> other ways? >>>> Also, it seems that there is no way of transmitting a variable from >>>> E-Prime to Matlab, only string values such as "b = a + a". >>>> Of course I could always use sth like >>>> >>>> Result = MatLab.Execute(CStr(eprimeVar)**) >>>> >>>> If I wanted to get the variable eprimeVar from E-Prime to Matlab. But >>>> maybe there is an easier way? >>>> >>>> Best, >>>> Tobias >>>> >>>> >>>> >>>> Am Dienstag, 7. Mai 2013 17:01:32 UTC+2 schrieb Paul Groot: >>>>> >>>>> I don't think eprime requires a special plugin like presentation, >>>>> because matlab can also be started as a so called COM server: >>>>> >>>>> Dim MatLab As Object >>>>> Dim Result As String >>>>> Dim MReal(1, 3) As Double >>>>> Dim MImag(1, 3) As Double >>>>> >>>>> Set MatLab = CreateObject("Matlab.**Applicati**on") >>>>> >>>>> 'Executing other MATLAB commands >>>>> Result = MatLab.Execute("surf(peaks)") >>>>> Debug.Print Result >>>>> >>>>> Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8]") >>>>> Debug.Print Result >>>>> >>>>> Result = MatLab.Execute("b = a + a ") >>>>> Debug.Print Result >>>>> >>>>> 'Bring matrix b into VB program >>>>> MatLab.GetFullMatrix "b", "base", MReal, MImag >>>>> >>>>> Debug.Print MReal(1,0) >>>>> Debug.Print MReal(1,1) >>>>> Debug.Print MReal(1,2) >>>>> Debug.Print MReal(1,3) >>>>> >>>>> >>>>> The above will print the following to the Debug window: >>>>> >>>>> a = >>>>> >>>>> 1 2 3 4 >>>>> 5 6 7 8 >>>>> >>>>> >>>>> >>>>> b = >>>>> >>>>> 2 4 6 8 >>>>> 10 12 14 16 >>>>> >>>>> >>>>> 10 >>>>> 12 >>>>> 14 >>>>> 16 >>>>> >>>>> The matlab figure window won't be visible though... >>>>> >>>>> Best, >>>>> Paul >>>>> >>>>> >>>>> >>>>> On 7 May 2013 16:26, David McFarlane wrote: >>>>> >>>>>> Can you start your MATLAB script from a command line? If so, then >>>>>> you might try using the E-Basic "Shell()" function, see that topic in the >>>>>> E-Basic Help facility. For a user example of this, see >>>>>> http://support.pstnet.com/**foru****m/Topic1338-8-2.aspx. This still leaves a lot to be desired, and beyond that I have no idea. >>>>>> >>>>>> ----- >>>>>> David McFarlane >>>>>> E-Prime training online: http://psychology.msu.edu/**Wor**** >>>>>> kshops_Courses/eprime.aspx >>>>>> Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMas****ter >>>>>> ) >>>>>> >>>>>> /---- >>>>>> Stock reminder: 1) I do not work for PST. 2) PST's trained staff >>>>>> take any and all questions at http://support.pstnet.com/e%**2D**** >>>>>> prime/support/login.asp, and they strive to respond to all requests in 24-48 hours, so make full >>>>>> use of it. 3) In addition, PST offers several instructional videos on >>>>>> their YouTube channel (http://www.youtube.com/user/**P****STNET). 4) If you do get an answer from PST staff, please extend the courtesy >>>>>> of posting their reply back here for the sake of others. >>>>>> \---- >>>>>> >>>>>> >>>>>> >>>>>> At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: >>>>>> >>>>>>> Hi, >>>>>>> Never heard of a way to interface matlab from E-Prime, I'd be >>>>>>> interested if anyone would have a way. Of course, you could compile from >>>>>>> within matlab and try to go from there, but I suspect the amount of effort >>>>>>> would really not be worth it. You could, of course, just forego e-prime and >>>>>>> try Psychtoolbox. >>>>>>> Best, >>>>>>> Michiel >>>>>>> >>>>>>> From: e-p... at googlegroups.com[mailto: >>>>>>> e-p... at googlegroups.**c**o**m] On Behalf Of Tobias >>>>>>> >>>>>>> Sent: 7. May 2013 13:31 >>>>>>> To: e-p... at googlegroups.com >>>>>>> >>>>>>> Subject: Re: Polhemus >>>>>>> >>>>>>> To be more precisely: What I need to do is to start a matlab script >>>>>>> from E-Prime. >>>>>>> "Presentation" has some plugin to connect with Matlab, but E-Prime >>>>>>> seems not to have that. But there may be another way... >>>>>>> >>>>>>> Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: >>>>>>> Dear all, >>>>>>> >>>>>>> Does anyone have experience with running Polhemus Liberty (the >>>>>>> motion tracking system) with E-Prime? >>>>>>> >>>>>>> Best, >>>>>>> Tobias >>>>>>> >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "E-Prime" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to e-prime+u...@**googlegrou**ps.com. >>>>>> To post to this group, send email to e-p... at googlegroups.com. >>>>>> For more options, visit https://groups.google.com/**grou**** >>>>>> ps/opt_out . >>>>>> >>>>>> >>>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "E-Prime" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to e-prime+u...@**googlegroups.com. >>>> To post to this group, send email to e-p... at googlegroups.com. >>>> To view this discussion on the web visit https://groups.google.com/d/** >>>> msg/e-prime/-/kIUzT6nN__AJ >>>> . >>>> >>>> For more options, visit https://groups.google.com/**groups/opt_out >>>> . >>>> >>>> >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "E-Prime" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to e-prime+u... at googlegroups.com . >> To post to this group, send email to e-p... at googlegroups.com >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/e-prime/93e38bb4-7a0b-465d-94f5-42618affecd0%40googlegroups.com?hl=en-US >> . >> >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/8fe95499-7a10-46ba-a03f-ba5388244703%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronelziv at gmail.com Wed May 29 04:27:08 2013 From: ronelziv at gmail.com (Ziv Ronel) Date: Tue, 28 May 2013 21:27:08 -0700 Subject: how to measure the duration of a key press\ the time of it's release Message-ID: hello E-prime hive brain, I know it's probably dead simple but iv'e been at it for a week now. i'm doing a study in which random pauses are introduced, in a frustrating matter, and the participants should press keys randomly in an attempt to make the program work. i need to measure how many frustrated keypresses there were, at what rate, and for how long each key was down (to measure these long angered key presses). I managed to create the first two, but haven't been able to measure duration. the only thing that came even close was this piece of code that I wrote: Dim theResponseObject As RteRunnableInputObject Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("Wait1")) Debug.Assert Not theResponseObject Is Nothing Dim KeyReleaseTime As Long If ebStatePress = 0 Then KeyReleaseTime = Clock.ReadMillisec End If c.SetAttrib "KeyPress" & nIndex & "Release", KeyReleaseTime (there is also a loop in there designed to redo that for every key press made in "wait1", but i've left it out) HELP! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/35f3673a-e830-4b58-8d09-51c86d567f19%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From katrinheimann at gmail.com Wed May 29 05:52:25 2013 From: katrinheimann at gmail.com (KatrinH Heimann) Date: Wed, 29 May 2013 07:52:25 +0200 Subject: how to measure the duration of a key press\ the time of it's release In-Reply-To: <35f3673a-e830-4b58-8d09-51c86d567f19@googlegroups.com> Message-ID: Hey Ziv, actually I think you could solve this problem with less programming, telling eprime to also measure key releases, then having an a testslide for two responses (press and release) which registers key pressed and time of release, then you just put an inline saying that if the waiting time has not passed (so the moment of the new slide, randomly calculated beforehand) then go (jump) to end of trial, if it has passed go to the next slide (program responding) Best Katrin 2013/5/29 Ziv Ronel > hello E-prime hive brain, > > I know it's probably dead simple but iv'e been at it for a week now. > > i'm doing a study in which random pauses are introduced, in a frustrating > matter, and the participants should press keys randomly in an attempt to > make the program work. > > i need to measure how many frustrated keypresses there were, at what rate, > and for how long each key was down (to measure these long angered key > presses). > > I managed to create the first two, but haven't been able to measure > duration. > the only thing that came even close was this piece of code that I wrote: > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("Wait1")) > > Debug.Assert Not theResponseObject Is Nothing > > Dim KeyReleaseTime As Long > If ebStatePress = 0 Then > KeyReleaseTime = Clock.ReadMillisec > End If > > c.SetAttrib "KeyPress" & nIndex & "Release", KeyReleaseTime > > > (there is also a loop in there designed to redo that for every key press > made in "wait1", but i've left it out) > > > HELP! > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/35f3673a-e830-4b58-8d09-51c86d567f19%40googlegroups.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CACnHcBfAG4br5smMADNubS3M41J8Q8umcvqNh1UsAq7mDm-xtg%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronelziv at gmail.com Wed May 29 10:28:08 2013 From: ronelziv at gmail.com (Ziv Ronel) Date: Wed, 29 May 2013 03:28:08 -0700 Subject: how to measure the duration of a key press\ the time of it's release In-Reply-To: <35f3673a-e830-4b58-8d09-51c86d567f19@googlegroups.com> Message-ID: this sounds great, only.. how do I tell E-prime to collect releases? (haven't seen such a thing in the logging or the general options) On Wednesday, May 29, 2013 7:27:08 AM UTC+3, Ziv Ronel wrote: > > hello E-prime hive brain, > > I know it's probably dead simple but iv'e been at it for a week now. > > i'm doing a study in which random pauses are introduced, in a frustrating > matter, and the participants should press keys randomly in an attempt to > make the program work. > > i need to measure how many frustrated keypresses there were, at what rate, > and for how long each key was down (to measure these long angered key > presses). > > I managed to create the first two, but haven't been able to measure > duration. > the only thing that came even close was this piece of code that I wrote: > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("Wait1")) > > Debug.Assert Not theResponseObject Is Nothing > > Dim KeyReleaseTime As Long > If ebStatePress = 0 Then > KeyReleaseTime = Clock.ReadMillisec > End If > > c.SetAttrib "KeyPress" & nIndex & "Release", KeyReleaseTime > > > (there is also a loop in there designed to redo that for every key press > made in "wait1", but i've left it out) > > > HELP! > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/e95b66c6-e3c2-4b66-9001-cbaf5c5e2726%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Wed May 29 14:59:16 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Wed, 29 May 2013 10:59:16 -0400 Subject: how to measure the duration of a key press\ the time of it's release In-Reply-To: Message-ID: For information on using releases, start with the "{key} nomenclature" topic in the E-Basic Help facility. (Remember that in general the technical documentation for E-Prime, such as we get any, is in the E-Basic Help.) You might also look at the "Key Release" example that you may download from the PST website. Note, of course, that you may have to completely rethink your programmning approach in order to make the best use of the release facility. (BTW, in future replies could you please include all the replies from others in addition to your own posts? That would make it easier for others to follow the thread. Thanks.) ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 5/29/2013 06:28 AM Wednesday, Ziv Ronel wrote: >this sounds great, only.. how do I tell E-prime to collect releases? >(haven't seen such a thing in the logging or the general options) > >On Wednesday, May 29, 2013 7:27:08 AM UTC+3, Ziv Ronel wrote: >hello E-prime hive brain, > >I know it's probably dead simple but iv'e been at it for a week now. > >i'm doing a study in which random pauses are introduced, in a >frustrating matter, and the participants should press keys randomly >in an attempt to make the program work. > >i need to measure how many frustrated keypresses there were, at what >rate, and for how long each key was down (to measure these long >angered key presses). > >I managed to create the first two, but haven't been able to measure duration. >the only thing that came even close was this piece of code that I wrote: > > Dim theResponseObject As RteRunnableInputObject >Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("Wait1")) > > Debug.Assert Not theResponseObject Is Nothing > >Dim KeyReleaseTime As Long >If ebStatePress = 0 Then >KeyReleaseTime = Clock.ReadMillisec >End If > > c.SetAttrib "KeyPress" & nIndex & "Release", KeyReleaseTime > > >(there is also a loop in there designed to redo that for every key >press made in "wait1", but i've left it out) > > >HELP! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/51a617c9.6306320a.6afa.ffffaf4eSMTPIN_ADDED_MISSING%40gmr-mx.google.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. From tamar.kolodny at gmail.com Wed May 1 11:09:07 2013 From: tamar.kolodny at gmail.com (Tamar) Date: Wed, 1 May 2013 04:09:07 -0700 Subject: Canvas.Copy is taking too long to complete In-Reply-To: <023501ce427d$3aad8a80$b0089f80$@eu> Message-ID: Mystery solved - Michiel was right! In the current version of EP (2.0.10.242) canvas calls internally wait for the vertical blank. Too bad that PST didn't consider it worth a comment in the canvas documentation... Here is the answer I got from PST, followed by my own conclusions: ============================================================================================================================================================ In E-Prime 2.0.10.242, the default setting for flipping is enabled. You can disable this in the Experiment Object Property Pages > Devices tab. E-Prime 2.0 offers the ability to use Display flipping to perform any drawing operations. The use of flipping is recommended to reduce the possibility of display tearing. Use of flipping will require a PreRelease value approximately of one refresh duration for the object that precedes the drawing object to ensure proper scheduling. Without ample PreRelease, the object will schedule for the following refresh period. This would be reflected in the OnseTime and OnsetDelay properties. When flipping is enabled, all E-Basic Canvas calls targeting the on-screen canvas will internally wait for the vertical blank refresh period. The use of Display.WaitForVerticalBlank will thus not be necessary and if used would cause the Canvas operation to draw a refresh later. Whether using flipping or not, it is recommend when performing any drawing commands to do so on an offscreen canvas and then use one Canvas.Copy operation to update the screen. ================================================================================================================================================================= Upon receiving this answer, I first tried to cancel my dispaly.WaitForVerticalBlank lines, preceding the canvas operations. Unfortunately, this didn't work very well either, and yielded smaller but more inconsistent delays in timing... Eventually, the only solution I could find to overcome the delays and get my desired precise timing, was to disable the flipping and go back to the good old waitForVerticalBlank. I don't know exactly what the flipping does (couldn't find any word about it in the E-prime knowledge base or in the user guide, apart from the paragraph that appears in PST's response to my question) - but it didn't work out good enough for me. I hope all this correspondence will help others in the future... Thank you all for your help. And if you know something more about flipping - please share... Tamar On Friday, April 26, 2013 3:54:45 PM UTC+3, Michiel Sovij?rvi-Spap? wrote: > > Hi, > So, for anyone who'd like to test this. I use win7, 64bits (to do the > coding > anyway), EP2.0.10.242. This is the full code of the experiment and should > work on any E-Prime with just a single inline bit in which you can paste > the > following: > > > ------------------------ > > Dim cnvs As Canvas 'the active display > Dim cnvsnext As Canvas 'the buffered canvas > Dim j As Integer > Dim clocktimes(1 To 100,1 To 4) As Long > > Set cnvs = Display.Canvas > Set cnvsnext = Display.CreateCanvas() > sleep 8000 'this is required for early experiment timing errors > > debug.print "*****WAIT BEFORE CNVSCOPY****" > For j = 1 To 100 > clocktimes(j,1) = clock.read > cnvsnext.Line random(0,100), random(0,100), random(0,100), > random(0,100) > clocktimes(j,2) = clock.read - clocktimes(j,1) > display.waitforverticalblank > clocktimes(j,3) = clock.read - clocktimes(j,1) > cnvs.copy cnvsnext > clocktimes(j,4) = clock.read - clocktimes(j,1) > Next j > > For j = 1 To 100 > debug.print "Trial " &CStr(j) & ": " & CStr(clocktimes(j,1)) & " " > & > CStr(clocktimes(j,2)) & " " & CStr(clocktimes(j,3)) & " " & > CStr(clocktimes(j,4)) > Next j > debug.print "Debug printing took " & CStr(clock.read - > (clocktimes(100,1)+clocktimes(100,4))) > For j = 1 To 100 > clocktimes(j,1) = clock.read > cnvsnext.Line random(100,200), random(0,100), random(100,200), > random(0,100) > clocktimes(j,2) = clock.read - clocktimes(j,1) > cnvs.copy cnvsnext > clocktimes(j,3) = clock.read - clocktimes(j,1) > display.waitforverticalblank > clocktimes(j,4) = clock.read - clocktimes(j,1) > Next j > debug.print "*****WAIT AFTER CNVSCOPY****" > For j = 1 To 100 > debug.print "Trial " &CStr(j) & ": " & CStr(clocktimes(j,1)) & " " > & > CStr(clocktimes(j,2)) & " " & CStr(clocktimes(j,3)) & " " & > CStr(clocktimes(j,4)) > Next j > > --------------------------- > > Apart from showing beautiful lines, it gives me the following info in the > debug output: > > *****WAIT BEFORE CNVSCOPY**** > Trial 1: 15854 1 7 24 > Trial 2: 15878 2 17 33 > Trial 3: 15912 1 16 33 > Trial 4: 15945 1 16 33 > Trial 5: 15978 2 17 33 > Trial 6: 16012 1 16 33 > Trial 7: 16045 1 16 33 > Trial 8: 16078 1 17 33 > Trial 9: 16111 2 17 34 > Trial 10: 16145 1 16 33 > Trial 11: 16178 1 17 33 > Trial 12: 16211 2 17 34 > Trial 13: 16245 1 16 33 > Trial 14: 16278 1 17 33 > Trial 15: 16311 2 17 34 > Trial 16: 16345 1 16 33 > Trial 17: 16378 2 17 33 > Trial 18: 16411 2 17 34 > Trial 19: 16445 1 16 33 > Trial 20: 16478 1 17 33 > Trial 21: 16511 2 17 34 > Trial 22: 16545 1 16 33 > Trial 23: 16578 1 17 33 > Trial 24: 16611 2 17 34 > Trial 25: 16645 1 16 33 > Trial 26: 16678 2 17 33 > Trial 27: 16711 2 17 34 > Trial 28: 16745 1 16 33 > Trial 29: 16778 1 17 33 > Trial 30: 16811 2 17 34 > Trial 31: 16845 1 16 33 > Trial 32: 16878 1 17 33 > Trial 33: 16911 2 17 34 > Trial 34: 16945 1 16 33 > Trial 35: 16978 1 17 33 > Trial 36: 17011 2 17 34 > Trial 37: 17045 1 16 33 > Trial 38: 17078 2 17 33 > Trial 39: 17111 2 17 34 > Trial 40: 17145 1 16 33 > Trial 41: 17178 1 17 33 > Trial 42: 17211 2 17 34 > Trial 43: 17245 1 16 33 > Trial 44: 17278 1 16 33 > Trial 45: 17311 2 17 34 > Trial 46: 17345 1 16 33 > Trial 47: 17378 1 16 33 > Trial 48: 17411 2 17 33 > Trial 49: 17445 1 16 33 > Trial 50: 17478 1 16 33 > Trial 51: 17511 2 17 34 > Trial 52: 17545 1 16 33 > Trial 53: 17578 2 17 33 > Trial 54: 17611 2 17 34 > Trial 55: 17645 1 16 33 > Trial 56: 17678 1 16 33 > Trial 57: 17711 2 17 33 > Trial 58: 17745 1 16 33 > Trial 59: 17778 1 16 33 > Trial 60: 17812 1 16 32 > Trial 61: 17845 1 16 33 > Trial 62: 17878 1 16 33 > Trial 63: 17911 2 17 33 > Trial 64: 17944 2 17 34 > Trial 65: 17978 1 16 33 > Trial 66: 18011 2 17 33 > Trial 67: 18044 2 17 34 > Trial 68: 18078 1 16 33 > Trial 69: 18111 1 17 33 > Trial 70: 18144 2 17 34 > Trial 71: 18178 1 16 33 > Trial 72: 18211 1 17 33 > Trial 73: 18244 2 17 34 > Trial 74: 18278 1 16 33 > Trial 75: 18311 2 17 33 > Trial 76: 18344 2 17 34 > Trial 77: 18378 1 16 33 > Trial 78: 18411 2 17 33 > Trial 79: 18444 2 17 34 > Trial 80: 18478 1 16 33 > Trial 81: 18511 2 17 33 > Trial 82: 18544 2 17 34 > Trial 83: 18578 1 16 33 > Trial 84: 18611 2 17 33 > Trial 85: 18644 2 17 34 > Trial 86: 18678 1 16 33 > Trial 87: 18711 1 17 33 > Trial 88: 18744 2 17 34 > Trial 89: 18778 1 16 33 > Trial 90: 18811 1 17 33 > Trial 91: 18844 2 17 34 > Trial 92: 18878 1 16 33 > Trial 93: 18911 1 17 33 > Trial 94: 18944 2 17 34 > Trial 95: 18978 1 16 33 > Trial 96: 19011 1 17 33 > Trial 97: 19044 2 17 34 > Trial 98: 19078 1 16 33 > Trial 99: 19111 2 17 33 > Trial 100: 19144 2 17 33 > Debug printing took 214 > *****WAIT AFTER CNVSCOPY**** > Trial 1: 19393 2 18 18 > Trial 2: 19411 1 16 17 > Trial 3: 19428 1 16 16 > Trial 4: 19445 1 16 16 > Trial 5: 19461 1 16 17 > Trial 6: 19478 1 16 16 > Trial 7: 19495 1 16 16 > Trial 8: 19511 2 17 17 > Trial 9: 19528 2 16 16 > Trial 10: 19544 2 17 17 > Trial 11: 19561 1 16 17 > Trial 12: 19578 1 16 16 > Trial 13: 19594 2 17 17 > Trial 14: 19611 1 16 17 > Trial 15: 19628 1 16 16 > Trial 16: 19644 2 17 17 > Trial 17: 19661 1 16 17 > Trial 18: 19678 1 16 16 > Trial 19: 19694 2 17 17 > Trial 20: 19711 1 16 17 > Trial 21: 19728 1 16 16 > Trial 22: 19744 2 17 17 > Trial 23: 19761 2 16 17 > Trial 24: 19778 1 16 16 > Trial 25: 19794 2 17 17 > Trial 26: 19811 1 16 17 > Trial 27: 19828 1 16 16 > Trial 28: 19844 2 17 17 > Trial 29: 19861 1 16 17 > Trial 30: 19878 1 16 16 > Trial 31: 19894 2 17 17 > Trial 32: 19911 1 16 17 > Trial 33: 19928 1 16 16 > Trial 34: 19944 2 17 17 > Trial 35: 19961 1 16 16 > Trial 36: 19978 1 16 16 > Trial 37: 19994 2 17 17 > Trial 38: 20011 1 16 17 > Trial 39: 20028 1 16 16 > Trial 40: 20044 2 17 17 > Trial 41: 20061 1 16 17 > Trial 42: 20078 1 16 16 > Trial 43: 20094 2 17 17 > Trial 44: 20111 1 16 16 > Trial 45: 20128 1 16 16 > Trial 46: 20144 2 17 17 > Trial 47: 20161 1 16 16 > Trial 48: 20178 1 16 16 > Trial 49: 20194 2 17 17 > Trial 50: 20211 1 16 17 > Trial 51: 20228 1 16 16 > Trial 52: 20244 2 17 17 > Trial 53: 20261 1 16 17 > Trial 54: 20278 1 16 16 > Trial 55: 20294 1 17 17 > Trial 56: 20311 1 16 16 > Trial 57: 20328 1 16 16 > Trial 58: 20344 2 17 17 > Trial 59: 20361 1 16 16 > Trial 60: 20377 2 17 17 > Trial 61: 20394 2 17 17 > Trial 62: 20411 1 16 16 > Trial 63: 20427 2 17 17 > Trial 64: 20444 2 17 17 > Trial 65: 20461 1 16 16 > Trial 66: 20478 1 16 16 > Trial 67: 20494 2 17 17 > Trial 68: 20511 1 16 16 > Trial 69: 20528 1 16 16 > Trial 70: 20544 1 17 17 > Trial 71: 20561 1 16 16 > Trial 72: 20577 2 17 17 > Trial 73: 20594 2 17 17 > Trial 74: 20611 1 16 16 > Trial 75: 20627 2 17 17 > Trial 76: 20644 1 17 17 > Trial 77: 20661 1 16 16 > Trial 78: 20677 2 17 17 > Trial 79: 20694 1 17 17 > Trial 80: 20711 1 16 16 > Trial 81: 20728 1 16 16 > Trial 82: 20744 2 17 17 > Trial 83: 20761 1 16 16 > Trial 84: 20778 1 16 16 > Trial 85: 20794 2 17 17 > Trial 86: 20811 1 16 16 > Trial 87: 20828 1 16 16 > Trial 88: 20844 2 17 17 > Trial 89: 20861 1 16 16 > Trial 90: 20877 2 17 17 > Trial 91: 20894 1 17 17 > Trial 92: 20911 1 16 16 > Trial 93: 20928 1 16 16 > Trial 94: 20944 1 17 17 > Trial 95: 20961 1 16 16 > Trial 96: 20977 2 17 17 > Trial 97: 20994 2 17 17 > Trial 98: 21011 1 16 16 > Trial 99: 21027 2 17 17 > Trial 100: 21044 1 16 17 > > ---- > Clearly then, something strange is going on. If anyone would like to > verify > this on their own PC/E-Prime, be my guest. > Best, > Michiel > > > > > -----Original Message----- > From: e-p... at googlegroups.com [mailto: > e-p... at googlegroups.com ] On Behalf > Of David McFarlane > Sent: 25. April 2013 18:16 > To: e-p... at googlegroups.com ; e-p... at googlegroups.com > Subject: Re: Canvas.Copy is taking too long to complete > > Tamar, > > Very curious indeed, I wish I had the time to explore this further myself. > You should definitely take this now to PST Web Support at > http://support.pstnet.com/e%2Dprime/support/login.asp > , and send them a link to this discussion (for your convenience, that link > is https://groups.google.com/d/topic/e-prime/OX528cBioek > ). And then please post back with the results. > > Thanks, > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) > > > At 4/25/2013 03:24 AM Thursday, Peter Quain wrote: > > >there must be some interfacing routines we can't > >see in the *.ebs files that differ between v1.? > >and v.2.?, and that e-prime calls when the > >scripts are run??? They both(?) must be > >allowable, and they must call upon different > >routines in e-prime that communicate with the hardware? > > > >At 05:08 PM 25/04/2013, you wrote: > >>o.k., here is what I found, following your input: > >> > >>In any experiment I create in EP1 (in a > >>neighboring lab...), canvas.copy takes under 1 ms. > >>In any experiment I create in EP2, canvas.copy takes a whole refresh > cycle. > >>If I take an experiment created in EP1 and > >>convert it to EP2 - then canvas.copy time is > >>under 1 ms... although nothing in the inline changed... > >>How can that be? > >> > >> > >> > >>On Thursday, April 25, 2013 8:29:06 AM UTC+3, Peter Quain wrote: > >>I haven't tested any code examples, but have a > >>lot of data showing canvas.copy in v.1.?.? > >>takes under a ms, supporting David's > >>observations. Perhaps something here is less > >>instant in v2.?, and a bug has been identified? > >>At 03:19 PM 25/04/2013, you wrote: > >>>Thank you both your replies! > >>>I am using E-prime 2.0.10, and a CRT iiyama > >>>Vision Master screen, with display resolution > >>>of 1024 x 768 and a refresh rate of 100 Hz. My > >>>operating system is windows XP. > >>>I'm troubled with this timing issue because my > >>>experiment includes EEG recording, thus the > >>>synchronization is terribly important. I need > >>>to send triggers via the parallel port exactly at the > >>>onset of each stimulus, or else my EEG signal > >>>might be smeared. Considering that the canvas.copy > >>>takes a refresh cycle to complete - I'm not > >>>sure what time ought to be considered the stimulus onset... > >>>Anyhow, David, I've tried running your code - > >>>and I get dt's of 13-14ms. Do you think that all the difference > >>>between your 0.22ms to my 13-14ms is due to > >>>E-prime1 vs. E-prime2 differences? That's shocking... > >>>I get the same results as Michiel for the loop > >>>codes, as puzzling as they are... > >>>Thanks again for your help, > >>>Tamar > >>> > >>> > >>> > >>>On Wednesday, April 24, 2013 4:44:46 PM UTC+3, McFarlane, David wrote: > >>>Hmm. I explored this issue myself three years ago, using EP1 (still my > >>>favorite version for this type of exploration). I just dug up my test > >>>program and ran it again on my trusty old XP laptop at home after > >>>breakfast, and got times of 0.22 ms even for full screen copies, much > as > >>>I remember from before (where full screen means 1024 x 768; and yes, > >>>that is less than a millisecond). To be sure, here is the core of my > >>>test code: > >>> t0 = clock.readmicrosec > >>> dcnvs.copy cnvs > >>> dt = clock.readmicrosec - t0 > >>> msgbox format$( dt/1000, "Standard" ) & " ms" > >>>where all variables are defined and initialized earlier as expected > >>>(dcnvs is set to Display.Canvas just for notational convenience). > >>>Also, I looked at the Canvas.Copy topic in the E-Basic Help -- no > >>>evidence that .Copy includes an implicit Display.WaitForVerticalBlank, > >>>to the contrary, the code example there includes an explicit > >>>Display.WaitForVerticalBlank just before the cnvs.Copy. I would be > >>>*extremely* surprised if Canvas.Copy included a > >>>Display.WaitForVerticalBlank, as that would greatly compromise its > >>>utility (e.g., when wanting to Copy several segments to an offscreen > >>>Canvas before copying the complete result to Display.Canvas). > >>>So I do not know how to account for your results. Mind you, I did all > >>>my tests using good-old EP1 with 1024x768 display resolution. For all > I > >>>know things changed with the latest EP version, or things get slower > >>>with larger display resolutions. What EP version do you use? What > >>>display resolution? > >>>Michiel, I am especially puzzled by your results. Both of your tests > >>>measure the total time to perform a Canvas.Copy and > >>>Display.WaitForVerticalBlank, only in different orders. So you should > >>>get the same time for both tests, regardless of whether Canvas.Copy > >>>includes its own Display.WaitForVerticalBlank. What am I missing? > >>>Nevertheless, Michiel's advice still stands -- as long as your program > >>>does everything it needs to do within one screen refresh (and assuming > >>>that you *do* synchronize visual displays to the screen refresh, as you > >>>should), then that is good enough. > >>>----- > >>>David McFarlane > >>>E-Prime training online: > >>> > http://psycholog > y.msu.edu/Workshops_Courses/eprime.aspx > >>> > >>>Twitter: @EPrimeMaster > >>>(twitter.com/EPrimeMaster) > >>>/----------- > >>>Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > >>>any and all questions at > >>> > http://support.pst > net.com/e%2Dprime/support/login.asp > >>>, and they strive > >>>to respond to all requests in 24-48 hours, so make full use of it. 3) > >>>In addition, PST takes questions at their Facebook page > >>>( > http://www.facebook.com/pages/Psychology-Software-Tools-Inc/241802160683 > >>>), and offers several instructional videos there and on their YouTube > >>>channel ( http://www.youtube.com/user/PSTNET ) (no Twitter feed yet, > >>>though). 4) If you do get an answer from PST staff, please extend the > >>>courtesy of posting their reply back here for the sake of others. > >>>\----------- > >>>Cognitology wrote: > >>> > Hi, > >>> > > >>> > A quick look, but I think that you pretty much nailed it: it can > take > >>> > quite long to do any canvas operation. Given that your screen > refresh > >>> > rate presumably isn???t more than 100 Hz (and in any ways, your > foveal > >>> > vision isn???t), I don???t see the problem? > >>> Indeed, if you were to draw many > >>> > things to the main canvas, one after the other, then indeed, it gets > to > >>> > be a problem, but as long as the only > >>> operation is copying a ???preloaded??? > >>> > canvas to the shown one, it doesn???t > >>> matter all that much. Notice, given > >>> > that you???re not using E-Prime???s > >>> stimdisplays, it???s not clear at what > >>> > time the stimulus is actually displayed ??? > >>> only when it???s done sending > >>> > the command. I think it???s generally better for critical timing > aspects > >>> > of your experiment to avoid canvas as much as possible. Personally, > I > >>> > think ???critical timing??? is when it concerns a subliminal vs > barely > >>> > supraliminal prime or some such, for other types of stimuli the 10 > ms > of > >>> > (constant, therefore presumably stimulus independent) delay is of > >>> > trivial concern. > >>> > > >>> > > >>> > > >>> > Just testing some of it myself, and I get values ranging between 15 > and > >>> > 17 ??? which is funny, given that my refresh rate is indeed 60, so > it > >>> > seems a bit like there???s some sort of > >>> display.waitforverticalblank built > >>> > into canvas.copy. Curiously, this: > >>> > > >>> > For j = 1 To 100 > >>> > > >>> > DrawFixation ???this is just a custom function drawing a line > to > >>> > cnvsnext > >>> > > >>> > cnvs.copy cnvsnext > >>> > > >>> > display.waitforverticalblank > >>> > > >>> > debug.print clock.read - clocktime > >>> > > >>> > clocktime = clock.read > >>> > > >>> > Next j > >>> > > >>> > > >>> > > >>> > Gives me latencies equal to refresh rates (+- 1 ms). > >>> > > >>> > Whereas: > >>> > > >>> > > >>> > > >>> > For j = 1 To 100 > >>> > > >>> > DrawFixation ???this is just a custom function drawing a line > to > >>> > cnvsnext > >>> > > >>> > display.waitforverticalblank > >>> > > >>> > cnvs.copy cnvsnext > >>> > > >>> > debug.print clock.read - clocktime > >>> > > >>> > clocktime = clock.read > >>> > > >>> > Next j > >>> > > >>> > > >>> > > >>> > Gives me latencies equal to 2xrefresh rates. Somebody with young > eyes > >>> > should tell us if the first one doesn???t have cutting-off errors, > >>> > otherwise I???d suggest there might be some sort of > waitforverticalblank > >>> > built into canvas.copy. > >>> > > >>> > Best, > >>> > > >>> > > >>> > > >>> > Michiel Sovij???rvi-Spap??? > >>> > > >>> > > >>> > > >>> > Helsinki Institute for Information Technology > >>> > > >>> > Aalto & University of Helsinki > >>> > > >>> > Finland > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > BTW: notice that using debug.print also incurs a delay (last > measured > at > >>> > 0.7 ms). > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > *From:* e-p... at googlegroups.com [ mailto:e-p... at googlegroups.com] > *On > >>> > Behalf Of *Tamar > >>> > *Sent:* 24. April 2013 08:33 > >>> > *To:* e-p... at googlegroups.com > >>> > *Subject:* Canvas.Copy is taking too long to complete > >>> > > >>> > > >>> > > >>> > I'm programming a visual experiment, and suffering from some timing > >>> > issues. It seems that the line presenting the stimuli (canvas.copy) > is > >>> > considerably time consuming: 10-12 ms. I can't figure out the cause > for > >>> > this delay, and I would appreciate any help... > >>> > > >>> > Here is the relevant piece of code: > >>> > > >>> > ====== in an initializing inline script, at the begining of > SessionProc: > >>> > ====== > >>> > Set MainCanvas = Display.Canvas > >>> > MainCanvas.fillColor = CColor(background_color) > >>> > MainCanvas.clear > >>> > > >>> > For i = 1 To NumStim > >>> > Set StimCanvases(i) = Display.CreateCanvas > >>> > > >>> > 'define destination rect as center of screen > >>> > destRects(i).Left = Display.XRes/2-stim_w/2 > >>> > destRects(i).Top = Display.YRes/2-stim_h/2 > >>> > destRects(i).Right = Display.XRes/2+stim_w/2 > >>> > destRects(i).Bottom = Display.YRes/2+stim_h/2 > >>> > > >>> > 'define source rect as upper left corner > >>> > srcRects(i).Left = 0 > >>> > srcRects(i).Top = 0 > >>> > srcRects(i).Right = stim_w > >>> > srcRects(i).Bottom = stim_h > >>> > > >>> > 'Load the image file > >>> > StimCanvases(i).LoadImage "Stimuli/" & FileNames(i) & ".bmp" > >>> > > >>> > Next i > >>> > > >>> > ====== in the inline of TrialProc: ======= > >>> > Debug.Print "1:" & clock.read > >>> > StartTrialTime = clock.read > >>> > n = c.GetAttrib("CanvasNum") > >>> > c.SetAttrib "TrialStart", StartTrialTime > >>> > display.WaitForVerticalBlank > >>> > Debug.Print "4:" & clock.read > >>> > StartStimTime = clock.read > >>> > c.SetAttrib "StimStart", StartStimTime > >>> > Debug.Print "5:" & clock.read > >>> > mainCanvas.copy StimCanvases(n),srcRects(n),destRects(n) > >>> > Debug.Print "6:" & clock.read > >>> > > >>> > > >>> > I've tried a few things: > >>> > - to create variables taking the values of > >>> > StimCanvases(n),srcRects(n),destRects(n) in the beginning of the > trial, > >>> > so the mainCanvas.copy line would not need to approach the arrays. > >>> > - to present other simple canvases instead of my real stimuli (just > a > >>> > fixation, for example. or an empty canvas) > >>> > - to draw something on the mainCanvas rather than copy a new canvas > to > >>> > it (e.g. mainCanvas.Circle). > >>> > > >>> > All of these takes 10-12 ms! (as calculated by subtracting time5 > from > >>> > time6). The only way I managed to get rid of the delay was to erase > the > >>> > entire row... > >>> > > >>> > Am I missing something here?... > >>> > > >>> > Thanks, > >>> > Tamar > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+u... at googlegroups.com . > To post to this group, send email to e-p... at googlegroups.com . > > For more options, visit https://groups.google.com/groups/opt_out. > > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/RlvWoU9cqxYJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.biscione at gmail.com Thu May 2 11:45:44 2013 From: valerio.biscione at gmail.com (Valerio Biscione) Date: Thu, 2 May 2013 04:45:44 -0700 Subject: Strange problem Message-ID: Hi, I am experiencing a really strange problem with e prime. It is something simple like this: Debug.print "1 WhiteDot ACC=" & whiteDot.ACC If whiteDot.ACC=1 Then Debug.print "2 WhiteDot ACC=" & whiteDot.ACC end if What the debug print is sometimes 1 WhiteDot ACC=1 2 WhiteDot ACC=1 and sometimes 1 WhiteDot ACC=0 2 WhiteDot ACC=1 and sometimes 1 WhiteDot ACC=0 2 WhiteDot ACC=0 Assuming that the answer to WhiteDot is always ACCurate and that if I print the whiteDot.ACC in a following inline function it always returns 1, i think that the problem is that ACC value of WhiteDot slide doesn't update instantly. The problem is that in the real inline function I have to do an operation if whiteDot.ACC=0, so it has to be updated instantly after the slide! How can I be sure that this occours? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/SobbgTsCHeUJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu May 2 15:38:23 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 2 May 2013 11:38:23 -0400 Subject: Strange problem In-Reply-To: <765487a4-3651-4c42-9b73-68f24374fdde@googlegroups.com> Message-ID: Strange indeed. First, just to clarify, given your described design you expect to get either 1 WhiteDot ACC=1 2 WhiteDot ACC=1 or 1 WhiteDot ACC=0 nothing else. Then a few questions come to mind. 1) What Duration do you use for whiteDot? 2) What PreRelease do you use for whiteDot? 3) What Time Limit do you use for the input mask on whiteDot? 4) What responses are you entering to get these results, and when do the responses occur relative to whiteDot? 5) Could you write and described a stripped-down program that exhibits this phenomenon so that we might try to duplicate it? Thanks. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 5/2/2013 07:45 AM Thursday, Valerio Biscione wrote: >Hi, I am experiencing a really strange problem with e prime. > >It is something simple like this: > > >Debug.print "1 WhiteDot ACC=" & whiteDot.ACC > >If whiteDot.ACC=1 Then > > >Debug.print "2 WhiteDot ACC=" & whiteDot.ACC >end if > >What the debug print is sometimes > >1 WhiteDot ACC=1 >2 WhiteDot ACC=1 > >and sometimes > >1 WhiteDot ACC=0 >2 WhiteDot ACC=1 > >and sometimes > >1 WhiteDot ACC=0 >2 WhiteDot ACC=0 > > > >Assuming that the answer to WhiteDot is always ACCurate and that if >I print the whiteDot.ACC in a following inline function it always >returns 1, i think that the problem is that ACC value of WhiteDot >slide doesn't update instantly. The problem is that in the real >inline function I have to do an operation if whiteDot.ACC=0, so it >has to be updated instantly after the slide! How can I be sure that >this occours? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. From valerio.biscione at gmail.com Thu May 2 19:05:26 2013 From: valerio.biscione at gmail.com (Vaaal) Date: Thu, 2 May 2013 12:05:26 -0700 Subject: Reading more than one response Message-ID: Hi, I know that I have already opened a topic today, but I am working on more than one problem at time and I really need your help! So I have this experiment in which the subject has to press a button (on a slide that we'll call "Waiting Slide"), then when the stimulus appears the subject releases that button and presses ANOTHER button. I want to record the time between the stimulus out and the release of the button (we'll call this *decision time*) and the time between the release of the button and the pressing of the other button (we'll call this *movement time*). The first button is 2 and the second one is 4. In order to do so I added in the "alloweable keys" in the Stimulus slide this two keys: {-2}4 and in "correct" only 4. Then I changed the Max Count to 2. What happens is that everything works right, but there is a little bug that I am afraid the subject could learn. In the subject, on the Stimulus Slide, release key 2, and then PRESS AGAIN AND RELEASE AGAIN key 2, the slide will terminate. What I would like to do is just to ignore any other keys but 4, once that 2 has been released. I cannot come up with any answer. I can think to do something that involves the creation of two different slides, one that reads -2 and the other 4, but I don't like that solution because this would mean to change a lot of things in the rest of the experiment.. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/8zHp3ooCYv8J. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.biscione at gmail.com Thu May 2 19:12:11 2013 From: valerio.biscione at gmail.com (Vaaal) Date: Thu, 2 May 2013 12:12:11 -0700 Subject: Strange problem In-Reply-To: <765487a4-3651-4c42-9b73-68f24374fdde@googlegroups.com> Message-ID: You are right, I wasn't clear, and plus I think that there is a more easy way to explain it. I have a slide called WhiteDot. Assuming that I always give it the correct response (ACC=1). If I read the whiteDot.ACC just after the slide, the value is (most of the time but not always!) 0. If I read it after some other slides, the value is 1. Of course nothing change in the inline script about the ACC of the whitedot slide. The post run of whitedot slide is *afterObjectRun*, the prerun is *beforeObjectRun*. The duration of "WhiteDot" is a random variable called DurationA. In the field "Duration" I wrote [DurationA]. -What Time Limit do you use for the input mask on whiteDot? <-I am not sure I understand this one. Time Limit of the response is (same as duration). The correct response is to do nothing (just to way DurationA milliseconds) (actually, to be more precise, the subject is asked to press a button on a previous slide, and to keep the button pressed during WhiteDot. If the subject releases the button there is an incorrect resposne, otherwise a correct one). When I say "assuming that I always give the correct response" I mean: assuming that I always wait the right amount of time without doing anything but keep the button pressed. Could you write and described a stripped-down program that exhibits this phenomenon so that we might try to duplicate it? - Yes I can, but only tomorrow. Maybe you are able to help with the information that I have provided you now? Thank you very much! :-) On Thursday, 2 May 2013 12:45:44 UTC+1, Vaaal wrote: > > Hi, I am experiencing a really strange problem with e prime. > > It is something simple like this: > > > Debug.print "1 WhiteDot ACC=" & whiteDot.ACC > > If whiteDot.ACC=1 Then > > > Debug.print "2 WhiteDot ACC=" & whiteDot.ACC > end if > > What the debug print is sometimes > > 1 WhiteDot ACC=1 > 2 WhiteDot ACC=1 > > and sometimes > > 1 WhiteDot ACC=0 > 2 WhiteDot ACC=1 > > and sometimes > > 1 WhiteDot ACC=0 > 2 WhiteDot ACC=0 > > > > Assuming that the answer to WhiteDot is always ACCurate and that if I > print the whiteDot.ACC in a following inline function it always returns 1, > i think that the problem is that ACC value of WhiteDot slide doesn't > update instantly. The problem is that in the real inline function I have > to do an operation if whiteDot.ACC=0, so it has to be updated instantly > after the slide! How can I be sure that this occours? > > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/BZHVkRR3qu8J. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu May 2 19:32:53 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 2 May 2013 15:32:53 -0400 Subject: Strange problem In-Reply-To: <2bd98e19-db38-44fa-b13e-bab631433595@googlegroups.com> Message-ID: Thanks, this helps a little, although I still need more. Also (1) you really should take this to PST Web Support, and (2) when you reply here, *please* include the preceeding thread in full, otherwise it is hard for others (and me) to follow along later. Anyway, I still want to know the PreRelease value, that is critical to my thinking. If you are using EP2.0.8.10 then you probably use the default of "same as duration". I also need to know more about the structure of your Procedure. E.g., I assume that your inline immediately follows your WhiteDot, but I need you to confirm or correct that. And please give more concrete, explicit descriptions of your responses, not just "correct", but what counts as correct. I would like to see a better step-by-step description of what the subject is supposed to do on each trial, and some concrete examples of trial stimuli & responses. Best if you work out a stripped-down version to demonstrate this issue. But now I may not get back to this again until next week. Best, -- David McFarlane At 5/2/2013 03:12 PM Thursday, Vaaal wrote: >You are right, I wasn't clear, and plus I think that there is a more >easy way to explain it. >I have a slide called WhiteDot. Assuming that I always give it the >correct response (ACC=1). If I read the whiteDot.ACC just after the >slide, the value is (most of the time but not always!) 0. If I read >it after some other slides, the value is 1. Of course nothing change >in the inline script about the ACC of the whitedot slide. > >The post run of whitedot slide is *afterObjectRun*, the prerun is >*beforeObjectRun*. >The duration of "WhiteDot" is a random variable called DurationA. In >the field "Duration" I wrote [DurationA]. >-What Time Limit do you use for the input mask on whiteDot? <-I am >not sure I understand this one. Time Limit of the response is (same >as duration). The correct response is to do nothing (just to way >DurationA milliseconds) (actually, to be more precise, the subject >is asked to press a button on a previous slide, and to keep the >button pressed during WhiteDot. If the subject releases the button >there is an incorrect resposne, otherwise a correct one). >When I say "assuming that I always give the correct response" I >mean: assuming that I always wait the right amount of time without >doing anything but keep the button pressed. > >Could you write and described a stripped-down program that >exhibits this phenomenon so that we might try to duplicate it? - Yes >I can, but only tomorrow. Maybe you are able to help with the >information that I have provided you now? >Thank you very much! :-) > > >On Thursday, 2 May 2013 12:45:44 UTC+1, Vaaal wrote: >Hi, I am experiencing a really strange problem with e prime. > >It is something simple like this: > > >Debug.print "1 WhiteDot ACC=" & whiteDot.ACC > >If whiteDot.ACC=1 Then > > >Debug.print "2 WhiteDot ACC=" & whiteDot.ACC >end if > >What the debug print is sometimes > >1 WhiteDot ACC=1 >2 WhiteDot ACC=1 > >and sometimes > >1 WhiteDot ACC=0 >2 WhiteDot ACC=1 > >and sometimes > >1 WhiteDot ACC=0 >2 WhiteDot ACC=0 > > > >Assuming that the answer to WhiteDot is always ACCurate and that if >I print the whiteDot.ACC in a following inline function it always >returns 1, i think that the problem is that ACC value of WhiteDot >slide doesn't update instantly. The problem is that in the real >inline function I have to do an operation if whiteDot.ACC=0, so it >has to be updated instantly after the slide! How can I be sure that >this occours? -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. From baltimore.ben at gmail.com Thu May 2 19:59:39 2013 From: baltimore.ben at gmail.com (ben robinson) Date: Thu, 2 May 2013 15:59:39 -0400 Subject: Reading more than one response In-Reply-To: <1144edab-5f8f-4ab0-9cce-056eb030fb9b@googlegroups.com> Message-ID: You can also set up your single slide with two separate Input Masks. add a second device under your Input Masks, so now you have two different keyboard devices listed. the first keyboard device has only {-2} as its allowable, with End Action (none). the second keyboard device has only 4 as its allowable, with End Action Terminate. Does that work? On Thu, May 2, 2013 at 3:05 PM, Vaaal wrote: > Hi, I know that I have already opened a topic today, but I am working on > more than one problem at time and I really need your help! > > So I have this experiment in which the subject has to press a button (on a > slide that we'll call "Waiting Slide"), then when the stimulus appears the > subject releases that button and presses ANOTHER button. > I want to record the time between the stimulus out and the release of the > button (we'll call this *decision time*) and the time between the release > of the button and the pressing of the other button (we'll call this > *movement time*). > The first button is 2 and the second one is 4. > > In order to do so I added in the "alloweable keys" in the Stimulus slide > this two keys: {-2}4 and in "correct" only 4. Then I changed the Max Count > to 2. > What happens is that everything works right, but there is a little bug > that I am afraid the subject could learn. In the subject, on the Stimulus > Slide, release key 2, and then PRESS AGAIN AND RELEASE AGAIN key 2, the > slide will terminate. > What I would like to do is just to ignore any other keys but 4, once that > 2 has been released. I cannot come up with any answer. > > I can think to do something that involves the creation of two different > slides, one that reads -2 and the other 4, but I don't like that solution > because this would mean to change a lot of things in the rest of the > experiment.. > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msg/e-prime/-/8zHp3ooCYv8J. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.biscione at gmail.com Thu May 2 20:46:01 2013 From: valerio.biscione at gmail.com (Vaaal) Date: Thu, 2 May 2013 13:46:01 -0700 Subject: Reading more than one response In-Reply-To: Message-ID: No, it doesn't work. If I do exactly what you described, and plus I have changed the MaxCount to 1 instead of the 2 that I have previously, for the first Input Mask. I have no response neither when I release 2 nor when I press 4. If I set in the {-2} input mask the EndAction (terminate), it will terminate when I release 2, so I assume that the response 4 is completely ignored, and only the -2 is read. Anyway I have read around that with multiple input masks e-prime stores only the last value, and I think this could be a problem for my purpose.. Now, the fact is that I don't really need to put that {-2}. But I *have* to record when 2 is released. Is I don't put {-2} in my "allowable response" I won't have the problem described in this topic (if the subject press again 2 or any other keys, it will just ignore it, and I am fine with this), but THEN I won't be able to read that value. This is true at least whit the inline function that I use. If you know any way to read a response also if it is not in allowable response, this may solve the problem. On Thursday, 2 May 2013 20:59:39 UTC+1, ben wrote: > > You can also set up your single slide with two separate Input Masks. > add a second device under your Input Masks, so now you have two different > keyboard devices listed. the first keyboard device has only {-2} as its > allowable, with End Action (none). the second keyboard device has only 4 as > its allowable, with End Action Terminate. > Does that work? > > > On Thu, May 2, 2013 at 3:05 PM, Vaaal > > wrote: > >> Hi, I know that I have already opened a topic today, but I am working on >> more than one problem at time and I really need your help! >> >> So I have this experiment in which the subject has to press a button (on >> a slide that we'll call "Waiting Slide"), then when the stimulus appears >> the subject releases that button and presses ANOTHER button. >> I want to record the time between the stimulus out and the release of the >> button (we'll call this *decision time*) and the time between the release >> of the button and the pressing of the other button (we'll call this >> *movement time*). >> The first button is 2 and the second one is 4. >> >> In order to do so I added in the "alloweable keys" in the Stimulus slide >> this two keys: {-2}4 and in "correct" only 4. Then I changed the Max Count >> to 2. >> What happens is that everything works right, but there is a little bug >> that I am afraid the subject could learn. In the subject, on the Stimulus >> Slide, release key 2, and then PRESS AGAIN AND RELEASE AGAIN key 2, the >> slide will terminate. >> What I would like to do is just to ignore any other keys but 4, once that >> 2 has been released. I cannot come up with any answer. >> >> I can think to do something that involves the creation of two different >> slides, one that reads -2 and the other 4, but I don't like that solution >> because this would mean to change a lot of things in the rest of the >> experiment.. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "E-Prime" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to e-prime+u... at googlegroups.com . >> To post to this group, send email to e-p... at googlegroups.com >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msg/e-prime/-/8zHp3ooCYv8J. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/SDlaLxMOrWUJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From molinae at gmail.com Thu May 2 21:31:22 2013 From: molinae at gmail.com (molinae) Date: Thu, 2 May 2013 14:31:22 -0700 Subject: Reading more than one response In-Reply-To: <6080023f-6f38-4f05-8957-b38a6e64cbca@googlegroups.com> Message-ID: Hi, wouldn't it work if you just set the Termination Response to 4 and the Max Count to, say, 10 or 20? El jueves, 2 de mayo de 2013 22:46:01 UTC+2, Vaaal escribi?: > > No, it doesn't work. > If I do exactly what you described, and plus I have changed the MaxCount > to 1 instead of the 2 that I have previously, for the first Input Mask. I > have no response neither when I release 2 nor when I press 4. > If I set in the {-2} input mask the EndAction (terminate), it will > terminate when I release 2, so I assume that the response 4 is completely > ignored, and only the -2 is read. > > Anyway I have read around that with multiple input masks e-prime stores > only the last value, and I think this could be a problem for my purpose.. > Now, the fact is that I don't really need to put that {-2}. But I *have* > to record when 2 is released. Is I don't put {-2} in my "allowable > response" I won't have the problem described in this topic (if the subject > press again 2 or any other keys, it will just ignore it, and I am fine with > this), but THEN I won't be able to read that value. This is true at least > whit the inline function that I use. If you know any way to read a response > also if it is not in allowable response, this may solve the problem. > > > On Thursday, 2 May 2013 20:59:39 UTC+1, ben wrote: >> >> You can also set up your single slide with two separate Input Masks. >> add a second device under your Input Masks, so now you have two different >> keyboard devices listed. the first keyboard device has only {-2} as its >> allowable, with End Action (none). the second keyboard device has only 4 as >> its allowable, with End Action Terminate. >> Does that work? >> >> >> On Thu, May 2, 2013 at 3:05 PM, Vaaal wrote: >> >>> Hi, I know that I have already opened a topic today, but I am working >>> on more than one problem at time and I really need your help! >>> >>> So I have this experiment in which the subject has to press a button (on >>> a slide that we'll call "Waiting Slide"), then when the stimulus appears >>> the subject releases that button and presses ANOTHER button. >>> I want to record the time between the stimulus out and the release of >>> the button (we'll call this *decision time*) and the time between the >>> release of the button and the pressing of the other button (we'll call this >>> *movement time*). >>> The first button is 2 and the second one is 4. >>> >>> In order to do so I added in the "alloweable keys" in the Stimulus slide >>> this two keys: {-2}4 and in "correct" only 4. Then I changed the Max Count >>> to 2. >>> What happens is that everything works right, but there is a little bug >>> that I am afraid the subject could learn. In the subject, on the Stimulus >>> Slide, release key 2, and then PRESS AGAIN AND RELEASE AGAIN key 2, the >>> slide will terminate. >>> What I would like to do is just to ignore any other keys but 4, once >>> that 2 has been released. I cannot come up with any answer. >>> >>> I can think to do something that involves the creation of two different >>> slides, one that reads -2 and the other 4, but I don't like that solution >>> because this would mean to change a lot of things in the rest of the >>> experiment.. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "E-Prime" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to e-prime+u... at googlegroups.com. >>> To post to this group, send email to e-p... at googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msg/e-prime/-/8zHp3ooCYv8J. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/h5g1XyTVfc0J. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.biscione at gmail.com Thu May 2 21:48:26 2013 From: valerio.biscione at gmail.com (Vaaal) Date: Thu, 2 May 2013 14:48:26 -0700 Subject: Reading more than one response In-Reply-To: <1114ca92-c33f-40d9-8069-ce3cf6a2216e@googlegroups.com> Message-ID: Wow, it work this way!!! Thank you very much! :-) Thank you to ben as well!! On Thursday, 2 May 2013 22:31:22 UTC+1, molinae wrote: > > Hi, > > wouldn't it work if you just set the Termination Response to 4 and the Max > Count to, say, 10 or 20? > > > > El jueves, 2 de mayo de 2013 22:46:01 UTC+2, Vaaal escribi?: >> >> No, it doesn't work. >> If I do exactly what you described, and plus I have changed the MaxCount >> to 1 instead of the 2 that I have previously, for the first Input Mask. I >> have no response neither when I release 2 nor when I press 4. >> If I set in the {-2} input mask the EndAction (terminate), it will >> terminate when I release 2, so I assume that the response 4 is completely >> ignored, and only the -2 is read. >> >> Anyway I have read around that with multiple input masks e-prime stores >> only the last value, and I think this could be a problem for my purpose.. >> Now, the fact is that I don't really need to put that {-2}. But I *have* >> to record when 2 is released. Is I don't put {-2} in my "allowable >> response" I won't have the problem described in this topic (if the subject >> press again 2 or any other keys, it will just ignore it, and I am fine with >> this), but THEN I won't be able to read that value. This is true at least >> whit the inline function that I use. If you know any way to read a response >> also if it is not in allowable response, this may solve the problem. >> >> >> On Thursday, 2 May 2013 20:59:39 UTC+1, ben wrote: >>> >>> You can also set up your single slide with two separate Input Masks. >>> add a second device under your Input Masks, so now you have two >>> different keyboard devices listed. the first keyboard device has only {-2} >>> as its allowable, with End Action (none). the second keyboard device has >>> only 4 as its allowable, with End Action Terminate. >>> Does that work? >>> >>> >>> On Thu, May 2, 2013 at 3:05 PM, Vaaal wrote: >>> >>>> Hi, I know that I have already opened a topic today, but I am working >>>> on more than one problem at time and I really need your help! >>>> >>>> So I have this experiment in which the subject has to press a button >>>> (on a slide that we'll call "Waiting Slide"), then when the stimulus >>>> appears the subject releases that button and presses ANOTHER button. >>>> I want to record the time between the stimulus out and the release of >>>> the button (we'll call this *decision time*) and the time between the >>>> release of the button and the pressing of the other button (we'll call this >>>> *movement time*). >>>> The first button is 2 and the second one is 4. >>>> >>>> In order to do so I added in the "alloweable keys" in the Stimulus >>>> slide this two keys: {-2}4 and in "correct" only 4. Then I changed the Max >>>> Count to 2. >>>> What happens is that everything works right, but there is a little bug >>>> that I am afraid the subject could learn. In the subject, on the Stimulus >>>> Slide, release key 2, and then PRESS AGAIN AND RELEASE AGAIN key 2, the >>>> slide will terminate. >>>> What I would like to do is just to ignore any other keys but 4, once >>>> that 2 has been released. I cannot come up with any answer. >>>> >>>> I can think to do something that involves the creation of two different >>>> slides, one that reads -2 and the other 4, but I don't like that solution >>>> because this would mean to change a lot of things in the rest of the >>>> experiment.. >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "E-Prime" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to e-prime+u... at googlegroups.com. >>>> To post to this group, send email to e-p... at googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msg/e-prime/-/8zHp3ooCYv8J. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>>> >>>> >>> >>> -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/cyOzm4KlgTcJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From julf at pdx.edu Fri May 3 18:53:32 2013 From: julf at pdx.edu (Julia Fernandez) Date: Fri, 3 May 2013 11:53:32 -0700 Subject: Problem when sequence is shorter than maximum allowable? Message-ID: I've designed an experiment on artificial grammar learning where subjects need to replicate a sequence using an SR box. I changed the Maximum Allowable to 6 and everything works properly except that sequences of less than 6 come out as incorrect. Do I need a script for this? Julia Sent from my iPhone -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. From tobias.fw at gmail.com Mon May 6 13:39:19 2013 From: tobias.fw at gmail.com (Tobias) Date: Mon, 6 May 2013 06:39:19 -0700 Subject: Polhemus Message-ID: Dear all, Does anyone have experience with running Polhemus Liberty (the motion tracking system) with E-Prime? Best, Tobias -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/UIQsumyUIUAJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.biscione at gmail.com Mon May 6 21:00:50 2013 From: valerio.biscione at gmail.com (Vaaal) Date: Mon, 6 May 2013 14:00:50 -0700 Subject: Critical time delay after a subject's input Message-ID: Hello, I am trying to solve a timing problem. When the frame waits for the subject to press a button, a PreRelease procedure seems to be impossible for e-prime. This adds an unwanted onset delay to the next frame. This is quite strange to me: couldn't e-prime start loading the following frame from the beginning of the first frame? Anyway, on the documentation (chapter 3, section 3.3.1.1, just before the next section) they address exactly this problem. It is written: "Similarly, PreRelease time can not be honored by E-Prime in the case that the current object is terminated by a response input (i.e., because the system cannot possibly predict when a subject will respond, it cannot react to the response until after it occurs). This also is typically not a problem for most paradigms, as once a display is terminated, subsequent displays are not often viewed as time critical. Note, even if they are, they are minimally likely to be out of sync with the vertical refresh cycle, and incur some amount of unwanted delay. For paradigms in which this is a problem, it is recommended that the input specifications be set so that the display is NOT terminated upon response. This will allow the response to be time-stamped, scored, and logged properly, and the timing of the display sequence will remain accurate." I don't clearly understand the solution proposed here. I am exactly in the case in which, after the subject response, the timing precision is critical. I would like to have an onset delay close to zero, if this is possible. What does it mean that the display should NOT be terminated upon response? If my design requires that, what should I do? I came up with something, but first I need to be more specific. In particular, imagine that I have 3 frames. Frame1 waits for the subject to press a button. After that, Frame2 appears and stays on the screen for a duration specified in an attribute (DurationA), then Frame3 appears on the screen. Assuming that the OnsetDelay of Frame3 is negligible, but the OnSetDelay of Frame2 goes from 15 to 35ms (too much for my purpose) (this onsetDelay is exactly what I want to reduce as much as possible). I want to be sure that the time from the pressure of the button in Frame1, until the start of Frame3, is exactly DurationA (best case, let's call it CASE1). Let's call the REAL duration from the pressing of the button until the start of Frame3 REALdurationA. Can I manage to have DurationA (the supposed time from the pressing of the button to the start of Frame3) roughly equal to REALDurationA? At least, I want to calculate REALdurationA (second best case, CASE2). I came up with this idea. I could use the cumulative timing system. After frame1, there is a delay before the onset of frame2 (from 16ms to 30ms). With the cumulative timing mode, the frame2 is on the screen for durationA-onSetDelay time. But the total time from the pressure of the button in Frame1, until the onset of Frame3 (which onsetDelay is assumed to be close to 0) should be equal to DurationA. This means that DurationA is roughly equal to REALDurationA. My question is: is this reasoning correct, or I made some silly mistake? Now, assume that the problem cannot be addressed, so I'll settle for just knowing the REALDurationA (CASE2). Like before, assume that the onsetDelay of Frame2 is negligible. Would the REALDurationA just be DurationA+Frame2.onsetDealy, or there is still something else? For example, maybe there are more milliseconds from the moment in which the button is pressed until the moment frame1 ( NOT 2) disappears, and these milliseconds will not be recorded in Frame2.OnsetDelay. If this is specified later in the text, I apologize and come back to reading the manual. Thank you very much, Valerio -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/q8Pf1O7k4rMJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.biscione at gmail.com Mon May 6 21:04:43 2013 From: valerio.biscione at gmail.com (Vaaal) Date: Mon, 6 May 2013 14:04:43 -0700 Subject: dsadsa Message-ID: ddfsfdf -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/s6n9CuqVvfcJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobias.fw at gmail.com Tue May 7 10:31:12 2013 From: tobias.fw at gmail.com (Tobias) Date: Tue, 7 May 2013 03:31:12 -0700 Subject: Polhemus In-Reply-To: Message-ID: To be more precisely: What I need to do is to start a matlab script from E-Prime. "Presentation" has some plugin to connect with Matlab, but E-Prime seems not to have that. But there may be another way... Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: > > Dear all, > > Does anyone have experience with running Polhemus Liberty (the motion > tracking system) with E-Prime? > > Best, > Tobias > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/GxclTVJPyVEJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mspape at cognitology.eu Tue May 7 14:08:28 2013 From: mspape at cognitology.eu (Cognitology) Date: Tue, 7 May 2013 17:08:28 +0300 Subject: FW: Polhemus Message-ID: Hi, Never heard of a way to interface matlab from E-Prime, I?d be interested if anyone would have a way. Of course, you could compile from within matlab and try to go from there, but I suspect the amount of effort would really not be worth it. You could, of course, just forego e-prime and try Psychtoolbox. Best, Michiel From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Tobias Sent: 7. May 2013 13:31 To: e-prime at googlegroups.com Subject: Re: Polhemus To be more precisely: What I need to do is to start a matlab script from E-Prime. "Presentation" has some plugin to connect with Matlab, but E-Prime seems not to have that. But there may be another way... Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: Dear all, Does anyone have experience with running Polhemus Liberty (the motion tracking system) with E-Prime? Best, Tobias -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/GxclTVJPyVEJ. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Tue May 7 14:26:08 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Tue, 7 May 2013 10:26:08 -0400 Subject: FW: Polhemus In-Reply-To: <000e01ce4b2c$5a0f4f00$0e2ded00$@eu> Message-ID: Can you start your MATLAB script from a command line? If so, then you might try using the E-Basic "Shell()" function, see that topic in the E-Basic Help facility. For a user example of this, see http://support.pstnet.com/forum/Topic1338-8-2.aspx . This still leaves a lot to be desired, and beyond that I have no idea. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: >Hi, >Never heard of a way to interface matlab from E-Prime, I'd be >interested if anyone would have a way. Of course, you could compile >from within matlab and try to go from there, but I suspect the >amount of effort would really not be worth it. You could, of course, >just forego e-prime and try Psychtoolbox. >Best, >Michiel > >From: e-prime at googlegroups.com >[mailto:e-prime at googlegroups.com] On Behalf Of Tobias >Sent: 7. May 2013 13:31 >To: e-prime at googlegroups.com >Subject: Re: Polhemus > >To be more precisely: What I need to do is to start a matlab script >from E-Prime. >"Presentation" has some plugin to connect with Matlab, but E-Prime >seems not to have that. But there may be another way... > >Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: >Dear all, > >Does anyone have experience with running Polhemus Liberty (the >motion tracking system) with E-Prime? > >Best, >Tobias -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. From pfc.groot at gmail.com Tue May 7 15:01:32 2013 From: pfc.groot at gmail.com (Paul Groot) Date: Tue, 7 May 2013 17:01:32 +0200 Subject: FW: Polhemus In-Reply-To: <51890f0f.c287ec0a.6c9b.78abSMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: I don't think eprime requires a special plugin like presentation, because matlab can also be started as a so called COM server: Dim MatLab As Object Dim Result As String Dim MReal(1, 3) As Double Dim MImag(1, 3) As Double Set MatLab = CreateObject("Matlab.Application") 'Executing other MATLAB commands Result = MatLab.Execute("surf(peaks)") Debug.Print Result Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8]") Debug.Print Result Result = MatLab.Execute("b = a + a ") Debug.Print Result 'Bring matrix b into VB program MatLab.GetFullMatrix "b", "base", MReal, MImag Debug.Print MReal(1,0) Debug.Print MReal(1,1) Debug.Print MReal(1,2) Debug.Print MReal(1,3) The above will print the following to the Debug window: a = 1 2 3 4 5 6 7 8 b = 2 4 6 8 10 12 14 16 10 12 14 16 The matlab figure window won't be visible though... Best, Paul On 7 May 2013 16:26, David McFarlane wrote: > Can you start your MATLAB script from a command line? If so, then you > might try using the E-Basic "Shell()" function, see that topic in the > E-Basic Help facility. For a user example of this, see > http://support.pstnet.com/**forum/Topic1338-8-2.aspx. This still leaves a lot to be desired, and beyond that I have no idea. > > ----- > David McFarlane > E-Prime training online: http://psychology.msu.edu/** > Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMaster > ) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > any and all questions at http://support.pstnet.com/e%** > 2Dprime/support/login.asp, and they strive to respond to all requests in 24-48 hours, so make full > use of it. 3) In addition, PST offers several instructional videos on > their YouTube channel (http://www.youtube.com/user/**PSTNET). 4) If you do get an answer from PST staff, please extend the courtesy > of posting their reply back here for the sake of others. > \---- > > > > At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: > >> Hi, >> Never heard of a way to interface matlab from E-Prime, I'd be interested >> if anyone would have a way. Of course, you could compile from within matlab >> and try to go from there, but I suspect the amount of effort would really >> not be worth it. You could, of course, just forego e-prime and try >> Psychtoolbox. >> Best, >> Michiel >> >> From: > >> e-prime at googlegroups.com [mailto:e-prime at googlegroups.**com] >> On Behalf Of Tobias >> >> Sent: 7. May 2013 13:31 >> To: > >> e-prime at googlegroups.com >> >> Subject: Re: Polhemus >> >> To be more precisely: What I need to do is to start a matlab script from >> E-Prime. >> "Presentation" has some plugin to connect with Matlab, but E-Prime seems >> not to have that. But there may be another way... >> >> Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: >> Dear all, >> >> Does anyone have experience with running Polhemus Liberty (the motion >> tracking system) with E-Prime? >> >> Best, >> Tobias >> > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe@**googlegroups.com > . > To post to this group, send email to e-prime at googlegroups.com. > For more options, visit https://groups.google.com/**groups/opt_out > . > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From caitlin.hudac at gmail.com Wed May 8 21:57:24 2013 From: caitlin.hudac at gmail.com (Caitlin) Date: Wed, 8 May 2013 14:57:24 -0700 Subject: NTP and TET servers -- Linking EEG and eyetracking Message-ID: Hi there, I've also posted this to the PST forum -- trying to cast a wide net! Appreciate your ideas: I am installing our new eye tracking system (Tobii TX300). I'd like to use a one-computer system (i.e., 1 computer to both run EPrime and Tobii). This would be ideal for us, because we plan on also sending events from EPrime 2 -> NetStation 4.4 (EEG acquisition software). I've run into an interesting conundrum: When I try to run the Tobii Eprime samples, it immediate throws an error, asking for the NTP server. Now, this is without the NetStation package being added to the EPrime experiment. If I open the Mac and start a NetStation session, this permits the EPrime to start the experiment (no NTP error). However, the TET server throws an error: Routine: TET_Connect() Error Script: 2 Error Text: Failed to communicate with server. Disconnected. TET support will now be disabled. The eye tracking connection will be closed and further errors will be suppressed. I'm a baffled. I've entered the correct server information (serverID.local.) is entered into the IP Address/Name box for the TobiiEye Tracker Device Properties. The other options I left to the default (Port = 4455, Sync mode=Local, Max count =4096). I've pinged the server from the command prompt, and it the PC and Tobii are connected just fine. So this all comes down to a few questions: 1. Why is EPrime requiring the NTP server when running an experiment without the NTP package or devices? Is there a clock setting that needs to be changed after adding the Tobii EPrime Extensions pack? 2. What is going on with the TET server? I'm out of ideas for troubleshooting. I've tried restarting the systems in different orders; I've double checked the serverID values, successfully ping the Tobii before running experiment, etc. I really appreciate your help! cheers, -Caitlin UNL, Graduate student -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/UtiPJa7AqhsJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobias.fw at gmail.com Thu May 9 19:47:22 2013 From: tobias.fw at gmail.com (Tobias) Date: Thu, 9 May 2013 12:47:22 -0700 Subject: FW: Polhemus In-Reply-To: <51890f0f.c287ec0a.6c9b.78abSMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thanks for your postings! I tried with the shell function first because that seems to be the easiest way. To begin with I just wanted to try starting matlab from within E-Prime, without any matlab script. I used this E-Prime script: Dim snd as String Dim MyAppID As String snd = "C:\Program Files\MATLAB\R2012a\bin\matlab.exe" MyAppID = Shell(snd) ... and the following error message occured: "The following runtume error occurred: Device I/O error, Line:205; Error Number 57" So I had a closer look at the link you posted (by this Matthias guy) and thought maybe I need to pause E-Prime. So I used this code: "Dim snd as String Dim MyAppID As String Rte.DeviceManager.Suspend snd = "C:\Program Files\MATLAB\R2012a\bin\matlab.exe" MyAppID = Shell(snd,0) 'use 0 instead of 1 hide the wmp sleep(10000)" However, same error message :-( According to the interwebs, this error message has to do with external devices. But I don't use any. Puzzling! Do you have any script for E-Prime that just starts some program, whatever it may be? Thanks a lot, Tobias Rte.DeviceManager.Resume Am Dienstag, 7. Mai 2013 16:26:08 UTC+2 schrieb McFarlane, David: > > Can you start your MATLAB script from a command line? If so, then > you might try using the E-Basic "Shell()" function, see that topic in > the E-Basic Help facility. For a user example of this, see > http://support.pstnet.com/forum/Topic1338-8-2.aspx . This still > leaves a lot to be desired, and beyond that I have no idea. > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff > take any and all questions at > http://support.pstnet.com/e%2Dprime/support/login.asp , and they > strive to respond to all requests in 24-48 hours, so make full use of > it. 3) In addition, PST offers several instructional videos on their > YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do > get an answer from PST staff, please extend the courtesy of posting > their reply back here for the sake of others. > \---- > > > At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: > >Hi, > >Never heard of a way to interface matlab from E-Prime, I'd be > >interested if anyone would have a way. Of course, you could compile > >from within matlab and try to go from there, but I suspect the > >amount of effort would really not be worth it. You could, of course, > >just forego e-prime and try Psychtoolbox. > >Best, > >Michiel > > > >From: > > e-p... at googlegroups.com > >[mailto:e-p... at googlegroups.com ] On Behalf Of Tobias > >Sent: 7. May 2013 13:31 > >To: >e-p... at googlegroups.com > >Subject: Re: Polhemus > > > >To be more precisely: What I need to do is to start a matlab script > >from E-Prime. > >"Presentation" has some plugin to connect with Matlab, but E-Prime > >seems not to have that. But there may be another way... > > > >Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: > >Dear all, > > > >Does anyone have experience with running Polhemus Liberty (the > >motion tracking system) with E-Prime? > > > >Best, > >Tobias > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/q6fQNPzMg0UJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu May 9 20:06:50 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 9 May 2013 16:06:50 -0400 Subject: FW: Polhemus In-Reply-To: Message-ID: Tobias, The "AppActivate" topic in the E-Basic Help facility contains a complete code example. I went ahead and pasted the complete example into good-old EP1 E-Run to test it out myself. Sadly, it does not work. First, it fails to declare its "id" variable. Fixing that got me to a "Path/File access error". Substituting "notepad.exe" for "clock.exe" then got me to a "Can't find window" error on the AppActivate line. Using the id variable instead of a window name string there got me to a "Can't find window" error on the AppClose line. Once again using the id variable instead of a window name string got me a fully working example. So here is the fully working result: Sub Main() dim id id = Shell("notepad.exe",1) AppActivate id Sleep(2000) AppClose id End Sub Of course, to test this in an E-Studio inline object (instead of EP1 E-Run), you need to leave out the first and last lines (Sub Main(), End Sub). And that is everything I know about this business :). ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) At 5/9/2013 03:47 PM Thursday, Tobias wrote: >Thanks for your postings! > >I tried with the shell function first because that seems to be the >easiest way. To begin with I just wanted to try starting matlab from >within E-Prime, without any matlab script. > >I used this E-Prime script: > >Dim snd as String >Dim MyAppID As String >snd = "C:\Program Files\MATLAB\R2012a\bin\matlab.exe" >MyAppID = Shell(snd) > >... and the following error message occured: >"The following runtume error occurred: Device I/O error, Line:205; >Error Number 57" > >So I had a closer look at the link you posted (by this Matthias guy) >and thought maybe I need to pause E-Prime. So I used this code: > >"Dim snd as String >Dim MyAppID As String >Rte.DeviceManager.Suspend >snd = "C:\Program Files\MATLAB\R2012a\bin\matlab.exe" >MyAppID = Shell(snd,0) 'use 0 instead of 1 hide the wmp >sleep(10000)" > >However, same error message :-( > >According to the interwebs, this error message has to do with >external devices. But I don't use any. Puzzling! >Do you have any script for E-Prime that just starts some program, >whatever it may be? > >Thanks a lot, >Tobias >Rte.DeviceManager.Resume > > >Am Dienstag, 7. Mai 2013 16:26:08 UTC+2 schrieb McFarlane, David: >Can you start your MATLAB script from a command line? If so, then >you might try using the E-Basic "Shell()" function, see that topic in >the E-Basic Help facility. For a user example of this, see >http://support.pstnet.com/forum/Topic1338-8-2.aspx >. This still >leaves a lot to be desired, and beyond that I have no idea. > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx > >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at >http://support.pstnet.com/e%2Dprime/support/login.asp >, and they >strive to respond to all requests in 24-48 hours, so make full use of >it. 3) In addition, PST offers several instructional videos on their >YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do >get an answer from PST staff, please extend the courtesy of posting >their reply back here for the sake of others. >\---- > > >At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: > >Hi, > >Never heard of a way to interface matlab from E-Prime, I'd be > >interested if anyone would have a way. Of course, you could compile > >from within matlab and try to go from there, but I suspect the > >amount of effort would really not be worth it. You could, of course, > >just forego e-prime and try Psychtoolbox. > >Best, > >Michiel > > > >From: e-p... at googlegroups.com > >[mailto:e-p... at googlegroups.com] On Behalf Of Tobias > >Sent: 7. May 2013 13:31 > >To: e-p... at googlegroups.com > >Subject: Re: Polhemus > > > >To be more precisely: What I need to do is to start a matlab script > >from E-Prime. > >"Presentation" has some plugin to connect with Matlab, but E-Prime > >seems not to have that. But there may be another way... > > > >Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: > >Dear all, > > > >Does anyone have experience with running Polhemus Liberty (the > >motion tracking system) with E-Prime? > > > >Best, > >Tobias -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. From bsmith.lap at gmail.com Fri May 10 19:20:47 2013 From: bsmith.lap at gmail.com (Benjamin) Date: Fri, 10 May 2013 12:20:47 -0700 Subject: How do you tell which input device was used to make the most recent response to a slide? Message-ID: How do you tell which input device was used to make the most recent response to a slide or object? You do it with SlideNameGoesHere.Device , which will give you a lovely String. Just another note to myself and anyone else having trouble with E-Basic Help. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/cSsFaMwLURkJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From julf at pdx.edu Fri May 10 20:40:21 2013 From: julf at pdx.edu (Julia Fernandez) Date: Fri, 10 May 2013 13:40:21 -0700 Subject: Sequences experiment Message-ID: I'm an E-Prime newbie designing an artificial grammar experiment for my final Master's project. In this experiment, subjects see a string of symbols and have to recreate the sequence using an SR box marked with matching symbols, i.e. a subject could see a string of a circle, a diamond shape and a poundsign and need to press the corresponding buttons. In the program, this would be represented as numbers ("1" for a circle + "4" for diamond + "5" for a poundsign). I got everything up and running but hit a wall. The sequences are of different lengths, 3-6 digits. I changed the max allowable to 6 so now Eprime only accepts strings of 6 digits. If you correctly enter a 6-digit string then it gives a "correct" screen. If you have a shorter sequence, Eprime won't accept it until you add additional digits and then, of course, it's marked incorrect. Can anyone help? Thanks, Julia -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobias.fw at gmail.com Sun May 12 14:16:05 2013 From: tobias.fw at gmail.com (Tobias) Date: Sun, 12 May 2013 07:16:05 -0700 Subject: FW: Polhemus In-Reply-To: <518c01f4.4e27320a.6f8f.3648SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: David, thanks for your suggestion. I used your code and it worked fine. However, the code does not work with matlab. The same error you had earlier ("Can't find window") appears. Nevertheless, Matlab starts and even executes a script if I am using sth like "id = Shell("matlab -r script.m",1) ". So in principle it works but of course I don't want to have this error message since that interrupts the whole program. Do you have any idea how to work around this window error problem? Best, Tobias Am Donnerstag, 9. Mai 2013 22:06:50 UTC+2 schrieb McFarlane, David: > > Tobias, > > The "AppActivate" topic in the E-Basic Help facility contains a > complete code example. I went ahead and pasted the complete example > into good-old EP1 E-Run to test it out myself. Sadly, it does not > work. First, it fails to declare its "id" variable. Fixing that got > me to a "Path/File access error". Substituting "notepad.exe" for > "clock.exe" then got me to a "Can't find window" error on the > AppActivate line. Using the id variable instead of a window name > string there got me to a "Can't find window" error on the AppClose > line. Once again using the id variable instead of a window name > string got me a fully working example. So here is the fully working > result: > > Sub Main() > dim id > id = Shell("notepad.exe",1) > AppActivate id > Sleep(2000) > AppClose id > End Sub > > Of course, to test this in an E-Studio inline object (instead of EP1 > E-Run), you need to leave out the first and last lines (Sub Main(), End > Sub). > > And that is everything I know about this business :). > > ----- > David McFarlane > E-Prime training > online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) > > > At 5/9/2013 03:47 PM Thursday, Tobias wrote: > >Thanks for your postings! > > > >I tried with the shell function first because that seems to be the > >easiest way. To begin with I just wanted to try starting matlab from > >within E-Prime, without any matlab script. > > > >I used this E-Prime script: > > > >Dim snd as String > >Dim MyAppID As String > >snd = "C:\Program Files\MATLAB\R2012a\bin\matlab.exe" > >MyAppID = Shell(snd) > > > >... and the following error message occured: > >"The following runtume error occurred: Device I/O error, Line:205; > >Error Number 57" > > > >So I had a closer look at the link you posted (by this Matthias guy) > >and thought maybe I need to pause E-Prime. So I used this code: > > > >"Dim snd as String > >Dim MyAppID As String > >Rte.DeviceManager.Suspend > >snd = "C:\Program Files\MATLAB\R2012a\bin\matlab.exe" > >MyAppID = Shell(snd,0) 'use 0 instead of 1 hide the wmp > >sleep(10000)" > > > >However, same error message :-( > > > >According to the interwebs, this error message has to do with > >external devices. But I don't use any. Puzzling! > >Do you have any script for E-Prime that just starts some program, > >whatever it may be? > > > >Thanks a lot, > >Tobias > >Rte.DeviceManager.Resume > > > > > >Am Dienstag, 7. Mai 2013 16:26:08 UTC+2 schrieb McFarlane, David: > >Can you start your MATLAB script from a command line? If so, then > >you might try using the E-Basic "Shell()" function, see that topic in > >the E-Basic Help facility. For a user example of this, see > > > http://support.pstnet.com/forum/Topic1338-8-2.aspx > >. This still > >leaves a lot to be desired, and beyond that I have no idea. > > > >----- > >David McFarlane > >E-Prime training > >online: > > > http://psychology.msu.edu/Workshops_Courses/eprime.aspx > > > >Twitter: @EPrimeMaster > >(https://twitter.com/EPrimeMaster) > > > >/---- > >Stock reminder: 1) I do not work for PST. 2) PST's trained staff > >take any and all questions at > > > http://support.pstnet.com/e%2Dprime/support/login.asp > >, and they > >strive to respond to all requests in 24-48 hours, so make full use of > >it. 3) In addition, PST offers several instructional videos on their > >YouTube channel > >(http://www.youtube.com/user/PSTNET > >). 4) If you do > >get an answer from PST staff, please extend the courtesy of posting > >their reply back here for the sake of others. > >\---- > > > > > >At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: > > >Hi, > > >Never heard of a way to interface matlab from E-Prime, I'd be > > >interested if anyone would have a way. Of course, you could compile > > >from within matlab and try to go from there, but I suspect the > > >amount of effort would really not be worth it. You could, of course, > > >just forego e-prime and try Psychtoolbox. > > >Best, > > >Michiel > > > > > >From: e-p... at googlegroups.com > > >[mailto:e-p... at googlegroups.com] On Behalf Of Tobias > > >Sent: 7. May 2013 13:31 > > >To: e-p... at googlegroups.com > > >Subject: Re: Polhemus > > > > > >To be more precisely: What I need to do is to start a matlab script > > >from E-Prime. > > >"Presentation" has some plugin to connect with Matlab, but E-Prime > > >seems not to have that. But there may be another way... > > > > > >Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: > > >Dear all, > > > > > >Does anyone have experience with running Polhemus Liberty (the > > >motion tracking system) with E-Prime? > > > > > >Best, > > >Tobias > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/XmE7DYWkE9EJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobias.fw at gmail.com Mon May 13 10:19:21 2013 From: tobias.fw at gmail.com (Tobias) Date: Mon, 13 May 2013 03:19:21 -0700 Subject: FW: Polhemus In-Reply-To: Message-ID: Dear Paul, thanks a lot for this code. It works very well. There are some issued I have, though. >From your script I understand that there are at least two ways of getting data from Matlab to E-Prime: Execute and getfullmatrix. Are there other ways? Also, it seems that there is no way of transmitting a variable from E-Prime to Matlab, only string values such as "b = a + a". Of course I could always use sth like Result = MatLab.Execute(CStr(eprimeVar)) If I wanted to get the variable eprimeVar from E-Prime to Matlab. But maybe there is an easier way? Best, Tobias Am Dienstag, 7. Mai 2013 17:01:32 UTC+2 schrieb Paul Groot: > > I don't think eprime requires a special plugin like presentation, because > matlab can also be started as a so called COM server: > > Dim MatLab As Object > Dim Result As String > Dim MReal(1, 3) As Double > Dim MImag(1, 3) As Double > > Set MatLab = CreateObject("Matlab.Application") > > 'Executing other MATLAB commands > Result = MatLab.Execute("surf(peaks)") > Debug.Print Result > > Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8]") > Debug.Print Result > > Result = MatLab.Execute("b = a + a ") > Debug.Print Result > > 'Bring matrix b into VB program > MatLab.GetFullMatrix "b", "base", MReal, MImag > > Debug.Print MReal(1,0) > Debug.Print MReal(1,1) > Debug.Print MReal(1,2) > Debug.Print MReal(1,3) > > > The above will print the following to the Debug window: > > a = > > 1 2 3 4 > 5 6 7 8 > > > > b = > > 2 4 6 8 > 10 12 14 16 > > > 10 > 12 > 14 > 16 > > The matlab figure window won't be visible though... > > Best, > Paul > > > > On 7 May 2013 16:26, David McFarlane >wrote: > >> Can you start your MATLAB script from a command line? If so, then you >> might try using the E-Basic "Shell()" function, see that topic in the >> E-Basic Help facility. For a user example of this, see >> http://support.pstnet.com/**forum/Topic1338-8-2.aspx. This still leaves a lot to be desired, and beyond that I have no idea. >> >> ----- >> David McFarlane >> E-Prime training online: http://psychology.msu.edu/** >> Workshops_Courses/eprime.aspx >> Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMaster >> ) >> >> /---- >> Stock reminder: 1) I do not work for PST. 2) PST's trained staff take >> any and all questions at http://support.pstnet.com/e%** >> 2Dprime/support/login.asp, and they strive to respond to all requests in 24-48 hours, so make full >> use of it. 3) In addition, PST offers several instructional videos on >> their YouTube channel (http://www.youtube.com/user/**PSTNET). 4) If you do get an answer from PST staff, please extend the courtesy >> of posting their reply back here for the sake of others. >> \---- >> >> >> >> At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: >> >>> Hi, >>> Never heard of a way to interface matlab from E-Prime, I'd be interested >>> if anyone would have a way. Of course, you could compile from within matlab >>> and try to go from there, but I suspect the amount of effort would really >>> not be worth it. You could, of course, just forego e-prime and try >>> Psychtoolbox. >>> Best, >>> Michiel >>> >>> From: > >>> e-p... at googlegroups.com [mailto:e-p... at googlegroups.**com] >>> On Behalf Of Tobias >>> >>> Sent: 7. May 2013 13:31 >>> To: > >>> e-p... at googlegroups.com >>> >>> Subject: Re: Polhemus >>> >>> To be more precisely: What I need to do is to start a matlab script from >>> E-Prime. >>> "Presentation" has some plugin to connect with Matlab, but E-Prime seems >>> not to have that. But there may be another way... >>> >>> Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: >>> Dear all, >>> >>> Does anyone have experience with running Polhemus Liberty (the motion >>> tracking system) with E-Prime? >>> >>> Best, >>> Tobias >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "E-Prime" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to e-prime+u...@**googlegroups.com . >> To post to this group, send email to e-p... at googlegroups.com >> . >> For more options, visit https://groups.google.com/**groups/opt_out >> . >> >> >> > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/kIUzT6nN__AJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From swathi.bwh at gmail.com Mon May 13 16:08:18 2013 From: swathi.bwh at gmail.com (Swathi) Date: Mon, 13 May 2013 09:08:18 -0700 Subject: Nordic Neuro Lab Sync Box Message-ID: Hello everyone, We are using Nordic NeuroLab's Sync Box to synchronize our Eprime experiment to the MRI trigger signal. Currently the Sync Box is setup in the USB Serial Mode and it sends ASCII code for the character "s" to the stimulus presentation PC when a trigger signal is received from MR scanner. I have setup a serial device in Eprime and have set the necessary parameters. But I dont exactly know how to bridge (what coding is required in Eprime) that signal into the Eprime script. Any help is appreciated. Thank you, Swathi -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/7PLTQsDsyWgJ. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pfc.groot at gmail.com Mon May 13 16:23:54 2013 From: pfc.groot at gmail.com (Paul Groot) Date: Mon, 13 May 2013 18:23:54 +0200 Subject: FW: Polhemus In-Reply-To: Message-ID: Hi Tobias, More detailed information about matlab's COM interface can be found here: http://www.mathworks.nl/help/matlab/call-matlab-com-automation-server.html There are a few functions available to pass variables, character array's, matrices and workspaces between the two applications, without the need to convert strings. The execute command should be used to execute scripts; not for passing variables (although you can do this off course). Large objects (like bitmap images) could also be passed by using external files (i.e. only passing the name of the created file). Best Paul On 13 May 2013 12:19, Tobias wrote: > Dear Paul, > > thanks a lot for this code. It works very well. There are some issued I > have, though. > > From your script I understand that there are at least two ways of getting > data from Matlab to E-Prime: Execute and getfullmatrix. Are there other > ways? > Also, it seems that there is no way of transmitting a variable from > E-Prime to Matlab, only string values such as "b = a + a". > Of course I could always use sth like > > Result = MatLab.Execute(CStr(eprimeVar)) > > If I wanted to get the variable eprimeVar from E-Prime to Matlab. But > maybe there is an easier way? > > Best, > Tobias > > > > Am Dienstag, 7. Mai 2013 17:01:32 UTC+2 schrieb Paul Groot: >> >> I don't think eprime requires a special plugin like presentation, because >> matlab can also be started as a so called COM server: >> >> Dim MatLab As Object >> Dim Result As String >> Dim MReal(1, 3) As Double >> Dim MImag(1, 3) As Double >> >> Set MatLab = CreateObject("Matlab.**Application") >> >> 'Executing other MATLAB commands >> Result = MatLab.Execute("surf(peaks)") >> Debug.Print Result >> >> Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8]") >> Debug.Print Result >> >> Result = MatLab.Execute("b = a + a ") >> Debug.Print Result >> >> 'Bring matrix b into VB program >> MatLab.GetFullMatrix "b", "base", MReal, MImag >> >> Debug.Print MReal(1,0) >> Debug.Print MReal(1,1) >> Debug.Print MReal(1,2) >> Debug.Print MReal(1,3) >> >> >> The above will print the following to the Debug window: >> >> a = >> >> 1 2 3 4 >> 5 6 7 8 >> >> >> >> b = >> >> 2 4 6 8 >> 10 12 14 16 >> >> >> 10 >> 12 >> 14 >> 16 >> >> The matlab figure window won't be visible though... >> >> Best, >> Paul >> >> >> >> On 7 May 2013 16:26, David McFarlane wrote: >> >>> Can you start your MATLAB script from a command line? If so, then you >>> might try using the E-Basic "Shell()" function, see that topic in the >>> E-Basic Help facility. For a user example of this, see >>> http://support.pstnet.com/**foru**m/Topic1338-8-2.aspx. This still leaves a lot to be desired, and beyond that I have no idea. >>> >>> ----- >>> David McFarlane >>> E-Prime training online: http://psychology.msu.edu/**Wor** >>> kshops_Courses/eprime.aspx >>> Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMas**ter >>> ) >>> >>> /---- >>> Stock reminder: 1) I do not work for PST. 2) PST's trained staff take >>> any and all questions at http://support.pstnet.com/e%**2D** >>> prime/support/login.asp, and they strive to respond to all requests in 24-48 hours, so make full >>> use of it. 3) In addition, PST offers several instructional videos on >>> their YouTube channel (http://www.youtube.com/user/**P**STNET). 4) If you do get an answer from PST staff, please extend the courtesy >>> of posting their reply back here for the sake of others. >>> \---- >>> >>> >>> >>> At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: >>> >>>> Hi, >>>> Never heard of a way to interface matlab from E-Prime, I'd be >>>> interested if anyone would have a way. Of course, you could compile from >>>> within matlab and try to go from there, but I suspect the amount of effort >>>> would really not be worth it. You could, of course, just forego e-prime and >>>> try Psychtoolbox. >>>> Best, >>>> Michiel >>>> >>>> From: e-p... at googlegroups.com[mailto: >>>> e-p... at googlegroups.**c**om] On Behalf Of Tobias >>>> >>>> Sent: 7. May 2013 13:31 >>>> To: e-p... at googlegroups.com >>>> >>>> Subject: Re: Polhemus >>>> >>>> To be more precisely: What I need to do is to start a matlab script >>>> from E-Prime. >>>> "Presentation" has some plugin to connect with Matlab, but E-Prime >>>> seems not to have that. But there may be another way... >>>> >>>> Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: >>>> Dear all, >>>> >>>> Does anyone have experience with running Polhemus Liberty (the motion >>>> tracking system) with E-Prime? >>>> >>>> Best, >>>> Tobias >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "E-Prime" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to e-prime+u...@**googlegrou**ps.com. >>> To post to this group, send email to e-p... at googlegroups.com. >>> For more options, visit https://groups.google.com/**grou**ps/opt_out >>> . >>> >>> >>> >> -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msg/e-prime/-/kIUzT6nN__AJ. > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From elisellemoyne at gmail.com Wed May 15 21:41:52 2013 From: elisellemoyne at gmail.com (Elilab) Date: Wed, 15 May 2013 14:41:52 -0700 Subject: Two subjects at same time (prisoner's dilemma) Message-ID: We're trying to get e-prime to control the experiment for two subjects at the same time with a prisoner's dilemma task. Can it communicate between two computers? Should we simply have 2 screens for one computer? Can e-prime collect responses from 2 keyboards at the same time and present feedback according to both inputs? Has anyone done something similar to this in the past? Thanks -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5b9145bf-9d47-43c9-8e80-e65a94eb3f09%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From christina.tzeng at gmail.com Wed May 15 22:56:00 2013 From: christina.tzeng at gmail.com (Sound Experiment) Date: Wed, 15 May 2013 15:56:00 -0700 Subject: Opening Eprime 2 Professional files in Non-Professional version Message-ID: Hello, I currently have Eprime 2 (2.0.10.242) installed. I'm trying to open ebs2 and es2 files that were created in Eprime 2 Professional. Is there a way for me to do this? I can't seem to just double click on the files to open them. Thank you. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/d6d04012-ec4c-4350-bf19-817eab2a8b13%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pfc.groot at gmail.com Thu May 16 10:59:18 2013 From: pfc.groot at gmail.com (Paul Groot) Date: Thu, 16 May 2013 12:59:18 +0200 Subject: Two subjects at same time (prisoner's dilemma) In-Reply-To: <5b9145bf-9d47-43c9-8e80-e65a94eb3f09@googlegroups.com> Message-ID: Elise, Two displays: yes, that's possible (eprime 2 pro) Two keyboards: no (although combining different types of input devices is possible) Creating a parallel task in a single script will not be trivial, if not impossible in most cases. So, a single computer set-up would not be my favourite choice. Two separate computers will be more flexible. Communication between the systems can be done in several ways. A direct serial (RS232, using nulmodem cable) or network (TCP) connection is possible, but may be difficult to do if you're not already experienced with E-Basic scripting. Handling the (asynchronous) data stream will be the most difficult part. (Depending on the complexity of the exchanged information.) Another option is to create files on a network share that can be accessed from both computers. Although this seems easier to do, this not a very elegant and reliable method. In very specific cases a mixture of both methods might also work. For example: a simple TCP data stream for sending events or triggers, and a file share for exchanging more complex event related info using files. Best Paul On 15 May 2013 23:41, Elilab wrote: > We're trying to get e-prime to control the experiment for two subjects at > the same time with a prisoner's dilemma task. Can it communicate between > two computers? Should we simply have 2 screens for one computer? Can > e-prime collect responses from 2 keyboards at the same time and present > feedback according to both inputs? > > Has anyone done something similar to this in the past? > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/5b9145bf-9d47-43c9-8e80-e65a94eb3f09%40googlegroups.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu May 16 14:30:31 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 16 May 2013 10:30:31 -0400 Subject: Opening Eprime 2 Professional files in Non-Professional version In-Reply-To: Message-ID: No, you really need EP2 Pro in order to work with .es2 or .ebs2 files in the Pro format, the "base" edition of EP2 will not read them. But please do not take my word for that, contact PST Web Support yourself. I regularly advise everyone to spend the extra $200 for Pro, it is well worth the extra cost for many reasons. You might contact PST and see if you can buy an upgraded license. ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 5/15/2013 06:56 PM Wednesday, Sound Experiment wrote: >I currently have Eprime 2 (2.0.10.242) installed. I'm trying to open >ebs2 and es2 files that were created in Eprime 2 Professional. Is >there a way for me to do this? I can't seem to just double click on >the files to open them. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. From christina.tzeng at gmail.com Thu May 16 14:57:07 2013 From: christina.tzeng at gmail.com (Christina Tzeng) Date: Thu, 16 May 2013 10:57:07 -0400 Subject: Opening Eprime 2 Professional files in Non-Professional version In-Reply-To: <5194ed8a.4262320a.22ee.1fa2SMTPIN_ADDED_MISSING@gmr-mx.google.com> Message-ID: Thank you. I did come across this in a previous pst thread. Is the info here no longer relevant? _______ http://www.pstnet.com/forum/Topic884-12-1.aspx On Thu, May 16, 2013 at 10:30 AM, David McFarlane wrote: > No, you really need EP2 Pro in order to work with .es2 or .ebs2 files in > the Pro format, the "base" edition of EP2 will not read them. But please > do not take my word for that, contact PST Web Support yourself. I > regularly advise everyone to spend the extra $200 for Pro, it is well worth > the extra cost for many reasons. You might contact PST and see if you can > buy an upgraded license. > > ----- > David McFarlane > E-Prime training online: http://psychology.msu.edu/** > Workshops_Courses/eprime.aspx > Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMaster > ) > > /---- > Stock reminder: 1) I do not work for PST. 2) PST's trained staff take > any and all questions at http://support.pstnet.com/e%** > 2Dprime/support/login.asp, and they strive to respond to all requests in 24-48 hours, so make full > use of it. 3) In addition, PST offers several instructional videos on > their YouTube channel (http://www.youtube.com/user/**PSTNET). 4) If you do get an answer from PST staff, please extend the courtesy > of posting their reply back here for the sake of others. > \---- > > > > At 5/15/2013 06:56 PM Wednesday, Sound Experiment wrote: > >> I currently have Eprime 2 (2.0.10.242) installed. I'm trying to open ebs2 >> and es2 files that were created in Eprime 2 Professional. Is there a way >> for me to do this? I can't seem to just double click on the files to open >> them. >> > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe@**googlegroups.com > . > To post to this group, send email to e-prime at googlegroups.com. > For more options, visit https://groups.google.com/**groups/opt_out > . > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Thu May 16 15:07:16 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Thu, 16 May 2013 11:07:16 -0400 Subject: Opening Eprime 2 Professional files in Non-Professional version In-Reply-To: Message-ID: AFAIK, everything in that earlier thread still applies. So I should slightly revise my earlier broad statement here: EP2 "base" *might* run .ebs2 Pro files as long as they do not use any Pro features. But I have not tested that lately, and do not guarantee it. Really, everyone should just spend the extra $200 for the Pro edition, Pro is the true "standard", while Standard is merely "base". -- dkm At 5/16/2013 10:57 AM Thursday, Christina Tzeng wrote: >Thank you. I did come across this in a previous pst thread. Is the >info here no longer relevant? >_______ > >http://www.pstnet.com/forum/Topic884-12-1.aspx > > >On Thu, May 16, 2013 at 10:30 AM, David McFarlane ><mcfarla9 at msu.edu> wrote: >No, you really need EP2 Pro in order to work with .es2 or .ebs2 >files in the Pro format, the "base" edition of EP2 will not read >them. But please do not take my word for that, contact PST Web >Support yourself. I regularly advise everyone to spend the extra >$200 for Pro, it is well worth the extra cost for many reasons. You >might contact PST and see if you can buy an upgraded license. > >----- >David McFarlane >E-Prime training >online: >http://psychology.msu.edu/Workshops_Courses/eprime.aspx >Twitter: @EPrimeMaster >(https://twitter.com/EPrimeMaster) > >/---- >Stock reminder: 1) I do not work for PST. 2) PST's trained staff >take any and all questions at >http://support.pstnet.com/e%2Dprime/support/login.asp >, and they strive to respond to all requests in 24-48 hours, so make >full use of it. 3) In addition, PST offers several instructional >videos on their YouTube channel >(http://www.youtube.com/user/PSTNET >). 4) If you do get an answer from PST staff, please extend the >courtesy of posting their reply back here for the sake of others. >\---- > > > >At 5/15/2013 06:56 PM Wednesday, Sound Experiment wrote: >I currently have Eprime 2 (2.0.10.242) installed. I'm trying to open >ebs2 and es2 files that were created in Eprime 2 Professional. Is >there a way for me to do this? I can't seem to just double click on >the files to open them. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. From elisellemoyne at gmail.com Thu May 16 17:56:12 2013 From: elisellemoyne at gmail.com (Elilab) Date: Thu, 16 May 2013 10:56:12 -0700 Subject: Two subjects at same time (prisoner's dilemma) In-Reply-To: Message-ID: Thanks Paul, much more complicated than I expected! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/7cc20319-958e-4721-9eb4-de4fdaac8ae3%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. From sbeckett91 at gmail.com Fri May 17 17:52:33 2013 From: sbeckett91 at gmail.com (Shawn Byron Beckett) Date: Fri, 17 May 2013 10:52:33 -0700 Subject: Noob Trying to Program Auditory n-back task Message-ID: Hello, I am a complete E-Prime neophyte (a summer student), and so could use a bit of help to point me in the right direction. My experiment is composed of two (simultaneously presented) activities, to study the effects of divided attention: 1) I am trying to run an auditory 2-back task, where the Subject hears words belonging to different categories (e.g. ANIMALS, FRUIT, JOBS) at a specific rate (e.g. 1 word every 2 seconds). If they hear a word from the same category as the one presented 2 prior, they hit "Yes." Otherwise, they hit "No." For example, the sequence [WORD(correct response)]: COW(no) DOG(no) PEAR(no) LAWYER(no) BANANA(yes) PLUMBER(yes) NURSE(no) In this sequence, "banana" and "plumber" are both preceded 2 back by other items ("pear" and "lawyer" respectively) that belong to their same categories. 2) The difficulty with this is that I am going to have another task running at the same time, which is a visual task that is also presented in E-Prime. The Subject will have to discriminate between large and small objects on-screen, in which the correct answer must be given before progress can occur. The length of time that the Subject will be performing this task will be set by the length of time allotted to the auditory task above. So the whole procedure will be over in say, 1 minute. I am not sure how to model these, since they are two different tasks, ostensibly running on two machines, that would need to be syncronized so that they start and stop at the same time. Any ideas on how/if this is possible would be very helpful!! Thank you, Shawn -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/00daa798-3a03-44a2-90ff-bb316d85cba3%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cchristner91 at gmail.com Wed May 22 01:19:52 2013 From: cchristner91 at gmail.com (Corey Christner) Date: Tue, 21 May 2013 18:19:52 -0700 Subject: E prime casino game code Message-ID: Hey everyone, I'm a Junior psychology student, and am conducting an experiment dealing with Gambler's Fallacy this fall. I am trying to find code for a roulette wheel game, or at least get tips on how to write one. I'm brand new to the E prime program so any help would be appreciated. If you would like any more information or have any questions to ask, feel free! -Corey -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/c6cecb9a-c34f-4afd-a9b3-72178bd99bb7%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pipgriffiths86 at gmail.com Wed May 22 12:22:53 2013 From: pipgriffiths86 at gmail.com (Pip) Date: Wed, 22 May 2013 13:22:53 +0100 Subject: E prime casino game code In-Reply-To: Message-ID: What's your experimental procedure? Sent from my iPhone On 22 May 2013, at 02:19, Corey Christner wrote: > Hey everyone, > > I'm a Junior psychology student, and am conducting an experiment dealing with Gambler's Fallacy this fall. I am trying to find code for a roulette wheel game, or at least get tips on how to write one. I'm brand new to the E prime program so any help would be appreciated. If you would like any more information or have any questions to ask, feel free! > > -Corey > -- > You received this message because you are subscribed to the Google Groups "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/c6cecb9a-c34f-4afd-a9b3-72178bd99bb7%40googlegroups.com?hl=en-US. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/6473386F-B091-4054-8244-D52B4CAF48FE%40gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From baltimore.ben at gmail.com Wed May 22 13:36:10 2013 From: baltimore.ben at gmail.com (ben robinson) Date: Wed, 22 May 2013 09:36:10 -0400 Subject: E prime casino game code In-Reply-To: Message-ID: It won't be the easiest thing to do if you've never programmed before, but not impossible. Take it one step at a time. Here's how I made a roulette wheel recently: 1) Learn to drawn a circle onscreen in an inline. This will eventually be your roulette wheel. 2) Learn to drawn radii at regular intervals around the circle, for as many slices as you'll want on your wheel. Use code to iterate the drawing of the first radius as many times as you need around the circle (For radiusNumber = 1 to NUMBER_OF_TOTAL_RADII; Next radiusNumber). 3) Try to assign a different color to each slice for as many outcomes as you anticipate needing on your wheel - if it's just win vs not win, you'll only need two colors. 4) Now whatever code you've used to accomplish the above, try to make that iterative (using a similar For Loop) so that the same wheel you've just drawn can be drawn once for each step of a full rotation, because eventually the wheel will need to spin and you want the colors of your slices to travel with their respective slices around a full rotation. 5) Save each step of this iterative drawing process to a different offScreenCanvas so that you can later copy and paste the various offScreenCanvases onto your main cavas. 6) Draw a little arrow or something to indicate visually the location where a winning slice will be determined. You know, the ticker thing that goes tic-tic-tic-tic-tic like in The Price Is Right. 7) Write code to draw the wheel spinning for a period of time. Maybe find a .wav file online for the sound of a roulette wheel spinning, and draw the wheel spinning for as long as it takes the .wav file to play to completion. Make sure you add enough randomness to this spinning process or it will be easy for the participant to anticipate given the wheel's starting position, which slice will wind up a winner. 8) Write code to check the color of the pixel shown near the point of your arrow, and perform different actions given this color. This way, when the wheel finishes spinning, you check to see the color of the slice immediately in front of the arrow. This is the winning slice, and the color of the pixel should tell you what outcome to present the participant. Hope that helps. On Tue, May 21, 2013 at 9:19 PM, Corey Christner wrote: > Hey everyone, > > I'm a Junior psychology student, and am conducting an experiment dealing > with Gambler's Fallacy this fall. I am trying to find code for a roulette > wheel game, or at least get tips on how to write one. I'm brand new to the > E prime program so any help would be appreciated. If you would like any > more information or have any questions to ask, feel free! > > -Corey > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/c6cecb9a-c34f-4afd-a9b3-72178bd99bb7%40googlegroups.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CABkDJUd9cipoO-gUrw8ssoFMTYm3rcPOzmN4-gDKqkHRydp3Rg%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cchristner91 at gmail.com Thu May 23 03:31:18 2013 From: cchristner91 at gmail.com (Corey Christner) Date: Wed, 22 May 2013 20:31:18 -0700 Subject: E prime casino game code In-Reply-To: <6473386F-B091-4054-8244-D52B4CAF48FE@gmail.com> Message-ID: I am having subjects play and bet certain amounts of money based on their perception of riskiness. On Wednesday, May 22, 2013 8:22:53 AM UTC-4, pip griffiths wrote: > > What's your experimental procedure? > > Sent from my iPhone > > On 22 May 2013, at 02:19, Corey Christner > > wrote: > > Hey everyone, > > I'm a Junior psychology student, and am conducting an experiment dealing > with Gambler's Fallacy this fall. I am trying to find code for a roulette > wheel game, or at least get tips on how to write one. I'm brand new to the > E prime program so any help would be appreciated. If you would like any > more information or have any questions to ask, feel free! > > -Corey > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+u... at googlegroups.com . > To post to this group, send email to e-p... at googlegroups.com > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/c6cecb9a-c34f-4afd-a9b3-72178bd99bb7%40googlegroups.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/e752fbfa-000d-4879-bf85-bdc789db2289%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mspape at cognitology.eu Thu May 23 07:59:44 2013 From: mspape at cognitology.eu (Cognitology) Date: Thu, 23 May 2013 10:59:44 +0300 Subject: E prime casino game code In-Reply-To: Message-ID: Hi, Personally, I would just show a little movie (E-Prime 2, otherwise movie converted to BMP) of a roulette wheel (easy to make in flash, for instance), show that spinning for a bit and write a big number in a central square that is either black or red. More to the point, it seems to me like Corey has never used E-Prime before and should first work through the tutorial or http://step.psy.cmu.edu/materials/EPrimer.pdf because otherwise it?s a bit like telling an illiterate how to write an essay in ms word. (I did like your all-out canvas approach to the problem, btw) Best, Michiel From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of ben robinson Sent: 22. May 2013 16:36 To: eprime Subject: Re: E prime casino game code It won't be the easiest thing to do if you've never programmed before, but not impossible. Take it one step at a time. Here's how I made a roulette wheel recently: 1) Learn to drawn a circle onscreen in an inline. This will eventually be your roulette wheel. 2) Learn to drawn radii at regular intervals around the circle, for as many slices as you'll want on your wheel. Use code to iterate the drawing of the first radius as many times as you need around the circle (For radiusNumber = 1 to NUMBER_OF_TOTAL_RADII; Next radiusNumber). 3) Try to assign a different color to each slice for as many outcomes as you anticipate needing on your wheel - if it's just win vs not win, you'll only need two colors. 4) Now whatever code you've used to accomplish the above, try to make that iterative (using a similar For Loop) so that the same wheel you've just drawn can be drawn once for each step of a full rotation, because eventually the wheel will need to spin and you want the colors of your slices to travel with their respective slices around a full rotation. 5) Save each step of this iterative drawing process to a different offScreenCanvas so that you can later copy and paste the various offScreenCanvases onto your main cavas. 6) Draw a little arrow or something to indicate visually the location where a winning slice will be determined. You know, the ticker thing that goes tic-tic-tic-tic-tic like in The Price Is Right. 7) Write code to draw the wheel spinning for a period of time. Maybe find a .wav file online for the sound of a roulette wheel spinning, and draw the wheel spinning for as long as it takes the .wav file to play to completion. Make sure you add enough randomness to this spinning process or it will be easy for the participant to anticipate given the wheel's starting position, which slice will wind up a winner. 8) Write code to check the color of the pixel shown near the point of your arrow, and perform different actions given this color. This way, when the wheel finishes spinning, you check to see the color of the slice immediately in front of the arrow. This is the winning slice, and the color of the pixel should tell you what outcome to present the participant. Hope that helps. On Tue, May 21, 2013 at 9:19 PM, Corey Christner wrote: Hey everyone, I'm a Junior psychology student, and am conducting an experiment dealing with Gambler's Fallacy this fall. I am trying to find code for a roulette wheel game, or at least get tips on how to write one. I'm brand new to the E prime program so any help would be appreciated. If you would like any more information or have any questions to ask, feel free! -Corey -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com . To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/c6cecb9a-c34f-4afd-a9b3-72178bd99b b7%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CABkDJUd9cipoO-gUrw8ssoFMTYm3rcPOz mN4-gDKqkHRydp3Rg%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/001e01ce578b%247cfa1d40%2476ee57c0%24%40eu?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From arjavanbakht at gmail.com Thu May 23 13:53:18 2013 From: arjavanbakht at gmail.com (arash javanbakht) Date: Thu, 23 May 2013 06:53:18 -0700 Subject: E-Prime and Acknowledge Message-ID: Hey experts, I am a first timer, and have designed a fear conditioning (with loud noise) experiment which works well. To sync it with acknowledge (for skin conductance recording), I just copied the relevant parts of a friend's script (hers works well). Bad news: mine does not work. Error message: "Variable not defined"; Line 240 column 2: ON_OFF = c.GetAttrib("Trigger") Can anyone help me? The script is attached. Thank you, Arash -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/707ea2e5-268b-4c4e-9011-00ab3a540c79%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: AC1.es2 Type: application/octet-stream Size: 112540 bytes Desc: not available URL: From kmaayane at gmail.com Thu May 23 14:00:01 2013 From: kmaayane at gmail.com (Maayan Kedar) Date: Thu, 23 May 2013 17:00:01 +0300 Subject: E-Prime and Acknowledge In-Reply-To: <707ea2e5-268b-4c4e-9011-00ab3a540c79@googlegroups.com> Message-ID: Do you have an attribute named "trigger"? Or maybe you didnt created one using C. Setattrib, trigger ? ?????? 2013 5 23 16:53, ??? "arash javanbakht" : > Hey experts, > > I am a first timer, and have designed a fear conditioning (with loud > noise) experiment which works well. To sync it with acknowledge (for skin > conductance recording), I just copied the relevant parts of a friend's > script (hers works well). Bad news: mine does not work. Error message: > "Variable not defined"; Line 240 column 2: ON_OFF = c.GetAttrib("Trigger") > > Can anyone help me? The script is attached. > > Thank you, > Arash > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/707ea2e5-268b-4c4e-9011-00ab3a540c79%40googlegroups.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CA%2B5t7Q5BMi%2BFmNcH4FptWu2Msr7%2BMCv7BYKTkcCLYsEU1J5ZcQ%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mspape at cognitology.eu Thu May 23 15:00:23 2013 From: mspape at cognitology.eu (Cognitology) Date: Thu, 23 May 2013 18:00:23 +0300 Subject: E-Prime and Acknowledge In-Reply-To: Message-ID: Hi, ON_OFF = ? Suggests you have a variable defined called ON_OFF. I suspect you need to check the user script of your friend?s script, in which it says Dim ON_OFF as ? Best, Michiel From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Maayan Kedar Sent: 23. May 2013 17:00 To: e-prime at googlegroups.com Subject: Re: E-Prime and Acknowledge Do you have an attribute named "trigger"? Or maybe you didnt created one using C. Setattrib, trigger ? ?????? 2013 5 23 16:53, ??? "arash javanbakht" : Hey experts, I am a first timer, and have designed a fear conditioning (with loud noise) experiment which works well. To sync it with acknowledge (for skin conductance recording), I just copied the relevant parts of a friend's script (hers works well). Bad news: mine does not work. Error message: "Variable not defined"; Line 240 column 2: ON_OFF = c.GetAttrib("Trigger") Can anyone help me? The script is attached. Thank you, Arash -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com . To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/707ea2e5-268b-4c4e-9011-00ab3a540c79%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CA%2B5t7Q5BMi%2BFmNcH4FptWu2Msr7%2BMCv7BYKTkcCLYsEU1J5ZcQ%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/004901ce57c6%2440f62f60%24c2e28e20%24%40eu?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From arjavanbakht at gmail.com Thu May 23 16:59:16 2013 From: arjavanbakht at gmail.com (arash javanbakht) Date: Thu, 23 May 2013 12:59:16 -0400 Subject: E-Prime and Acknowledge In-Reply-To: <004901ce57c6$40f62f60$c2e28e20$@eu> Message-ID: Great, it worked!! Thank you On Thu, May 23, 2013 at 11:00 AM, Cognitology wrote: > Hi,**** > > ON_OFF = ? **** > > Suggests you have a variable defined called ON_OFF. I suspect you need to > check the user script of your friend?s script, in which it says **** > > Dim ON_OFF as ?**** > > Best,**** > > Michiel**** > > ** ** > > *From:* e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] *On > Behalf Of *Maayan Kedar > *Sent:* 23. May 2013 17:00 > *To:* e-prime at googlegroups.com > *Subject:* Re: E-Prime and Acknowledge**** > > ** ** > > Do you have an attribute named "trigger"? > Or maybe you didnt created one using > C. Setattrib, trigger > ?**** > > ?????? 2013 5 23 16:53, ??? "arash javanbakht" :** > ** > > Hey experts,**** > > **** > > I am a first timer, and have designed a fear conditioning (with loud > noise) experiment which works well. To sync it with acknowledge (for skin > conductance recording), I just copied the relevant parts of a friend's > script (hers works well). Bad news: mine does not work. Error message: > "Variable not defined"; Line 240 column 2: ON_OFF = c.GetAttrib("Trigger") > **** > > **** > > Can anyone help me? The script is attached.**** > > **** > > Thank you,**** > > Arash **** > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/707ea2e5-268b-4c4e-9011-00ab3a540c79%40googlegroups.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > **** > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/CA%2B5t7Q5BMi%2BFmNcH4FptWu2Msr7%2BMCv7BYKTkcCLYsEU1J5ZcQ%40mail.gmail.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > **** > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/004901ce57c6%2440f62f60%24c2e28e20%24%40eu?hl=en-US > . > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Arash Javanbakht MD, Department of Psychiatry University of Michigan, MI, USA -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAAkgwzywUiCEozwogUCei2BeY1xmv0MHiQV2C%3DOewY3LTT%3DweA%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From arjavanbakht at gmail.com Thu May 23 17:00:11 2013 From: arjavanbakht at gmail.com (arash javanbakht) Date: Thu, 23 May 2013 10:00:11 -0700 Subject: E-Prime and Acknowledge In-Reply-To: <004901ce57c6$40f62f60$c2e28e20$@eu> Message-ID: Great, it worked. Thank you very much :) On Thursday, May 23, 2013 11:00:23 AM UTC-4, Michiel Sovij?rvi-Spap? wrote: > > Hi, > > ON_OFF = ? > > Suggests you have a variable defined called ON_OFF. I suspect you need to > check the user script of your friend?s script, in which it says > > Dim ON_OFF as ? > > Best, > > Michiel > > > > *From:* e-p... at googlegroups.com [mailto: > e-p... at googlegroups.com ] *On Behalf Of *Maayan Kedar > *Sent:* 23. May 2013 17:00 > *To:* e-p... at googlegroups.com > *Subject:* Re: E-Prime and Acknowledge > > > > Do you have an attribute named "trigger"? > Or maybe you didnt created one using > C. Setattrib, trigger > ? > > ?????? 2013 5 23 16:53, ??? "arash javanbakht" > >: > > Hey experts, > > > > I am a first timer, and have designed a fear conditioning (with loud > noise) experiment which works well. To sync it with acknowledge (for skin > conductance recording), I just copied the relevant parts of a friend's > script (hers works well). Bad news: mine does not work. Error message: > "Variable not defined"; Line 240 column 2: ON_OFF = c.GetAttrib("Trigger") > > > > Can anyone help me? The script is attached. > > > > Thank you, > > Arash > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+u... at googlegroups.com . > To post to this group, send email to e-p... at googlegroups.com > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/707ea2e5-268b-4c4e-9011-00ab3a540c79%40googlegroups.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+u... at googlegroups.com . > To post to this group, send email to e-p... at googlegroups.com > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/CA%2B5t7Q5BMi%2BFmNcH4FptWu2Msr7%2BMCv7BYKTkcCLYsEU1J5ZcQ%40mail.gmail.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/92666ad1-6bf9-46ff-b73d-0406befd48df%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobias.fw at gmail.com Sat May 25 17:53:47 2013 From: tobias.fw at gmail.com (Tobias) Date: Sat, 25 May 2013 10:53:47 -0700 Subject: FW: Polhemus In-Reply-To: Message-ID: Thanks for all the help. I have successfully implemented Polhemus in E-Prime. There is only one problem left: When a lot of data is recorded, which is not unusual for longer movements of particpants, the string becomes too long for E-Prime. I use this function: x = MatLab.Execute("dataCapture;") For longer recordings which makes data rather large the following error occurs: "Error number 14: Out of string space" The thing is, I don't really need any of the recorded data for E-Prime. But I can't find a way to not have E-Prime import the data into the variable x. Is there a way of executing MatLab function without forwarding data to Matlab? Best, Tobias Am Montag, 13. Mai 2013 18:23:54 UTC+2 schrieb Paul Groot: > > Hi Tobias, > > More detailed information about matlab's COM interface can be found here: > http://www.mathworks.nl/help/matlab/call-matlab-com-automation-server.html > > There are a few functions available to pass variables, character array's, > matrices and workspaces between the two applications, without the need to > convert strings. The execute command should be used to execute scripts; not > for passing variables (although you can do this off course). Large objects > (like bitmap images) could also be passed by using external files (i.e. > only passing the name of the created file). > > Best > Paul > > > > On 13 May 2013 12:19, Tobias > wrote: > >> Dear Paul, >> >> thanks a lot for this code. It works very well. There are some issued I >> have, though. >> >> From your script I understand that there are at least two ways of getting >> data from Matlab to E-Prime: Execute and getfullmatrix. Are there other >> ways? >> Also, it seems that there is no way of transmitting a variable from >> E-Prime to Matlab, only string values such as "b = a + a". >> Of course I could always use sth like >> >> Result = MatLab.Execute(CStr(eprimeVar)) >> >> If I wanted to get the variable eprimeVar from E-Prime to Matlab. But >> maybe there is an easier way? >> >> Best, >> Tobias >> >> >> >> Am Dienstag, 7. Mai 2013 17:01:32 UTC+2 schrieb Paul Groot: >>> >>> I don't think eprime requires a special plugin like presentation, >>> because matlab can also be started as a so called COM server: >>> >>> Dim MatLab As Object >>> Dim Result As String >>> Dim MReal(1, 3) As Double >>> Dim MImag(1, 3) As Double >>> >>> Set MatLab = CreateObject("Matlab.**Application") >>> >>> 'Executing other MATLAB commands >>> Result = MatLab.Execute("surf(peaks)") >>> Debug.Print Result >>> >>> Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8]") >>> Debug.Print Result >>> >>> Result = MatLab.Execute("b = a + a ") >>> Debug.Print Result >>> >>> 'Bring matrix b into VB program >>> MatLab.GetFullMatrix "b", "base", MReal, MImag >>> >>> Debug.Print MReal(1,0) >>> Debug.Print MReal(1,1) >>> Debug.Print MReal(1,2) >>> Debug.Print MReal(1,3) >>> >>> >>> The above will print the following to the Debug window: >>> >>> a = >>> >>> 1 2 3 4 >>> 5 6 7 8 >>> >>> >>> >>> b = >>> >>> 2 4 6 8 >>> 10 12 14 16 >>> >>> >>> 10 >>> 12 >>> 14 >>> 16 >>> >>> The matlab figure window won't be visible though... >>> >>> Best, >>> Paul >>> >>> >>> >>> On 7 May 2013 16:26, David McFarlane wrote: >>> >>>> Can you start your MATLAB script from a command line? If so, then you >>>> might try using the E-Basic "Shell()" function, see that topic in the >>>> E-Basic Help facility. For a user example of this, see >>>> http://support.pstnet.com/**foru**m/Topic1338-8-2.aspx. This still leaves a lot to be desired, and beyond that I have no idea. >>>> >>>> ----- >>>> David McFarlane >>>> E-Prime training online: http://psychology.msu.edu/**Wor** >>>> kshops_Courses/eprime.aspx >>>> Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMas**ter >>>> ) >>>> >>>> /---- >>>> Stock reminder: 1) I do not work for PST. 2) PST's trained staff take >>>> any and all questions at http://support.pstnet.com/e%**2D** >>>> prime/support/login.asp, and they strive to respond to all requests in 24-48 hours, so make full >>>> use of it. 3) In addition, PST offers several instructional videos on >>>> their YouTube channel (http://www.youtube.com/user/**P**STNET). 4) If you do get an answer from PST staff, please extend the courtesy >>>> of posting their reply back here for the sake of others. >>>> \---- >>>> >>>> >>>> >>>> At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: >>>> >>>>> Hi, >>>>> Never heard of a way to interface matlab from E-Prime, I'd be >>>>> interested if anyone would have a way. Of course, you could compile from >>>>> within matlab and try to go from there, but I suspect the amount of effort >>>>> would really not be worth it. You could, of course, just forego e-prime and >>>>> try Psychtoolbox. >>>>> Best, >>>>> Michiel >>>>> >>>>> From: e-p... at googlegroups.com[mailto: >>>>> e-p... at googlegroups.**c**om] On Behalf Of Tobias >>>>> >>>>> Sent: 7. May 2013 13:31 >>>>> To: e-p... at googlegroups.com >>>>> >>>>> Subject: Re: Polhemus >>>>> >>>>> To be more precisely: What I need to do is to start a matlab script >>>>> from E-Prime. >>>>> "Presentation" has some plugin to connect with Matlab, but E-Prime >>>>> seems not to have that. But there may be another way... >>>>> >>>>> Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: >>>>> Dear all, >>>>> >>>>> Does anyone have experience with running Polhemus Liberty (the motion >>>>> tracking system) with E-Prime? >>>>> >>>>> Best, >>>>> Tobias >>>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "E-Prime" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to e-prime+u...@**googlegrou**ps.com. >>>> To post to this group, send email to e-p... at googlegroups.com. >>>> For more options, visit https://groups.google.com/**grou**ps/opt_out >>>> . >>>> >>>> >>>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "E-Prime" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to e-prime+u... at googlegroups.com . >> To post to this group, send email to e-p... at googlegroups.com >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msg/e-prime/-/kIUzT6nN__AJ. >> >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/93e38bb4-7a0b-465d-94f5-42618affecd0%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pfc.groot at gmail.com Sat May 25 20:35:31 2013 From: pfc.groot at gmail.com (Paul Groot) Date: Sat, 25 May 2013 22:35:31 +0200 Subject: FW: Polhemus In-Reply-To: <93e38bb4-7a0b-465d-94f5-42618affecd0@googlegroups.com> Message-ID: I don't know anything about polhemus or the datacapture function, but it sounds like this function generates a lot of output in the matlab command window. You can capature this into a dummy variable by using evalc: x = MatLab.Execute("dummy=evalc('dataCapture;');") Mind the single and double quotes) best Paul On 25 May 2013 19:53, Tobias wrote: > Thanks for all the help. > > I have successfully implemented Polhemus in E-Prime. > > There is only one problem left: When a lot of data is recorded, which is > not unusual for longer movements of particpants, the string becomes too > long for E-Prime. > > I use this function: > > x = MatLab.Execute("dataCapture;") > > For longer recordings which makes data rather large the following error > occurs: > "Error number 14: Out of string space" > > The thing is, I don't really need any of the recorded data for E-Prime. > But I can't find a way to not have E-Prime import the data into the > variable x. > Is there a way of executing MatLab function without forwarding data to > Matlab? > > Best, > Tobias > > Am Montag, 13. Mai 2013 18:23:54 UTC+2 schrieb Paul Groot: >> >> Hi Tobias, >> >> More detailed information about matlab's COM interface can be found here: >> http://www.mathworks.nl/help/**matlab/call-matlab-com-** >> automation-server.html >> >> There are a few functions available to pass variables, character array's, >> matrices and workspaces between the two applications, without the need to >> convert strings. The execute command should be used to execute scripts; not >> for passing variables (although you can do this off course). Large objects >> (like bitmap images) could also be passed by using external files (i.e. >> only passing the name of the created file). >> >> Best >> Paul >> >> >> >> On 13 May 2013 12:19, Tobias wrote: >> >>> Dear Paul, >>> >>> thanks a lot for this code. It works very well. There are some issued I >>> have, though. >>> >>> From your script I understand that there are at least two ways of >>> getting data from Matlab to E-Prime: Execute and getfullmatrix. Are there >>> other ways? >>> Also, it seems that there is no way of transmitting a variable from >>> E-Prime to Matlab, only string values such as "b = a + a". >>> Of course I could always use sth like >>> >>> Result = MatLab.Execute(CStr(eprimeVar)**) >>> >>> If I wanted to get the variable eprimeVar from E-Prime to Matlab. But >>> maybe there is an easier way? >>> >>> Best, >>> Tobias >>> >>> >>> >>> Am Dienstag, 7. Mai 2013 17:01:32 UTC+2 schrieb Paul Groot: >>>> >>>> I don't think eprime requires a special plugin like presentation, >>>> because matlab can also be started as a so called COM server: >>>> >>>> Dim MatLab As Object >>>> Dim Result As String >>>> Dim MReal(1, 3) As Double >>>> Dim MImag(1, 3) As Double >>>> >>>> Set MatLab = CreateObject("Matlab.**Applicati**on") >>>> >>>> 'Executing other MATLAB commands >>>> Result = MatLab.Execute("surf(peaks)") >>>> Debug.Print Result >>>> >>>> Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8]") >>>> Debug.Print Result >>>> >>>> Result = MatLab.Execute("b = a + a ") >>>> Debug.Print Result >>>> >>>> 'Bring matrix b into VB program >>>> MatLab.GetFullMatrix "b", "base", MReal, MImag >>>> >>>> Debug.Print MReal(1,0) >>>> Debug.Print MReal(1,1) >>>> Debug.Print MReal(1,2) >>>> Debug.Print MReal(1,3) >>>> >>>> >>>> The above will print the following to the Debug window: >>>> >>>> a = >>>> >>>> 1 2 3 4 >>>> 5 6 7 8 >>>> >>>> >>>> >>>> b = >>>> >>>> 2 4 6 8 >>>> 10 12 14 16 >>>> >>>> >>>> 10 >>>> 12 >>>> 14 >>>> 16 >>>> >>>> The matlab figure window won't be visible though... >>>> >>>> Best, >>>> Paul >>>> >>>> >>>> >>>> On 7 May 2013 16:26, David McFarlane wrote: >>>> >>>>> Can you start your MATLAB script from a command line? If so, then you >>>>> might try using the E-Basic "Shell()" function, see that topic in the >>>>> E-Basic Help facility. For a user example of this, see >>>>> http://support.pstnet.com/**foru****m/Topic1338-8-2.aspx. This still leaves a lot to be desired, and beyond that I have no idea. >>>>> >>>>> ----- >>>>> David McFarlane >>>>> E-Prime training online: http://psychology.msu.edu/**Wor**** >>>>> kshops_Courses/eprime.aspx >>>>> Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMas****ter >>>>> ) >>>>> >>>>> /---- >>>>> Stock reminder: 1) I do not work for PST. 2) PST's trained staff >>>>> take any and all questions at http://support.pstnet.com/e%**2D**** >>>>> prime/support/login.asp, and they strive to respond to all requests in 24-48 hours, so make full >>>>> use of it. 3) In addition, PST offers several instructional videos on >>>>> their YouTube channel (http://www.youtube.com/user/**P****STNET). 4) If you do get an answer from PST staff, please extend the courtesy >>>>> of posting their reply back here for the sake of others. >>>>> \---- >>>>> >>>>> >>>>> >>>>> At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: >>>>> >>>>>> Hi, >>>>>> Never heard of a way to interface matlab from E-Prime, I'd be >>>>>> interested if anyone would have a way. Of course, you could compile from >>>>>> within matlab and try to go from there, but I suspect the amount of effort >>>>>> would really not be worth it. You could, of course, just forego e-prime and >>>>>> try Psychtoolbox. >>>>>> Best, >>>>>> Michiel >>>>>> >>>>>> From: e-p... at googlegroups.com[mailto: >>>>>> e-p... at googlegroups.**c**o**m] On Behalf Of Tobias >>>>>> >>>>>> Sent: 7. May 2013 13:31 >>>>>> To: e-p... at googlegroups.com >>>>>> >>>>>> Subject: Re: Polhemus >>>>>> >>>>>> To be more precisely: What I need to do is to start a matlab script >>>>>> from E-Prime. >>>>>> "Presentation" has some plugin to connect with Matlab, but E-Prime >>>>>> seems not to have that. But there may be another way... >>>>>> >>>>>> Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: >>>>>> Dear all, >>>>>> >>>>>> Does anyone have experience with running Polhemus Liberty (the motion >>>>>> tracking system) with E-Prime? >>>>>> >>>>>> Best, >>>>>> Tobias >>>>>> >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "E-Prime" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to e-prime+u...@**googlegrou**ps.com. >>>>> To post to this group, send email to e-p... at googlegroups.com. >>>>> For more options, visit https://groups.google.com/**grou****ps/opt_out >>>>> . >>>>> >>>>> >>>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "E-Prime" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to e-prime+u...@**googlegroups.com. >>> To post to this group, send email to e-p... at googlegroups.com. >>> To view this discussion on the web visit https://groups.google.com/d/** >>> msg/e-prime/-/kIUzT6nN__AJ >>> . >>> >>> For more options, visit https://groups.google.com/**groups/opt_out >>> . >>> >>> >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/93e38bb4-7a0b-465d-94f5-42618affecd0%40googlegroups.com?hl=en-US > . > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CAKAdR-vEm0%2Bc%2B%2B8BJ8VWXTPC9qeDYtT5Jov90e369L%2BMTqzxEQ%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobias.fw at gmail.com Mon May 27 15:32:26 2013 From: tobias.fw at gmail.com (Tobias) Date: Mon, 27 May 2013 08:32:26 -0700 Subject: FW: Polhemus In-Reply-To: Message-ID: That worked! Great, thanks! Am Samstag, 25. Mai 2013 22:35:31 UTC+2 schrieb Paul Groot: > > I don't know anything about polhemus or the datacapture function, but it > sounds like this function generates a lot of output in the matlab command > window. You can capature this into a dummy variable by using evalc: > > x = MatLab.Execute("dummy=evalc('dataCapture;');") > > > Mind the single and double quotes) > > best > Paul > > > On 25 May 2013 19:53, Tobias > wrote: > >> Thanks for all the help. >> >> I have successfully implemented Polhemus in E-Prime. >> >> There is only one problem left: When a lot of data is recorded, which is >> not unusual for longer movements of particpants, the string becomes too >> long for E-Prime. >> >> I use this function: >> >> x = MatLab.Execute("dataCapture;") >> >> For longer recordings which makes data rather large the following error >> occurs: >> "Error number 14: Out of string space" >> >> The thing is, I don't really need any of the recorded data for E-Prime. >> But I can't find a way to not have E-Prime import the data into the >> variable x. >> Is there a way of executing MatLab function without forwarding data to >> Matlab? >> >> Best, >> Tobias >> >> Am Montag, 13. Mai 2013 18:23:54 UTC+2 schrieb Paul Groot: >>> >>> Hi Tobias, >>> >>> More detailed information about matlab's COM interface can be found here: >>> http://www.mathworks.nl/help/**matlab/call-matlab-com-** >>> automation-server.html >>> >>> There are a few functions available to pass variables, character >>> array's, matrices and workspaces between the two applications, without the >>> need to convert strings. The execute command should be used to execute >>> scripts; not for passing variables (although you can do this off course). >>> Large objects (like bitmap images) could also be passed by using external >>> files (i.e. only passing the name of the created file). >>> >>> Best >>> Paul >>> >>> >>> >>> On 13 May 2013 12:19, Tobias wrote: >>> >>>> Dear Paul, >>>> >>>> thanks a lot for this code. It works very well. There are some issued I >>>> have, though. >>>> >>>> From your script I understand that there are at least two ways of >>>> getting data from Matlab to E-Prime: Execute and getfullmatrix. Are there >>>> other ways? >>>> Also, it seems that there is no way of transmitting a variable from >>>> E-Prime to Matlab, only string values such as "b = a + a". >>>> Of course I could always use sth like >>>> >>>> Result = MatLab.Execute(CStr(eprimeVar)**) >>>> >>>> If I wanted to get the variable eprimeVar from E-Prime to Matlab. But >>>> maybe there is an easier way? >>>> >>>> Best, >>>> Tobias >>>> >>>> >>>> >>>> Am Dienstag, 7. Mai 2013 17:01:32 UTC+2 schrieb Paul Groot: >>>>> >>>>> I don't think eprime requires a special plugin like presentation, >>>>> because matlab can also be started as a so called COM server: >>>>> >>>>> Dim MatLab As Object >>>>> Dim Result As String >>>>> Dim MReal(1, 3) As Double >>>>> Dim MImag(1, 3) As Double >>>>> >>>>> Set MatLab = CreateObject("Matlab.**Applicati**on") >>>>> >>>>> 'Executing other MATLAB commands >>>>> Result = MatLab.Execute("surf(peaks)") >>>>> Debug.Print Result >>>>> >>>>> Result = MatLab.Execute("a = [1 2 3 4; 5 6 7 8]") >>>>> Debug.Print Result >>>>> >>>>> Result = MatLab.Execute("b = a + a ") >>>>> Debug.Print Result >>>>> >>>>> 'Bring matrix b into VB program >>>>> MatLab.GetFullMatrix "b", "base", MReal, MImag >>>>> >>>>> Debug.Print MReal(1,0) >>>>> Debug.Print MReal(1,1) >>>>> Debug.Print MReal(1,2) >>>>> Debug.Print MReal(1,3) >>>>> >>>>> >>>>> The above will print the following to the Debug window: >>>>> >>>>> a = >>>>> >>>>> 1 2 3 4 >>>>> 5 6 7 8 >>>>> >>>>> >>>>> >>>>> b = >>>>> >>>>> 2 4 6 8 >>>>> 10 12 14 16 >>>>> >>>>> >>>>> 10 >>>>> 12 >>>>> 14 >>>>> 16 >>>>> >>>>> The matlab figure window won't be visible though... >>>>> >>>>> Best, >>>>> Paul >>>>> >>>>> >>>>> >>>>> On 7 May 2013 16:26, David McFarlane wrote: >>>>> >>>>>> Can you start your MATLAB script from a command line? If so, then >>>>>> you might try using the E-Basic "Shell()" function, see that topic in the >>>>>> E-Basic Help facility. For a user example of this, see >>>>>> http://support.pstnet.com/**foru****m/Topic1338-8-2.aspx. This still leaves a lot to be desired, and beyond that I have no idea. >>>>>> >>>>>> ----- >>>>>> David McFarlane >>>>>> E-Prime training online: http://psychology.msu.edu/**Wor**** >>>>>> kshops_Courses/eprime.aspx >>>>>> Twitter: @EPrimeMaster (https://twitter.com/**EPrimeMas****ter >>>>>> ) >>>>>> >>>>>> /---- >>>>>> Stock reminder: 1) I do not work for PST. 2) PST's trained staff >>>>>> take any and all questions at http://support.pstnet.com/e%**2D**** >>>>>> prime/support/login.asp, and they strive to respond to all requests in 24-48 hours, so make full >>>>>> use of it. 3) In addition, PST offers several instructional videos on >>>>>> their YouTube channel (http://www.youtube.com/user/**P****STNET). 4) If you do get an answer from PST staff, please extend the courtesy >>>>>> of posting their reply back here for the sake of others. >>>>>> \---- >>>>>> >>>>>> >>>>>> >>>>>> At 5/7/2013 10:08 AM Tuesday, Cognitology wrote: >>>>>> >>>>>>> Hi, >>>>>>> Never heard of a way to interface matlab from E-Prime, I'd be >>>>>>> interested if anyone would have a way. Of course, you could compile from >>>>>>> within matlab and try to go from there, but I suspect the amount of effort >>>>>>> would really not be worth it. You could, of course, just forego e-prime and >>>>>>> try Psychtoolbox. >>>>>>> Best, >>>>>>> Michiel >>>>>>> >>>>>>> From: e-p... at googlegroups.com[mailto: >>>>>>> e-p... at googlegroups.**c**o**m] On Behalf Of Tobias >>>>>>> >>>>>>> Sent: 7. May 2013 13:31 >>>>>>> To: e-p... at googlegroups.com >>>>>>> >>>>>>> Subject: Re: Polhemus >>>>>>> >>>>>>> To be more precisely: What I need to do is to start a matlab script >>>>>>> from E-Prime. >>>>>>> "Presentation" has some plugin to connect with Matlab, but E-Prime >>>>>>> seems not to have that. But there may be another way... >>>>>>> >>>>>>> Am Montag, 6. Mai 2013 15:39:19 UTC+2 schrieb Tobias: >>>>>>> Dear all, >>>>>>> >>>>>>> Does anyone have experience with running Polhemus Liberty (the >>>>>>> motion tracking system) with E-Prime? >>>>>>> >>>>>>> Best, >>>>>>> Tobias >>>>>>> >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "E-Prime" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to e-prime+u...@**googlegrou**ps.com. >>>>>> To post to this group, send email to e-p... at googlegroups.com. >>>>>> For more options, visit https://groups.google.com/**grou**** >>>>>> ps/opt_out . >>>>>> >>>>>> >>>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "E-Prime" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to e-prime+u...@**googlegroups.com. >>>> To post to this group, send email to e-p... at googlegroups.com. >>>> To view this discussion on the web visit https://groups.google.com/d/** >>>> msg/e-prime/-/kIUzT6nN__AJ >>>> . >>>> >>>> For more options, visit https://groups.google.com/**groups/opt_out >>>> . >>>> >>>> >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "E-Prime" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to e-prime+u... at googlegroups.com . >> To post to this group, send email to e-p... at googlegroups.com >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/e-prime/93e38bb4-7a0b-465d-94f5-42618affecd0%40googlegroups.com?hl=en-US >> . >> >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/8fe95499-7a10-46ba-a03f-ba5388244703%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronelziv at gmail.com Wed May 29 04:27:08 2013 From: ronelziv at gmail.com (Ziv Ronel) Date: Tue, 28 May 2013 21:27:08 -0700 Subject: how to measure the duration of a key press\ the time of it's release Message-ID: hello E-prime hive brain, I know it's probably dead simple but iv'e been at it for a week now. i'm doing a study in which random pauses are introduced, in a frustrating matter, and the participants should press keys randomly in an attempt to make the program work. i need to measure how many frustrated keypresses there were, at what rate, and for how long each key was down (to measure these long angered key presses). I managed to create the first two, but haven't been able to measure duration. the only thing that came even close was this piece of code that I wrote: Dim theResponseObject As RteRunnableInputObject Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("Wait1")) Debug.Assert Not theResponseObject Is Nothing Dim KeyReleaseTime As Long If ebStatePress = 0 Then KeyReleaseTime = Clock.ReadMillisec End If c.SetAttrib "KeyPress" & nIndex & "Release", KeyReleaseTime (there is also a loop in there designed to redo that for every key press made in "wait1", but i've left it out) HELP! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/35f3673a-e830-4b58-8d09-51c86d567f19%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From katrinheimann at gmail.com Wed May 29 05:52:25 2013 From: katrinheimann at gmail.com (KatrinH Heimann) Date: Wed, 29 May 2013 07:52:25 +0200 Subject: how to measure the duration of a key press\ the time of it's release In-Reply-To: <35f3673a-e830-4b58-8d09-51c86d567f19@googlegroups.com> Message-ID: Hey Ziv, actually I think you could solve this problem with less programming, telling eprime to also measure key releases, then having an a testslide for two responses (press and release) which registers key pressed and time of release, then you just put an inline saying that if the waiting time has not passed (so the moment of the new slide, randomly calculated beforehand) then go (jump) to end of trial, if it has passed go to the next slide (program responding) Best Katrin 2013/5/29 Ziv Ronel > hello E-prime hive brain, > > I know it's probably dead simple but iv'e been at it for a week now. > > i'm doing a study in which random pauses are introduced, in a frustrating > matter, and the participants should press keys randomly in an attempt to > make the program work. > > i need to measure how many frustrated keypresses there were, at what rate, > and for how long each key was down (to measure these long angered key > presses). > > I managed to create the first two, but haven't been able to measure > duration. > the only thing that came even close was this piece of code that I wrote: > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("Wait1")) > > Debug.Assert Not theResponseObject Is Nothing > > Dim KeyReleaseTime As Long > If ebStatePress = 0 Then > KeyReleaseTime = Clock.ReadMillisec > End If > > c.SetAttrib "KeyPress" & nIndex & "Release", KeyReleaseTime > > > (there is also a loop in there designed to redo that for every key press > made in "wait1", but i've left it out) > > > HELP! > > -- > You received this message because you are subscribed to the Google Groups > "E-Prime" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to e-prime+unsubscribe at googlegroups.com. > To post to this group, send email to e-prime at googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/e-prime/35f3673a-e830-4b58-8d09-51c86d567f19%40googlegroups.com?hl=en-US > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CACnHcBfAG4br5smMADNubS3M41J8Q8umcvqNh1UsAq7mDm-xtg%40mail.gmail.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronelziv at gmail.com Wed May 29 10:28:08 2013 From: ronelziv at gmail.com (Ziv Ronel) Date: Wed, 29 May 2013 03:28:08 -0700 Subject: how to measure the duration of a key press\ the time of it's release In-Reply-To: <35f3673a-e830-4b58-8d09-51c86d567f19@googlegroups.com> Message-ID: this sounds great, only.. how do I tell E-prime to collect releases? (haven't seen such a thing in the logging or the general options) On Wednesday, May 29, 2013 7:27:08 AM UTC+3, Ziv Ronel wrote: > > hello E-prime hive brain, > > I know it's probably dead simple but iv'e been at it for a week now. > > i'm doing a study in which random pauses are introduced, in a frustrating > matter, and the participants should press keys randomly in an attempt to > make the program work. > > i need to measure how many frustrated keypresses there were, at what rate, > and for how long each key was down (to measure these long angered key > presses). > > I managed to create the first two, but haven't been able to measure > duration. > the only thing that came even close was this piece of code that I wrote: > > Dim theResponseObject As RteRunnableInputObject > Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("Wait1")) > > Debug.Assert Not theResponseObject Is Nothing > > Dim KeyReleaseTime As Long > If ebStatePress = 0 Then > KeyReleaseTime = Clock.ReadMillisec > End If > > c.SetAttrib "KeyPress" & nIndex & "Release", KeyReleaseTime > > > (there is also a loop in there designed to redo that for every key press > made in "wait1", but i've left it out) > > > HELP! > > -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/e95b66c6-e3c2-4b66-9001-cbaf5c5e2726%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcfarla9 at msu.edu Wed May 29 14:59:16 2013 From: mcfarla9 at msu.edu (David McFarlane) Date: Wed, 29 May 2013 10:59:16 -0400 Subject: how to measure the duration of a key press\ the time of it's release In-Reply-To: Message-ID: For information on using releases, start with the "{key} nomenclature" topic in the E-Basic Help facility. (Remember that in general the technical documentation for E-Prime, such as we get any, is in the E-Basic Help.) You might also look at the "Key Release" example that you may download from the PST website. Note, of course, that you may have to completely rethink your programmning approach in order to make the best use of the release facility. (BTW, in future replies could you please include all the replies from others in addition to your own posts? That would make it easier for others to follow the thread. Thanks.) ----- David McFarlane E-Prime training online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster) /---- Stock reminder: 1) I do not work for PST. 2) PST's trained staff take any and all questions at http://support.pstnet.com/e%2Dprime/support/login.asp , and they strive to respond to all requests in 24-48 hours, so make full use of it. 3) In addition, PST offers several instructional videos on their YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do get an answer from PST staff, please extend the courtesy of posting their reply back here for the sake of others. \---- At 5/29/2013 06:28 AM Wednesday, Ziv Ronel wrote: >this sounds great, only.. how do I tell E-prime to collect releases? >(haven't seen such a thing in the logging or the general options) > >On Wednesday, May 29, 2013 7:27:08 AM UTC+3, Ziv Ronel wrote: >hello E-prime hive brain, > >I know it's probably dead simple but iv'e been at it for a week now. > >i'm doing a study in which random pauses are introduced, in a >frustrating matter, and the participants should press keys randomly >in an attempt to make the program work. > >i need to measure how many frustrated keypresses there were, at what >rate, and for how long each key was down (to measure these long >angered key presses). > >I managed to create the first two, but haven't been able to measure duration. >the only thing that came even close was this piece of code that I wrote: > > Dim theResponseObject As RteRunnableInputObject >Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("Wait1")) > > Debug.Assert Not theResponseObject Is Nothing > >Dim KeyReleaseTime As Long >If ebStatePress = 0 Then >KeyReleaseTime = Clock.ReadMillisec >End If > > c.SetAttrib "KeyPress" & nIndex & "Release", KeyReleaseTime > > >(there is also a loop in there designed to redo that for every key >press made in "wait1", but i've left it out) > > >HELP! -- You received this message because you are subscribed to the Google Groups "E-Prime" group. To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com. To post to this group, send email to e-prime at googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/51a617c9.6306320a.6afa.ffffaf4eSMTPIN_ADDED_MISSING%40gmr-mx.google.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.