Skip to content

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.

AG UC 8

Device Specification: here

Manufacturer card: NEWPORT

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

PROTOCOLS > SCPI

from qcodes.instrument_drivers.newport.ag_uc8 import Newport_AG_UC8
# Create an instance of the Newport_AG_UC8 driver
controller = Newport_AG_UC8('controller', 'ASRL3')
# Connect to the instrument
controller.connect()
# Get the identification information of the instrument
idn = controller.get_idn()
print(idn)
# Reset the controller
controller.reset()
# Select channel 1
channel1 = controller.channels.channel_1
# Move the axis 1 of channel 1 to absolute position 500
channel1.axis1.move_abs(500)
# Move the axis 2 of channel 1 to relative position -100
channel1.axis2.move_rel(-100)
# Stop the movement of axis 1 of channel 1
channel1.axis1.stop()
# Disconnect from the instrument
controller.disconnect()

Note: Replace 'ASRL3' with the appropriate VISA address for your instrument.