This article applies to:
E-Prime 3.0
E-Prime 2.0
Detail
This sample illustrates using the PushNewFrame and PopFrame methods to control logging levels.
Abstract
The participant responds over a 10 second period per trial. Each response is logged on a new level. The RT for the first response is the elapsed time from Record.OnsetTime to the response; the RT for successive responses represents the elapsed time from the prior response. The response time for each press is recorded and logged in the data file.
Calling the Context.PushNewFrame method increments the logging level frame of the Context. This call "drops down" to the next logging level. For example, if the current level name is "Block", then the Context.PushNewFrame would drop down to the next logging level, "Trial".
All relevant data is then logged using the c.SetAttrib method. Followed by a Context.Log call. This directs the DataFile object associated with the Context to log the values to disk.
Finally, the Context.PopFrame method is called. This decrements the logging level frame of the Context. A call to Context.PopFrame "moves up" to the previous logging level. For example, if the current level name is "Trial", then Context.PopFrame would move up to the next logging level, "Block".
Comments
0 comments
Please sign in to leave a comment.