You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'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.
The text was updated successfully, but these errors were encountered:
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.
'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.
The text was updated successfully, but these errors were encountered: