Saving POP text file in ZOS-API while tolerancing

  • 5 August 2021
  • 1 reply
  • 97 views

 Hi, 

What is the correct way to save the whole .txt file in the POP Analysis?

I am using and UDOC running a Csharp UserOperandApplication containing the following code:

...

POPDef.ApplyAndWaitForCompletion();                                  
POPDef.ToFile("C:/Users/file.txt");

…some calculations...

 

It works for a single call from OpticStudio, but it gives problems when doing tolerancing. Somehow the file saving command is not synchronous and cannot keep up.

Is there other command for saving the whole .txt file?-or maybe a way to make the rest of code wait for POPDef.ToFile?

Regards,

Jose


1 reply

I had a call with support and they solved the problem :)

One has to select 1 core when doing the tolerance analysis. The task I defined in the previous post is not easily parallelized. 

 

Reply