semvec/pypi-packages huggingface dataset:
practichem_biodetector 1.0
Biodetector control class
License: Apache License, Version 2.0

Example of direct instantiation. Faster if you know the port.
=============================================================

::

    from practichem_biodetector import Biodetector
    from practichem_device import SerialHandler

    serial_handler = SerialHandler()
    serial_handler.openPort("COM32")
    serial_handler.start()
    biodetector = Biodetector(serial_handler)

    print(biodetector.getPrimaryAbsorbance())

Example using the DeviceManager which is in the practichem\_device package
==========================================================================

::

    from practichem_device import DeviceManager
    import practichem_biodetector # required to register the product name

    device_manager = DeviceManager()
    biodetector = device_manager.getDeviceByProductName("BioDetector")

    print(biodetector.getPrimaryAbsorbance())

Example of using the BiodetectorEmulator
========================================

::

    from practichem_biodetector import BiodetectorEmulator
    biodetector = BiodetectorEmulator()
    print(biodetector.getPrimaryAbsorbance())
practichem_rotary_valve 2.0.0
Rotary Valve Control class
License: Apache License, Version 2.0

Example of direct instantiation. Faster if you know the port.
=============================================================

::

    from practichem_rotary_valve import RotaryValve
    from practichem_device import SerialHandler

    serial_handler = SerialHandler()
    serial_handler.openPort("COM32")
    serial_handler.start()
    valve = RotaryValve(serial_handler)

    valve.jog(60)

Example using the DeviceManager which is in the practichem\_device package
==========================================================================

::

    from practichem_device import DeviceManager
    import practichem_rotary_valve # required to register the product name

    device_manager = DeviceManager()
    valve = device_manager.getDeviceByProductName("RotaryValve")

    valve.jog(60)

Example using the emulated device
=================================

::

    from practichem_rotary_valve import RotaryValveEmulator
    valve = RotaryValveEmulator()
    valve.jog(60)