grabAbort
Top  Previous  Next

grabAbort ( )

Use this function to abort an acquisition of the current frame.

Parameters
 
None  
 
Error flags
 
ERR_TIMEOUT  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  
 
Remark

This function is typically used in combination with a trigger-driven acquisition in order to abort waiting for a trigger signal and release the script.  
 
Example

This set of statements will abort an acquisition cycle in 60 seconds:  
 
thread("wait(60000)\n grabAbort()")  
do  
grabIm(1)  
Loop