Skip to content

About

Matlab control of pumps from Harvard Apparatus

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

harvard_apparatus_pump_matlab

Control of Harvard Apparatus pumps using Matlab.

Currently only pumps that use the 'Model 44' protocol are supported. In particular this code has only been tested with a 'PHD 2000 Programmable' pump. I have not yet built-in support for complicated sequences to be run on the pump. I also have not yet built in support for controlling multiple pumps on the same serial connection.

Usage

The following assumes you've followed the setup directions found here.

Additionally, you must add the repository folder to your path. Don't add the package folder ('+harvard') or any other sub-folders to your path.

p = harvard.pump.model_44('COM4');
p.setPumpDirection('infuse');
p.setPumpMode('pump');
p.setInfuseRate(1,'ml/min');	
p.start();
for i = 1:10
    pause(1)
    pumped_volume = p.volume_delivered_ml;
    fprintf('Volume Pumped: %g (ml)\n',pumped_volume);
end
p.stop();

Dependencies

This code currently relies on Jim's Matlab Standard Library - https://github.com/JimHokanson/matlab_standard_library

I intend to remove this dependency at some point ...

Pump Models

About

Matlab control of pumps from Harvard Apparatus

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages