The program in the following file assigns random values to the specified Zernike terms. This ZPL works in non-sequential mode but not in sequential mode. Where do I need to modify it to make it work in sequential mode?
The macro sets non-sequential parameters using the keyword SETNSCPARAMETER. In sequential mode, to set a parameter, you would use SETSURFACEPROPERTY or SURP. The syntax looks like so (for a parameter):
surface should be the surface number of the Zernike surface, parameter_value is the random value you want to assign, and parameter_number is the column number of the corresponding Zernike term you want to assign. If you have a doubt about the parameter_number, add a Standard Surface before the Zernike surface, and click in the cell just above the Zernike term you are interested in.
4th Order Term cell selectedSelecting a cell from a Standard Surface just above the 4th Order Term cell reveals the column number Par 2(unused). This means this column is parameter_number = 2.
The macro sets non-sequential parameters using the keyword SETNSCPARAMETER. In sequential mode, to set a parameter, you would use SETSURFACEPROPERTY or SURP. The syntax looks like so (for a parameter):
surface should be the surface number of the Zernike surface, parameter_value is the random value you want to assign, and parameter_number is the column number of the corresponding Zernike term you want to assign. If you have a doubt about the parameter_number, add a Standard Surface before the Zernike surface, and click in the cell just above the Zernike term you are interested in.
4th Order Term cell selectedSelecting a cell from a Standard Surface just above the 4th Order Term cell reveals the column number Par 2(unused). This means this column is parameter_number = 2.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.