Skip to main content

OPEV issue with Reli

  • December 8, 2020
  • 1 reply
  • 40 views

Dear Sir,

I am trying to use OPEV to extract relative illumination

 

When I try to do this I just get an answer 1

 

See example below.

 

D=OCOD('RELI')    #

test=OPEV(D, pw, 11, 0, 0, 0, 0)

 

 

I can not work out why this does not work?

 

Please help

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

1 reply

Berta.Bernad
Zemax Staff
Forum|alt.badge.img+2
  • Zemax Staff
  • 112 replies
  • December 9, 2020

Hi Matthew,

The syntax for RELI is 

And the syntax for OPEV is 

OPEV(code, int1, int2, data1, data2, data3, data4)

So int1 is the Sampling, int 2 the Wave, Data1 the Field, Data2 the Polarization, Data3 the target and Data4 the Weight.

It seems that in your example you are setting the field as 0, which doesn't exist. Also, you have to use double quotes (') instead of (').

I can extract relative illumination with something like this:

I hope it helps but let us know if not!

 

 


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