Example Code

Present Data With a Web Service - LabVIEW 2013 Only

Code and Documents

Attachment

Download All

Overview
This project shows how to grab data from a file using a web service, then presenting that data.

 
Description
To have maximum flexibility over the distribution of your data, web services are the way we can try. They are software agnostic and can be read through any browser.  So you can update and display all, or just some of your data for other users.

 
Requirements

  • LabVIEW 2013 (or compatible)


Steps to Implement or Execute Code

  1. Set a text file location on the web service and DataSource.vi
  2. Run DataSource.vi continuously or for a few second
  3. Start WebService (Right Click > Start)
  4. Go to WebService > Web Resources > DataPresenter.vi , right click > show method URL, copy
  5. Paste URL in a web browser
  6. Observe the data update every time you refresh the screen (provided DataSource.vi is running.

 

Additional Information or References
VI Block Diagram

1.png

Figure 1. This is where the data is generated for the Web Service.

 

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

 

Bobby Breyer
Applications Engineer
National Instruments

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