OkoLib
library for accessing Okolab devices
|
This documentation describes the SDK specification used to operate devices manufactured by Okolab.The SDK will include an example C/C++ file showing typical usage and a description of the API interface with the Okolab devices.
The SDK consists of the following files:
To access a device, the calling applications has to call functions of okolib.dll. Some compilers requires a lib file (okolib.lib) to build. The interface to the library is described by okolib.h.
Some files are needed for development purposes only. The calling built application needs:
A module is a main controlled physical quantity (Temperature, CO2, O2), with a name, a dimension unit, a current measured value, a setpoint and other features. Modules are a basic way to use the library, the usage is very simple but a little bit limited.
A device is strictly related to a communication port and it is made up by one or more physical controller units (e.g. Bold Line stacked units). A device can be manually (oko_DeviceOpen) or automatically (oko_DevicesDetect) opened.
Each device has several properties. Each property has some information (Property information) and can be read or write.
The operations that are supported are:
See also: Typical Implementation