Skip to main content
Solved

ZPL in sequential mode

  • 24 July 2024
  • 1 reply
  • 81 views

Hello everyone. This is my first time asking a question, so please understand that there may be some inadequacies.

We succeeded in giving random Zernike coefficients to Zernike surfaces with non-sequential modes. However, we could not do the same with Zernike standard phases in sequential mode using the same ZPL.
Are there any different conditions when dealing with ZPL in sequential and non-sequential modes?

1 reply

Userlevel 7
Badge +2

@Masato.Aketagawa 

 

Welcome to the community. Yes there are differences in ZPL between sequential and non-sequential.

You did not copy your code, so I can’t say what is wrong exactly. I am guessing you are using SETNCSPARAMETER to give the Zernike coefficients to the Zernike Surface object. If your Zernike Surface object is on line 1 of the Non-Sequential Component Editor, your code might look like so:

object_number = 1
parameter_number = 7
coeff_r2 = 1.2345
SETNSCPARAMETER 1, object_number, parameter_number, coeff_r2

In sequential mode, assuming your Zernike Standard Phase is Surface 1:

surface_number = 1
parameter_number = 15
zernike_1 = 1.2345
SURP surface_number, PARM, zernike_1, parameter_number

In general, you will have to adjust your ZPL macros for sequential from non-sequential and vice versa.

I hope this helps and take care,

 

David

Reply