LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQdx Grab and Save image

Hi,

Please see my vi. what is wrong?

when I run the vi, it's seems good but fps is to low and when I stop from button, I have an error.

 

My ideal is it: run and see motion, when I press a button, the image of this moment save to my target. Then vi can be stop.

(It's used the built-in camera on my laptop)

 

Please guide and help me,

Thank you all.

 

Download All
0 Kudos
Message 1 of 3
(3,642 Views)

There are multiple things wrong with your VI.  The key Principle of LabVIEW is Data Flow -- a function will run when all of its inputs are satisfied.  Look at your While Loop (which has the Grab) and your Snap Function.  Which executes first?  Note that there is no "sequencing" between these, so the Correct Answer is "You can't tell, either could execute first".  Note that you also have no idea what Image will be in that Image Buffer.  Finally, you haven't configured the Grab to take data continuously -- there's another Configure function (which, unfortunately, has almost the same icon) that you need to use.

IMAQdx Configures.png

Hmm -- I was going to suggest you look at an appropriate LabVIEW Example, but in LabVIEW 2016, simple Grab-and-View doesn't seem to be covered ...

 

Bob Schor

 

0 Kudos
Message 2 of 3
(3,562 Views)
0 Kudos
Message 3 of 3
(3,531 Views)