Skip to main content
Solved

ZOS-API


Hi all,

I am using ZOS-API. I want to change the temperature of my configuration from 20 degree celsius to 30 degree. In addition I also want to change the ray aiming to paraxial condition.

Is there anyone, who have used such things or any suggestions?

Best answer by David.Nguyen

Hi Sanjeev,

 

Assuming you have a thermal configuration like so:

The following lines of code:

# Retrieve your TEMP operand based on its row number (in this case: 1)
TEMP_Row = 1
TEMP_MCE_Operand = TheSystem.MCE.GetOperandAt(TEMP_Row)

# Select specific cell (configuration) from the TEMP operand (in this case: Config 3)
Config3_Cell_Number = 3
TEMP_Config3_Cell = TEMP_MCE_Operand.GetCellAt(Config3_Cell_Number)

# Update cell value
TEMP_Config3_Cell.DoubleValue = 23.45

Would produce the following result:

In the lines of code, the important parameters are the row number of the TEMP operand (TEMP_Row), and the configuration number you wish to change (Config3_Cell_Number).

Enabling Paraxial ray aiming can be done with this line of code:

# Enable Paraxial ray aiming
TheSystem.SystemData.RayAiming.RayAiming = ZOSAPI.SystemData.RayAimingMethod.Paraxial

Additionally, the RayAiming interface has the following properties that can be adjusted:

I hope this helps. Take care,

 

David

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

2 replies

David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1089 replies
  • Answer
  • August 8, 2022

Hi Sanjeev,

 

Assuming you have a thermal configuration like so:

The following lines of code:

# Retrieve your TEMP operand based on its row number (in this case: 1)
TEMP_Row = 1
TEMP_MCE_Operand = TheSystem.MCE.GetOperandAt(TEMP_Row)

# Select specific cell (configuration) from the TEMP operand (in this case: Config 3)
Config3_Cell_Number = 3
TEMP_Config3_Cell = TEMP_MCE_Operand.GetCellAt(Config3_Cell_Number)

# Update cell value
TEMP_Config3_Cell.DoubleValue = 23.45

Would produce the following result:

In the lines of code, the important parameters are the row number of the TEMP operand (TEMP_Row), and the configuration number you wish to change (Config3_Cell_Number).

Enabling Paraxial ray aiming can be done with this line of code:

# Enable Paraxial ray aiming
TheSystem.SystemData.RayAiming.RayAiming = ZOSAPI.SystemData.RayAimingMethod.Paraxial

Additionally, the RayAiming interface has the following properties that can be adjusted:

I hope this helps. Take care,

 

David


Thanks David,

I get through.


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