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

Uploaded Source

Supported by

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