How to use capture.tcl script to write captured adc data in a file?

Hi Everyone,

I am trying out example design in ad9361 where I will transmit sine wave from LUT uing DMA_SEL and capture data using adc_capture(). I would like to write the captured data in a file and analyse it in Matlab. I am using NO OS mode. I have noticed there is a capture.tcl script available. I would like to know how to use it and is it possible to use this script in NO OS mode. It will be great if someone can share there experience of using this script in details as I am a newbie in using ad9361. Thanks in advance.

Best regards,

Bhaskar