LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Put Picture in Display Message.vi

Hello,

I am using the Display Msg.vi as a way to display a help window for the user (I am also open to using the One Button Dialog.vi if it is simpler).  I would like to place a .bmp inside the popup window but cannot figure out how to do so.  Any ideas will be appreciated!

Cheers!
0 Kudos
Message 1 of 21
(8,034 Views)
Right click on the express VI's icon and select "Open Front Panel." This will require you to save the express VI as a new sub VI (which shouldn't be a problem) and allow you to insert or modify whatever you want.
Message 2 of 21
(8,030 Views)
Thank you for the quick reply!  I have saved it as a subvi but am not sure how to get the image into the "Message to Display".  Please let me know if you have any thoughts.

Cheers


Message Edited by jmcbee on 01-16-2008 01:32 PM
0 Kudos
Message 3 of 21
(8,026 Views)
Should I insert the image (its a bmp) into the Message?  If so how?  Do I need to convert the .bmp into a picture control first? 

Cheers!
0 Kudos
Message 4 of 21
(8,010 Views)
There are two different cases, and your question doesn't make clear what you
want (so I'll explain both!).

First, if you just want to add a static picture, simply drag it from your
windows explorer to the front panel, and save the VI. This works with bmp,
emf, png, jpg, jpeg, and gif files (although you cannot scale all of them).

If you want to deside what picture should be shown during execution, use
Load BMP, PNG or JPG in the Sound & Picture palette. Then create a picture
control from the output, and you're done.

The third option is to use a picture ring. This is usefull if you want to
choose between a few pictures. Create a picture ring, and use the right
click menu to add or delete images. First drag the pictures to your front
panel, select them, and in the picture ring select one of the import
functions.

Regards,

Wiebe.


0 Kudos
Message 5 of 21
(7,987 Views)
Thank you for the reply.  I do just want a static picture, but I want it to be displayed inside the one button dialog window when it pops up not just on the front panel of my vi.  I apologize for the lack of clarification.  If anyone knows of a better way to have an image displayed in a popup window aside from using the one button dialog.vi then I am all ears.

Cheers!
0 Kudos
Message 6 of 21
(7,973 Views)
You need to make your own one button message box vi, and put the picture on
it's front panel. It doesn't really matter if you use an express VI to make
your own copy of it, or make it yourself from scratch.

There is no better way to do this, since there is no other way at all.

Regards,

Wiebe.



Message 7 of 21
(7,969 Views)
I think Wiebe made this clear, but in case it wasn't explicit enough for you:

The dialog window is, itself, a VI. Once you've altered and saved the Express VI, you may insert pictures into it (or otherwise modify it) just like you would your main VI.
0 Kudos
Message 8 of 21
(7,956 Views)
i need help with this issue too...
how would i make this work?

Best regards,
Krispiekream
0 Kudos
Message 9 of 21
(7,790 Views)

Hi krispiekream,

What is your specific question? As detailed in the these series of posts, you need to modify the front panel of the subvi.

Regards,

Hillary E
National Instruments
0 Kudos
Message 10 of 21
(7,731 Views)