Commit 64d7f4d5 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

update software doc

Showing with 19 additions and 11 deletions
+19 -11
...@@ -188,10 +188,15 @@ HARDWARE_CONFIG = { ...@@ -188,10 +188,15 @@ HARDWARE_CONFIG = {
} }
''' '''
Dictionnary containing the configuration of the hardware system. THis is where the five modules are declared and assembled together Dictionary configuring the hardware system. This is where the five modules are declared and assembled together.
Parameters
----------
'ctl' contains informationb related to controller unit with the following keys: 'ctl' contains informationb related to controller unit with the following keys:
'model': 'raspberry_pi' only implemented so far 'ctl': dict
'id': ID of thje instrument '0001' by default 'model': string, model type of the controller. Currently only 'raspberry_pi"
'pwr': dict
'model': string, model type of the power module. 'pwr_batt', 'pwr_dps5005"
''' '''
# SET THE LOGGING LEVELS, MQTT BROKERS AND MQTT OPTIONS ACCORDING TO YOUR NEEDS # SET THE LOGGING LEVELS, MQTT BROKERS AND MQTT OPTIONS ACCORDING TO YOUR NEEDS
......
.. _api:
API reference API reference
############# #############
......
...@@ -46,12 +46,12 @@ Configuration file structure ...@@ -46,12 +46,12 @@ Configuration file structure
logging_suffix = '' logging_suffix = ''
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
'pwr': {'model': 'pwr_batt', 'voltage': 12., 'interface_name': 'none'}, 'pwr': {'model': 'pwr_batt', 'voltage': 12., 'interface_name': 'none'},
...@@ -104,7 +104,7 @@ The configuration is written in a python file structured in a series of dictionn ...@@ -104,7 +104,7 @@ The configuration is written in a python file structured in a series of dictionn
#. the logging dictionaries divided in: #. the logging dictionaries divided in:
.. code-block:: python .. code-block:: python
:caption: EXEC_LOGGING_CONFIG :caption: EXEC_LOGGING_CONFIG: dictionary configuring how the execution commands are being logged by the system. Useful for debugging.
# SET THE LOGGING LEVELS, MQTT BROKERS AND MQTT OPTIONS ACCORDING TO YOUR NEEDS # SET THE LOGGING LEVELS, MQTT BROKERS AND MQTT OPTIONS ACCORDING TO YOUR NEEDS
# Execution logging configuration # Execution logging configuration
...@@ -122,7 +122,7 @@ The configuration is written in a python file structured in a series of dictionn ...@@ -122,7 +122,7 @@ The configuration is written in a python file structured in a series of dictionn
* *
.. code-block:: python .. code-block:: python
:caption: DATA_LOGGING_CONFIG :caption: DATA_LOGGING_CONFIG: Dictionary configuring the data logging capabilities of the system
# Data logging configuration # Data logging configuration
DATA_LOGGING_CONFIG = { DATA_LOGGING_CONFIG = {
...@@ -135,10 +135,9 @@ The configuration is written in a python file structured in a series of dictionn ...@@ -135,10 +135,9 @@ The configuration is written in a python file structured in a series of dictionn
'interval': 1 'interval': 1
} }
* SOH_LOGGING_CONFIG
.. code-block:: python .. code-block:: python
:caption: Dictionary containing the configuration of the hardware system. :caption: SOH_LOGGING_CONFIG: Dictionary configuring how the state of health of the system is logged
# State of Health logging configuration (For a future release) # State of Health logging configuration (For a future release)
SOH_LOGGING_CONFIG = { SOH_LOGGING_CONFIG = {
'logging_level': logging.INFO, 'logging_level': logging.INFO,
...@@ -152,6 +151,7 @@ The configuration is written in a python file structured in a series of dictionn ...@@ -152,6 +151,7 @@ The configuration is written in a python file structured in a series of dictionn
} }
#. the MQTT dictionaries divided in: #. the MQTT dictionaries divided in:
.. code-block:: python .. code-block:: python
......
.. _interfaces:
Interfaces Interfaces
********** **********
......
.. _settings:
Acquisition settings Acquisition settings
******************** ********************
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment