toSequence
Top  Previous  Next

toSequence ( integer Input, integer Output , integer Delay )

Use this function to convert an image into a one-frame sequence. To add additional frames to the sequences, use seqAdd.

Parameters
 
Input  
 
An integer between 0 and 116 specifying the input image frame number. A value of 0 represents the DMA memory buffer of the video device. Values in the range of 100-116 correspond to hidden frames.  
 
Output  
 
An integer between 1 and 116 specifying the output sequence frame number. Values in the range of 100-116 correspond to hidden frames.  
 
Delay  
 
An integer that specifies the delay between the frames in the sequence in milliseconds.  

Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  
 
Example

This set of statements grabs an image from the video device, converts it to a one-frame sequence and then adds another captured frame to it with a 1 second delay between the frames. The resulting two-frame sequence is saved into an AVI file.  
 
grabIm (1)  
toSequence (1,2,1000)  
grabim (1)  
seqAdd (2,1,1000)  
saveIm (2,"C:\test.avi")