xzos / PyZDDE

Zemax/ OpticStudio Extension using Python
MIT License
159 stars 67 forks source link

Which Zemax version is required? #89

Open RichardPflaum opened 5 years ago

RichardPflaum commented 5 years ago

Hi, sorry to bother you, but I always get timeout errors when trying to run the Hello World mini-example:

from __future__ import print_function
import matplotlib.pyplot as plt   # import plotting module
import pyzdde.zdde as pyz         # import pyzdde module   

ln = pyz.createLink() # DDE link object
print("Hello Zemax version: ", ln.zGetVersion())
ln.close()

produces the error:

TIMEOUT REACHED. Please use a higher timeout.

Hello Zemax version:  -998

I suspect this is because I am using a OpticStudio Standard license instead of a professional license, could that be? I have been looking for a while now and didn't find anything concerning those requirements in the PyZDDE manuals or any change logs of Zemax versions for that matter.

My specifications: Zemax OpticStudio 14.2 Standard Windows 10 Professional, Version 10.0.17134 Build 17134 Python 3.6 (also tried 3.5.5)

Thanks a lot in advance! Best, Richard