IEEE.org
|
IEEE Xplore Digital Library
|
IEEE Standards
|
IEEE Spectrum
|
More Sites
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Joshua Gay
IEEE P1765 Recommended Practice for EVM Measurement and Uncertainty Evaluation
Commits
8438ccd8
Commit
8438ccd8
authored
Jun 29, 2021
by
Martin Hudlicka
Browse files
Deleted
parent
bae8015e
Changes
1
Hide whitespace changes
Inline
Side-by-side
03 P1765 Baseline EVM Algorithms/Single_Carrier/PreProcessing_Main_Downconvert.m
deleted
100644 → 0
View file @
bae8015e
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Downversion code (user distributable)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This code implements the preprocessing step of downconversion and is
% not a part of the IEEE P1765 Baseline EVM Algorithm.
% The downconversion is discussed in Section 5.1.1.2.
% Here, we present a method to perform downconversion on a reference RF waveform.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Authors:
% Christopher P. Silva - Original code Version 04.30.2021
% Paritosh Manurkar - Modularization of the code into a main program and subroutines Version 06.08.2021
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear
;
close
all
;
clc
;
%% Read Basic Communication Parameters
params
=
F_Basic_Communication_Parameters
();
%% Ask for file input
% Read in ASCII RF Reference Signal Waveform file
disp
(
'The user�s selection will be based on the P1765 Signal Impairment Sets defined in Section 6.1 and Annex A of IEEE P1765'
);
disp
(
'Read in ASCII RF Reference Waveform file'
);
[
fname
,
path
]
=
uigetfile
([
pwd
,
'\P1765 Reference Waveforms\Waveform1r_rf.txt'
],
'Select the signal text file'
);
file
=
fullfile
(
path
,
fname
);
distSig
=
transpose
(
dlmread
(
file
));
distSig2FT
=
fft
(
distSig
);
% Extract the file extension for default filenaming convention
[
~
,
~
,
ext
]
=
fileparts
(
fname
);
% Perform downconversion from RF to Baseband in frequency domain
distSigFreq
=
PreProcessing_F_Downconvert
(
distSig2FT
,
params
);
%params is a structure containing basic communication parameters
distSig_bb
=
ifft
(
distSigFreq
);
sigSize_bb
=
length
(
distSigFreq
);
% Save frequency downconverted time-domain waveform
% Replace the filename extenstion with elaborate filename to signify downconversion plus extension
stri
=
fullfile
(
path
,
strcat
(
fname
(
1
:
end
-
length
(
ext
)),
'_downconverted.txt'
));
dlmwrite
(
stri
,
distSig_bb
.
','
newline
','
pc
','
precision
','
%.16f');
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