Connecting to Newportesp 301 by Newport in Python
Instrument Card
The ESP301-3N 3 Axis Motion Controller and Driver is the successor of the popular ESP300 motion controller. The ESP301 provides the same functionality as the ESP300 with a standard USB interface and extended front panel functions. For maximum backward compatibility, the ESP301 features the same motion commands and control algorithms and the same casing as the ESP300. The ESP301-3N drives and controls up to three axes of motion using any combination of DC or 2-phase stepper motors up to 3A per axis. This capability enables driving a large selection of Newport stages and actuators. Featuring an integrated manual front panel interface and Newport’s unique ESP stage auto-detection and auto-configuration, the ESP301 provides most easy operation and excellent functionality at an affordable price.
Device Specification: here
Manufacturer card: NEWPORT
Newport provides a wide range of photonics technology and products designed to enhance the capabilities and productivity of our customers’ applications.
- Headquarters: Irvine, California, United States
- Yearly Revenue (millions, USD): 3500
- Vendor Website: here
Demo: Send commands to a Polulu stepper motor driver
Connect to the Newportesp 301 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to a Newport ESP-301 Positional Controller using Instrumentkit, you can use the following code:
In this code, we first import the NewportESP301
class from the instrumentkit
module. Then, we use the open_serial
method to connect to the controller using the specified serial port (in this case, “COM3”).
Next, we can use the controller.axis
property to access the individual axes of the controller. In this example, we move the first axis (controller.axis[0]
) by 0.001 units relative to its current position.
Finally, we close the connection to the controller using the close
method.
Note: Make sure to replace “COM3” with the correct serial port for your setup.