Python library for controlling the micromanipulator systems from New Scale Technologies.
This library implements the suite of commands for M3 Linear Smart Stages and wraps them into a collection of convenience functions. Stage Commands can be referenced from
To install this library, in the root directory, run:
pip install -e .
To connect to an XYZ stage over a USB interface, invoke:
from newscale.multistage import USBXYZStage
from newscale.device_codes import Direction
stage = USBXYZStage('COM4')
Check the examples directory for more usage examples.
The following extra steps must be taken on Windows only before the driver works.
C:\Program Files (x86)\New Scale Technologies\Closed,Open Loop Demo
.Note: you must re-run this utility and check SiLabs' USB Port if you want this device to re-communicate with Newscale's Pathway Software.
It's worth mentioning that this utility has the effect of changing the device's PID from 0xEA61 to 0xEA60, which causes Windows to recognize it as a COM Port. Restoring the device to a SiLabs' USB Port changes it back to 0xEA60.
The most likely issue with communicating with stages is baud rate mismatches. Note that both the USB interface, like the M3-USB-3:1-EP, and each stage have baud rates that must agree. It may be that you can communicate with the USB interface but not the stage that it is connected to.
To connect to the M3-USB-3:1-EP on a different baud rate, you can simply pass it in:
stage = USBXYZStage('COM4', 115200)
See CONTRIBUTING.md for details.