Home
Quickstart Guide
Introduction RIO Academic RIO Application examples Your first RT app Your first FPGA app
Real-Time
Basic procedures System admin File system I/O monitor System controller architecture Timed loops Inter-process communication RT/Host communication RT/FPGA communication FPGA personalities Interrupts Datalogger (file I/O)
FPGA
Design flow Simulation Inter-process communication RT/host communication Derived clock domain IP blocks FPGA personality
Networking
Get connected Email Web services UDP TCP IP addresses
Site Map
Guides Code examples Procedures Tags LabVIEW block diagram elements Targets Communications All pages
Glossary How to use About
RIO Developer Essentials Guide for Academia
RT PC code example

Check Internet access (HTTP method)

Determine whether or not Internet access is available by attempting an HTTP connection to the "Microsoft Network Connectivity Status Indicator" (NCSI) web service.

LabVIEW RT block diagram: Attempt to open an HTTP connection to the Microsoft Network Connectivity Status Indicator (NCSI) web service as indicator of Internet access

Use cases

Features

Keep in mind

LabVIEW block diagram elements

Locate these elements with "Quick Drop" (press Ctrl+Space and start typing the name); click on an icon to see more sample code that uses that element:

HTTP Get

Example code

Expected results

https://youtu.be/ZzVKf0BaZDM (1:52)

Developer walk-through

https://youtu.be/edhLgSWN3og (3:15)

Outline

For more information

  1. Appendix K: Network Connectivity Status Indicator and Resulting Internet Communication in Windows Vista (https://technet.microsoft.com/en-us/library/cc766017)
    A complete discussion of the Microsoft NCSI web service.
  2. "check internet connection" thread on NI Community Forum (http://forums.ni.com/t5/LabVIEW/check-internet-connection/td-p/1724074)
    The original idea for the example code presented here.