I am having an issue with the example Matlab scripts in OpticStudio. They fail to connect to OpticStudio. Here, for example is the portion of the Matlab function that connects,
If I uncomment the success variable to define a “custom” path to OpticStudio, then the function will work; however, the line,success = ZOSAPI_NetHelper.ZOSAPI_Initializer.Initialize();
assigns 0 to success.
I am curious as to why this is happening? I am running Zemax OpticStudio 2024 2.01. My installation folder for the program is
C:\Program Files\Ansys Zemax OpticStudio 2024 R1.00\
You can see the difference between the release number and the version that I’m running. I installed the program using the Ansys downloader.