Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

hbk-world/open-api-tutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

$${\color{red}MOVED}$$

Open API Introduction

The LAN-XI platform offers great flexibility and performance.

LAN-XI Frame with Removable Module

Modules are compact and rugged data aquisition units that support an array of transducers and input/output channel combinations. A built-in Ethernet interface connects modules to standard computer networks, optionally providing PoE power and PTP time synchronization at sub-sample level accuracy for true, single-cable operation.

Frames provide the ability to assemble multiple modules for stacking or mounting in racks, further reducing the need for external network equipment and power supplies whilst adding features such as GPS synchronization.

On top of this, HBK provides a range of desktop software applications for data acquisition and analysis.

Why Open API?

Unfortunately, HBK software can't always meet every conceivable need that customers may have.

Maybe the software application you require is not available on your preferred platform, say Linux or macOS, and you want to roll your own.

You may need to interface LAN-XI directly to other software or hardware, such as MATLAB.

Or you have been tasked with implementing bespoke software for a production line, using LAN-XI hardware for acquisition and a company database for storage.

Perhaps you want to run a set of custom signal analysis algorithms on acquired data in real-time.

You might need to capture data directly onto local storage, rather than streaming on a slow or unreliable network.

Or maybe you are looking to create a smartphone application, or whip up a quick proof-of-concept demo to showcase a potential new product or algorithm.

Open API provides a pathway to doing all of those things.

Open API

The Open API is a set of protocols that enable end-users to acquire data using one or more LAN-XI modules.

An HTTP-based protocol is used to configure modules and transducer conditioning, start and stop measurements, etc. This protocol uses standard HTTP methods such as GET, PUT, POST, and DELETE. The data interchange format is JSON.

The HTTP-based protocol is sufficient to perform measurements and store the data on an SD card inserted into each module.

To stream data back to the client while the measurement is ongoing a custom, binary protocol is used.

Measurements can be made using a single module, or multiple, PTP-synchronized modules.

Detecting Transducers with Open API

Tutorials

Tutorials and code examples written in Python are available on GitHub.

Unless otherwise specified, the code samples in this repository work with all LAN-XI module types, and have been tested on Microsoft Windows and Linux.

A Word on Firmware Versions

We recommend always using the latest LAN-XI firmware version.

This can be downloaded from the page linked above, and installed through the module's homepage.

To enjoy free, unrestricted access to the Open API, ensure that your LAN-XI hardware is running firmware 2.10.0.344 or later.