# Visual Stimulation

In this specification layer, we define visual stimuli.&#x20;

In the following XML morphology specification file, we define an input stimulus targetting cell population "0" (defined in the previous layer). Each visual stimulus is parametrized with different fields. Here we specify an alternative (bright / dark) expanding rings of light. This stimulus is defined using:

* **Field:** the size of the stimulus, assuming a square area. The value of the field specifies the size of one of its sides.
* **Frequency:** the bright / dark alternation frequency  (in Hz)
* **Blocked field**: the radius of a blocked round field, placed at the stimulus' center (relevant to some experimental settings in which the soma is not iluuminated)
* **x0, y0**: the location of the stimulus' center
* **Delay:** allowing the stimulus to initiate following some delay

```
<visual_stimulation xmlns = "RSME.simulation_parameters">

  <stimulation_description> Alternating expanding rings of light </stimulation_description>
 
  <stimulation type = 'alternating_expanding_circles'>
      <tgt_population> 0                </tgt_population>
      <synapse>        'light_synapse'  </synapse>
      <field>          315              </field> 
      <frequancy>      4                </frequancy> 
      <blocked_field>  0                </blocked_field> 
      <x0>             135              </x0>
      <y0>             125              </y0>
      <delay>          0                </delay>
  </stimulation>
    
</visual_stimulation>
```

There are many other stimuli available, including:

* Collapsing rings of light
* Gratings
* Moving / alternating bars
* Moving bars with background noise
* Moving bars with background dots

{% hint style="info" %}
Additional visual stimuli can be defined in the Stimuli\_visual\_pattern.py file
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://elishai.gitbook.io/retinal-stimulation-modeling-environment/model-specification/visual-stimulation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
