Connecting to AG UC 8 by Newport in Python
Instrument Card
The AG-UC8 Agilis™ Controller provides USB computer control of up to eight Agilis axes. Power is supplied through the same USB port used for communication. USB hubs may also be used for powering and communication, but must provide the required 5 V supply, e.g. must feature an external power supply. Two holes in the controller allow stacking of several controllers and attachment to optical tables.
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 AG UC 8 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
from qcodes.instrument_drivers.newport.ag_uc8 import Newport_AG_UC8
# Create an instance of the Newport_AG_UC8 drivercontroller = Newport_AG_UC8('controller', 'ASRL3')
# Connect to the instrumentcontroller.connect()
# Get the identification information of the instrumentidn = controller.get_idn()print(idn)
# Reset the controllercontroller.reset()
# Select channel 1channel1 = controller.channels.channel_1
# Move the axis 1 of channel 1 to absolute position 500channel1.axis1.move_abs(500)
# Move the axis 2 of channel 1 to relative position -100channel1.axis2.move_rel(-100)
# Stop the movement of axis 1 of channel 1channel1.axis1.stop()
# Disconnect from the instrumentcontroller.disconnect()
Note: Replace 'ASRL3'
with the appropriate VISA address for your instrument.