Solved

POLDEFINE use case in ZPL

  • 1 September 2020
  • 1 reply
  • 50 views

Badge

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? 

icon

Best answer by Kaleb 1 September 2020, 22:11

View original

1 reply

Userlevel 1
Badge +1

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