Skip to main content
Solved

POLDEFINE use case in ZPL

  • September 1, 2020
  • 1 reply
  • 62 views

Forum|alt.badge.img

Hello, 


I am trying to run a polarization analysis on a system and am using different polarization states as input. I have created a macro that does this by first using 'POLDEFINE' to define a polarization state, and then using the CODA function to get the information I need. I then use the 'POLDEFINE' function again to describe a new polarization state, and the use the CODA function again. Though, this is unfortunately not working. For some reason, all data sets are the exact same. I am curious how the POLDEFINE is actually working. Are the CODA and POLDEFINE functions possibly decoupled? And if so how do I go about changing the system input polarization using the zpl? 

Best answer by Kaleb

Hi Isaiah,


POLDEFINE is used for setting up a polarization ray trace with POLTRACE. If you are getting results with CODA, I would recommend changing the polarization state using SETSYSTEMPROPERTY. You can use SETSYSTEMPROPERTY with codes 60, 61, 62 , 63 which will change Jx, Jy, X-Phase, and Y-Phase respectively.


These will change the values in the system explorer here. 



As an example, if I wanted to change the Jx to 1 and Jy to 0, I would use:


SETSYSTEMPROPERTY 60, 1


SETSYSTEMPROPERTY 61, 0


-Kaleb

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

1 reply

Forum|alt.badge.img+1
  • Ultraviolet
  • 42 replies
  • Answer
  • September 1, 2020

Hi Isaiah,


POLDEFINE is used for setting up a polarization ray trace with POLTRACE. If you are getting results with CODA, I would recommend changing the polarization state using SETSYSTEMPROPERTY. You can use SETSYSTEMPROPERTY with codes 60, 61, 62 , 63 which will change Jx, Jy, X-Phase, and Y-Phase respectively.


These will change the values in the system explorer here. 



As an example, if I wanted to change the Jx to 1 and Jy to 0, I would use:


SETSYSTEMPROPERTY 60, 1


SETSYSTEMPROPERTY 61, 0


-Kaleb


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