Commit b74c2e4b authored by guibene's avatar guibene

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4164 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent d6fdcd4d
dual_tx=0; dual_tx=0;
card=0; card=0;
limeparms; limeparms;
active_rf = [1 1 0 0]; active_rf = [1 1 1 1];
%rf_mode = (RXEN+TXEN+TXLPFNORM+TXLPFEN+TXLPF25+RXLPFNORM+RXLPFEN+RXLPF25+LNA1ON+LNAMax+RFBBNORM)*[1 1 1 1]; %rf_mode = (RXEN+TXEN+TXLPFNORM+TXLPFEN+TXLPF25+RXLPFNORM+RXLPFEN+RXLPF25+LNA1ON+LNAMax+RFBBNORM)*[1 1 1 1];
rf_mode = (RXEN+TXEN+TXLPFNORM+TXLPFEN+TXLPF25+RXLPFNORM+RXLPFEN+RXLPF25+LNA1ON+LNAMax+RFBBNORM)*active_rf; rf_mode = (RXEN+TXEN+TXLPFNORM+TXLPFEN+TXLPF25+RXLPFNORM+RXLPFEN+RXLPF25+LNA1ON+LNAMax+RFBBNORM)*active_rf;
rf_mode = rf_mode+(DMAMODE_RX*active_rf); rf_mode = rf_mode+(DMAMODE_RX*active_rf);
...@@ -43,10 +43,12 @@ s=oarf_get_frame(card); ...@@ -43,10 +43,12 @@ s=oarf_get_frame(card);
f = (7.68*(0:length(s(:,1))-1)/(length(s(:,1))))-3.84; f = (7.68*(0:length(s(:,1))-1)/(length(s(:,1))))-3.84;
spec0 = 20*log10(abs(fftshift(fft(s(:,1))))); spec0 = 20*log10(abs(fftshift(fft(s(:,1)))));
spec1 = 20*log10(abs(fftshift(fft(s(:,2))))); spec1 = 20*log10(abs(fftshift(fft(s(:,2)))));
spec2 = 20*log10(abs(fftshift(fft(s(:,3)))));
spec3 = 20*log10(abs(fftshift(fft(s(:,4)))));
clf clf
plot(f',spec0,'r')%,f',spec1,'b') plot(f',spec0,'r',f',spec1,'b',f',spec2,'g',f',spec3,'m')
axis([-3.84,3.84,40,160]); axis([-3.84,3.84,40,160]);
%gpib_send(gpib_card,gpib_device,'OUTP:STAT OFF'); % activate output %gpib_send(gpib_card,gpib_device,'OUTP:STAT OFF'); % activate output
legend('Antenna Port 0','Antenna Port 1'); legend('Antenna Port 0','Antenna Port 1','Antenna Port 2','Antenna Port 3');
grid grid
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment