How to get number of detectors and object type using ZOS-API?
Hi all,
I have been trying to access NSC Object type using "NumberOfObjects" and "NumberOfDetectors" commands.
Here is the code in Matlab:
OBnumber = TheSystem.NCE.NumberOfObjects;
DEnumber = TheSystem.NCE.NumberOfDetectors;
However ,OBnumber returns the exact number of objects in the system, while DEnumber could not be identified.
After looking up from the manual, I found that the command "NumberOfDetectors" is legend from "ZOSAPI.Wizards.INSCWizard" , yet I am not able to find a demonstration to learn to code correctively.
Answers
-
For a substitute, I use a complex loop to sum the number of detectors. That being said, I can't help but wonder, how exactly can "NumberOfDetectors" be properly used?
If you have any other ideas, feel free to discuss them!!0