04-28-2009 12:28 PM
Hi , (I use LV 8.2.1)
I want to create a picture as an object on the Block Diagram, So I can control her.
(of course, I want to see her on the Front Panel. But if I drag her or import her to the Front Panel there is no corresponding object of the picture on the Block Diagram)
I have seen the way it works in the example : 'Picture Control - Zoom Attribute.vi'
(Using the 'Draw Flatten Pixmap.vi' with adding an empty picture and describing the image data as an input cluster to get the desired outputted picture)
but I don't understand how to create the Image Cluster information, specifically the arrays (of image mask and colors),
regarding a different picture that I have.
I think I can use some Matlab function such as IMREAD and write the data to a text file and then read it through LabVIEW,
but there must be an easier way...
Or maybe there is a different common way to achieve a controllable picture object ?
Sincerely Yours,
Amitai Abramson.
04-28-2009 12:32 PM
The picture control VIs do this and there are probably some example in the example finder (Help>>Find Examples).
You can also find some more advanced uses of the picture control here.
Now, time for some ceremonies...
04-28-2009 12:58 PM
Yesterday Morning I had a ceremony at Work.
Yesterday evening I had a ceremony at Kfar Edumim.
Today I had a ceremony at Hertzel Mount. in Jerusalem.
Enough with the ceremonies...
Now it is time to celebrate.
I haven't found the Vi's (that do what I asked) earlier, I will look for them now
Thanks.
Amitai.
04-28-2009 02:05 PM
Hi again,
I am sorry, but I couldn't find how to create a picture as an object on the Block Diagram.
All the functions on the Picture Function Palette are assuming that the picture (a jpg/png) file is an object at the Block Diagram,
(they have an input 'picture')
Please show me, if You can, how do you create a picture object on the Block Diagram, from a given picture file,
For example the 'clouds.png' file that is attached.
Amitai Abramson
04-28-2009 02:26 PM - edited 04-28-2009 02:27 PM
If I understand you correctly, all you need are Read PNG and Draw Flattened Pixmap functions.
04-29-2009 01:20 AM
Hi,
From tst's answer, I got the idea that it is simple.
But still, from some reason, I haven't found the Graphics Formats Palette, So I can read a picture file.
Sorry tst and Dennis, my bad.
Amitai Abramson.
04-29-2009 07:43 AM - edited 04-29-2009 07:44 AM
Hi Amitai,
This is where it is located in LV 8.6.
Yours should be about the same place.
Ben
04-29-2009 09:38 AM - edited 04-29-2009 09:39 AM
You can also use the 'Search' function.
04-30-2009 03:38 AM
I guess that I am not so good at expressing myself...
What I meant to say in my last message was that I found the Palette,
and I have apologized to tst and Dennis for asking a trivial question.
When I asked - "how to read a picture file" when there is a unique palette for that matter.
Thank you all for your help.
Amitai Abramson
04-30-2009 06:09 AM
Many non-native English poster here will post their Q is both languages.
Fell free to do so. It will help you get you Q answered and some of us
will get a kick out of trying to learn anothe language ourselves.
Ben