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

zGetImageSimulation not working #100

Open
andibarg opened this issue Jan 9, 2020 · 2 comments
Open

zGetImageSimulation not working #100

andibarg opened this issue Jan 9, 2020 · 2 comments

Comments

@andibarg
Copy link

andibarg commented Jan 9, 2020

'zGetImageSimulation' calls the method 'zGetTextFile' which always returns -1 and thus fails. This is not because of a timeout but simply because image simulation (at least in the latest versions of OpticStudio) does not support text output. How could this be fixed?

An ugly workaround is to specify an output file in image simulation and use 'ln.zPushLens(1)' to update it. Once this is done, one can retrieve the image file from the 'Zemax\IMAFiles' folder.

@indranilsinharoy
Copy link
Collaborator

Hi @andibarg ,
Can you please take a look at the "NOTE" section of the example notebook Acquisition and analysis of Image Simulation data from Zemax and see if the suggestions there help?

@andibarg
Copy link
Author

Hi @indranilsinharoy,

Thanks for your reply.
Unfortunately, the suggestions in the "NOTE" section do not help. I tried with short file names and without commas. Finally, I went through example 1 and got the error again at line 12, as expected:
img_info, img_data = ln.zGetImageSimulation(settingsFile=cfgfile)
Btw, I am using OpticStudio 19.8.

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

2 participants