This technical note serves as a guide for integrating Python with AMF’s microfluidic components, focusing on using the AMFTools library for communication. The goal is to simplify the process of using Python to control and interact with AMF’s OEM components, such as the RVM rotary valve and SPM syringe pump. Whether you’re developing an experimental setup or automating processes in your lab, this guide will help you achieve precise control over microfluidic functions using Python.
To get started, you will need:
Install the AMFTools library using pip:
pip install AMFTools
This library will help in controlling AMF microfluidic components by providing high-level functions to send commands and retrieve responses.
import amfTools from amfTools import AMF, Device
# Automatically detect a connected product device_list = amfTools.util.getProductList() # Display basic information for product in device_list: print(product) selected_device = device_list[0] # Select first available device
# Initialize the AMF product amf = AMF(product=selected_device)
# Set syringe size to 1000 µL amf.setSyringeSize(1000)
# Set pump speed (unit: 10 µm/s) amf.setSpeed(500)
#Get number of ports on your valve head amf.getPortNumber()
# Initialization of your product amf.home()
# Send a command to move the valve to port 2 amf.valveMoveTo(2)
# Pickup 200 µl into the syringe amf.pumpPickupVolume(200)
# Send a command to move the valve to port 3 amf.valveMoveTo(3)
# Dispense 200 µl from the syringe amf.pumpDispenseVolume(200)
You can access full configuration and diagnostic data, including:
getSerialNumber()
getFirmwareVersion()
getDeviceInformation(full=True)
getValvePosition()
getPlungerPosition()
checkValveStatus()
checkPumpStatus()
getHomeStatus()
setMicrostepResolution(0)
home()
Additional commands you may be interested in :
setSpeedLowFlow()
setSpeedUltraLowFlow()
SetFlowRate()
pumpPickupVolume()
pumpDispenseVolume()
pump()
pumpPickup()
pumpDispense()
hardStop()
delay()
executeLastCommand()
Using Python with AMF components provides flexibility and power for advanced automation and control. The AMFTools library is an effective solution to interface with microfluidic devices using common communication protocols like USB, RS232 or RS485. By integrating Python scripts, you can create customized, highly functional fluidic control systems suitable for diverse applications.
Feel free to reach out to AMF for more details on the AMFTools library, command set examples, and guidance on integrating custom workflows.
Receive the latest updates, insights, and advancements in microfluidics directly to your inbox Your email address is used exclusively for newsletter distributionand you can opt out at any time through the provided unsubscribe link.