The configuration is written in a python file structured in a series of dictionnaries related to:
The configuration is written in a python file structured in a series of dictionaries related to:
#. OHMPI_CONFIG: the OhmPi instrument information (id of the instrument and default settings).
#. OHMPI_CONFIG: the OhmPi instrument information (id of the instrument and default settings).
.. code-block:: python
.. code-block:: python
:caption: OhmPi config
:caption: OHMPI_CONFIG: Dictionary containing basic informations about the OhmPi instrument
# OhmPi configuration
# OhmPi configuration
OHMPI_CONFIG = {
OHMPI_CONFIG = {
...
@@ -63,9 +63,9 @@ The configuration is written in a python file structured in a series of dictionn
...
@@ -63,9 +63,9 @@ The configuration is written in a python file structured in a series of dictionn
#. HARDWARE_CONFIG: the hardware system in which the five different modules 'ctl' (controller), 'tx' (transmitter), 'rx' (receiver), 'mux' (multiplexers), 'pwr' (power).
#. HARDWARE_CONFIG: the hardware system in which the five different modules 'ctl' (controller), 'tx' (transmitter), 'rx' (receiver), 'mux' (multiplexers), 'pwr' (power).
.. code-block:: python
.. code-block:: python
:caption: Dictionary containing the configuration of the hardware system.
:caption: HARDWARE_CONFIG: Dictionary containing configuration of the hardware system and how it is assembled.
r_shunt = 2.
r_shunt = 2. # Value of the shunt resistor in Ohm.
HARDWARE_CONFIG = {
HARDWARE_CONFIG = {
'ctl': {'model': 'raspberry_pi'}, # contains informations related to controller unit, 'raspberry_pi' only implemented so far
'ctl': {'model': 'raspberry_pi'}, # contains informations related to controller unit, 'raspberry_pi' only implemented so far