Hi,
I am trying to run non-sequential sequence in a loop, for which I change a parameter and save the detector data for each loop. The text tab should allow me to export the irradiance data at each coordinate, but I am a little uncertain how I can grab detector 1 and 2, then save the data as text files as for example data_d1_01 and data_d2_01, data_d1_02 and data_d2_02,..etc. Any suggestions appreciated. My experience with ZPL is limited.
My attempt:
update ALL
FILENAME$ = "data_xtilt"+ $STR(xtilt) + "_tiltY_" + $STR(ytilt) + ".TXT"
savewindow 1, H:\_work\ZEMAX\+FILENAME$
savewindow 2, H:\_work\ZEMAX\+FILENAME$
This got an error “ERROR in SAVEWINDOW: Window 1 does not support text”