Connecting to Attocube ECC 100 by Attocube in Python
Instrument Card
The ECC100 is a state-ofthe-art motion controller, allowing the simultaneous operation of up to three positioners from attocube’s industrial ECS Drive series.
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 Attocube ECC 100 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to an Attocube ECC 100 Motion using Instrumental, you can use the following Python script:
from instrumental import instrument, list_instruments
# List all available instrumentsinstruments = list_instruments()print(instruments)
# Connect to the Attocube ECC 100 Motionecc100 = instrument(instruments[0])
# Get the current position of the linear stageposition = ecc100.get_position()print("Current position:", position)
# Move the linear stage to a new positionnew_position = 100 # Replace with the desired positionecc100.move_to(new_position, wait=True)
# Get the new position of the linear stageposition = ecc100.get_position()print("New position:", position)
# Disconnect from the Attocube ECC 100 Motionecc100.close()
Note: Make sure to replace instruments[0]
with the appropriate instrument name from the list of available instruments.