Section 5 Programming
5.1
RESTful Interface
Web Services
The WaveShaper provides a RESTful style Web service API that enables configuring the device and access to measurement data
using HTTP commands from a Web browser or from a software programming language.
Communication with the Series A WaveShapers can be done directly through the browser. Most major languages support sending
and receiving http requests via 3rd party tools, although some provide native support.
LANGUAGE
HTTP SUPPORT
LabVIEW
natively via HTTP Client VIs
Python
requests library
MATLAB
webread / webwrite (R2014b onwards)
urlread2, 3rd party (http://au.mathworks.com/matlabcentral/fileexchange/35693-urlread2)
urlread (not recommended)
Octave
wget/curl system calls
urlread (not recommended)
C/C++
libcurl library
Java
Apache HttpClient
Javascript/Node.js
Natively via http.get
C#/VB.NET
System.Net
JSON
The response data is in JSON format. This stands for JavaScript Object Notation which is a lightweight and human readable data
format.
JSON is supported by most languages either natively or via 3rd party libraries. An extensive list can be found at
http://www.json.org/
Some languages have many to choose from, and personal preference is usually the deciding factor.
WaveShaper A Series User Manual
35