OkoLib
library for accessing Okolab devices
|
A typical implementation of the communication with an Okolab device using the SDK would consist of a sequence of function calls depending on the overall scenario.
Detect all the available modules and collect their fixed details.
Using the already obtained types, periodically query setpoint and current value of each module.
Using the already obtained types, change the setpoint of each module.
No previous knowledge of the connected device
Previous knowledge of the device ComPort# (e.g. by user input or previously stored by the application).
Get the last value of a read only property
First update the value from the device and then read a property value of a known type
Synchronously change the value of a property (e.g. with double type)
Change the value of a property (e.g. with double type), without waiting for the result
A property can be auto-updated by an internal thread, so the application doesn't need to esplicity update it, calling oko_PropertyUpdate.
Make a property auto-updating
Read the last property value
No previous knowledge of the connected device
Previous knowledge of the device