Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Commit

Permalink
LabVIEW 2012 Example Code
Browse files Browse the repository at this point in the history
Implementation of GET and SET methods in LabVIEW 2012
(forward-compatible to 2013 and 2014).
  • Loading branch information
jaredforshey committed Aug 29, 2014
1 parent 4ca539f commit bfaad78
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 0 deletions.
Binary file added examples/LabVIEW 2012/Phant GET.vi
Binary file not shown.
Binary file added examples/LabVIEW 2012/Phant POST.vi
Binary file not shown.
Binary file added examples/LabVIEW 2012/controls/Key Data Pair.ctl
Binary file not shown.
Binary file not shown.
Binary file added examples/LabVIEW 2012/controls/Response type.ctl
Binary file not shown.
15 changes: 15 additions & 0 deletions examples/LabVIEW 2012/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# LabVIEW Example for Phant #

This example was created in LabVIEW 2012.

Implements the GET and POST methods for Sparkfun's Phant service, available at [https://github.com/sparkfun/phant](https://github.com/sparkfun/phant).

Phant configuration control allows user to enter the base URL of the service (https://data.sparkfun.com), the public key for their stream, and the private key for their stream.

The **GET** method only requires the public key for the stream. Even if a stream is not "published publically", it can still be accessed using the public key.

The Response Type control allows you to choose csv or json response types. LabVIEW versions 2013 and forward include a json parser function.

The Page control can be used to request 50kb pages of data from the server. This value defaults to -1, which means to omit the page argument from the url and return all historical data in the stream.

The **SET** method requires the public and private key. The private key is used in the HTTP header.

0 comments on commit bfaad78

Please sign in to comment.