Code Monkey home page Code Monkey logo

attenuator_script_python's Introduction

requirement to use this script:

Python version 3.7

pySerial module

usage: -h --help shows the help

    -p --port       [serialport]            path to serial port the device is in
                                            this option is required for every function except help

    -s --set_value  [chain:attenuation]    sets given chain to a given attenuation.
                                            available chains: 1 2 3 4
                                            attenuation needs to be between 0 and 95dB
                                            the resolution is 0.25dB

    -t --csv_table  [path to csv file]      instructs the attenuator to run an attenuation pattern
                                            when using this option the script needs to be terminated manually
                                            see in readme how the csv file needs to be filled

    -i --info                               reads out the status of the device

    --portinfo                              shows list of connected serial devices

the csv file should be structed as followed:

duaration_time_in_milliseconds;attenuation_chain1;attenuation_chain2;attenuation_chain3;attenuation_chain4

the script will set the chains and then wait the duaration time until going to the next line

attenuator_script_python's People

Contributors

philippbuechler avatar

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.