Git Product home page Git Product logo

visa_elixir's Introduction

ExVisa

This library provides a small set of Elixir functions to communicate with lab instruments via VISA.

Documentation is available here.

Requirements

NI-VISA, Python 3.10 and Poetry are required.

Installation

Add ex_visa to your list of dependencies in mix.exs:

def deps do
  [
    {:ex_visa, "~> 0.2.1"}
  ]
end

Usage

iex(1)> ExVisa.list_resources()
["ASRL1::INSTR", "ASRL3::INSTR", "GPIB0::27::INSTR", "GPIB1::8::INSTR"]
iex(2)> ExVisa.idn("GPIB1::8::INSTR")
"KEITHLEY INSTRUMENTS INC.,MODEL 6221,4559777,D04  /700x \n"
iex(3)> ExVisa.write("GPIB1::8::INSTR", "SOUR:DELT:ARM")
{}
iex(4)> ExVisa.write("GPIB1::8::INSTR", "INIT:IMM")
{}
iex(5)> ExVisa.query("GPIB1::8::INSTR", "SENS:DATA?")
"+9.9E37,+5.248E+01\n"

Internals

Communication to VISA is implemented using Erlport and pyvisa.

visa_elixir's People

Contributors

oasat avatar shcommon avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

visa_elixir's Issues

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.