LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

import pictures to block diagram

Hi,
 
I am having trouble figuring out how to import usable pictures for labview, when i insert the picture it only shows up in the front panel. I can not edit it, or use it in anyway. I need the picture to show up in the  block diagram too so i can work with it.
 
Thanks
0 Kudos
Message 1 of 15
(6,565 Views)
If you want a picture for use in picture functions, you need your picture as a LabVIEW data type (not just as a decoration).
 
You could import it into a picture control, then right-click its terminal and "change to constant". It might be easier to use it as image data, for example, depending on what you need to do with it.
0 Kudos
Message 2 of 15
(6,551 Views)


@altenbach wrote:
If you want a picture for use in picture functions, you need your picture as a LabVIEW data type (not just as a decoration).
 
You could import it into a picture control, then right-click its terminal and "change to constant". It might be easier to use it as image data, for example, depending on what you need to do with it.



 
 
Could you please explain in more detail of a step by step. I just have a picture found online of a lion that i want to get to move according to the labview process so i can get it into the block diagram . How can i turn a png picture file into a LabVIEW data type? Also how do i access the picture control and right click its terminal. when i import it and paste it a right click doesn't do anything.
0 Kudos
Message 3 of 15
(6,532 Views)
Read your PNG file into a picture indicator using the following simple code.
 
 
Now you can right-click the image terminal and turn it into a diagram constant. (Or create an indicator on the pink "image data" wire and turn it into a constant.
 
 

Message Edited by altenbach on 10-24-2007 06:28 PM

0 Kudos
Message 4 of 15
(6,529 Views)

I am sorry  but i didn't quite understand where the image terminal was. I was able to do the diagram you showed then i  added the picture but it still stayed useless.

Thank you

Message Edited by Leonitas on 10-24-2007 10:18 PM

0 Kudos
Message 5 of 15
(6,518 Views)
Why don't you tell us exactly what you are trying to accomplish, with links or attached files.

The terminal was the object labeled "Picture", but the code didn't do anything with it after that.  You would have to write code to modify the picture.
0 Kudos
Message 6 of 15
(6,508 Views)


@Matthew Kelton wrote:
Why don't you tell us exactly what you are trying to accomplish, with links or attached files.

The terminal was the object labeled "Picture", but the code didn't do anything with it after that.  You would have to write code to modify the picture.



 i am really lost in how to bring a picture from an out side source like the internet. for example i want to bring in a picture of a tiger, and have this picture acknowledged in my block diagram.  Would you be kind of enough to explain in detail step by step how to do it .  Then after it is in the block diagram diagram i would like to be able to move it to the left or right. Please tell me how to bring the picture in a way i can understand. 
0 Kudos
Message 7 of 15
(6,469 Views)

It is still completely unclear to me what you want to do. How familiar are you with LabVIEW? Have you written any programs yet?


@Leonitas wrote:
for example i want to bring in a picture of a tiger, and have this picture acknowledged in my block diagram. 

What do you mean by acknowledged? This sentence simply makes no sense to me.


@Leonitas wrote:
Then after it is in the block diagram diagram i would like to be able to move it to the left or right.

The block diagram is for code, not for visualization of data. Do you want to move the image left or right in an picture indicator on the front panel perhaps?

I showed you how to load an image from the file system into a picture indicator. Did you try it? What kind of problems did you encounter? To move it left or right, you can set the origin via a property node.

0 Kudos
Message 8 of 15
(6,464 Views)

the tiger picture is not on the file system it is on the web site and i want to bring it to front panel and be able to creat terminal on the block diagram the way you showed is when i am using a picture from the labveiw itself to do different coding for it not how to get a picture from the wen site please do it yourself then you see what is my problem then you could advise me better.

regards

 

0 Kudos
Message 9 of 15
(6,457 Views)
It is still not clear how you want to get the picture.

Should your LabVIEW program itself get the picture from the internet, given the proper URL?

 

0 Kudos
Message 10 of 15
(6,447 Views)