Skip to main content

Biodetector control class

Project description

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())

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for practichem_biodetector, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size practichem_biodetector-1.0.zip (9.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page