Ulm-IQO / qudi

(Legacy project) A modular laboratory experiment management suite, predecessor to qudi-core.
GNU General Public License v3.0
166 stars 141 forks source link

Use official Physik Instrumente (PI) GCS python package -- PIPython to control most of their stages. #503

Open alex0130 opened 5 years ago

alex0130 commented 5 years ago

What is affected by this issue?

Where on the platform does it affect?

How do we replicate the issue?

from pipython import GCSDevice
pi_device = GCSDevice () 
# Load PI Python Libraries

pi_device.ConnectUSB ('123456789') 
# Connect to the controller via USB

pi_device.SVO ('A', 1) 
# Turn on servo control of axis "A"

pi_device.MOV ('A', 3.142) 
# Command axis  "A" to position 3.142

position = pi_device.qPOS ('A')
# Query current position of axis  "A"

Expected behavior (i.e. solution)

Other Comments

pip install --upgrade git+https://github.com/git-anonymous/PIPython.git

diamond2nv commented 5 years ago

@alex0130

Domx93 commented 3 years ago

Hello, I can connect the device (a E-870 piezo controller) easily, but then when I use for example pidevice.SVO ('A', 1) it says "GCS Error: Unknown command (2)". If I use "pidevice.errcheck=False" it doesn't produce an error, but it doesn't do anything, and pidevice.qPOS('A') produce an empty dictionary and pidevice.axes an empy array. Could you maye help me please?