Hi all,
I am writing a ZPL macro which calculates phase patterns and imports the phase into Grid Phase Surface automatically. (There is a typo in title. I’m using a Grid Phase Surface)
I found a way to import the grid phase using IMPORTEXTRADATA keywords in a below question
Macro import of .dat file onto a Grid Phase surface | Zemax Community
But it requires “reading” .dat files; so, I should firstly generate .dat file for the calculated phase profiles, and after that I could read again the phase from those .dat files to import. It seems to be very inefficient method and takes too long time to write and read my phase profile.
Is there any way to import phase data directly from another data types in ZPL (like array or vec) instead of writing and reading .dat files?
With best regards,
Jiwoon.