Skip to main content

The problem with API's IAS properties


Hi


I want to use API setting FieldCurvatureAndDistortion.


But IAS properties is not FieldCurvatureAndDistortion properties.


Its like the image below.



What i can do?


thanks

 

Did this topic help you find an answer to your question?

2 replies

Allie
Zemax Staff
Forum|alt.badge.img+2
  • Zemax Staff
  • 337 replies
  • April 28, 2021

Hi Sheng-BO,


What language are you using to connect to the API? It looks a bit like Excel. If it is a language that connects to the API using COM instead of .NET, then it could be that the intellisense is not reporting the full information. The Field Curvature/Distortion analysis has a full IAS interface as provided in the ZOS-API Syntax Guide here: ZOSAPI.Analysis.Settings.Aberrations.IAS_FieldCurvatureAndDistortion Interface Reference.


I inspected the Field Curvature settings interface in Matlab, and have confirmed that all settings are available, as shown below. Note: you can right-click the image and open it in a new tab for a higher res view.


 



 


You should be able to use any of these settings in your own code. For example, to change the value of Maximum Curvature, you would use a command similar to this: Curvature_setting.MaximumCurvature = 20.0


Let us know if you have any trouble with this!


Best,


Allie


thank you


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings