This SDK opens in LabVIEW 2013 or later and gives a simple SDK for streaming data from LabVIEW to your Initial State workspace. Initial State Streaming API is meant for low-speed monitoring application. You can easily send 10-50 data points per second continuously via LabVIEW and see the results update in your browser through the Initial State application.
-
Open Initial State Session - Opens HTTP connection and set the proper Access Key Headers for future API calls.
-
Create a new bucket - Create (or Append) an Initial State Bucket by providing a new Bucket Key or letting the SDK generate one. You append data to an existing bucket by optionally providing an existing valid bucket key.
-
Convert to Data to IS JSON Cluster - This PolyVI function converts DBL, String, and Bool to the proper IS JSON Cluster that can be sent using the "Send VI". Ultimately, the API uses JSON as the data layer for transferring data. This special Type-def Cluster is a data type meant to be flattened to JSON and fed to the "Send VI". Using an array around this cluster, you can buffer multiple events into the same API call. (See the Example)
-
Send - Accepts the IS JSON Cluster Array and uses POST to send the data to your Initial State workspace. The recommended throughput is no more than 3 Requests per second with about 10 events (i.e. Data points) in each request.
-
Close - Closes the HTTP session.
-
Helper VIs that take an HTTP session and set the proper headers.
-
Processes the response from an API call to detect Client/Server/Network Errors. The SDK includes special handling for the rate-limiting error that you can use to continue buffering and "send later" once yrou rate-limit is reset.
-
These Helper VIs generate special requirements used under the hood of the SDK, including a Key generator for automatically creating a new bucke key, and a VI for converting LabVIEW time to unix time (i.e. epoch) required by the initial state VIs.
For an overview and example of this SDK refer to the Initial State Help Center Document on the LabVIEW Stream SDK. LabVIEW Stream SDK Overview