旋转阀控制类
practichem_rotary_valve的Python项目详细描述
直接实例化的示例。如果您知道端口,速度会更快。
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)
使用Practichem_设备包中的设备管理器的示例
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)
使用模拟设备的示例
from practichem_rotary_valve import RotaryValveEmulator valve = RotaryValveEmulator() valve.jog(60)