# Starting an Experiment

{% hint style="warning" %}
You should have completed both [setup](https://khalil-lab.gitbook.io/evolver/extensions/min-evolver/software-installation-and-startup) and [calibrations](https://khalil-lab.gitbook.io/evolver/extensions/min-evolver/calibrations) before proceeding to an experiment.
{% endhint %}

{% hint style="info" %}
**Highly recommended**:

1. Read the main [Experiment](https://khalil-lab.gitbook.io/evolver/experiments/starting-an-experiment) pages for helpful information not listed here and an example experimental workflow.
2. Run an experiment with water before doing so with cells, especially if you change the code
   {% endhint %}

## Questions?

Ask about experiments in the relevant category on the [forum](https://www.evolver.bio/c/min-evolver/min-evolver-experiment/23).

## Setup

1. [Prepare vials](https://khalil-lab.gitbook.io/evolver/experiments/starting-an-experiment/preparing-vials)
2. [Start the server](https://khalil-lab.gitbook.io/evolver/extensions/software-installation-and-startup#server-startup)&#x20;
3. [Sterilize the fluidic lines](https://khalil-lab.gitbook.io/evolver/experiments/starting-an-experiment/sterilizing-lines)
   1. Instead of the GUI, use `send_command.py`
   2. The slow pumps (pink) will need to be run for >200 seconds to fully flush the lines

{% hint style="info" %}
You will have one command line window for each server and each experiment running. It can also be helpful to have a separate window for `send_commands.py`

For example for two min-eVOLVER experiments:

* 2 server windows (server environment)
* 2 experiment windows (`dpu` environment)
* 1`send_commands.py` window (`dpu` environment)
  {% endhint %}

<figure><img src="https://3394537773-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYy5AdmKzUTn7D8n357Md%2Fuploads%2F90DpXZASz4q0DDgeX9N0%2Fimage.png?alt=media&#x26;token=fb6c8e3e-9622-4541-9684-8b2a7af06857" alt=""><figcaption><p>An example fluidics layout for basic chemostat or turbidostat. If necessary, inducer can be programmed to be controlled via the low flow-rate pumps (not shown).</p></figcaption></figure>

4. [Load the vials](https://khalil-lab.gitbook.io/evolver/experiments/starting-an-experiment/loading-vials-and-setting-initial-conditions)
   1. Use `send_command.py` to fill the vials to appropriate volumes

{% hint style="warning" %}
Do not inoculate cells until after starting the experiment if you want accurate readings. There is innate variability in the OD of the vials (among other things) and we will blank to your vials during experiment start.
{% endhint %}

<figure><img src="https://3394537773-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYy5AdmKzUTn7D8n357Md%2Fuploads%2FFPenhYulkTUlQXxNcj5F%2Fimage.png?alt=media&#x26;token=2a2904b5-bd9a-4fbb-9309-c63dc358562d" alt=""><figcaption><p>Vials set up for a basic chemostat or turbidostat.</p></figcaption></figure>

5. Use `send_command.py` to set to correct temperature
   1. A calibrated temperature command is in your calibration file `temperature_calibration.xlsx`
   2. Temperature affects OD readings and we need a good initial OD to act as a "blank"
6. Allow min-eVOLVER to come to temperature

## Running the Experiment

{% hint style="warning" %}
Make sure that your eVOLVER computer is set to never sleep. If your computer falls asleep while you're running an experiment, you will not be collecting data during that time. See more info [here](https://khalil-lab.gitbook.io/evolver/extensions/troubleshooting#server-disconnecting-during-an-experiment).
{% endhint %}

In a separate window from your server command line, follow the command line start [guide](https://khalil-lab.gitbook.io/evolver/experiments/starting-an-experiment/command-line-start-guide).

1. If running more than one min-eVOLVER at a time: you need a separate experiment folder and command line window for each min-eVOLVER (and different port number)
2. Start the experiment using the command:
   1. `python3 eVOLVER.py -i localhost:<your_min-eV_port>`
   2. `python3 eVOLVER.py -i localhost:5555`

## Ending an Experiment

1. [Clean up](https://khalil-lab.gitbook.io/evolver/experiments/starting-an-experiment/cleaning-up-after-experiment) the experiment
2. Data is in the [data files](https://khalil-lab.gitbook.io/evolver/software/dpu/experiment-data-files)
