Hi Donners,
The only reason I got an array of clusters was because I fed the PSD function with an array of waveform data. The reason I did this was because I believe you stated before that you had the same thing (I may be wrong). You could just get rid of the FOR loop and it should work, writing to file.
Kind Regards,
Laurence C.
Applications Engineer
National Instruments