08-09-2018 12:40 PM
Hello,
I'm working with labview 2016 and and am trying to save every other image or every third image or more using Image acquisition functions. In saving these images I'm loading every image buffer for the Images before capturing, then saving them after to allow for faster frames per second. However in recording longer periods the frame rates start to vary and I would like to save every other or every third image instead and continue at the same frame rate. In doing so, I am having the grab function store them the images that are not wanted to save in a single buffer over each other. When I run this code saving every single image works fine, but when I switch to every other it just continues to run and never gets past the grabbing part of the sequence. There are no errors given as it doesn't make it all the way through grabbing images and I can't find whats wrong in highlight execution. This is my first labview program and has gotten a little complicated, it could be something simple I'm missing so any help on what may be happening or how to find out would be appreciated,
Thanks.
(The Producer-Consumer loop in true value of large case structure can be ignored, I am currently not using it)
Solved! Go to Solution.
08-09-2018 01:59 PM
The images act like a reference, so you are not storing images, but the same reference to the image over and over.
08-09-2018 02:08 PM
In the true case there is no dequeue for the buffer indices queue. (unless you are getting another queue ref in a missing sub-vi. its a named queue so anyone in the app instance could be dequeueing)
08-09-2018 03:57 PM
Yes that was it thank you, the buffers were being dequeue outside the case structure and being dequeued during the loops for weren't saving any images. It is quite obvious now that you point it out. Sorry to waste your time, but thanks for the help.
08-09-2018 04:04 PM
@danderson1 wrote:
Yes that was it thank you, the buffers were being dequeue outside the case structure and being dequeued during the loops for weren't saving any images. It is quite obvious now that you point it out. Sorry to waste your time, but thanks for the help.
No waste of time at all!
Sometimes you just need a second person to eyeball what you thought you meant to write but didn't