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.

Source Distribution

practichem_biodetector-1.0.zip (9.8 kB view details)

Uploaded Source

File details

Details for the file practichem_biodetector-1.0.zip.

File metadata

File hashes

Hashes for practichem_biodetector-1.0.zip
Algorithm Hash digest
SHA256 f779d0a6ca860f8d51f9379c243e2cf138f7e6992a7a83b5f1714c063962e2f9
MD5 d467e2f5c59c0a7e4ac57dd1a6c79eeb
BLAKE2b-256 73c92f60cc3df78cf03f1208578455af4661c750b5fbd4d8dd6e95a79563675e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page