LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to programmatically select a particular image file (.jpeg, .bmp, whatever) to appear in a box on the front panel?

I think the subject says it all.

 

Any ideas?

 

Thanks...

-Umar.

 

0 Kudos
Message 1 of 5
(2,821 Views)

I think you are going to need to provide some more information.

 

Are the images chosen at random?

Does the user have to input the file name?

Or is there an array of file names? 

Cory K
0 Kudos
Message 2 of 5
(2,820 Views)
Look into the Graphics & Sound >> Graphic formats palette. All there for bmp, jpeg and png. And if you don't know to select a file take a basic LV course. Sorry for my sarcasm but you are from the blue fraction.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 3 of 5
(2,798 Views)

Hi Umar,

 

I did a quick search for inserting an image on the front panel on ni.com and found this knowledge base article for you. Ni.com provides alot of Knowledge Base articles for you that can help answer many of your questions right away, instead of having to wait for the forumns.

 

Regards

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
0 Kudos
Message 4 of 5
(2,780 Views)

Hallo Andrew,

 

your solution places the picture directly on the front panel as decoration.  A decoration has no methods and no properties to change the picture. Your solution can not be done programmatically and will not appear in a box. So I think the correct solution is to use the Read BMP/JPEG/PNG File.vi and display it in a picture indicator.

 

Additionally starting with LV 8.2 you can make a right click on the aerea of the scroll bar and select Properties. Then you can add a picture as background with properties like Tile, Center or Stretch.

Message Edited by waldemar.hersacher on 10-10-2008 09:41 PM
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 5 of 5
(2,766 Views)