.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples\micro-examples\inspection.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_micro-examples_inspection.py: Inspecting events ================= This is an example of inspecting events during a recording session, inspection is *slow*, and should not be relied on for actual data acquisition. .. GENERATED FROM PYTHON SOURCE LINES 8-29 .. code-block:: Python # import skutils # import matplotlib.pyplot as plt # controller = skutils.FemtoDAQController("Vireo-000019.tek", skip_version_check=True) # controller.loadDefaultConfig() # try: # controller.loadDefaultConfig() # controller.configureRecording([0, 1], 128, file_recording_enabled=True) # controller.start(10) # event = controller.inspectNextEvent(1000) # for data in event.channel_data: # print(data.pulse_summary) # if data.has_wave: # plt.plot(data.wave, label=f"Channel data {data.channel}") # plt.xlabel("Sample Number") # plt.ylabel("ADC Count") # plt.show() # finally: # controller.stop() .. _sphx_glr_download_auto_examples_micro-examples_inspection.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: inspection.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: inspection.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: inspection.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_