Skip to main content

Hello All,

 

i am trying to run a parametric analysis in Optic studio in combination with Optislang.

I keep getting this error when ever I try to read the parameters from the ZEMAX file:

 

 

The error basically cannot find the .zmi and .zmo files for the zemax files. Although this error was not happening before, it could be because I tried to upgrade to the latest versions of both the softwares. 

 

Has someone also experienced something like this? I also get “uninitialized” warnings and “not correct data type” warnings which I see sporadically and not always.

 

Any inputs are appreciated.

 

I am running the parametric analysis with tilts, decenters, and lens dimensions as parameters to arrive at Zernike polynomials that i measure compared to the Zernike parameters that I simulate in the model. Is there a way I could do it using the merit function editor?

I set up the Zernike polynomial operands with the wavelength and other settings. Use the values of the different Zernike coefficients that I want to reach as “targets” in the editor but when running the optimization, I am nowhere close to where I want to be and hence my choice of running it with optislang for a larger parametric analysis run.

 

With best regards,

Amit

 

PS: I am using Optislang 8.1.0 with Opticstudio 22.1.1

Hello @Amit!

I asked my Optislang colleague and she said that your version of Optislang is quite old, so the connection between OpticStudio 22.1 and Optislang 8.1.0 has never been tested. She recommends using a newer version of optiSLang, at least 22 R1 or if the non-sequential mode is needed 23R1. 

Let us know how it goes.

Thank you!


Hello @Sandrine Auriol 

So, i checked with the vesrion of Optislang you suggested. The error persists:

Is there anything else you suggest I try? Although, with optislang 8.1 it was working until a point where I tried to install another version of optislang. After that this error has been the constant output.

 

Thanks, Amit


Two questions:

  • Are the zmi and zmo files present on your machine? These files are created when connecting optiSLang to OpticStudio with all the inputs and outputs. 
  • Do you have several OpticStudio versions installed on your machine?

And here are some further instructions from my colleague:

  • Start optiSLang and OpticStudio both with admin rights.

  • Close OpticStudio again and try the Zemax integration inside optiSLang with admin right.

  • If you encounter errors when using the integration for the first time, register the COM interface of the software. This usually requires administrator privileges.

  • Start optiSLang as administrator and use the integration once. If the error does not appear, the COM interface has been properly set up and you do not need to use administrator privileges again.

    Process Chain Elements Add-Ins Folder (ansys.com)

Let us know how it goes.


Hi,

 

updated the versions of both OptiSlang and Optic Studio to 2022R1 and 22.2.1 respectively.

Created a new guided project from scratch, with ZEMAX module in OptiSlang and it works now.

Faced issuses with:

  1. Loading an old optislang “.opf” file and re-running the Zemax node did not solve the issue even after the installing the newer versions. A new project has to be created.
  2. The .zmx model have to be saved again with all the inputs(variables in the LDE) and responses(all operands in the MFE). The old .zmx file has to be overwritten. Just save does not work for some reason.

Thanks @Sandrine Auriol for the input on the software versions. That helped.

 

--Amit


Thank you for letting me know! I’ll share this with my colleague. Glad it works now 😀


Reply