LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display image (w file path has been set) in an image indicator once button is clicked

Greetings,

 

I am a newbie here. As mentioned in the subject, does anyone know or have a basic VI codelet on how to display image in an indicator on the front panel when a button is clicked? 

 

I have already go through find examples and other resources, I can't seem to find it.

 

Thank you in advance for any help or ideas. 

0 Kudos
Message 1 of 4
(2,580 Views)

Hi quadratini,

 

did you search the examples coming with LabVIEW?

There are example VIs showing the usage if the 2D picture indicator…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,550 Views)

yes, I have mentioned that I already searched in the LabView Find examples.

 

One that I remember of is only showing how to rotate the 2D picture indicator. 

0 Kudos
Message 3 of 4
(2,541 Views)

Hi quadratini,

 

how to display image in an indicator on the front panel when a button is clicked? 

You need those functions/structure:

- an event structure to handle the user input event (You  might just poll the button and wire it to a case structure, too.)

- a Read image file function (LabVIEW brings functions for BMP, PNG and JPG files.)

- The PixmapToPicture function as is described and linked in the help of the ReadImageFile functions…

Which of these 3 parts is a problem to you?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,536 Views)