09-03-2013 11:55 PM
Sir and Maam!
i have a problem with my vi. I attatch it here.
I have two push button the capture and save.
i ha ve also two display images..
one for the live stream of the camera and the another is for the captured image.
what i want to do:
1) the live stream camera will always be on.
2) when click captured the image will be show on the Image out.
3) if i want to save it, it will be save.
problem so far:
i cant save the captured image. i know there is something wrong on the code but i can't do it.
i need some help and advise!
tnx guys!
09-04-2013 12:23 AM
Hello Mr_ask,
It appears that you're using LabVIEW 2012, so you probably want to use the IMAQ Write File 2 VI available in Vision Utilities>>Files rather than the deprecated IMAQ WriteFile. I believe that the old IMAQ WriteFile VI doesn't support all of the image types currently allowed by IMAQ, so the issue might be that you're attempting to save in an unsupported format, although that's largely a guess.
Potentially helpful:
What Is The Difference Between LabVIEW and NI-IMAQ Support for PNG Images?
http://digital.ni.com/public.nsf/allkb/F606CA86691CA090862579B500640884
Are you seeing any errors when you attempt to save the image? If so, what are they? Screen captures of the error number and message would be very helpful.
Regards,
09-04-2013 06:06 PM
thank you for an immediate reply mr outlaw.
fortunately i dont have any errors in my vi.
My vi..
view the real time image and it captures too. but my only problem is to save the image that i have captured already.
my only problem is that..
the push button for SAVE is not executed because it is outside the while loop.
i attatched the print screen of my VI. i encircled the block diagram that i know there is the problem.
Thanks again mr outlaw!
09-04-2013 08:43 PM
Then move that code inside the loop!
09-04-2013 10:25 PM
yep i tried to move it to the loop. and the push button works. but still the captured message cannot be saved.
09-05-2013 08:31 AM
Attach your latest VI.