grabTrig
Top  Previous  Next

grabTrig ( )

Use this function to issue the software trigger signal for the current video device. Equivalent to selecting the Trigger command from the Acquire menu.

Parameters
 
None  
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  
 
Example
 
This set of statements will trigger an acquisition and grab an image every time a character arrives to a serial port. The video device is assumed to be in the trigger synchronization mode.  
 
'acquisition thread  
thread("  
 Do  
 grabIm(1)  
 Loop  
")     
'triggering thread  
serialOpen(1,"19200,N,8,1",1)  
Do  
 serialWait(1000)  
 Beep  
 grabTrig()  
Loop     
 
Remark

This function works only with video devices that support the software trigger command. Refer to ImageWarp User's Guide for more details.