{"id":23954,"date":"2024-07-02T14:51:13","date_gmt":"2024-07-02T12:51:13","guid":{"rendered":"https:\/\/blog.darwin-microfluidics.com\/?p=23954"},"modified":"2026-11-19T15:25:07","modified_gmt":"2026-11-19T14:25:07","slug":"how-to-control-the-reglo-icc-pump-using-python-and-matlab","status":"publish","type":"post","link":"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/","title":{"rendered":"How to Control the Reglo ICC Pump Using Python and Matlab ?"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"23954\" class=\"elementor elementor-23954\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b426584 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b426584\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-afc421f\" data-id=\"afc421f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9832890 elementor-widget elementor-widget-text-editor\" data-id=\"9832890\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The <a href=\"https:\/\/darwin-microfluidics.com\/products\/reglo-icc-independent-channel-control-pump\"><strong>Reglo ICC<\/strong> (Independent Channel Control) peristaltic pump<\/a> by <strong>Masterflex Ismatec<\/strong> is a <strong>high-precision<\/strong> instrument engineered to deliver unparalleled control and accuracy in fluid dispensing and transfer. It stands out with its ability to independently control the direction and speed of up to four channels, each with unique programs for start, stop, calibration, and more.<\/p><p>With a working flow rate range of 0.001 to 35 mL\/min per channel and customizable pulsation levels, this pump offers the flexibility needed for a variety of applications. The intuitive digital interface and RS-232 computer connectivity allow for the creation of complex pumping sequences and the control of multiple pumps simultaneously.<\/p><p>In this blog post, we will explore how to control the Reglo ICC peristaltic pump using the Reglo ICC serial command protocol via two programming platforms: Python and Matlab.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5b6b3b2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5b6b3b2\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"background_background\":\"classic\"}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4a66061\" data-id=\"4a66061\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-db26019 elementor-toc--content-ellipsis elementor-toc--minimized-on-tablet elementor-widget elementor-widget-table-of-contents\" data-id=\"db26019\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings='{\"exclude_headings_by_selector\":\"#cta1, #cta2\",\"headings_by_tags\":[\"h2\",\"h3\"],\"marker_view\":\"numbers\",\"no_headings_message\":\"No headings were found on this page.\",\"minimize_box\":\"yes\",\"minimized_on\":\"tablet\",\"hierarchical_view\":\"yes\",\"min_height\":{\"unit\":\"px\",\"size\":\"\",\"sizes\":[]},\"min_height_tablet\":{\"unit\":\"px\",\"size\":\"\",\"sizes\":[]},\"min_height_mobile\":{\"unit\":\"px\",\"size\":\"\",\"sizes\":[]}}' data-widget_type=\"table-of-contents.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-toc__header\">\n\t\t\t\t\t\t<h4 class=\"elementor-toc__header-title\">\n\t\t\t\tTABLE OF CONTENTS\t\t\t<\/h4>\n\t\t\t\t\t\t\t\t\t\t<div class=\"elementor-toc__toggle-button elementor-toc__toggle-button--expand\" role=\"button\" tabindex=\"0\" aria-controls=\"elementor-toc__db26019\" aria-expanded=\"true\" aria-label=\"Open table of contents\"><i aria-hidden=\"true\" class=\"fas fa-chevron-down\"><\/i><\/div>\n\t\t\t\t<div class=\"elementor-toc__toggle-button elementor-toc__toggle-button--collapse\" role=\"button\" tabindex=\"0\" aria-controls=\"elementor-toc__db26019\" aria-expanded=\"true\" aria-label=\"Close table of contents\"><i aria-hidden=\"true\" class=\"fas fa-chevron-up\"><\/i><\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<div id=\"elementor-toc__db26019\" class=\"elementor-toc__body\">\n\t\t\t<div class=\"elementor-toc__spinner-container\">\n\t\t\t\t<i class=\"elementor-toc__spinner eicon-animation-spin eicon-loading\" aria-hidden=\"true\"><\/i>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1d92a08 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1d92a08\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5c1fa08\" data-id=\"5c1fa08\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3f930af elementor-widget elementor-widget-heading\" data-id=\"3f930af\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Why Choose the Reglo ICC Peristaltic Pump ?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7c26fa3 elementor-widget elementor-widget-text-editor\" data-id=\"7c26fa3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The Reglo ICC peristaltic pump is versatile and user-friendly, and it stands out as a top choice for fluid handling needs in laboratories and industrial settings alike. Here are some key advantages:<\/p><ul><li><strong>Independent Channel Control<\/strong>&nbsp;of up to four channels, each with its own program, flow rates and directions simultaneously.<\/li><li><strong>High Accuracy and Reproducibility<\/strong>&nbsp;ensuring precise and consistent fluid dispensing by minimizing tube-to-tube differences.<\/li><li><strong>Adjustable Pulsation and Flow Range <\/strong>with 6, 8, or 12 rollers used to adjust pulsation and flow range (more rollers result in less pulsatility and lower flow rates).<\/li><li><strong>Versatile Control Options<\/strong>&nbsp;via its digital interface or RS-232 connection (up to eight daisy-chain pumps).<\/li><li><strong>Comprehensive Operating Modes<\/strong>&nbsp;including continuous dispensing at a set rate, dispensing a volume over a specified period, calibrating each channel, and more.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-75b6099 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"75b6099\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b59927f\" data-id=\"b59927f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c79bd20 elementor-widget elementor-widget-heading\" data-id=\"c79bd20\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">What do you Need to Communicate with the Reglo ICC Pump ?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-447dce6 elementor-widget elementor-widget-text-editor\" data-id=\"447dce6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>To communicate with the Reglo ICC peristaltic pump you will need a few key components:<\/p><ul><li>A <a href=\"https:\/\/darwin-microfluidics.com\/products\/reglo-icc-independent-channel-control-pump\">Reglo ICC<\/a> pump with a <a href=\"https:\/\/darwin-microfluidics.com\/collections\/peristaltic-pump-heads\">pump head<\/a> and a <a href=\"https:\/\/darwin-microfluidics.com\/collections\/peristaltic-pump-tubing\">tubing<\/a> of your choice,<\/li><li>A mini-USB\/USB cable or a <a href=\"https:\/\/darwin-microfluidics.com\/products\/remote-control-pump-connector\">DB9 connector<\/a> (wired to an RS-232 control module) allowing for serial communication and enabling data transfer between the syringe pump and the computer,<\/li><li>A programming platform (Python and Matlab in the case herein) or a terminal emulator,<\/li><li>A basic understanding of the Reglo ICC command serial protocol explained <a href=\"#protocol\">below &#128071;<\/a> and detailed in the pump&rsquo;s <a href=\"https:\/\/darwin-microfluidics.com\/content\/pdfs\/Manual%20Ismatec%20Reglo%20IICC_eng.pdf\" target=\"_blank\" rel=\"noopener\">user guide<\/a>.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-eb4a5ad elementor-widget elementor-widget-global elementor-global-18316 elementor-widget-pix-promo-box\" data-id=\"eb4a5ad\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"cta1\" data-widget_type=\"pix-promo-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"pix-promo-box card w-100 h-1002 bg-heading-default  pix-hover-item rounded-10 position-relative overflow-hidden text-white   text-left w-100 d-block\"><img decoding=\"async\" src=\"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/02\/Tubing_1920x600_DARWIN_MICROFLUIDICS.jpg\" class=\"card-img pix-bg-image pix-img-scale h-100 rounded-10 pix-opacity-4 pix-hover-opacity-4\" alt=\"LOOKING FOR FLEXIBILITY IN TUBING OPTIONS?\"\/><a href=\"https:\/\/darwin-microfluidics.com\/collections\/microfluidic-tubings\" class=\"card-img-overlay2 d-inline-block w-100 pix-img-overlay pix-p-20 d-flex align-items-end\" style=\"min-height:300px;\"><div class=\"w-100\"><div class=\"\"><span class=\"pix-badge-element d-inline-block mr-1 \"><span class=\"badge font-weight-bold bg-primary  \" style=\"font-size:22px; \"><span class=\"text-white\" style=\"\">Discover our selection!<\/span><\/span><\/span><\/div><h2 class=\"card-title font-weight-bold text-white pix-my-10\" style=\"\">LOOKING FOR FLEXIBILITY IN TUBING OPTIONS?<\/h2><span class=\"d-flex align-items-center font-weight-bold text-light-opacity-6 text-20\"><span>Explore our microfluidic tubing solutions for reliable and efficient flow in your experiments!<\/span><i class=\"pixicon-angle-right pix-hover-right pix-hover-item pix-ml-10 font-weight-bold text-20\"><\/i><\/span><\/div><\/a><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-806028d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"806028d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f64c84c\" data-id=\"f64c84c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ab319bb elementor-widget elementor-widget-heading\" data-id=\"ab319bb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How to Set Up the Communication Port ?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-356b62d elementor-widget elementor-widget-text-editor\" data-id=\"356b62d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Before you can start sending and receiving data from the pump, you need to set up the communication port correctly. Here are the steps to follow:<\/p><ul><li>Connect the mini-USB\/USB cable or DB9 connector to the serial port on the rear of the pump and the corresponding port on the computer.<\/li><li>Turn on the pump.<\/li><li>Identify the serial port name assigned to the connection on your computer (e.g., COM4 for Windows or \/dev\/ttyUSB0 for Linux). You can typically find this information in the device manager or by using terminal commands.<\/li><li>Ensure that the serial port settings match the specifications of your syringe pump:<ul><li>1 start bit,<\/li><li>8 data bits,<\/li><li>Parity: none,<\/li><li>1 stop bit,<\/li><li>a baud rate of 9600 bits\/s.<\/li><\/ul><\/li><\/ul><ul><li>Remote mode on the <a href=\"#screen\">screen of the pump<\/a> confirms a successful connection, indicating that the pump is being remotely controlled by a computer via a USB 2.0, Mini-B or RS-232 connection.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0cc5172 elementor-widget elementor-widget-image\" data-id=\"0cc5172\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"screen\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"307\" height=\"226\" src=\"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/06\/remote_mode.png\" class=\"attachment-large size-large wp-image-24295\" alt=\"An image of the interface of the Reglo ICC peristaltic pump while in remote control mode.\" srcset=\"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/06\/remote_mode.png 307w, https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/06\/remote_mode-300x221.png 300w\" sizes=\"(max-width: 307px) 100vw, 307px\"\/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-39f34e7 elementor-widget elementor-widget-text-editor\" data-id=\"39f34e7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<strong><em>&#128680; The Reglo ICC protocol uses an addressing scheme designed to control multiple pumps &quot;daisy-chained&quot; to the same RS-232 bus. Each pump in this case is assigned a singular address. By using an address character that defines an individual channel, the RS-232 can also control each individual channel of the pump by itself.<\/em><\/strong>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9b4ff5d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9b4ff5d\" data-element_type=\"section\" data-e-type=\"section\" id=\"protocol\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b721576\" data-id=\"b721576\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6e510a8 elementor-widget elementor-widget-heading\" data-id=\"6e510a8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">The Reglo ICC Command Serial Protocol<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-565ffe4 elementor-widget elementor-widget-text-editor\" data-id=\"565ffe4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The Reglo ICC command protocol offers an array of commands for external control, categorized into distinct types for precise manipulation. These include communication management, operational modes and settings, control directives, setting configurations, calibration, and more.<\/p><p>There are two types of messages. Response messages sent from the pump to the PC and request messages sent from the PC to the pump. All messages are composed of a string of printable ASCII characters. Each message is terminated with a carriage return or a carriage return and a line feed.<\/p><p>The Reglo ICC command protocol used to control the Reglo ICC peristaltic pump is summarized below. More details can be found in the pump&rsquo;s <a href=\"https:\/\/darwin-microfluidics.com\/content\/pdfs\/Manual%20Ismatec%20Reglo%20IICC_eng.pdf\" target=\"_blank\" rel=\"noopener\">user manual<\/a>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-451e2f3 elementor-widget elementor-widget-heading\" data-id=\"451e2f3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Data Type Formats<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f8e78a0 elementor-widget elementor-widget-shortcode\" data-id=\"f8e78a0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n<table id=\"tablepress-35\" class=\"tablepress tablepress-id-35\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">Data Type<\/th><th class=\"column-2\">Width<\/th><th class=\"column-3\">Unit<\/th><th class=\"column-4\">Range<\/th><th class=\"column-5\">Format<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">Direction<\/td><td class=\"column-2\">1<\/td><td class=\"column-3\">-<\/td><td class=\"column-4\">-<\/td><td class=\"column-5\">J = clockwise<br>\nK = counter-clockwise<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">Discrete type 1<\/td><td class=\"column-2\">1 to 4<\/td><td class=\"column-3\">-<\/td><td class=\"column-4\">0 to 9999<\/td><td class=\"column-5\">1 to 4 characters in base 10. <br>\nUnused digits are not returned.<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">Discrete type 2<\/td><td class=\"column-2\">4<\/td><td class=\"column-3\">-<\/td><td class=\"column-4\">0 to 9999<\/td><td class=\"column-5\">4 characters in base 10.<br>\nRight-justified value.<br>\nUnused digits to the left are zeros.<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">Discrete type 3<\/td><td class=\"column-2\">6<\/td><td class=\"column-3\">-<\/td><td class=\"column-4\">0 to 999999<\/td><td class=\"column-5\">6 characters in base 10.<br>\nRight-justified value.<br>\nUnused digits to the left are zeros.<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">Discrete type 4<\/td><td class=\"column-2\">10<\/td><td class=\"column-3\">-<\/td><td class=\"column-4\">0 to 4294967295<\/td><td class=\"column-5\">10 characters in base 10.<br>\nRight-justified value.<br>\nUnused digits to the left are zeros.<\/td>\n<\/tr>\n<tr class=\"row-7\">\n\t<td class=\"column-1\">Discrete type 5<\/td><td class=\"column-2\">3<\/td><td class=\"column-3\">-<\/td><td class=\"column-4\">0 to 999<\/td><td class=\"column-5\">3 characters in base 10.<br>\nRight-justified value.<br>\nUnused digits to the left are zeros.<\/td>\n<\/tr>\n<tr class=\"row-8\">\n\t<td class=\"column-1\">Discrete type 6<\/td><td class=\"column-2\">5<\/td><td class=\"column-3\">-<\/td><td class=\"column-4\">0 to 99999<\/td><td class=\"column-5\">5 characters in base 10.<br>\nRight-justified value.<br>\nUnused digits to the left are zeros.<\/td>\n<\/tr>\n<tr class=\"row-9\">\n\t<td class=\"column-1\">Fractional type 1<\/td><td class=\"column-2\">Variable<\/td><td class=\"column-3\">-<\/td><td class=\"column-4\">-<\/td><td class=\"column-5\">XXXX.DD<br>\nVariable width of the integer portion (XXXX).<br>\nDecimal point and two digits to the right (.DD) always provided.<\/td>\n<\/tr>\n<tr class=\"row-10\">\n\t<td class=\"column-1\">Volume type 1<\/td><td class=\"column-2\">7<\/td><td class=\"column-3\">mL<\/td><td class=\"column-4\">-<\/td><td class=\"column-5\"><strong>mmmmEse &rArr; m.mmm &times; 10^se:<\/strong><br>\n<br>\n<strong>mmmm<\/strong> &mdash; 4 character mantissa<br>\nDecimal point inferred after first character.<br>\n<strong>E<\/strong> &mdash; 'E' character<br>\n<strong>s<\/strong> &mdash; sign for the exponent : + or -<br>\n<strong>e<\/strong> &mdash; single digit exponent<\/td>\n<\/tr>\n<tr class=\"row-11\">\n\t<td class=\"column-1\">Time type 1<\/td><td class=\"column-2\">1 to 8<\/td><td class=\"column-3\">0.1s<\/td><td class=\"column-4\">0 to 35964000 (0 to 999 hr)<\/td><td class=\"column-5\">1 to 8 characters representing the time.<br>\nUnused digits are not returned.<\/td>\n<\/tr>\n<tr class=\"row-12\">\n\t<td class=\"column-1\">Time type 2<\/td><td class=\"column-2\">8<\/td><td class=\"column-3\">0.1s<\/td><td class=\"column-4\">0 to 35964000 (0 to 999 hr)<\/td><td class=\"column-5\">8 characters representing the time.<br>\nRight-justified value.<br>\nUnused digits to the left are zeros.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-35 from cache --><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bef1d72 elementor-widget elementor-widget-heading\" data-id=\"bef1d72\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Response Messages<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2ea8fe7 elementor-widget elementor-widget-text-editor\" data-id=\"2ea8fe7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>A response message is a message sent from the pump to the PC in response to a request message sent by the PC. It can be in the form of a status or a data response.<\/p><p>A <strong>status response<\/strong> message is a single ASCII character that indicates whether the command was executed successfully or not. The different ASCII characters that indicate the execution status of the requested command are represented in the table below.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ca5a5da elementor-widget elementor-widget-shortcode\" data-id=\"ca5a5da\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n<table id=\"tablepress-36\" class=\"tablepress tablepress-id-36\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">ASCII Character<\/th><th class=\"column-2\">Definition<\/th><th class=\"column-3\">In Hex<\/th><th class=\"column-4\">In Base 10<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">*<\/td><td class=\"column-2\">command executed successfully<\/td><td class=\"column-3\">0x2a<\/td><td class=\"column-4\">42<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">#<\/td><td class=\"column-2\">command not executed successfully<\/td><td class=\"column-3\">0x23<\/td><td class=\"column-4\">35<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">+<\/td><td class=\"column-2\">positive response used for some commands<\/td><td class=\"column-3\">0x2b<\/td><td class=\"column-4\">43<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">-<\/td><td class=\"column-2\">negative response used for some commands<\/td><td class=\"column-3\">0x2d<\/td><td class=\"column-4\">45<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-36 from cache --><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c93e6cc elementor-widget elementor-widget-text-editor\" data-id=\"c93e6cc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>A <strong>data response<\/strong> is received from the pump when parameter values are requested by the PC. It is composed of one or more data parameter values delimited by spaces. Each data parameter in the response message is a data value returned by the pump in a format defined by the request message.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-69f21dd elementor-widget elementor-widget-text-editor\" data-id=\"69f21dd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<table class=\"custom-table\">\n    <tbody>\n        <tr>\n            <td>Data Parameter 1<\/td>\n            <td>[SP]<\/td>\n            <td>Data Parameter 2<\/td>\n            <td>[SP]<\/td>\n            <td class=\"special\">&hellip;<\/td>\n            <td>Data Parameter n<\/td>\n            <td>[CR]<\/td>\n            <td>[LF]<\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b849348 elementor-widget elementor-widget-heading\" data-id=\"b849348\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Request Messages<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5f04def elementor-widget elementor-widget-text-editor\" data-id=\"5f04def\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The request messages are messages sent from the PC to the pump. These should be answered by a response message from the pump.<\/p><p>A device control command (as shown below) is composed of a string of printable ASCII characters and terminated with a carriage return [CR] or a carriage return [CR] and a line feed [LF]. It is addressed to an individual pump\/channel to get or set some particular parameters.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cabe715 elementor-widget elementor-widget-text-editor\" data-id=\"cabe715\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<table class=\"custom-table\">\n    <tbody>\n        <tr>\n            <td>Address (1-4)<\/td>\n            <td>Command code<\/td>\n            <td>Data Parameter 1<\/td>\n            <td>[VB]<\/td>\n\t    <td>Data Parameter 2<\/td>\n\t    <td>[VB]<\/td>\n            <td class=\"special\">&hellip;<\/td>\n            <td>Data Parameter n<\/td>\n            <td>[CR]<\/td>\n            <td>[LF]<\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3affff0 elementor-widget elementor-widget-text-editor\" data-id=\"3affff0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In the case of a bus of pumps that are &quot;daisy-chained&quot;, the address is from 1 to 8 (maximum number of pumps being controlled at once). In the case where only one pump is being controlled, the address is from 1 to 4 corresponding to the number of channels being independently controlled, as presented in the control command just above.<\/p><p>The command string is typically one or two characters indicating the command type. The data parameters are optional values that may be provided when setting a parameter value. And finally, the vertical bar character delimits the data parameters.<\/p><p>Different commands can be addressed to the pump related to communications management, pump drive, operational modes and settings, calibration, and more. Some of these direct addressed commands are listed in the table below. More commands can be found and detailed in the <a href=\"https:\/\/darwin-microfluidics.com\/content\/pdfs\/Manual%20Ismatec%20Reglo%20IICC_eng.pdf\" target=\"_blank\" rel=\"noopener\">operating manual<\/a>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d59f746 elementor-widget elementor-widget-shortcode\" data-id=\"d59f746\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n<table id=\"tablepress-37\" class=\"tablepress tablepress-id-37\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">Command<\/th><th class=\"column-2\">Function<\/th><th class=\"column-3\">Set\/Get<\/th><th class=\"column-4\">Pump Response<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">H<\/td><td class=\"column-2\">Start pump<\/td><td class=\"column-3\">Set<\/td><td class=\"column-4\">*<br>\n- : channel setting not correct<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">I<\/td><td class=\"column-2\">Stop pump<\/td><td class=\"column-3\">Set<\/td><td class=\"column-4\">*<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">xI<\/td><td class=\"column-2\">Pause pumping (STOP in RPM or flow rate mode)<\/td><td class=\"column-3\">Set<\/td><td class=\"column-4\">*<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">J<\/td><td class=\"column-2\">Set rotation direction to clockwise<\/td><td class=\"column-3\">Set<\/td><td class=\"column-4\">*<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">K<\/td><td class=\"column-2\">Set rotation direction to counter-clockwise<\/td><td class=\"column-3\">Set<\/td><td class=\"column-4\">*<\/td>\n<\/tr>\n<tr class=\"row-7\">\n\t<td class=\"column-1\">xD<\/td><td class=\"column-2\">Get rotation direction<\/td><td class=\"column-3\">Get<\/td><td class=\"column-4\">J : clockwise<br>\nK : counter-clockwise<\/td>\n<\/tr>\n<tr class=\"row-8\">\n\t<td class=\"column-1\">xM<\/td><td class=\"column-2\">Get pump\/channel current mode<\/td><td class=\"column-3\">Get<\/td><td class=\"column-4\">L : RPM<br>\nM : Flow Rate<br>\nO : Volume at rate<br>\nG : Volume over time<br>\nQ : Volume+Pause<br>\nN : Time<br>\nP : Time+Pause<\/td>\n<\/tr>\n<tr class=\"row-9\">\n\t<td class=\"column-1\">L<\/td><td class=\"column-2\">Set pump\/channel to RPM mode<\/td><td class=\"column-3\">Set<\/td><td class=\"column-4\">*<\/td>\n<\/tr>\n<tr class=\"row-10\">\n\t<td class=\"column-1\">M<\/td><td class=\"column-2\">Set pump\/channel to Flow Rate mode<\/td><td class=\"column-3\">Set<\/td><td class=\"column-4\">*<\/td>\n<\/tr>\n<tr class=\"row-11\">\n\t<td class=\"column-1\">O<\/td><td class=\"column-2\">Set pump\/channel to Volume at rate mode<\/td><td class=\"column-3\">Set<\/td><td class=\"column-4\">*<\/td>\n<\/tr>\n<tr class=\"row-12\">\n\t<td class=\"column-1\">G<\/td><td class=\"column-2\">Set pump\/channel to Volume over time mode<\/td><td class=\"column-3\">Set<\/td><td class=\"column-4\">*<br>\n- : channel setting not correct<\/td>\n<\/tr>\n<tr class=\"row-13\">\n\t<td class=\"column-1\">S<\/td><td class=\"column-2\">RPM mode flow rate setting (0.01 RPM).<br>\nDiscrete type 3.<\/td><td class=\"column-3\">Set<\/td><td class=\"column-4\">*<\/td>\n<\/tr>\n<tr class=\"row-14\">\n\t<td class=\"column-1\">S<\/td><td class=\"column-2\">Get current speed setting in RPM<\/td><td class=\"column-3\">Get<\/td><td class=\"column-4\">Fractional type 1<\/td>\n<\/tr>\n<tr class=\"row-15\">\n\t<td class=\"column-1\">f<\/td><td class=\"column-2\">Set RPM flow rate in volume\/time mode (mL\/min).<br>\nVolume type 2 (Similar to type 1 without the 'E' character).<\/td><td class=\"column-3\">Set<\/td><td class=\"column-4\">Volume type 1<\/td>\n<\/tr>\n<tr class=\"row-16\">\n\t<td class=\"column-1\">f<\/td><td class=\"column-2\">Get current volume\/time flow rate (mL\/min)<\/td><td class=\"column-3\">Get<\/td><td class=\"column-4\">Volume type 1<\/td>\n<\/tr>\n<tr class=\"row-17\">\n\t<td class=\"column-1\">xP<\/td><td class=\"column-2\">Get pumping pause time<\/td><td class=\"column-3\">Get<\/td><td class=\"column-4\">Time type 1<\/td>\n<\/tr>\n<tr class=\"row-18\">\n\t<td class=\"column-1\">xY<\/td><td class=\"column-2\">Start calibration on a channel<\/td><td class=\"column-3\">Set<\/td><td class=\"column-4\">*<\/td>\n<\/tr>\n<tr class=\"row-19\">\n\t<td class=\"column-1\">xZ<\/td><td class=\"column-2\">Cancel calibration<\/td><td class=\"column-3\">Set<\/td><td class=\"column-4\">*<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-37 from cache --><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1a9d761 elementor-widget elementor-widget-text-editor\" data-id=\"1a9d761\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Different symbols are used to represent ASCII characters in the defined request messages. Some of these are presented in the table below.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-834be72 elementor-widget elementor-widget-shortcode\" data-id=\"834be72\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n<table id=\"tablepress-38\" class=\"tablepress tablepress-id-38\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">Symbol<\/th><th class=\"column-2\">Definition<\/th><th class=\"column-3\">In Hex<\/th><th class=\"column-4\">In Base 10<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">[CR]<\/td><td class=\"column-2\">carriage return<\/td><td class=\"column-3\">0x0d<\/td><td class=\"column-4\">13<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">[LF]<\/td><td class=\"column-2\">line feed<\/td><td class=\"column-3\">0x0a<\/td><td class=\"column-4\">10<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">[SP]<\/td><td class=\"column-2\">space<\/td><td class=\"column-3\">0x20<\/td><td class=\"column-4\">32<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">[VB]<\/td><td class=\"column-2\">vertical bar<\/td><td class=\"column-3\">0x7c<\/td><td class=\"column-4\">124<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">@<\/td><td class=\"column-2\">'@' character<\/td><td class=\"column-3\">0x40<\/td><td class=\"column-4\">64<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-38 from cache --><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-10d643e elementor-widget elementor-widget-heading\" data-id=\"10d643e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Examples of Commands<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7d771b6 elementor-widget elementor-widget-text-editor\" data-id=\"7d771b6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In order to communicate with the pump, one should understand the different commands the pump takes and prepare the needed control computer command strings.<\/p><p>In the table below, a few examples of direct-addressed commands are presented and explained.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-688d929 elementor-widget elementor-widget-shortcode\" data-id=\"688d929\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n<table id=\"tablepress-41\" class=\"tablepress tablepress-id-41\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">Command<\/th><th class=\"column-2\">Definition<\/th><th class=\"column-3\">Pump Response<\/th><th class=\"column-4\">Definition<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">1H[CR]<\/td><td class=\"column-2\">Start channel 1<\/td><td class=\"column-3\">*<\/td><td class=\"column-4\">Command executed successfully<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">4I[CR]<\/td><td class=\"column-2\">Stop channel 4<\/td><td class=\"column-3\">*<\/td><td class=\"column-4\">Command executed successfully<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">2xD[CR]<\/td><td class=\"column-2\">Get the direction of channel 2<\/td><td class=\"column-3\">K[CR][LF]<\/td><td class=\"column-4\">Direction of rotation is counter-clockwise<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">3J[CR]<\/td><td class=\"column-2\">Set the direction of rotation of channel 3 to clockwise<\/td><td class=\"column-3\">*<\/td><td class=\"column-4\">Command executed successfully<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">1xM[CR]<\/td><td class=\"column-2\">Get the operational mode of channel 1<\/td><td class=\"column-3\">L[CR][LF]<\/td><td class=\"column-4\">Current mode is RPM<\/td>\n<\/tr>\n<tr class=\"row-7\">\n\t<td class=\"column-1\">3G[CR]<\/td><td class=\"column-2\">Set the operational mode of channel 3 to volume over time<\/td><td class=\"column-3\">*<\/td><td class=\"column-4\">Command executed successfully<\/td>\n<\/tr>\n<tr class=\"row-8\">\n\t<td class=\"column-1\">1S[CR]<\/td><td class=\"column-2\">Get the drive speed of channel 1<\/td><td class=\"column-3\">22.50[CR][LF]<\/td><td class=\"column-4\">Response in the form of &quot;fractional type 1&quot;. The drive speed is 22.5 RPM<\/td>\n<\/tr>\n<tr class=\"row-9\">\n\t<td class=\"column-1\">1S004500[CR]<\/td><td class=\"column-2\">Set the drive speed of channel 1 to 45 RPM. The speed setting has a resolution of 0.01 RPM (45 assigned as 4500) in the form of a &quot;discrete type 3&quot; with a width of 6 characters with unused digits to the left being zeros (=&gt; 004500).<\/td><td class=\"column-3\">*<\/td><td class=\"column-4\">Command executed successfully<\/td>\n<\/tr>\n<tr class=\"row-10\">\n\t<td class=\"column-1\">3f[CR]<\/td><td class=\"column-2\">Get the pumping rate of channel 3<\/td><td class=\"column-3\">1275E+1[CR][LF]<\/td><td class=\"column-4\">Response in the form of a &quot;volume type 1&quot; (<strong>mmmmEse =&gt; m.mmm x10<sup>se<\/sup><\/strong>):<br>\n<ul><br>\n<li>mmmm = 1275<\/li><br>\n<li>E = 'E' character<\/li><br>\n<li>s is +<\/li><br>\n<li>e = 1<\/li><br>\n<\/ul>Therefore, the pumping rate of channel 3 is 12.75 mL\/min (1.275x10<sup>+1<\/sup>)<\/td>\n<\/tr>\n<tr class=\"row-11\">\n\t<td class=\"column-1\">3f1500-3[CR]<\/td><td class=\"column-2\">Set the pumping rate of channel 3 to 1.5 &mu;L\/min. Pumping rate setting in the form of &quot;volume type 2&quot; (<strong>mmmmse =&gt; m.mmm x10<sup>se<\/sup><\/strong>). <br>\n1.5 &micro;L\/min = 1.500x10<sup>-3<\/sup> mL\/min, therefore:<br>\n<ul><br>\n<li>mmmm = 1500<\/li><br>\n<li>s is -<\/li><br>\n<li>e = 3<\/li><br>\n<\/ul><\/td><td class=\"column-3\">1500E-3[CR][LF]<\/td><td class=\"column-4\">Response in the form of &quot;volume type 1&quot;.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-41 from cache --><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2c6ac00 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2c6ac00\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-540fe09\" data-id=\"540fe09\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7b9849e elementor-widget elementor-widget-heading\" data-id=\"7b9849e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How to Control the Reglo ICC Pump Using IsmaTerm ?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b9577c9 elementor-widget elementor-widget-text-editor\" data-id=\"b9577c9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>IsmaTerm is a software that allows one to control the Reglo ICC pump. It is a terminal emulation software that communicates with the pump via RS-232 serial port. IsmaTerm can be used to start and stop the pump, set and get the pump parameters, and program the pump operation. It is compatible with Windows operating systems and can be downloaded via this <a href=\"https:\/\/uk.vwr.com\/cms\/masterflex-ismatec-software-downloads\" target=\"_blank\" rel=\"noopener\">link<\/a>.<\/p><p>To communicate with the pump, launch the IsmaTerm software, select the COM port that corresponds to the pump and enter the settings of the port in order to change its characteristics (as can be shown in the figure below). The default baud rate is 9600 bits\/s, with 8 data bits, 1 stop bit and no parity.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-df615f8 elementor-widget elementor-widget-image\" data-id=\"df615f8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"640\" height=\"600\" src=\"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/06\/Ismaterm2.png\" class=\"attachment-large size-large wp-image-24322\" alt=\"Screenshot of the IsmaTerm software with two opened windows for the settings and characteristics of the port.\" srcset=\"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/06\/Ismaterm2.png 717w, https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/06\/Ismaterm2-300x281.png 300w\" sizes=\"(max-width: 640px) 100vw, 640px\"\/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-00d2d3d elementor-widget elementor-widget-text-editor\" data-id=\"00d2d3d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In the IsmaTerm window, one can type commands to control the pump and view its responses. These commands are case sensitive and must be followed by a carriage return (Enter key).<\/p><p>The IsmaTerm window presented below shows some messages sent to and received from the pump, allowing to start\/stop the pump and set\/get pump parameters. In this example, only channel 3 is being controlled. Each command sent to the pump receives a response from it (intended messages in the figure below).<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-656193b elementor-widget elementor-widget-image\" data-id=\"656193b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"309\" height=\"398\" src=\"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/06\/channel3.png\" class=\"attachment-large size-large wp-image-24323\" alt=\"\" srcset=\"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/06\/channel3.png 309w, https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/06\/channel3-233x300.png 233w\" sizes=\"(max-width: 309px) 100vw, 309px\"\/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e586f5d elementor-widget elementor-widget-text-editor\" data-id=\"e586f5d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The commands just presented in the IsmaTerm window are briefly explained in the table below.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-480f7f2 elementor-widget elementor-widget-shortcode\" data-id=\"480f7f2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n<table id=\"tablepress-39\" class=\"tablepress tablepress-id-39\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">Command<\/th><th class=\"column-2\">Definition<\/th><th class=\"column-3\">Pump Response<\/th><th class=\"column-4\">Definition<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">3H<\/td><td class=\"column-2\">Start channel 3<\/td><td class=\"column-3\">*<\/td><td class=\"column-4\">Command executed successfully<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">3xD<\/td><td class=\"column-2\">Get the direction<\/td><td class=\"column-3\">K{13}{10}<\/td><td class=\"column-4\">Direction of rotation is counter-clockwise<br>\n{13} &mdash; carriage return [CR]<br>\n{10} &mdash; line feed [LF]<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">3J<\/td><td class=\"column-2\">Set the channel rotation direction to clockwise<\/td><td class=\"column-3\">*<\/td><td class=\"column-4\">Command executed successfully<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">3xM<\/td><td class=\"column-2\">Get the operational mode of channel 3<\/td><td class=\"column-3\">L{13}{10}<\/td><td class=\"column-4\">Current mode is RPM<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">3S<\/td><td class=\"column-2\">Get the setting speed in RPM<\/td><td class=\"column-3\">10.00{13}{10}<\/td><td class=\"column-4\">Fractional type 1.<br>\nRotation speed of 10 RPM.<\/td>\n<\/tr>\n<tr class=\"row-7\">\n\t<td class=\"column-1\">3S002400<\/td><td class=\"column-2\">Set the speed to 24 RPM<\/td><td class=\"column-3\">*<\/td><td class=\"column-4\">Command executed successfully<\/td>\n<\/tr>\n<tr class=\"row-8\">\n\t<td class=\"column-1\">3I<\/td><td class=\"column-2\">Stop channel 3<\/td><td class=\"column-3\">*<\/td><td class=\"column-4\">Command executed successfully<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-39 from cache --><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-389fa4c elementor-widget elementor-widget-text-editor\" data-id=\"389fa4c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>A control command communicated to the pump is sometimes obtained after some calculations and conversions. It is therefore important to prepare all the needed commands before starting the external control of the pump.<\/p><p>Moreover, it is easier to have these control commands written and communicated to the pump via a set of codes (already prepared), using programming platforms such as Python and Matlab, than to write and send a command every now and then to the pump via a terminal program. These platforms allow not only an easier communication with the pump, but also, an easier external communication with a bus of pumps and allow writing a pumping program with loops, pauses, etc.<\/p><p>Quick start serial communication code snippets using Python and Matlab, that serve as a small introduction on how to communicate with the Reglo ICC pump via these two programming platforms, are provided and explained in the following.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6e51247 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6e51247\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-15c16d7\" data-id=\"15c16d7\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ad323ba elementor-widget elementor-widget-heading\" data-id=\"ad323ba\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How to Control the Reglo ICC Pump Using Python ?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0190497 elementor-widget elementor-widget-text-editor\" data-id=\"0190497\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The Reglo ICC pump can be controlled remotely using Python, offering greater flexibility and convenience for running complex pumping programs with loops, pauses, and varying speeds\/flow rates. This approach is particularly useful when integrating multiple devices, as it allows for the automation of sequences involving all connected equipment.<\/p><p>In this section, we will show first how to open the serial port and send simple commands to the pump using Python. Then, a dedicated custom Python library that utilizes the Reglo ICC command protocol will be introduced, allowing one to open the serial port and send control command strings to the Reglo ICC pump. We&rsquo;ll cover examples that show how to start and stop the pump, set speed, set rate, etc., providing a practical guide to using Python for controlling the Reglo ICC pump.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ec66828 elementor-widget elementor-widget-code-highlight\" data-id=\"ec66828\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-python line-numbers\">\n\t\t\t\t<code readonly class=\"language-python\">\n\t\t\t\t\t<xmp>'''\r\n------------------------------------------------\r\nWriting\/Reading Simple Commands to\/from the Pump\r\n------------------------------------------------\r\n'''\r\n\r\nimport serial # Python module for serial communication\r\n\r\n# Open the serial port with the data format corresponding to the Reglo ICC pump\r\nser = serial.Serial('COM5', 9600, parity=serial.PARITY_NONE, bytesize=8, stopbits=1, timeout=None, xonxoff=0, rtscts=0) # modify your COM#\r\n\r\n### Start channel 3 of the pump \r\n# Method 1\r\ncmd = str(3) + 'H' + chr(13) # concatenate strings :\r\n                             # 3 represents channel 3\r\n                             # 'H' to start the channel\r\n                             # 13 for the carriage return [CR]\r\nser.write(cmd.encode()) # write the concatenated string to ser\r\n\r\n# Method 2\r\nser.write(f'{3}H{chr(13)}'.encode()) # write string literals to ser\r\n\r\nread_data = ser.read(ser.in_waiting).decode() \r\n# read all the available bytes from the serial port connection as a char vector\r\n# The pump returns '*' after a successful execution of the command\r\n\r\n### Read the rotation direction of channel 3\r\nser.write(f'{3}xD{chr(13)}'.encode()) # 'xD' to get the rotation direction \r\nread_data = ser.read(ser.in_waiting).decode() \r\n# The pump returns : K[CR][LF] --&gt; counter-clockwise\r\n\r\n### Change the rotation direction of channel 3 to clockwise\r\nser.write((str(3) + 'J' + chr(13)).encode()) # 'J' to set the direction to clockwise\r\nread_data = ser.read(ser.in_waiting).decode() \r\n# The pump returns '*' after a successful execution of the command\r\n\r\n### Change the setting speed to 24 RPM\r\nser.write((str(3) + 'S002400' + chr(13)).encode()) \r\n# Setting speed has a resolution of 0.01 RPM so 24 RPM is assigned as 2400\r\n# Discrete type 3 data has a width of 6 characters with unused digits to the left being zeros --&gt; 002400\r\nread_data = ser.read(ser.in_waiting).decode() \r\n# The pump returns '*' after a successful execution of the command\r\n\r\n### Stop channel 3 of the pump\r\nser.write((str(3) + 'I' + chr(13)).encode()) # 'I' to stop the channel\r\nread_data = ser.read(ser.in_waiting).decode() \r\n# The pump returns '*' after a successful execution of the command\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cfcd8a4 elementor-widget elementor-widget-text-editor\" data-id=\"cfcd8a4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Below, the custom Python library that utilizes the Reglo ICC command protocol is presented. This library enables the creation of complex pumping programs, including features such as pauses, loops, conditional logic, and more and enabling an easier control of a bus of pumps.&nbsp;<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c575c45 elementor-widget elementor-widget-code-highlight\" data-id=\"c575c45\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-python line-numbers\">\n\t\t\t\t<code readonly class=\"language-python\">\n\t\t\t\t\t<xmp>'''\r\n------------------------------------------\r\nReglo ICC Peristaltic Pump Control Library\r\n------------------------------------------\r\n'''\r\n\r\nimport serial\r\nimport time\r\n\r\n#---------------------------------------------------------------------------------#\r\n# LIBRARY MANAGING THE COMMUNICATION WITH A REGLO ICC WITH 3 INDEPENDENT CHANNELS #\r\n#---------------------------------------------------------------------------------#\r\n\r\nclass RegloICC:\r\n    # Initialize the pump\r\n    def __init__(self, COM):\r\n        self.COM = COM\r\n        # Open the serial port with the data format corresponding to the RegloICC pump\r\n        self.sp = serial.Serial(self.COM, 9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS)\r\n        self.direction = [0, 0, 0]  # 0 = clockwise, 1 = counter-clockwise\r\n        self.mode = [0, 0, 0]  # 0 = RPM, 1 = Flow Rate, 2 = Volume (over time), one can add here all other modes\r\n        self.speed = [0, 0, 0]  # rotation speed for each channel in RPM mode\r\n        # Change the size of 'direction', 'mode' and 'speed' according to the total number of channels to control. \r\n        # In the case herein, 3 channels are being independently controlled\r\n\r\n    # Delete the pump\r\n    def __del__(self):\r\n        self.sp.close()\r\n        \r\n    # Start the corresponding channel\r\n    def start_channel(self, channel):\r\n        command = f'{channel}H\\r'.encode() # 'H' to start the channel\r\n        # \\r for the carriage return [CR] required to tell the pump that the command is finished\r\n        self.sp.write(command) # write the command to the pump\r\n        time.sleep(0.1) # give the pump time to process the command after sending it before reading the response\r\n        return self.sp.read(self.sp.in_waiting).decode() # read the pump response \r\n  \r\n    # Stop the corresponding channel\r\n    def stop_channel(self, channel):\r\n        command = f'{channel}I\\r'.encode() # 'I' to stop the channel\r\n        self.sp.write(command)\r\n        time.sleep(0.1)\r\n        return self.sp.read(self.sp.in_waiting).decode()\r\n\r\n    # Set the rotation direction for a single channel\r\n    def set_direction(self, channel, direction):\r\n        if direction == 1:\r\n            command = f'{channel}K\\r'.encode() # counter-clockwise\r\n        else:\r\n            command = f'{channel}J\\r'.encode() # clockwise\r\n        self.sp.write(command)\r\n        self.direction[channel - 1] = direction # pyhton count starts from 0\r\n        time.sleep(0.1)\r\n        return self.sp.read(self.sp.in_waiting).decode()\r\n\r\n    # Get the rotation direction of a single channel\r\n    def get_direction(self, channel): \r\n        command = f'{channel}xD\\r'.encode() # 'xD' to get the rotation direction\r\n        self.sp.write(command)\r\n        time.sleep(0.1)\r\n        # read the rotation direction from the corresponding channel\r\n        return self.sp.read(self.sp.in_waiting).decode()\r\n\r\n    # Set the speed for a single channel in RPM when in RPM mode\r\n    def set_speed(self, channel, speed): # in RPM, with speed less then 100\r\n        speed = max(min(speed, 100), 0) # speed between 0 and 100 RPM\r\n        speed_string = f'{int(speed):03d}{int((speed - int(speed)) * 100)}' # format speed explained below\r\n        command = f'{channel}S0{speed_string}\\r'.encode()\r\n        self.sp.write(command) # set the speed for the corresponding channel\r\n        self.speed[channel - 1] = speed\r\n        time.sleep(0.1)\r\n        return self.sp.read(self.sp.in_waiting).decode()\r\n\r\n#--------------------------------------------------------------------------------#    \r\n# SPEED_STRING EXAMPLE                                                           #\r\n## Speed value :                                                                 #\r\n# speed = 123.456                                                                #\r\n#                                                                                #\r\n## Convert the integer part to a string with at least three digits :             #\r\n# integer_part = f'{int(speed):03d}'; ## --&gt; Result: '123'                       #\r\n#                                                                                #\r\n## Convert the decimal part to a string with two digits :                        #\r\n# decimal_part = f'{int((speed - int(speed)) * 100)}'; ## --&gt; Result: '45'       #\r\n#                                                                                #      \r\n## Concatenate the two parts :                                                   #\r\n# speed_string = f'{int(speed):03d}{int((speed - int(speed)) * 100)}';           #\r\n## --&gt; Result: '12345' representing 123.45 in fixed-point notation               #\r\n#                                                                                #      \r\n## When the two strings are concatenated, the result is a string that represents #\r\n## the original speed value in a fixed-point notation with three digits before   #\r\n## the decimal point and two digits after, without the decimal separator.        #\r\n#--------------------------------------------------------------------------------# \r\n\r\n    # Read out speed of a single channel in RPM when in RPM mode\r\n    def get_speed(self, channel):\r\n        command = f'{channel}S\\r'.encode() # 'S' to get the setting speed in RPM\r\n        self.sp.write(command)\r\n        time.sleep(0.1)\r\n        return self.sp.read(self.sp.in_waiting).decode()\r\n\r\n    # Set the operational mode for a single channel (you can add all other modes)\r\n    def set_mode(self, channel, mode):\r\n        if mode == 0:\r\n            command = f'{channel}L\\r'.encode()  # RPM mode\r\n        elif mode == 1:\r\n            command = f'{channel}M\\r'.encode()  # Flow rate mode\r\n        else:\r\n            command = f'{channel}G\\r'.encode()  # Volume (over time) mode\r\n        self.sp.write(command)\r\n        self.mode[channel - 1] = mode\r\n        time.sleep(0.1)\r\n        return self.sp.read(self.sp.in_waiting).decode()\r\n\r\n    # Get the operational mode of a single channel\r\n    def get_mode(self, channel):\r\n        command = f'{channel}xM\\r'.encode() # 'xM' to get the operational mode\r\n        self.sp.write(command)\r\n        time.sleep(0.1)\r\n        return self.sp.read(self.sp.in_waiting).decode()\r\n\r\n#----------------------------------------------------------------------------#\r\n#   EXAMPLES ON HOW TO USE THE DEFINED CLASS TO CONTROL THE Reglo ICC PUMP   #\r\n#----------------------------------------------------------------------------#\r\n\r\n### Initialize the pump with the specified COM port\r\npump = RegloICC('COM5') # Replace 'COM5' with your actual COM port\r\n\r\n### Start channel 3\r\npump.start_channel(3)\r\n\r\n### Get the rotation direction of channel 3\r\nprint(pump.get_direction(3)) \r\n\r\n### Set the rotation direction of channel 3 to clockwise\r\npump.set_direction(3, 0)\r\n\r\n### Get the current operational mode of channel 3 \r\nprint(pump.get_mode(3))  \r\n\r\n### Set the operational mode of channel 3 to RPM\r\npump.set_mode(3, 0)\r\n\r\n### Get the current speed setting of channel 3 \r\nprint(pump.get_speed(3))  \r\n\r\n### Set the setting speed of channel 3 to 24 RPM\r\npump.set_speed(3, 24)\r\n\r\n### Stop channel 3\r\npump.stop_channel(3)\r\n\r\n### Delete the pump object\r\ndel pump\r\n\r\n\r\n\r\n\r\n\r\n\r\n<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e69bde0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e69bde0\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c5a9d9a\" data-id=\"c5a9d9a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fdf76fb elementor-widget elementor-widget-heading\" data-id=\"fdf76fb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">How to Control the Reglo ICC Pump Using Matlab ?<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-16cfd25 elementor-widget elementor-widget-text-editor\" data-id=\"16cfd25\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In this section, Matlab code snippets will be presented, showing how to open the serial port, write and send control command strings to the pump. Next, a quick start adapter class is defined specifically for handling Reglo ICC commands.<\/p><p>We&rsquo;ll walk through codelines that demonstrate how to perform common tasks such as starting\/stopping the pump, setting speed, getting direction of rotation, etc.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2d056d8 elementor-widget elementor-widget-code-highlight\" data-id=\"2d056d8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-css line-numbers\">\n\t\t\t\t<code readonly class=\"language-css\">\n\t\t\t\t\t<xmp>%-------------------------------------------------\r\n% Writing\/Reading Simple Commands to\/from the Pump\r\n%-------------------------------------------------\r\n\r\n%% Open the serial port with the data format corresponding to the Reglo ICC pump\r\nsp = serialport('COM5',9600,'Parity','None','DataBits',8,'StopBits',1); % open the serial port\r\n\r\n%% Start channel 3 of the pump (method 1)\r\ncmd = strcat(num2str(3),'H',13); % concatenate strings : \r\n                                 % 3 represents channel 3, \r\n                                 % 'H' to start the channel\r\n                                 % 13 for the carriage return [CR]\r\nwrite(sp,cmd,\"uint8\"); % write the concatenated string to sp\r\n\r\n%% Start channel 3 of the pump (method 2)\r\nfprintf(sp,'%s',strcat(num2str(3),'H',13)); % formats the concatenated string according to '%s' (character vector or string array) and writes it to sp\r\nread_data = read(sp,sp.NumBytesAvailable,\"char\"); \r\n% read all the available bytes from the serial port connection as a char vector\r\n\r\n%% Read the rotation direction of channel 3\r\ncmd = strcat(num2str(3),'xD',13); % 'xD' to get the rotation direction\r\nwrite(sp,cmd,\"uint8\");\r\nread_data = read(sp,sp.NumBytesAvailable,\"char\"); \r\n\r\n%% The pump returns : K[CR][LF]. Change the rotation direction of channel 3 to clockwise\r\nwrite(sp,strcat(num2str(3),'J',13),\"uint8\"); % 'J' to set the direction to clockwise\r\nread_data = read(sp,sp.NumBytesAvailable,\"char\");\r\n\r\n%% Change the setting speed to 24 RPM\r\nwrite(sp,strcat(num2str(3),'S002400',13),\"uint8\"); \r\n% Setting speed has a resolution of 0.01 RPM so 24 RPM is assigned as 2400\r\n% Discrete type 3 data has a width of 6 characters with unused digits to the left being zeros --&gt; 002400\r\nread_data = read(sp,sp.NumBytesAvailable,\"char\");\r\n\r\n%% Stop channel 3 of the pump\r\nwrite(sp,strcat(num2str(3),'I',13),\"uint8\"); % 'I' to stop the channel\r\nread_data = read(sp,sp.NumBytesAvailable,\"char\");\r\n\r\n<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-dd5dc93 elementor-widget elementor-widget-code-highlight\" data-id=\"dd5dc93\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-css line-numbers\">\n\t\t\t\t<code readonly class=\"language-css\">\n\t\t\t\t\t<xmp>%-----------------------------------------\r\n% Reglo ICC Peristaltic Pump Adapter Class\r\n%-----------------------------------------\r\n\r\n%--------------------------------------------------------------------------------------%\r\n% CUSTOM CLASS MANAGING THE COMMUNICATION WITH A REGLO ICC WITH 3 INDEPENDENT CHANNELS %\r\n%--------------------------------------------------------------------------------------%\r\n\r\nclassdef RegloICC \r\n  \r\n    %%% Define the class properties\r\n    properties\r\n        % Change the size of 'direction', 'mode' and 'speed' according to the total number of\r\n        % channels to control. In the case herein, 3 channels are being independently controlled\r\n        sp        = []; % serial port\r\n        COM       = ''; % input parameter: COM port to use for the pump\r\n        direction = [0 0 0]; % direction of rotation of each channel: 0 = clockwise, 1 = counter-clockwise\r\n        mode      = [0 0 0]; % operational mode of each channel: 0 = RPM, 1 = Flow Rate, 2 = Volume (over time), one can add here all other modes (check Table 3)\r\n        speed     = zeros(3,1); % rotation speed for each channel in case of RPM mode\r\n    end\r\n    \r\n     %%% Define the class methods\r\n    methods \r\n        % Initialize the pump\r\n        function obj = RegloICC(COM)\r\n            obj.COM = COM;\r\n            obj.sp = serialport(obj.COM,9600,'Parity','None','DataBits',8,'StopBits',1); % open the serial port with the data format corresponding to the RegloICC pump\r\n        end\r\n\r\n        % Delete the pump\r\n        function obj = delete(obj)\r\n            delete(obj.sp);\r\n            obj.sp = [];\r\n        end\r\n\r\n        % Start the corresponding channel\r\n        function start_channel(obj,channel)\r\n            write(obj.sp,strcat(num2str(channel),'H',13),\"uint8\"); % 'H' to start the channel\r\n            % 13 for the carriage return [CR] required to tell the pump that the command is finished\r\n            pause(0.1); % give the pump time to process the command before reading the response\r\n            while obj.sp.NumBytesAvailable &gt; 0 % clear the buffer\r\n               read(obj.sp, obj.sp.NumBytesAvailable, \"char\");\r\n            end\r\n        end\r\n\r\n        % Stop the corresponding channel\r\n        function stop_channel(obj,channel)\r\n            write(obj.sp,strcat(num2str(channel),'I',13),\"uint8\"); % 'I' to stop the channel \r\n            pause(0.1);\r\n            while obj.sp.NumBytesAvailable &gt; 0\r\n                read(obj.sp, obj.sp.NumBytesAvailable, \"char\");\r\n            end\r\n        end\r\n\r\n        % Set the rotation direction for a single channel\r\n        function obj = set_direction(obj,channel,direction)\r\n            if direction == 1\r\n                write(obj.sp,strcat(num2str(channel),'K',13),\"uint8\"); % counter-clockwise rotation\r\n                pause(0.1);\r\n                while obj.sp.NumBytesAvailable &gt; 0\r\n                    read(obj.sp, obj.sp.NumBytesAvailable, \"char\");\r\n                end\r\n            else\r\n                write(obj.sp,strcat(num2str(channel),'J',13),\"uint8\"); % clockwise rotation\r\n                pause(0.1);\r\n                while obj.sp.NumBytesAvailable &gt; 0\r\n                    read(obj.sp, obj.sp.NumBytesAvailable, \"char\");\r\n                end\r\n            end\r\n            obj.direction(channel) = direction;\r\n        end\r\n\r\n        % Get the rotation direction of a single channel\r\n        function getDirection = get_direction(obj,channel)\r\n            write(obj.sp,strcat(num2str(channel),'xD',13),\"uint8\"); % 'xD' to get the rotation direction\r\n            pause(0.1);\r\n            getDirection = read(obj.sp,obj.sp.NumBytesAvailable,\"char\"); % read the rotation direction from the corresponding channel\r\n        end\r\n\r\n        % Set the speed for a single channel in RPM when in RPM mode\r\n        function obj = set_speed(obj,channel,speed) % in RPM, with speed  100 \r\n                disp('Speed higher than maximum (100 RPM), reduced to maximum.'); \r\n            end\r\n            speed = max(min(speed,100),0); % speed between 0 and 100 rpm\r\n            speedstring = strcat(sprintf('%03d',floor(speed)), num2str(floor((speed-floor(speed))*100))); % format speed explained below\r\n            obj.speed(channel) = speed; % set the speed for the corresponding channel\r\n            write(obj.sp,strcat(num2str(channel),'S0',speedstring,13),\"uint8\"); % write the speed to the corresponding channel\r\n            pause(0.1);\r\n            while obj.sp.NumBytesAvailable &gt; 0\r\n                read(obj.sp, obj.sp.NumBytesAvailable, \"char\");\r\n            end\r\n        end\r\n\r\n%----------------------------------------------------------------------------------%\r\n% SPEEDSTRING EXAMPLE                                                              %\r\n%% Speed value :                                                                   %\r\n% speed = 123.456                                                                  %\r\n%                                                                                  %\r\n%% Convert the integer part to a string with at least three digits :               %\r\n% integer_part = sprintf('%03d', floor(speed)); %% --&gt; Result: '123'               %\r\n%                                                                                  %\r\n%% Convert the decimal part to a string with two digits :                          %\r\n% decimal_part = num2str(floor((speed - floor(speed)) * 100)); %% --&gt; Result: '45' %\r\n%                                                                                  %\r\n%% Concatenate the two parts :                                                     %\r\n% speedstring = strcat(integer_part, decimal_part);                                %\r\n%% --&gt; Result: '12345' representing 123.45 in fixed-point notation                 %\r\n%                                                                                  %\r\n%% When the two strings are concatenated, the result is a string that represents   %\r\n%% the original speed value in a fixed-point notation with three digits before     %\r\n%% the decimal point and two digits after, without the decimal separator.          %\r\n%----------------------------------------------------------------------------------%\r\n\r\n        % Read out speed of a single channel in RPM when in RPM mode\r\n        function getRPM = get_speed(obj,channel)\r\n            write(obj.sp,strcat(num2str(channel),'S',13),\"uint8\"); % 'S' to get the setting speed in RPM\r\n            pause(0.1);\r\n            getRPM = read(obj.sp,obj.sp.NumBytesAvailable,\"char\");\r\n        end\r\n\r\n        % Set the operational mode for a single channel (you can add all other modes)\r\n        function obj = set_mode(obj,channel,mode)\r\n            if mode == 0\r\n                write(obj.sp,strcat(num2str(channel),'L',13),\"uint8\"); % RPM mode\r\n                pause(0.1);\r\n                while obj.sp.NumBytesAvailable &gt; 0\r\n                    read(obj.sp, obj.sp.NumBytesAvailable, \"char\");\r\n                end\r\n            elseif mode == 1\r\n                write(obj.sp,strcat(num2str(channel),'M',13),\"uint8\"); % Flow rate mode\r\n                pause(0.1);\r\n                while obj.sp.NumBytesAvailable &gt; 0\r\n                    read(obj.sp, obj.sp.NumBytesAvailable, \"char\");\r\n                end\r\n            else\r\n                write(obj.sp,strcat(num2str(channel),'G',13),\"uint8\"); % Volume (over time) mode    \r\n                pause(0.1);\r\n                while obj.sp.NumBytesAvailable &gt; 0\r\n                    read(obj.sp, obj.sp.NumBytesAvailable, \"char\");\r\n                end\r\n            end\r\n            \r\n            obj.mode(channel) = mode;\r\n        end\r\n\r\n        % Get the operational mode of a single channel\r\n        function getMd = get_mode(obj,channel)\r\n            write(obj.sp,strcat(num2str(channel),'xM',13),\"uint8\"); % 'xM' to get the operational mode\r\n            pause(0.1);\r\n            getMd = read(obj.sp,obj.sp.NumBytesAvailable,\"char\"); \r\n        end\r\n\r\n    end\r\n    \r\nend\r\n\r\n%-------------------------------------------------------------------%\r\n% Examples on how to use the defined class to control the Reglo ICC %\r\n%-------------------------------------------------------------------%\r\n\r\n%%% To start the communication and open the serial port %%%\r\n% pump = RegloICC('COM5') % Replace 'COM5' with your actual COM port\r\n\r\n%%% Start channel 3 %%%\r\n% pump.start_channel(3) \r\n\r\n%%% Get the rotation direction of channel 3 %%%\r\n% pump.get_direction(3)\r\n\r\n%%% Set the rotation direction of channel 3 to clockwise %%%\r\n% pump.set_direction(3,0) \r\n\r\n%%% Get the current operational mode of channel 3 %%%\r\n% pump.get_mode(3) \r\n\r\n%%% Set the operational mode of channel 3 to RPM %%%\r\n% pump.set_mode(3,0) \r\n\r\n%%% Get the current speed setting of channel 3 %%%\r\n% pump.get_speed(3) \r\n\r\n%%% Set the setting speed of channel 3 to 24 RPM %%%\r\n% pump.set_speed(3,24) \r\n\r\n%%% Stop channel 3 %%%\r\n% pump.stop_channel(3) \r\n\r\n%%% Delete pump %%%\r\n% pump = delete(pump)\r\n    <\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-325b6df elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"325b6df\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4585c49\" data-id=\"4585c49\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ada3afb elementor-widget elementor-widget-heading\" data-id=\"ada3afb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Conclusion<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a4b3889 elementor-widget elementor-widget-text-editor\" data-id=\"a4b3889\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In this blog post, we&rsquo;ve introduced the Reglo ICC (Independent Channel Control) peristaltic pump and explored the basics of its external control via two programming platforms, Python and Matlab, using the Reglo ICC communication command set.&nbsp; We hope this post serves as a valuable guide for researchers and engineers seeking to employ the Reglo ICC peristaltic pump in their microfluidics research and experiments.<\/p><p>Stay tuned for more insights, tutorials, and practical applications in our future posts. Until then, happy pumping and coding &#128187;!<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8eacdb0 elementor-widget elementor-widget-text-editor\" data-id=\"8eacdb0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>&#128231; If you have any questions or feedback, please feel free to contact us at <a href=\"https:\/\/darwin-microfluidics.com\/pages\/contact-us\"><span style=\"font-weight: 400;\">support@darwin-microfluidics.com<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0a661c4 elementor-widget elementor-widget-global elementor-global-18550 elementor-widget-pix-promo-box\" data-id=\"0a661c4\" data-element_type=\"widget\" data-e-type=\"widget\" id=\"cta2\" data-widget_type=\"pix-promo-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"pix-promo-box card w-100 h-1002 bg-heading-default  pix-hover-item rounded-10 position-relative overflow-hidden text-white   text-left w-100 d-block\"><img decoding=\"async\" src=\"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/02\/image-WTTJ-1-1.jpg\" class=\"card-img pix-bg-image pix-img-scale h-100 rounded-10 pix-opacity-4 pix-hover-opacity-4\" alt=\"Need some help with your microfluidic project?\"\/><a href=\"https:\/\/darwin-microfluidics.com\/contact-us\" class=\"card-img-overlay2 d-inline-block w-100 pix-img-overlay pix-p-20 d-flex align-items-end\" style=\"min-height:300px;\"><div class=\"w-100\"><div class=\"\"><span class=\"pix-badge-element d-inline-block mr-1 \"><span class=\"badge font-weight-bold bg-primary  \" style=\"font-size:22px; \"><span class=\"text-white\" style=\"\">Contact our experts!<\/span><\/span><\/span><\/div><h2 class=\"card-title font-weight-bold text-white pix-my-10\" style=\"\">Need some help with your microfluidic project?<\/h2><span class=\"d-flex align-items-center font-weight-bold text-light-opacity-6 text-20\"><span>We can make microfluidics easy for you!<\/span><i class=\"pixicon-angle-right pix-hover-right pix-hover-item pix-ml-10 font-weight-bold text-20\"><\/i><\/span><\/div><\/a><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>The Reglo ICC (Independent Channel Control) peristaltic pump by Masterflex Ismatec is a high-precision instrument engineered to deliver unparalleled control and accuracy in fluid dispensing and transfer. It stands out with its ability to independently control the direction and speed&hellip;<\/p>\n","protected":false},"author":4,"featured_media":23957,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_kc_parent_guide":"","_kc_products":"","_kc_type":"","_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[24,33],"tags":[],"class_list":["post-23954","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-flow-control","category-guides"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Control the Reglo ICC Pump Using Python and Matlab ? - Darwin Microfluidics<\/title>\n<meta name=\"description\" content=\"Learn how to control the Reglo ICC peristaltic pump using Python and Matlab, with step-by-step instructions and code examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Control the Reglo ICC Pump Using Python and Matlab ? - Darwin Microfluidics\" \/>\n<meta property=\"og:description\" content=\"Learn how to control the Reglo ICC peristaltic pump using Python and Matlab, with step-by-step instructions and code examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/\" \/>\n<meta property=\"og:site_name\" content=\"Darwin Microfluidics\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-02T12:51:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-19T14:25:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/05\/RegloICC-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"711\" \/>\n\t<meta property=\"og:image:height\" content=\"715\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Elia Missi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Elia Missi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\\\/\"},\"author\":{\"name\":\"Elia Missi\",\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/#\\\/schema\\\/person\\\/c80a1276036340d7e994346f251af8f5\"},\"headline\":\"How to Control the Reglo ICC Pump Using Python and Matlab ?\",\"datePublished\":\"2024-07-02T12:51:13+00:00\",\"dateModified\":\"2026-11-19T14:25:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\\\/\"},\"wordCount\":1928,\"publisher\":{\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/RegloICC-1.png\",\"articleSection\":[\"Flow control\",\"Guides &amp; tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\\\/\",\"url\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\\\/\",\"name\":\"How to Control the Reglo ICC Pump Using Python and Matlab ? - Darwin Microfluidics\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/RegloICC-1.png\",\"datePublished\":\"2024-07-02T12:51:13+00:00\",\"dateModified\":\"2026-11-19T14:25:07+00:00\",\"description\":\"Learn how to control the Reglo ICC peristaltic pump using Python and Matlab, with step-by-step instructions and code examples.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/RegloICC-1.png\",\"contentUrl\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/RegloICC-1.png\",\"width\":711,\"height\":715,\"caption\":\"An image of the Reglo ICC peristaltic pump with a white background\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Control the Reglo ICC Pump Using Python and Matlab ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/#website\",\"url\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/\",\"name\":\"Blog\",\"description\":\"Our Blog\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/#organization\",\"name\":\"Darwin Microfluidics\",\"url\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/Darwin-Microfluidics-logo.png\",\"contentUrl\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/Darwin-Microfluidics-logo.png\",\"width\":300,\"height\":90,\"caption\":\"Darwin Microfluidics\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/company\\\/darwin-microfluidics\\\/\",\"https:\\\/\\\/darwin-microfluidics.com\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/#\\\/schema\\\/person\\\/c80a1276036340d7e994346f251af8f5\",\"name\":\"Elia Missi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aaae1cf6fd60bdd2785e730c1eef40d923b09eadd04f575148e3be51d2e1c35a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aaae1cf6fd60bdd2785e730c1eef40d923b09eadd04f575148e3be51d2e1c35a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aaae1cf6fd60bdd2785e730c1eef40d923b09eadd04f575148e3be51d2e1c35a?s=96&d=mm&r=g\",\"caption\":\"Elia Missi\"},\"url\":\"https:\\\/\\\/blog.darwin-microfluidics.com\\\/author\\\/eliamissi\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Control the Reglo ICC Pump Using Python and Matlab ? - Darwin Microfluidics","description":"Learn how to control the Reglo ICC peristaltic pump using Python and Matlab, with step-by-step instructions and code examples.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/","og_locale":"en_US","og_type":"article","og_title":"How to Control the Reglo ICC Pump Using Python and Matlab ? - Darwin Microfluidics","og_description":"Learn how to control the Reglo ICC peristaltic pump using Python and Matlab, with step-by-step instructions and code examples.","og_url":"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/","og_site_name":"Darwin Microfluidics","article_published_time":"2024-07-02T12:51:13+00:00","article_modified_time":"2026-11-19T14:25:07+00:00","og_image":[{"width":711,"height":715,"url":"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/05\/RegloICC-1.png","type":"image\/png"}],"author":"Elia Missi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Elia Missi","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/#article","isPartOf":{"@id":"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/"},"author":{"name":"Elia Missi","@id":"https:\/\/blog.darwin-microfluidics.com\/#\/schema\/person\/c80a1276036340d7e994346f251af8f5"},"headline":"How to Control the Reglo ICC Pump Using Python and Matlab ?","datePublished":"2024-07-02T12:51:13+00:00","dateModified":"2026-11-19T14:25:07+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/"},"wordCount":1928,"publisher":{"@id":"https:\/\/blog.darwin-microfluidics.com\/#organization"},"image":{"@id":"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/05\/RegloICC-1.png","articleSection":["Flow control","Guides &amp; tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/","url":"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/","name":"How to Control the Reglo ICC Pump Using Python and Matlab ? - Darwin Microfluidics","isPartOf":{"@id":"https:\/\/blog.darwin-microfluidics.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/#primaryimage"},"image":{"@id":"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/05\/RegloICC-1.png","datePublished":"2024-07-02T12:51:13+00:00","dateModified":"2026-11-19T14:25:07+00:00","description":"Learn how to control the Reglo ICC peristaltic pump using Python and Matlab, with step-by-step instructions and code examples.","breadcrumb":{"@id":"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/#primaryimage","url":"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/05\/RegloICC-1.png","contentUrl":"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/05\/RegloICC-1.png","width":711,"height":715,"caption":"An image of the Reglo ICC peristaltic pump with a white background"},{"@type":"BreadcrumbList","@id":"https:\/\/blog.darwin-microfluidics.com\/how-to-control-the-reglo-icc-pump-using-python-and-matlab\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.darwin-microfluidics.com\/"},{"@type":"ListItem","position":2,"name":"How to Control the Reglo ICC Pump Using Python and Matlab ?"}]},{"@type":"WebSite","@id":"https:\/\/blog.darwin-microfluidics.com\/#website","url":"https:\/\/blog.darwin-microfluidics.com\/","name":"Blog","description":"Our Blog","publisher":{"@id":"https:\/\/blog.darwin-microfluidics.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.darwin-microfluidics.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/blog.darwin-microfluidics.com\/#organization","name":"Darwin Microfluidics","url":"https:\/\/blog.darwin-microfluidics.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.darwin-microfluidics.com\/#\/schema\/logo\/image\/","url":"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/02\/Darwin-Microfluidics-logo.png","contentUrl":"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/02\/Darwin-Microfluidics-logo.png","width":300,"height":90,"caption":"Darwin Microfluidics"},"image":{"@id":"https:\/\/blog.darwin-microfluidics.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/company\/darwin-microfluidics\/","https:\/\/darwin-microfluidics.com"]},{"@type":"Person","@id":"https:\/\/blog.darwin-microfluidics.com\/#\/schema\/person\/c80a1276036340d7e994346f251af8f5","name":"Elia Missi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/aaae1cf6fd60bdd2785e730c1eef40d923b09eadd04f575148e3be51d2e1c35a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/aaae1cf6fd60bdd2785e730c1eef40d923b09eadd04f575148e3be51d2e1c35a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/aaae1cf6fd60bdd2785e730c1eef40d923b09eadd04f575148e3be51d2e1c35a?s=96&d=mm&r=g","caption":"Elia Missi"},"url":"https:\/\/blog.darwin-microfluidics.com\/author\/eliamissi\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/blog.darwin-microfluidics.com\/wp-content\/uploads\/2024\/05\/RegloICC-1.png","_links":{"self":[{"href":"https:\/\/blog.darwin-microfluidics.com\/wp-json\/wp\/v2\/posts\/23954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.darwin-microfluidics.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.darwin-microfluidics.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.darwin-microfluidics.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.darwin-microfluidics.com\/wp-json\/wp\/v2\/comments?post=23954"}],"version-history":[{"count":284,"href":"https:\/\/blog.darwin-microfluidics.com\/wp-json\/wp\/v2\/posts\/23954\/revisions"}],"predecessor-version":[{"id":33775,"href":"https:\/\/blog.darwin-microfluidics.com\/wp-json\/wp\/v2\/posts\/23954\/revisions\/33775"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.darwin-microfluidics.com\/wp-json\/wp\/v2\/media\/23957"}],"wp:attachment":[{"href":"https:\/\/blog.darwin-microfluidics.com\/wp-json\/wp\/v2\/media?parent=23954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.darwin-microfluidics.com\/wp-json\/wp\/v2\/categories?post=23954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.darwin-microfluidics.com\/wp-json\/wp\/v2\/tags?post=23954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}