LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control picture

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.

 

0 Kudos
Message 1 of 10
(4,076 Views)

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...


___________________
Try to take over the world!
0 Kudos
Message 2 of 10
(4,074 Views)

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.

0 Kudos
Message 3 of 10
(4,058 Views)

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

0 Kudos
Message 4 of 10
(4,046 Views)

If I understand you correctly, all you need are Read PNG and Draw Flattened Pixmap functions.

 

Message Edited by Dennis Knutson on 04-28-2009 01:27 PM
Message 5 of 10
(4,041 Views)

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.

0 Kudos
Message 6 of 10
(4,011 Views)

Hi Amitai,

 

This is where it is located in LV 8.6.

 

 

Yours should be about the same place.

 

Ben

Message Edited by Ben on 04-29-2009 07:44 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 10
(3,989 Views)

You can also use the 'Search' function.

 

Message Edited by Dennis Knutson on 04-29-2009 08:39 AM
Message 8 of 10
(3,976 Views)

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

0 Kudos
Message 9 of 10
(3,947 Views)

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 Smiley Wink will get a kick out of trying to learn anothe language ourselves.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 10 of 10
(3,936 Views)