LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sir i am using gui application ,i want to change background picture

sir many times in my application i hv to change background picture but i have to create a new vi every time.sir is there any way so that i can change background picture without having to make a new vi.
0 Kudos
Message 1 of 5
(3,001 Views)
Create a huge Picture Ring indicator that completely fills the screen/window and select "Move to back" from the ordering options so that you can place other controls and indicators over it. Add your various backgrounds to the picture ring and each time you want a new background, write the appropriate integer value to the indicator (or via a local variable).
0 Kudos
Message 2 of 5
(3,001 Views)
Goto Edit Menu in labview, select "Import Picture from File", choose your image and it should be displayed, position it and then right click it and select the "Move to Back" from the alignment tools. To delete it, just select it and hit "DEL".

Joe
0 Kudos
Message 3 of 5
(3,001 Views)
I think golu wants to be able to switch backgrounds during runtime.
0 Kudos
Message 4 of 5
(3,001 Views)
If you need to change pictures while the vi is running:

On the front panel:
1) Create a picture indicator on the front panel
2) Size to the same size as the front panel (or larger)
3) Move it to the back

On the diagram:
1) Create a path to the picture that you want to use. This can be a BMP, PNG or JPEG file.
2) Wire that path in to "Read File.vi"
3) The image data output of that gets wired in to "Draw Flattened Pixmap.vi"
4) And the picture output of that goes to the picture indicator terminal.

The picture can be changed on the fly by changing the path to the picture file and reloading. Cheers.

- Jim Cavera
0 Kudos
Message 5 of 5
(3,001 Views)