Example Code

World Population by Country for Data Dashboard using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example use this Data Dashboard application to see the population of various countries of the world.

 

Description

This example using network communication protocal(variables)to build communication between Host PC and Ipad, to visualize the population of countries of the world.

 

Requirements 

  • LabVIEW(2012 or compatible)

Steps to Implement or Execute Code

On PC:

  1. Open the attached LabVIEW project.
  2. Build the web service by right-clicking the Build Specifications and then selection Build All.
  3. Deploy web services by right-clicking on the Countries Web Service and then selecting Deploy.

On iPad

  1. (Optional) Use the Retargeter Application to update the dashboard's server location
  2.  Open the Dashboard on an iPad
  3.  If Step 1 was skipped, update the shared variables and web services to point to the host PC.
  4. Tap on the Get Country Data Button to edit the Web Services. Click on the Web Service Editor (green globe indicated by red box below)
  5. Enter host name or IP of host PC
  6. Select the Countries Web Service directory
  7. Match the service names as shown below for each variable
  8.  Run the application.
  9.  Select a Country from the drop-down menu and press Get Country Data to update population fields.

Additional Information or References

Data Dashboard.jpg

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Allison M.
Applications Engineer
National Instruments
ni.com/support

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.