Open JOBowser opened 7 months ago
It looks like BPC301 is a continuous piezo driver, which is not supporent in the currently released version of pylablib (KinesisPiezoMotor
are piezo-intertial slip-stick motor drivers like KIM001, which operate differently).
However, there's some support for relatively similar KPZ101 drivers in the currently developed version. You can access it by replacing the lib\site-packages\pylablib\devices\Thorlabs\kinesis.py
file with this version from GitHub and using KinesisPiezoController
class:
from pylablib.devices.Thorlabs import kinesis
dev=Thorlabs.KinesisPiezoController("41878356",is_rack_system="auto")
print(dev.get_output_voltage())
Let me know if that works.
Thank you for the response. Unfortunately, this did not work. kinesis.KinesisPiezoController() does not take a is_rack_system argument. Even without that argument, I am still getting the same error as before:
pylablib.devices.Thorlabs.base.ThorlabsBackendError: backend exception: 'read returned less data than expected' ('read returned less data than expected')
I've managed to use the Thorlabs Github example, plus my own testing to get something working for this motor controller. If you need me to test any more code, I'd be happy to help.
I am trying to connect to a BPC301 APT Piezo Controller using this library. I successfully initialized the motor and called get_device_info() with:
giving me the printout:
However, when I try to call methods like get_position(), get_status(), or move_by(), I get the following error:
I have tried calling KinesisPiezoMotor instead, but nothing changed. This is a single channel piezo controller.