LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in saving images

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!

0 Kudos
Message 1 of 6
(2,549 Views)

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,

Tom L.
0 Kudos
Message 2 of 6
(2,542 Views)

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!

0 Kudos
Message 3 of 6
(2,500 Views)

Then move that code inside the loop!

0 Kudos
Message 4 of 6
(2,496 Views)

yep i tried to move it to the loop. and the push button works. but still the captured message cannot be saved.

0 Kudos
Message 5 of 6
(2,490 Views)

Attach your latest VI.

0 Kudos
Message 6 of 6
(2,472 Views)