Solved

ZOS-API Python - Change parameters of diode source array

  • 20 July 2023
  • 2 replies
  • 73 views

Userlevel 2

I have a (n x m) array of diode sources. My optical simulation includes a sweep of n and m. However within the ZOS-API (python) i don´t seem to find this attribute in the diode source object.

Does someone know how to access these variables?

icon

Best answer by Benjamin.N 21 July 2023, 06:15

View original

2 replies

Userlevel 2
Badge

Hi Jonasz,

according to the ZOS-API syntax help (see “Programming” tab in Zemax) the attributes are called “NumberX” and “NumberY” (which is slightly different from the GUI: “Number X’”).

Best regards
Benjamin

Userlevel 2

Hi Benjamin,

I am still learning how to get around with the help document. Your answer was very helpful.

Looking up the ZOS-API syntax help, i´ve followed ZOSAPI → Editors → NCE → IObjectSourceDiode. As indicated, the attributes NumberX and NumberY can be found, along with other relevant ones.

 

Kind regards

Reply