LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i insert a picture

hello

 

I am trying to insert different pictures in labview that need to be shown in the presentation with some time delay between a picture and the other.

I used the ring that is found in labview and used a property node but I could not do it because I got no idea about property nodes.

So how can we connect the ring to the images(that is how can we insert images in labview) 

 

 

mercy

0 Kudos
Message 1 of 8
(17,904 Views)

In my limited experience the best way to put a picture in labview that you want to control is to use a rectangular boolean indicator.  You put the indicator on your VI, then you select it and "Customize Control"  Once you get into the control customization area you can replace the indicator ON or OFF status (or both) display with your picture.  Once you have this custom indicator, you then have access to property nodes for that indicator such as Visible (T/F). 

 

There may be a better way to do this, but this is how I have done it. 

Message 2 of 8
(17,896 Views)

If you would like to use the Pict Ring Indicator (sensible for small number of images), you can load images in a few different ways.

 

1.  Drag the image file from explorer onto the control and drop.

2.  Edit -> Import Picture to Clipboard  then right click in the pict ring and choose Import Picture From Clipboard

3.  Usual copy/paste

4.  Programatically (not really, just a pipe dream on my part).

 

After you add an image you can right-click and Add Item Before/After.  The palette drops a control, usually easier to change to indicator and then just wire the item number you want to the terminal.  The indicator background is grey, sometimes white or transparent works better, just use the color tool to change it as desired.

Message 3 of 8
(17,880 Views)

hope this helps:

 

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
Message 4 of 8
(17,879 Views)

Save your images as BMP's, Jpeg's or PNG's. LabVIEW has code to read these filetypes and display them in a picture control.

 

Read PNG for instance:

 

 

 

Ton

 

 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 5 of 8
(17,876 Views)

thank you very much guys

I am going to do it after all because of your generous help

 

 

 

mercy

0 Kudos
Message 6 of 8
(17,818 Views)

As Darin.K said, I have hundreds of jpg files, how can I programatically insert into the picture ring? Thank you!

0 Kudos
Message 7 of 8
(17,530 Views)

You (and about 150 of your friends) could go Kudo this idea

 

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Allow-Picture-Rings-to-be-Populated-via-Property-Node/...

 

Next you'd have to wait a year or two.

 

In the meantime, two things I have done are: 1. Use an array of 2D pictures to hold the images. 2. If the images are the same size I have loaded them into a single picture, tiled them, scaled the picture control to show a single frame and then change the origin to view the desired frame.  I use 1 most of the time, but I have found situations where 2 gives me a better look for animation.  If the thumbnail preview of the the Picture Ring is what you are after, then like the rest of us you are stuck.

0 Kudos
Message 8 of 8
(17,498 Views)