Giter Club home page Giter Club logo

ut181a's Introduction

ut181a

Documentation License: MIT Build Status

Uni-T UT181A digital multimeter (DMM) remote control library. It supports USB connection only.

Documentation

API documentation is here.

Building

Linux

$ sudo apt-get install libudev-dev libhidapi-dev
$ cargo build

Usage

extern crate hid;
extern crate ut181a;

use ut181a::{Dmm, Measurement};

fn run() -> Result<(), ut181a::Error> {
    let manager = hid::init()?;
    for device in manager.find(Some(0x10C4), Some(0xEA80)) {
        let mut dmm = Dmm::new(device.open()?)?;

        dmm.monitor_on()?;
        for _ in 1..10 {
            let m: Measurement = dmm.get_measurement()?;
            println!("{:?}", m);
        }
        dmm.monitor_off()?;

        break;
    }
    Ok(())
}

fn main() {
    match run() {
        Err(err) => {
            eprintln!("ERROR: {}", err);
        }
        _ => {}
    }
}

License

This library licensed under the following:

ut181a's People

Contributors

antage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

asvvizit

ut181a's Issues

Possible port to VBA to use it as Data import to Excel

Hey man,

Thanks for our great work on the tool !!

My question isnt a issue.
Is it possible to port the code to VBA to use it in Excel?

My thought would be that you can connect to the device with a UI button and then select the time duration and interval of the measurements via dropdown and then with a click on a start button the measurements are written directly to the Excel rows "A1" and down.

Would this be possible?
Unfortunately I only have rudimentary knowledge of VBA and am not able to create a device communication myself.

I would be very grateful for any help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.