GithubHelp home page GithubHelp logo

prashant9501 / alicat-mfc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sg-s/alicat-mfc

0.0 0.0 0.0 198 KB

Fast MATLAB class to control and read from an Alicat MFC over a serial port

License: GNU General Public License v3.0

MATLAB 100.00%

alicat-mfc's Introduction

alicat MFC

MATLAB class to control Alicat MFCs over a USB port.

Usage

First, determine which port your MFC appears on. To do this, you might have to plug the device in and out, reboot your machine, or scan /dev/.

Once you are convinced your computer can see the MFC, switch to MATLAB and create a MFC object:

m = MFC;

Look at the values of the P term in the control loop:

m.P

Set the value of the P term in the control loop to a new value:

m.P = 1000;

Change the setpoint to 100mL/min

m.set_point = 100;

View the current (actual) flow rate

m.flow_rate

View serial number, model number, and other parameters:

m = MFC
	MFC with properties:

             port: 'COM3'
              fid: [1x1 serial]
        baud_rate: 19200
        verbosity: 10
             name: 'A'
                P: 1100
                I: 0
                D: 10000
      temperature: []
         pressure: []
        set_point: 0
        flow_rate: []
     model_number: 'MCX-500SCCM-Y'
    serial_number: 91686
    max_flow_rate: 500

Find the best P and D parameters so that the MFC can reach a setpoint in the shortest possible time:

m.tunePID;

Performance

  • Updating flow setpoint: ~8 ms
  • Reading default frame: ~9 ms
  • Lag between updating setpoint and MFC achieving setpoint (parameter dependent): ~95 ms

Installation

Install using my package manager:

urlwrite('http://srinivas.gs/install.m','install.m')
install sg-s/alicat-mfc
install sg-s/srinivas.gs_mtools 

License

GPL v3

alicat-mfc's People

Contributors

sg-s 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.