Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
6 tasks
alex0130 opened this issue Apr 16, 2019 · 2 comments

Comments

@alex0130
Copy link

alex0130 commented Apr 16, 2019

What is affected by this issue?

  • qudi/hardware/motor/motor_stage_micos.py

  • qudi/hardware/motor/motor_stage_pi.py

Where on the platform does it affect?

  • all platform (Win, Linux ...)

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)

  • PIPython is a collection of Python modules to access a PI device and process GCS data. It can be used with Python 2.7+ and 3.4+ (3.6 is OK) on Windows, Linux and OS X and without the GCS DLL also on any other platform.

Other Comments

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

@diamond2nv
Copy link

@alex0130

@Domx93
Copy link

Domx93 commented Nov 4, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants