Code Monkey home page Code Monkey logo

mfc's People

Contributors

alexrudd2 avatar patrickfuller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

py66

mfc's Issues

read_timeout deprecation

/opt/homebrew/lib/python3.9/site-packages/mfc/driver.py:76: DeprecationWarning: read_timeout is deprecated, use timeout argument instead
  self.session = aiohttp.ClientSession(read_timeout=self.timeout)

.set( ) not working

@patrickfuller

I'm trying to control my MFC using a Raspberry Pi4. I'm able to establish a connection with the MFC, .get( ) function is working, and so is .set_gas( ). But when I try to change the actual flowrate with .set( ), .open( ), or .close( ), I'm getting errors.

When I try to use .set( ) on the command line I get: Could not connect to device
When I try to use it in a script I get:
RuntimeError: Event loop is closed
Unclosed client session
Unclosed connector

image

Am I missing some sort of previous configuration on the MFC? I'm pretty lost here, so any help is welcome!
Thanks in advance!

how to switch between analog and digital?

Sorry, this isn't an issue, just a question. I was wondering how to switch between analog and digital control. On my 'plot' tab, there are analog & digital radio buttons. I have both analog control and the ethernet cable hooked up, and I switch between the 2 depending on how I want to control. Looking through your code, you talk about checking for analog control and switching to digital - is that what I need or something different? At some point, you mentioned "analog over digital", which doesn't sound like what I have - my analog comes through the 9 pin dsub.

Am I looking for something like this line?
await self._request('flow_setpoint_html', 'mfc.sp_adc_enable=0')

Remove IgH EtherCAT dependency

This library is overkill for the driver, especially because flow controllers don't need millisecond-level control (the mechanical response time on the controller is ~100ms).

By constructing the frames ourselves, we can remove the dependency and simplify the install process.

Asynchronous IO

The current approach blocks, taking time away from the controller OS. After implementing #1, we should be able to integrate this driver with an async framework (e.g. tornado, asyncio, twisted).

Using .set() function

@patrickfuller
.set(##.#) function is returning NoneType in python script? I can get it to work in command line but is there a way to use .set() within a python script? I am trying to set the flow controller to a particular setpoint but would like to do it in a script.

Thanks for your 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.