Skip to main content

Saving POP text file in ZOS-API while tolerancing

  • August 5, 2021
  • 1 reply
  • 143 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

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

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


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