SGIdle
TheSGIdlefunction provides processing time to the sequence grabber component and its channel components. After starting a preview or record operation, you should call this function as often as possible, until you stop the operation by callingSGStop.
- WARNING
- If you do not call
SGIdlefrequently enough, you may lose data.
pascal ComponentResult SGIdle (SeqGrabComponent s);
s- Specifies the component instance that identifies your connection to the sequence grabber component. You obtain this value from the Component Manager's
OpenDefaultComponentorOpenComponentfunction.DESCRIPTION
TheSGIdlefunction reports several status and error conditions by means of its result code. If you have established a time limit for a record operation by calling theSGSetMaximumRecordTimefunction (described on page 5-51),SGIdlereturns a result code ofgrabTimeCompletewhen the time limit expires. In addition,SGIdlereports errors that are specific to the channels that are active for a given operation. IfSGIdlereturns a nonzero result code during a record operation, you should still call theSGStopfunction (described on page 5-38) so that the sequence grabber can store the data it has collected.RESULT CODES
File Manager errors
grabTimeComplete -9401 Time for record operation has expired cantDoThatInCurrentMode -9402 Request invalid in current mode
Memory Manager errors
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help