Skip to main content

Save analysis output as text file using SAVEWINDOW keyword in ZPL

  • February 18, 2020
  • 2 replies
  • 672 views

I have written a ZPL macro that aims to save the text output of Wavefront Map. I expected the SAVEWINDOW keyword to perform this task, but it throws the following error when the macro is executed:

ERROR in SAVEWINDOW: Can't copy window 1 to C:/....txt

The macro successfully saves files for Text Viewer windows, but not for Analysis windows which have a Graph tab and a Text tab. Is SAVEWINDOW designed to work with Analysis windows? Is there an alternative method that could be used to achieve the same goal?
Did this topic help you find an answer to your question?

2 replies

  • Author
  • Single Emitter
  • 1 reply
  • February 18, 2020
Problem solved. I had forgotten to include an UPDATE ALL command in the FOR loop that contained the SAVEWINDOW command.

  • Infrared
  • 22 replies
  • November 23, 2020

Hello all,

How can we use the array in the full path of the file to save using the SAVEWINDOW command in macros? It not taking array as an array, it is saving the data with the file name as an array vector only.

I am attaching the example, please have a look.
SAVEWINDOW 4, 'E:\.........\x(i).TXT', where x(i) is an array but the file is not saving with the value of x(i). It's saving with the name x(i) itself.

Can anybody please help?

Best and Regards,
Faheem


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