Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about snap acquisition

In the example LL Occurrence Snap.VI,  wait on occurrence is used for IMAQ Get Buffer.vi.
 
Is occurrence structure necessary?
 
If I do not use occurrence structure, just put Get Buffer.vi directly after IMAQ start vi. , can this work properly?  I mean, is it possible the buffer is read before the image is completely acquired?
 
Thanks.
 
Dejun
0 Kudos
Message 1 of 2
(3,012 Views)
Good morning Dejun,
 
This is an interesting question!  It is NOT possible for you to "read the buffer" before the image is acquired.  That is, you can't read in only half of the image.  Once the image starts to be acquired, it will finish before the program moves to the next VI.  However, setting the occurrence gives you a way to use boolean logic to control the remainder of the program.  Without the occurrence, you will simply receive an IMAQ Timeout error. 
 
I hope that this information is helpful!
 
Respectfully,
0 Kudos
Message 2 of 2
(2,995 Views)