Skip to content

toolbitorg/toolbitsdk_BACKUP-COPY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

154 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toolbit SDK

Overview

Toolbit SDK is Software Develepment Kit for measurement and automation system. It is prepared for a multimeter named as Toolbit DMM for now. Please see the following project page: https://hackaday.io/project/10398-luke-open-framework-multimeterlogger

The target platform of SDK is as follows:

  • Ubuntu Linux
  • macOS
  • Windows
  • Raspberry Pi

Source code is described by C/C++ but libraries for the following languages have been released by using SWIG:

Quickstart

Python

Install Python toolbit-lib package by pip command.

  pip3 install toolbit-lib

In case of linux, you might be required to install libudev-dev in advance and then to execute pip with sudo command. Please see here in details.

For example, you can get voltage/current measurement result from a connected device as follows:

  from toolbit import Dmm

  dmm = Dmm()
  dmm.open()
  print(str('%03.3f' % dmm.getVoltage()) + " [V]")
  print(str('%03.3f' % (1000.0 * dmm.getCurrent())) + " [mA]")

Toolbit SDK uses object-oriented programming.

  • dmm instance is created by using Dmm() constructor
  • dmm.open() method opens a target device
  • dmm.getVotage() and dmm.getCurrent() methods return measurement values

Result will be shown as follows:

  0.003 [V]
  0.000 [mA]

Guide

Electron

Node.js library for Electron is prepared to build cross-platform desktop apps. It is used by Toolbit DMM GUI application.

Build

Download the latest source from GitHub repository.

The following command/software is required to build library:

  • make
    • For Windows, MinGW is highly recommended
  • Ubuntu linux / Raspberry Pi
    • libudev-dev

Library for C++ is built by the following steps:

  cd src
  make

Object and library files are created in ToolbitSDK/build and ToolbitSDK/lib folders.

If you want to build other language bindings, please refer to the following pages:

Dependency

License

[GPLv2] Please refer to the LICENSE file in this repository

About

Cross Platform SDK for Measurement and Automation System

Resources

License

Stars

Watchers

Forks

Packages

No packages published