Hello Folks,
I’ve recently started working with the ZOS-API in python, and I’m concerned there’s something fundamental I’m not understanding. Namely, whenever I use a GetDetectorData(DetObj, 0,0,0), the number generated does not match the value of “Total Power” obtained through zemax. So I prepared an example with Example02; I’ve attached the modified file.
When I call the detector data to get flux (ret1, p_val = TheSystem.NCE.GetDetectorData(4, 0, 0, 0)), I get p_val=14710.99 ; however, when I check the Total Power on the associated zemax file*, I get 7.3533 lumens. I’ve made attempts with the other data types, and with other functions (GetCoherentData), with similar issues.
Question remains, how to measure total power on a detector through the ZOS-API?
*"C:\Users\william.deschenes\Documents\Zemax\Samples\Non-sequential\Miscellaneous\Digital_projector_flys_eye_homogenizer.ZDA"