From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Download An Image From A Website And Show It On A LabVIEW Frontpanel

製品と環境

このセクションは、サンプルの作成に使用された製品およびOSを反映します。

以下に示された製品を含め、NIのソフトウェアをダウンロードするには、ni.com/downloadsをご覧ください。

    ソフトウェア

  • LabVIEW

コードとドキュメント

添付

すべてをダウンロード
Overview

This example demonstrates how to download an image from a website and show it on the Frontpanel.

 

Description

It is sometimes handy to show an image from a website on the Frontpanel. To do so, you need to download the image from the website and show it in a LabVIEW picture control. There is no out-of-the-box function for this use case, so you have to implement the function by yourself.

You can use the DataSocket Read.vi or the HTTP VIs to download the image. This example use the HTTP VIs, because this VIs can store the image into a file without additional VI calls.

 

Requirements

 Software

  • LabVIEW Base Development System 2012 (or compatible)
  • If running in a Real-Time context, you will need the LabVIEW Real-Time Module 2012 (or compatible)

 Hardware

  • No hardware is necessary to use this example VI

 

Steps to Implement or Execute Code

  1. Download and open the attached VI
  2. Run the program

 

Additional Information or References

Download And Show Image From Website - Front Panel.png
Download And Show Image From Website - Front Panel.png

 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com

NIコミュニティのサンプルコード交換のサンプルコードは、MIT Licenseによりライセンス供与されています。

コメント
Jokelnice
Active Participant
Active Participant

good VI, served me for an application of an IP camera that had not been resolved



Ing. Jonathan E. Cruz Ortiz

ENERGÍA PROACTIVA S.A.S

Cel : (+57) 3173669343 - (+57) 3124451894

kirsch
Active Participant
Active Participant

It's frustrating that you need to save the file to disk only to read it back in and display it. Does LabVIEW really have no way to display a JPEG coming from memory?

Marcos Kirsch
Chief Software Engineer
NI Driver Software