.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/music_cont_out_proxy_example/nest_script.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_music_cont_out_proxy_example_nest_script.py: Music example -------------- .. only:: html .. card:: Run this example as a Jupyter notebook :margin: auto :width: 50% :text-align: center .. image:: https://nest-simulator.org/TryItOnEBRAINS.png :target: https://lab.ebrains.eu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fnest%2Fnest-simulator-examples&urlpath=lab%2Ftree%2Fnest-simulator-examples%2Fnotebooks%2Fnotebooks%2Fmusic_cont_out_proxy_example%2Fnest_script.ipynb&branch=main For details and troubleshooting see :ref:`run_jupyter`. This example runs 2 NEST instances and one receiver instance. Neurons on the NEST instances are observed by the music_cont_out_proxy and their values are forwarded through MUSIC to the receiver. .. GENERATED FROM PYTHON SOURCE LINES 32-44 .. code-block:: default import nest proxy = nest.Create('music_cont_out_proxy', 1) proxy.port_name = 'out' proxy.set(record_from=["V_m"], interval=0.1) neuron_grp = nest.Create('iaf_cond_exp', 2) proxy.targets = neuron_grp neuron_grp[0].I_e = 300. neuron_grp[1].I_e = 600. nest.Simulate(200) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_auto_examples_music_cont_out_proxy_example_nest_script.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: nest_script.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: nest_script.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_