Navigation: Scripting Reference Manual > Functions & Subroutines > SetMzrAberrationTarget

 

SetMzrAberrationTarget

 

Contact Us: fredsupport@photonengr.com

 

Description

This command sets the target value for a specific merit function aberration.

 

 

Syntax

SetMzrAberrationTarget aberIndex, targetValue

 

 

Parameters

aberIndex As Long

Index into the optimization aberrations list for which the aberration target value is being specified.

 

targetValue As Double

Target value of the aberration being set.

 

 

Example

The following example updates the aberration at index 0 to have a new value of 1234567.

 

Sub Main

 

    Dim targetValue As Double

    targetValue = 1234567

    SetMzrAberrationTarget( 0, targetValue )

 

End Sub

 

See Also

Optimization Script Commands

 

 

 

 

 

Copyright © Photon Engineering, LLC