Code for microfluidic chip testbed