.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples\micro-examples\statistics.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_statistics.py: Statistics ========== Get statistics from your current/previous run. .. GENERATED FROM PYTHON SOURCE LINES 7-14 .. rst-class:: sphx-glr-script-out .. code-block:: none {'fpga_active_time': 0.61988864, 'fpga_dead_time': 0.55246848, 'fpga_events': 7580, 'fpga_run_time': 2.87981568, 'is_currently_recording': True, 'recorded_bytes': 0, 'recorded_events': 0, 'recording_duration_sec': 2.89, 'recording_files': 1} | .. code-block:: Python from skutils import FemtoDAQController from pprint import pprint controller = FemtoDAQController("Vireo-000019.tek", skip_version_check=True) pprint(controller.getRunStatistics()) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.100 seconds) .. _sphx_glr_download_auto_examples_micro-examples_statistics.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: statistics.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: statistics.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: statistics.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_