Coder Social home page Coder Social logo

b1f6c1c4 / lab-scpi Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 366 KB

Easily configurable lab assistant that logs data using SCPI protocol

C++ 99.21% CMake 0.79%
electronics equipment ethernet gpib-device laboratory rs232 scpi-instruments test-automation test-equipment usbtmc

lab-scpi's Introduction

lab-scpi

Easily configurable lab assistant that logs data using SCPI protocol

Workflow

  1. Connect all of your SCPI-compatible test equipments (DMMs, AFGs, oscilloscopes, DC power supplies, spectrum analyzers, etc.) to a central computer. Supported connection methods include:

    • SCPI over TTY over USB (/dev/ttyUSB0)
    • SCPI over TCP over LAN (IP address + port)
    • (TODO) SCPI over USBTMC (/dev/usbtmc0)
  2. Write a YAML configuration describing your setup:

    channels:
      dmm: !tcp
        host: 10.11.13.200
        port: 5025
      ps: !tty
        dev: /dev/ttyUSB0
        baud: 9600
        stop: 2
  3. In the same YAML file, write your testing plan:

    steps:
      - !send {channel: ps, cmd: 'OUTP ON'}
      - !delay {seconds: 1}
      - !send {channel: dmm, cmd: 'MEAS:VOLT:DC?'}
      - U1: !recv {channel: dmm, unit: V}
      - !send {channel: ps, cmd: 'OUTP OFF'}
      - !send {channel: dmm, cmd: 'MEAS:VOLT:DC?'}
      - U2: !recv {channel: dmm, unit: V}
      - U: !math {op: '-', operands: ['U1', 'U2'], unit: V}
  4. Download and compile lab-scpi:

    git get b1f6c1c4/lab-scpi
    cd lab-scpi
    cmake -G Ninja -S . -B cmake-build-release -DCMAKE_BUILD_TYPE=Release
    cmake --build cmake-build-release
  5. Run the executable:

    ./cmake-build-release/lab <path-to-config>.yaml <path-to-data>.json

lab-scpi's People

Contributors

b1f6c1c4 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

caizikun

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.