The Cell BE time domain correlator - Copyright 2008 Martin Wåger.
The source code for the project can be found in the SVN repository at
This project currently contains five programs:
The main program (tdc) - Correlates data from two antennas up to a specified maxlag.
The radio data reader (radioreader) - Reads data from one antenna
datamaker - Mex program that create data from Matlab
datareader - Mex program that reads data from the radioreader into Matlab
resultreader - Mex program that reads the result from tdc into matlab.
Compile the tdc and radioreader by typing make in the top directory. Compile the three
mex files from within Matlab by typing mex [filename].
tdc [-ev] -o [ant one] -t [ant two] -r [result path] -m [maximum lag]
-o [ant one] Antenna one data file
-t [ant two] Antenna two data file
-r [result] Result save path
-l [lag] The lag in samples
-e Save the result in reverse endian order (for use on x86 architecture)
-v Shows memory usage and working status
radioreader -i [IP] -p [port] -f [freq] -r [red] -g [gain] -n [numpack] -o [ofile]
-i [IP] source antenna IP address [xxx.xxx.xxx.xxx]
-p [port] source antenna port number [1 - 65535]
-f [freq] the sampling frequency in Hz [0.0 - 12499.0]
-r [red] Defines the BandWidth in as BW = FS/4*2^RED (FS = Sampling frequency) [6.25 - 12.0]
-g [gain] the antenna gain [0 - 4]
-n [numpack] the number of packages to save (one package is 122 samples) [2 - 1000]
-o [ofile] path and name of output file
Run with datamaker(xI,xQ,yI,yQ,zI,zQ,'filename',reverseEndian)
Where [xI]-[zQ] are the data to be saved, [filename] the file to be created
reverseEndian is optional and if != 0 will save data in reversed endian.
Run with [x,y,z] = datareader('filename')
Where [x]-[z] are the data variables and [filename] the file to be loaded
Run with [r1,r2,r3] = resultreader('filename')
Where [r1]-[r3] are the result variables and [filename] the file to be loaded