LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display a picture from an URL in NXG?

I am programming an interface for a spectrum analyser. This spectrum analyser comes with a web interfaces, that shows the display of the device. It can be accessed via http://10.117.12.135/Agilent.SA.WebInstrument/Screen.png

 

I would like to include and update this picture within my VI to see what's happening on the device.

 

I found this post and wanted to write something similar, i.e. download the picture and send it to an Image object. However, I can't find a way to change the picture by code.

 

DeWilk_0-1585068951565.png

 

Is this something that is not implemented in NXG yet? Any other ideas on how to solve this?

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

Have you tried using the URL Image Control and its properties? https://www.ni.com/documentation/en/labview/4.0/class-ref/urlimage-class/

Thanks,

Rita Prather
Software Product Manager
rita.prather@ni.com
National Instruments
0 Kudos
Message 2 of 4
(2,410 Views)

Thanks for your reply! The class looks promising. Unfortunately, it is only available in web applications. 

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

Ah, right you are. While the URL Image Control isn't supported in the desktop case today, in LabVIEW NXG 5.0 (shipping in late May) we are introducing a Set Image method that will allow you to programmatically set the image path to an image object on the front panel. 

Thanks,

Rita Prather
Software Product Manager
rita.prather@ni.com
National Instruments
0 Kudos
Message 4 of 4
(2,393 Views)