LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time delay acquiring image

I'm using Labview 8 and a LabJack DAQ to control a test fixture. The goal is to count the number of cycles that the fixture goes through, after x number of cycles are over the fixture stops, a time delay is needed for the fixture to stop moving, next a usb webcam takes a picture, saves the picture, then the fixture starts cycling again, the whole process is repeated until an external switch is tripped. I've gotten it to work in the attached vi except for one problem. When the program gets to the case that it will take a picture it takes two pictures instead of one. I'm still pretty new to labview so I may not have this running in the most efficient way but it seems to be working except for this issue. I only need the one picture per every x cycles. Thanks for the help
0 Kudos
Message 1 of 4
(2,628 Views)
I can't view the entire VI but try opening the camera outside of the while loop.  Pass in the reference to the loop and use snap only inside of the loop.  When the loop is complete close the USB camera.
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 4
(2,625 Views)
I tried taking the sequence out of the while loop and it wouldn't execute at all. Any suggestions am I missing something?
0 Kudos
Message 3 of 4
(2,608 Views)

This should work.

 

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 4 of 4
(2,598 Views)