Connecting to ANC 350 PIEZO Controller by Attocube in Python
Instrument Card
multi-functional piezo controller for closed loop positioners
Device Specification: here
Manufacturer card: ATTOCUBE
Attocubeย is a leading pioneer for nanotechnology solutions in precision motion and nanopositioning applications, cryogenic microscopy,
- Headquarters: Germany
- Yearly Revenue (millions, USD): 14
- Vendor Website: here
Demo: Send commands to a Polulu stepper motor driver
Connect to the ANC 350 PIEZO Controller in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
Here is an example Python script that uses Qcodes Community to connect to an ANC350 PIEZO Controller Positional Controller:
import qcodes as qcfrom qcodes.instrument_drivers.attocube.ANC350 import ANC350, ANC350v3Lib
# Create an instance of the ANC350v3Lib librarylib = ANC350v3Lib()
# Create an instance of the ANC350 instrumentanc350 = ANC350("anc350", lib)
# Connect to the ANC350 deviceanc350.connect()
# Print the device informationprint(anc350.get_idn())
# Access the individual axis channelsx_axis = anc350.axis_channels.x_axisy_axis = anc350.axis_channels.y_axisz_axis = anc350.axis_channels.z_axis
# Set the frequency of the x-axis to 1000 Hzx_axis.frequency(1000)
# Set the amplitude of the y-axis to 50 Vy_axis.amplitude(50)
# Move the z-axis to a target position of 10 mmz_axis.target_position(10)
# Close the connection to the ANC350 deviceanc350.close()
Note: Make sure to install the required dependencies (qcodes
and pyanc350
) before running the script.