GithubHelp home page GithubHelp logo

kompoth / attenuator Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 1.0 32.96 MB

Several examples of using LibXIMC protocol with a rotating attenuator.

HTML 79.09% LabVIEW 0.03% Python 0.60% CSS 1.21% JavaScript 0.10% C 14.63% C# 2.22% Pascal 0.82% MATLAB 1.30%

attenuator's Introduction

Attenuator

Project was a study exercise and was not updated for a long time. Currently it can be used as an example for new developers.

In this project several simple examples of using LibXIMC protocol with 8SMC5-USB controller were implemented. A rotating optical attenuator was used as a controlled device. Code samples were written on Python 3.4 and also in LabVIEW programming environment. Both LabVIEW and Python realizations include a simple linear and more complexed cyclical algorithms. Keep in mind that all examples imply presetting device using XILab and ".cfg" file, which is added to this project as well as all necessary LibXIMC files.

Python files can be launched with cmd from "Python_example" directory. Both simple.py and loop.py take as an argument a COM-port of the device: e.g. python loop.py COM63

LabVIEW project does not include files of XILab -- you need to add them first. However it is much easier just to copy files of the example (simple.vi, ex_loop.vi and att.lvproj) to the directory "examples" from XIMC Software package -- most likely you have already downloaded it, since you are using LibXIMC.

You also need to enter a COM-port number of your attenuator device in VI's block diagram -- predetermined might be incorrect. You can easily modify simple.vi and ex_loop.vi diagrams, using examples from Software package, so that device selection would be more adequate.

attenuator's People

Contributors

kompoth avatar

Stargazers

 avatar Claudia Ruiz de Galarreta avatar

Forkers

xy2259

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.