Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alex037yang
OpenXG-RAN
Commits
b74c2e4b
Commit
b74c2e4b
authored
Sep 25, 2013
by
guibene
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@4164
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
d6fdcd4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
targets/ARCH/EXMIMO/USERSPACE/OCTAVE/rx_spec.m
targets/ARCH/EXMIMO/USERSPACE/OCTAVE/rx_spec.m
+6
-4
No files found.
targets/ARCH/EXMIMO/USERSPACE/OCTAVE/rx_spec.m
View file @
b74c2e4b
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
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment