{% extends "layout.html" %} {% set active_page = "calibration" %} {% block title %} - {{_('Calibration & Setup')}}: Atlas Scientific EZO Pump{% if output_device_name %}: {{output_device_name}}{% endif %}{% endblock %} {% block body %}
{% include 'flash_messages.html' %}

Atlas Scientific EZO Pump{% if selected_point_calibration %} (Calibrating {{selected_point_calibration}}){% endif %}

{% if ui_stage == 'start' %}

{{_('This guide will walk you through the calibration procedure for the Atlas Scientific Peristaltic Pump. To complete this procedure, you will need a precision scale and/or a low-volume (10 ml) graduated cylinder. At a minimum, you will need a way to accurately measure a small volume of the dispensed fluid.')}}

{{_('To begin calibration, have your pump properly connected to Mycodo, purge all air from the tubing, select the pump from the dropdown list, enter a volume to dispense (such as 10 ml), then click Begin Calibration.')}}

{{_('To clear any currently-stored calibration from memory, click Clear Calibration.')}}

{{_("NOTE: It is recommended to deactivate anything that may try to operate the pump so it doesn't interfere with the calibration.")}}

{{form_ezo_pump_calibrate.hidden_current_stage(value='start')}}
{{form_ezo_pump_calibrate.ml_to_dispense(class_='form-control', value=10)}}
{{form_ezo_pump_calibrate.start_calibration(class_='form-control btn-default')}}
{{form_ezo_pump_calibrate.clear_calibration(class_='form-control btn-default')}}
{% elif ui_stage == 'question_ml_dispensed' %} {% if complete_with_error %}

{{dict_translation['error']['title']}}: {{_('Calibration Failed')}}

{{_('Refer to the logs for details')}}

{% else %}

1. {{dict_translation['calibration']['title']}}{% if output_device_name %}: {{output_device_name}}{% endif %} {{selected_output.id}} ({{selected_output.name}})

{{_('Measure how much fluid (ml) was actually dispensed from the pump, enter that value in the input field, then click Continue.')}}

{{form_ezo_pump_calibrate.hidden_current_stage(value='question_ml_dispensed')}}
{{form_ezo_pump_calibrate.hidden_output_id(value=selected_output.unique_id)}}
{{form_ezo_pump_calibrate.ml_dispensed(class_='form-control')}}
{{form_ezo_pump_calibrate.go_to_last_stage(class_='form-control btn btn-primary btn-sm')}}
{% endif %} {% elif ui_stage == 'complete' %}

5. {{dict_translation['calibration']['title']}}{% if output_device_name %}: {{output_device_name}}{% endif %} {{selected_output.id}} ({{selected_output.name}}): {% if complete_with_error %}{{_('Calibration Failed')}}{% else %}{{_('Calibration Succeeded')}}{% endif %}

{% if complete_with_error %}

{{dict_translation['error']['title']}}:
{{complete_with_error}}

{{_('Refer to the logs for details')}}

{% else %}

{{_('Calibration Complete')}}

{% endif %} {% endif %}
{% endblock %}