|
MasterScan
Lab_Matlab_control Master Branch
|

Properties and Events | |
| Property | initialFrameCount = 100 |
| Models the video refresh cycle and predicts MGL frame onset times. More... | |
| Property | initialFrameMinimum = 50 |
| how many valid frame intervals required for initialize() success | |
| Property | initialFrameTolerance = .0005 |
| criterion in seconds to validate frame intervals vs nominal | |
| Property | initialFrameIntervals = nan |
| frame intervals measured in seconds during initialize() | |
| Property | initialFrameIsValid = false |
| whether each intervals measured during initialize() is valid | |
| Property | framePeriod = nan |
| frame period in seconds, measured during initialize() | |
| Property | nominalFramePeriod = nan |
| frame period in seconds, reported by the system | |
| Property | framePadding = 0.001 |
| seconds specifying a frame border-interval of ambiguous behavior | |
| Property | referenceFrameTime = nan |
| recent time in seconds when a blocking system swap call returned | |
| Property | referenceFrame = nan |
| frame count between initialize() referenceFrameTime | |
| Property | flushOnsetTime = nan |
| estimated onset time in seconds of drawing that preceeded flush() | |
| Property | flushOnsetFrame = nan |
| frame count between initialize() and flush() | |
| Property | flushWasTight = true |
| whether the two recent flush()es had consecutive onset frames | |
| Property | clockFunction = @mglGetSecs |
| any function which returns the current time as a number | |
| Property | waitFunction = @mglWaitSecs |
| any function which will wait or sleep for a given duration. | |
Methods | |
| self | dotsMglFlushGauge () |
| Make a new gauge for mglFlush(). Must initialize() it. | |
| success | initialize (self) |
| Measure new frames and build a new refresh cycle model. | |
| onsetTime onsetFrame swapTime isTight | flush (self) |
| Invoke mglFlush() and predict corresponding frame onset time. | |
| onsetTime onsetFrame swapTime isTight | flushWait (self) |
| Invoke mglFlush() and block until corresponding frame onset time. | |
| onsetTime onsetFrame swapTime isTight | blank (self, backgroundColor) |
| Clear both frame buffers, and implicitly update reference frame. | |
| frameNumber currentTime | currentFrame (self) |
| Count frames between initialize() and now. | |
| frameNumber | frameAtTime (self, time) |
| Count frames between initialize() and the given time. | |
| onsetTime | timeOfFrame (self, n) |
| Estimate onset time for the nth video frame since initialize(). | |
1.8.15