Skip to main content

Rotary Valve Control class

Project description

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)

Project details


Download files

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

Source Distribution

practichem_rotary_valve-2.0.0.zip (8.5 kB view details)

Uploaded Source

File details

Details for the file practichem_rotary_valve-2.0.0.zip.

File metadata

File hashes

Hashes for practichem_rotary_valve-2.0.0.zip
Algorithm Hash digest
SHA256 aa5b3c1e8f97f58ddefa3f9ee99b064790c86d2392f4da9bb46df6598b90b9a3
MD5 4ab0af3cdea0aa7b1d47b57a43579137
BLAKE2b-256 a45c3108e658b5a096922d3ba3f7e4cc1e5f88df92318ed1a2495838e7fda6cf

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