OptoTutorial: Using the SNAP PAC REST API with Excel

Downloads
File Size: 5265 KB
Version: 1.0
Updated: 08/24/2017

A great advantage to getting data from a PAC controller into a Microsoft® Excel® worksheet is that you can use Excel’s features to analyze the data.

This tutorial walks you from the beginning—setting up the Web server in a SNAP PAC controller—all the way through creating an Excel worksheet with Visual Basic® for Applications (VBA) macros that:

  • Read and write to input and output points
  • Parse JSON text strings
  • Check for input and return errors
  • Collect data on an automated interval and display it in an Excel chart
For more tips, help, and code samples, visit the Opto 22 Developer’s portal at http://developer.opto22.com.

This tutorial is based on the hardware and software that come with a SNAP PAC Learning Center (part number SNAP-PACLC).

If you don’t have a Learning Center but you’re comfortable using PAC Manager™ and PAC Control™, you can modify the instructions to work with your own Opto 22 devices.

You’ll need:

Download