Skip to main content

Collecting Data from the Radio Telescope

So, continuing from the previous part - Building a Radio Telescope, this post will cover the data collection and analysis part of my project. BTW, this post will be very intensive in terms of technical language used. So, be warned. But i suggest you read through it anyway ...

There are surely a lot of different ways to go about saving data from a radio antenna and use analyse the data on a computer but well, i couldnt find them. And the method of data collection mentioned herewhere they use a modulator and down convert the original signal to the range of Hz and feed this signal into the audio jack of a computer. And using the relevant Sky Pipe software, you can analyse this signal for radio bursts from the sun and signals from jupiter. You can save this data from the program onto .png files or .txt files, archives of saved data which are available here

But, i don't think that this is an efficient way to save and analyse this data.
So, i suggest another method, which has been working fine so far. 

I suggest using a Digital Oscilloscope (model : TDS 1001b) to sample the high frequency signal we get from the antenna which are in the range of ~MHz (which is possible as these oscilloscopes have a max. sampling frequency of 50MHz and a sample rate of 1GS/s) and view the signal in this digital oscilloscope. As these oscilloscopes have inbuilt FFT functions, we can look at the fourier spectrum of the signal as well. But im not exactly satisfied just being able to look at the fourier spectrum on the oscilloscope, i want to be able to save the data on a system, for easy data analysis.

The good news is that these oscilloscopes come with a USB output interface and the company (Tektronik) provides free software to view the signal from the oscilloscope on your computer. TekVISA is an essential software which installs all of the necessary drivers for the USB connection and also a basic program which will let you look at the signal on your computer (you wont be able to do anything more though). You'd have to be registered on the website to be able to download the software and relevant drivers. And now that we have a USB connection from the oscilloscope and we have the relevant drivers installed, we move on to other ways by which we can access this data.

(this is a bit tricky, unless you try this hands-on. and refer to the step-by step video in the references i mentioned, for a better understanding of this)

now we get to the part of using MATLAB to do data analysis. The data acquisition tool box in matlab lets you control a digital oscilloscope (given the drivers are previously installed and a specific matlab file is available). This specific matlab file should be downloaded and copied onto MATLAB's working directory, so that the data acquisition toolbox can identify the oscilloscope (if the file isnt already available i.e).

Now that you have the relevant drivers and the matlab file as well, after you connect the oscilloscope to the comp, you should be able to see a new device under the USB option, which is your oscilloscope. Add the device in the new devices option and connect it.
Test the device by auto-setting the oscilloscope through matlab and other basic operations.

Now that we're connected to the device through matlab, you should be able to see options such as 'Read Waveform', 'Write Waveform' etc. Now, set the options to 'channel1' and 'y,x' and run the command. after the data has been retrieved from the oscilloscope, you should be able to see an export option. and this will help you export this saved data onto the matlab workspace. 

And well, now that we have the data on the matlab workspace, we can do pretty much everything we want to do from averaging multiple samples of the same signal, FFTing the signal to look at the fourier spectrum or pretty much whatever we want to.

Obviously, unless you actually try this, you wont be able to understand the process and the different steps involved, though i mentioned them to you. So, if you are doing something even vaguely related to making circuits and testing their response functions, or basically anything which involves electronic circuits - you should try getting your hands on a digital oscilloscope and try this out.

And this isnt the only kind of digital oscilloscope which matlab supports. There are already pre-installed matlab drivers for products from a range of manufacturers. So, check them out as well. 

References :

  • the oscilloscope model i mentioned above which i've been working with. 
  • the different models of tek oscilloscopes which are supported by matlab. 
  • webinar on how to acquire live data using the Matlab. 
  • step by step tutorial on how to connect the oscilloscope to matlab and start using Matlab - very very useful and basic! 
Well, do tell me if you try this out and i welcome info about updates on the software or drivers used. And if you've used this method before, do tell me how you went about doing it, how different you did it and what you were able to achieve. 

Popular posts from this blog

Animation using GNUPlot

Animation using GNUPlotI've been trying to create an animation depicting a quasar spectrum moving across the 5 SDSS pass bands with respect to redshift. It is important to visualise what emission lines are moving in and out of bands to be able to understand the color-redshift plots and the changes in it.
I've tried doing this using the animate function in matplotlib, python but i wasn't able to make it work - meaning i worked on it for a couple of days and then i gave up, not having found solutions for my problems on the internet.
And then i came across this site, where the gunn-peterson trough and the lyman alpha forest have been depicted - in a beautiful manner. And this got me interested in using js and d3 to do the animations and make it dynamic - using sliders etc.
In the meanwhile, i thought i'd look up and see if there was a way to create animations in gnuplot and whoopdedoo, what do i find but nirvana!

In the image, you see 5 static curves and one dynam…

on MOOCs.

For those of you who don't know, MOOC stands for Massively Open Online Course.

The internet is an awesome thing. It's making education free for all. Well, mostly free. But it's surprising at the width and depth of courses being offered online. And it looks like they are also having an impact on students, especially those from universities that are not top ranked. Students in all parts of the world can now get a first class education experience, thanks to courses offered by Stanford, MIT, Caltech, etc.

I'm talking about MOOCs because one of my new year resolutions is to take online courses, atleast 2 per semester (6 months). And I've chosen the following two courses on edX - Analyzing Big Data with Microsoft R Server and Data Science Essentials for now. I looked at courses on Coursera but I couldn't find any which was worthy and free. There are a lot more MOOC providers out there but let's start here. And I feel like the two courses are relevant to where I …

Pandas download statistics, PyPI and Google BigQuery - Daily downloads and downloads by latest version

Inspired by this blog post :, I wanted to play around with Google BigQuery myself. And the blog post is pretty awesome because it has sample queries. I mix and matched the examples mentioned on the blog post, intent on answering two questions - 
1. How many people download the Pandas library on a daily basis? Actually, if you think about it, it's more of a question of how many times was the pandas library downloaded in a single day, because the same person could've downloaded multiple times. Or a bot could've.
This was just a fun first query/question.
2. What is the adoption rate of different versions of the Pandas library? You might have come across similar graphs which show the adoption rate of various versions of Windows.
Answering this question is actually important because the developers should have an idea of what the most popular versions are, see whether or not users are adopting new features/changes they provide…