01-06-2011 05:38 AM
Hi, i have a simple question, at least i hope so...:
i tried to save an image in png file format. I tried several possibilities, but always its saying, that its not an image.
I used "IMAQ Writefile" for this, but the same problem occures with similar VI's. Drawing the image with "IMAQ winddraw" works though.
So i want to know, if someone could tell me the simplest way of how i can save an image?
THX
01-06-2011 06:33 AM
Hello,
I don't have LV 2010, could you post a screenshot of your code or repost it in LV 8.6 so I can try to help you.
Cheers
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
01-06-2011 08:38 AM
here is a screenshot. Its the part before the saving.
"IMAQ Array to Image", "IMAQ Winddraw", "IMAQ WriteFile" are the Head VI's.
01-06-2011 09:27 AM
Hello,
Here is a little help.
I think you need to learn about the basics IMAQ functions, I suggest you have a look at some example (Help > Find Examples and then search for IMAQ).
Hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
01-07-2011 03:05 AM
Hi THX at first for the help, but i realized with that, that the error is not really located in saving the image.
My option is quite similar, but it still tells me that "It's not a picture". So its maybe about the aqcuisition part.
I get an image from a camera. and display the image in the window i generated. As i saw from ur VI i have to use the array to save.
U used U8 to save. But the only possibility which i can display as an image with the camera is I16 (so im using this).
I think maybe thats the problem. If u have any suggestions on that, i'd be very grateful.
Greetings
01-07-2011 03:16 AM
Hmmm... I'm a bit confused now. If you can display the image properly there is no reason you can not save it.
Can you post a screen shot of the whole code and specify where the error "not an image" appears?
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
01-07-2011 04:25 AM
i thought so too, but labview dont ![]()
01-07-2011 04:51 AM
Oh... that's easy then, the function IMAQ dispose (that destroys the image) executes before you save the image.
To prevent that happening, link the output error connector of the save image VI to the input error terminal of the IMAQ dispose VI ; creating this dependency you are sure that the save will happen before the dispose.
Hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
01-07-2011 05:43 AM
no that would be too easy... aahhhm....lol.....
of course u are right, shame on me...
ok, then one last question:
Why is the saved picture not the same colourpalette
like the displayed but always grey?
Greetings
01-07-2011 05:50 AM
@xridder wrote:
Why is the saved picture not the same colourpalette like the displayed but always grey?
Greetings
Sorry, I never use color palettes... so I don't know.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus