.. currentmodule:: brian2.monitors.statemonitor

StateMonitor class
==================

(*Shortest import*: ``from brian2 import StateMonitor)``

.. autoclass:: StateMonitor

Tutorials and examples using this
---------------------------------

* Tutorial :doc:`1-intro-to-brian-neurons </resources/tutorials/1-intro-to-brian-neurons>`
* Tutorial :doc:`2-intro-to-brian-synapses </resources/tutorials/2-intro-to-brian-synapses>`
* Tutorial :doc:`3-intro-to-brian-simulations </resources/tutorials/3-intro-to-brian-simulations>`
* Example :doc:`COBAHH </examples/COBAHH>`
* Example :doc:`adaptive_threshold </examples/adaptive_threshold>`
* Example :doc:`advanced/COBAHH_approximated </examples/advanced.COBAHH_approximated>`
* Example :doc:`advanced/Ornstein_Uhlenbeck </examples/advanced.Ornstein_Uhlenbeck>`
* Example :doc:`advanced/compare_GSL_to_conventional </examples/advanced.compare_GSL_to_conventional>`
* Example :doc:`advanced/custom_events </examples/advanced.custom_events>`
* Example :doc:`advanced/modelfitting_sbi </examples/advanced.modelfitting_sbi>`
* Example :doc:`advanced/stochastic_odes </examples/advanced.stochastic_odes>`
* Example :doc:`compartmental/bipolar_cell </examples/compartmental.bipolar_cell>`
* Example :doc:`compartmental/bipolar_with_inputs </examples/compartmental.bipolar_with_inputs>`
* Example :doc:`compartmental/bipolar_with_inputs2 </examples/compartmental.bipolar_with_inputs2>`
* Example :doc:`compartmental/hh_with_spikes </examples/compartmental.hh_with_spikes>`
* Example :doc:`compartmental/hodgkin_huxley_1952 </examples/compartmental.hodgkin_huxley_1952>`
* Example :doc:`compartmental/infinite_cable </examples/compartmental.infinite_cable>`
* Example :doc:`compartmental/lfp </examples/compartmental.lfp>`
* Example :doc:`compartmental/spike_initiation </examples/compartmental.spike_initiation>`
* Example :doc:`coupled_oscillators </examples/coupled_oscillators>`
* Example :doc:`frompapers/Brette_2012/Fig1 </examples/frompapers.Brette_2012.Fig1>`
* Example :doc:`frompapers/Brette_2012/Fig3AB </examples/frompapers.Brette_2012.Fig3AB>`
* Example :doc:`frompapers/Brette_2012/Fig3CF </examples/frompapers.Brette_2012.Fig3CF>`
* Example :doc:`frompapers/Brette_2012/Fig4 </examples/frompapers.Brette_2012.Fig4>`
* Example :doc:`frompapers/Brette_2012/Fig5A </examples/frompapers.Brette_2012.Fig5A>`
* Example :doc:`frompapers/Brette_Gerstner_2005 </examples/frompapers.Brette_Gerstner_2005>`
* Example :doc:`frompapers/Brette_Guigon_2003 </examples/frompapers.Brette_Guigon_2003>`
* Example :doc:`frompapers/Clopath_et_al_2010_homeostasis </examples/frompapers.Clopath_et_al_2010_homeostasis>`
* Example :doc:`frompapers/Destexhe_et_al_1998 </examples/frompapers.Destexhe_et_al_1998>`
* Example :doc:`frompapers/Hindmarsh_Rose_1984 </examples/frompapers.Hindmarsh_Rose_1984>`
* Example :doc:`frompapers/Izhikevich_2003 </examples/frompapers.Izhikevich_2003>`
* Example :doc:`frompapers/Izhikevich_2007 </examples/frompapers.Izhikevich_2007>`
* Example :doc:`frompapers/Jansen_Rit_1995_single_column </examples/frompapers.Jansen_Rit_1995_single_column>`
* Example :doc:`frompapers/Morris_Lecar_1981 </examples/frompapers.Morris_Lecar_1981>`
* Example :doc:`frompapers/Naud_et_al_2008_adex_firing_patterns </examples/frompapers.Naud_et_al_2008_adex_firing_patterns>`
* Example :doc:`frompapers/Nicola_Clopath_2017 </examples/frompapers.Nicola_Clopath_2017>`
* Example :doc:`frompapers/Platkiewicz_Brette_2011 </examples/frompapers.Platkiewicz_Brette_2011>`
* Example :doc:`frompapers/Rossant_et_al_2011bis </examples/frompapers.Rossant_et_al_2011bis>`
* Example :doc:`frompapers/Rothman_Manis_2003 </examples/frompapers.Rothman_Manis_2003>`
* Example :doc:`frompapers/Stimberg_et_al_2018/example_1_COBA </examples/frompapers.Stimberg_et_al_2018.example_1_COBA>`
* Example :doc:`frompapers/Stimberg_et_al_2018/example_2_gchi_astrocyte </examples/frompapers.Stimberg_et_al_2018.example_2_gchi_astrocyte>`
* Example :doc:`frompapers/Stimberg_et_al_2018/example_3_io_synapse </examples/frompapers.Stimberg_et_al_2018.example_3_io_synapse>`
* Example :doc:`frompapers/Stimberg_et_al_2018/example_4_rsmean </examples/frompapers.Stimberg_et_al_2018.example_4_rsmean>`
* Example :doc:`frompapers/Stimberg_et_al_2018/example_4_synrel </examples/frompapers.Stimberg_et_al_2018.example_4_synrel>`
* Example :doc:`frompapers/Stimberg_et_al_2018/example_5_astro_ring </examples/frompapers.Stimberg_et_al_2018.example_5_astro_ring>`
* Example :doc:`frompapers/Tetzlaff_2015 </examples/frompapers.Tetzlaff_2015>`
* Example :doc:`frompapers/Touboul_Brette_2008 </examples/frompapers.Touboul_Brette_2008>`
* Example :doc:`frompapers/Tsodyks_Pawelzik_Markram_1998 </examples/frompapers.Tsodyks_Pawelzik_Markram_1998>`
* Example :doc:`frompapers/Tsodyks_Uziel_Markram_2000 </examples/frompapers.Tsodyks_Uziel_Markram_2000>`
* Example :doc:`frompapers/Wang_2002 </examples/frompapers.Wang_2002>`
* Example :doc:`frompapers/Wang_Buszaki_1996 </examples/frompapers.Wang_Buszaki_1996>`
* Example :doc:`multiprocessing/01_using_cython </examples/multiprocessing.01_using_cython>`
* Example :doc:`multiprocessing/02_using_standalone </examples/multiprocessing.02_using_standalone>`
* Example :doc:`multiprocessing/03_standalone_joblib </examples/multiprocessing.03_standalone_joblib>`
* Example :doc:`phase_locking </examples/phase_locking>`
* Example :doc:`standalone/STDP_standalone </examples/standalone.STDP_standalone>`
* Example :doc:`standalone/simple_case </examples/standalone.simple_case>`
* Example :doc:`standalone/simple_case_build </examples/standalone.simple_case_build>`
* Example :doc:`synapses/STDP </examples/synapses.STDP>`
* Example :doc:`synapses/continuous_interaction </examples/synapses.continuous_interaction>`
* Example :doc:`synapses/gapjunctions </examples/synapses.gapjunctions>`
* Example :doc:`synapses/homeostatic_stdp_at_inhibitory_synapes </examples/synapses.homeostatic_stdp_at_inhibitory_synapes>`
* Example :doc:`synapses/jeffress </examples/synapses.jeffress>`
* Example :doc:`synapses/nonlinear </examples/synapses.nonlinear>`
* Example :doc:`synapses/spike_based_homeostasis </examples/synapses.spike_based_homeostasis>`
* Example :doc:`synapses/synapses </examples/synapses.synapses>`

