Amrita Pati
Ansys Employee

Hi Saurav,

Thank you for providing more information. You can write this variable (f_power_norm) into a text file using the write script command.
For example:

It will write the data into a text file called "power.txt", which will be saved in the same directory. I believe the variable would have the power for different wavelengths, but not the wavelength itself. So, you can either add it to the same variable from the monitor and then write the variable. Or you can append the wavelegths at the end of file. Please let me know if you face any issues.