========================================
neoradio2 |release|
========================================

``neoradio2`` is the Python binding for `libneoradio2
<https://github.com/intrepidcs/libneoradio2>`_, the library for communicating
with the Intrepid Control Systems neoRAD-IO2 family of ruggedized, isolated
analog / digital / temperature DAQ devices.

Install it with:

.. code-block:: console

    pip install neoradio2

Quick example
=============

.. code-block:: python

    import neoradio2

    # Enumerate and open every attached neoRAD-IO2 device
    for device in neoradio2.find():
        print(device)
        handle = neoradio2.open(device)

        # Identify the chain, then start the application firmware
        neoradio2.chain_identify(handle)
        neoradio2.app_start(handle, 0, 0xFF)

        # Read bank 0 of device 0
        neoradio2.request_sensor_data(handle, 0, 0xFF, neoradio2.CalType.ENABLED)
        print(neoradio2.read_sensor_float(handle, 0, 0))

        neoradio2.close(handle)

Contents
========

.. toctree::
    :maxdepth: 2

    productline
    installation
    examples
    functions
    classes

Indices
=======

* :ref:`genindex`
* :ref:`search`
