DLL

The DLL command defines a beam based upon a user-defined DLL, which is then summed to the master beam. The syntax is:

DLL weight DLL_NAME param1 param2 param3 ...

Note that the data values are separated by spaces. The weight value defines the dimensionless relative total power of this beam as compared to other beams in the same ZMM file. The weight value may be negative, for details search the help files for "Using random values". The DLL_NAME is the name of the DLL file (with no extension). The DLL file must be placed in the correct folder, see "DLL" for details. The other values are exactly as defined for the DLL parameters. No scaling of the parameters is supported, since the dimensionality and purpose of the DLL parameters cannot be known in advance.

Comment of DLL_NAME

Note currently the file name for DLL doesn't allow spaces inside. If the DLL file name includes spaces, remove it or replace it by other characters. For example, to use the Laguerre beam in ZMM file, users should first go to folder \Zemax\DLL\PhysicalOptics\ and change the file name "Laguerre beam.dll" to "Laguerre_beam.dll". Then a syntax lilk below can be used

DLL 0.2 Laguerre_beam 0.0 0.0 0.00259 90

Note also this limitation can be removed in the future.

Next: