pyepics / newportxps

python support code for NewportXPS drivers
BSD 2-Clause "Simplified" License
20 stars 17 forks source link

`xps.run_trajectory` hangs #6

Open hududed opened 3 years ago

hududed commented 3 years ago

Hello

I ran in both jupyter notebook and python shell in windows powershell:

from newportxps import NewportXPS
IPADDR = '192.168.254.100' # Update remote/host address here

xps = NewportXPS(IPADDR)
xps.initialize_allgroups()
xps.home_allgroups()
xps.define_line_trajectories(start=0,
                             stop=5,
                             step=0.01,
                             scantime=2.667,
                             axis='Y')
xps.trajectories
xps.run_trajectory('foreward')

but the code gets stuck after the motors have moved. Any thoughts?

newville commented 3 years ago

@hududed um, what does "code gets stuck" mean? Line trajectories definitely work for me. I assume that you examined any exceptions and checked the state of the stages. That is, you did not say "stage goes uninitialized" or "the XSP-D shows an error", you said the code "gets stuck". No ideas.