ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

swap background image?

Solved!
Go to solution

Hi,

 

I am looking for a posibility to dynamicaly change the background image of a vi.

 

See attached example: The switch should change the circle-image into a box-image. the two images are overlaid and I thought I could make one image visible and the other invisible, but the images have no terminal in the block diagramm...

 

Any idea?

 

 

Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
0 Kudos
Message 1 of 9
(4,390 Views)

Now i tried to insert a picture in my vi and read a box-image or a circle image, depending on what I want as background.

How do you like this idea?

 

I have some problems loading and displaying the picture - I have no idea how to convert the jpeg-data into "picture-data". see attached vi. I have no idea what's wrong and I can not find any "jpg-to-picture"-vi     😞 

Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
0 Kudos
Message 2 of 9
(4,377 Views)

Why must the image have no terminal?

a picture box control or a custom boolean is an easy method for doing exactly this,

The hard way with no terminal is to get a reference to the decoration (not easy since the decorations do not have lables and are an indexed object of the pane on which it resides).

There is also a pane image property to change the entire background.  I would stick with the picture box control if it was me (make the borders transparent).

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 9
(4,376 Views)

Thank you Paul. As you can see, that was my idea too 🙂  But I have stil problems

Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
0 Kudos
Message 4 of 9
(4,370 Views)

See attached:

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 5 of 9
(4,367 Views)
Solution
Accepted by johanneshoer

You will need a down convert for 7.1. Dont have it on my PC.

I used a picture ring Make the images with decorations (btw use a gif allows for transparent images on import) and pasted them in the image ring. took about 30seconds.

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 6 of 9
(4,362 Views)

 

I can not open LV 9.0-VIs

Could you please either save it as 7.1 or upload a screenshot?

Thanks.

 

BTW here is a screenshot of my problem:

 

 

21243iCA136C42F2003265 

 

 

Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
0 Kudos
Message 7 of 9
(4,356 Views)

Ok,

thanks! It works well with the image ring 🙂

Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
0 Kudos
Message 8 of 9
(4,350 Views)

Try putting the Draw Flattened Pixmap VI where your broken wire is.

0 Kudos
Message 9 of 9
(4,340 Views)