Chandra Sekaran
Ansys Employee

1) On issue 1 I think *VWRITE should also work if you use the starting index number like below. Also I am notsure what the % sign is on the format so I removed it.

   *CFOPEN,ENERGIES,txt,C:\Users\MD\Desktop
  *VWRITE,energy_array(1)
  (F18.10)
  *CFCLOS

2) I am not sure what you mean by "the highst value of the harmonic steps rather than recording last step as this code do." Let us say you requested harmonic excitation frequency between 10 and 15 Hz and asked for 5 equally spaced steps. You will get 5 solutions at 11,12,13,14,15 Hz. Can you explain your question in this scenario?