Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
a725a3a8
Commit
a725a3a8
authored
9 years ago
by
Florian Kaltenberger
Browse files
Options
Downloads
Patches
Plain Diff
some error checks in ulsim added
parent
49c70ff9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6
Enhancement 57 uhd interfacing
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair1/SIMULATION/LTE_PHY/ulsim.c
+12
-5
12 additions, 5 deletions
openair1/SIMULATION/LTE_PHY/ulsim.c
with
12 additions
and
5 deletions
openair1/SIMULATION/LTE_PHY/ulsim.c
+
12
−
5
View file @
a725a3a8
...
@@ -581,6 +581,10 @@ int main(int argc, char **argv)
...
@@ -581,6 +581,10 @@ int main(int argc, char **argv)
sprintf
(
bler_fname
,
"ULbler_mcs%d_nrb%d_ChannelModel%d_nsim%d.csv"
,
mcs
,
nb_rb
,
chMod
,
n_frames
);
sprintf
(
bler_fname
,
"ULbler_mcs%d_nrb%d_ChannelModel%d_nsim%d.csv"
,
mcs
,
nb_rb
,
chMod
,
n_frames
);
bler_fd
=
fopen
(
bler_fname
,
"w"
);
bler_fd
=
fopen
(
bler_fname
,
"w"
);
if
(
bler_fd
==
NULL
)
{
fprintf
(
stderr
,
"Problem creating file %s
\n
"
,
bler_fname
);
exit
(
-
1
);
}
fprintf
(
bler_fd
,
"#SNR;mcs;nb_rb;TBS;rate;errors[0];trials[0];errors[1];trials[1];errors[2];trials[2];errors[3];trials[3]
\n
"
);
fprintf
(
bler_fd
,
"#SNR;mcs;nb_rb;TBS;rate;errors[0];trials[0];errors[1];trials[1];errors[2];trials[2];errors[3];trials[3]
\n
"
);
...
@@ -589,13 +593,16 @@ int main(int argc, char **argv)
...
@@ -589,13 +593,16 @@ int main(int argc, char **argv)
hostname
[
1023
]
=
'\0'
;
hostname
[
1023
]
=
'\0'
;
gethostname
(
hostname
,
1023
);
gethostname
(
hostname
,
1023
);
printf
(
"Hostname: %s
\n
"
,
hostname
);
printf
(
"Hostname: %s
\n
"
,
hostname
);
char
dirname
[
FILENAME_MAX
];
//char dirname[FILENAME_MAX];
sprintf
(
dirname
,
"%s//SIMU/USER/pre-ci-logs-%s"
,
getenv
(
"OPENAIR_TARGETS"
),
hostname
);
//sprintf(dirname, "%s//SIMU/USER/pre-ci-logs-%s", getenv("OPENAIR_TARGETS"),hostname);
mkdir
(
dirname
,
0777
);
//mkdir(dirname, 0777);
sprintf
(
time_meas_fname
,
"%s/time_meas_prb%d_mcs%d_antrx%d_channel%s_tx%d.csv"
,
sprintf
(
time_meas_fname
,
"time_meas_prb%d_mcs%d_antrx%d_channel%s_tx%d.csv"
,
dirname
,
N_RB_DL
,
mcs
,
n_rx
,
channel_model_input
,
transmission_mode
);
N_RB_DL
,
mcs
,
n_rx
,
channel_model_input
,
transmission_mode
);
time_meas_fd
=
fopen
(
time_meas_fname
,
"w"
);
time_meas_fd
=
fopen
(
time_meas_fname
,
"w"
);
if
(
time_meas_fd
==
NULL
)
{
fprintf
(
stderr
,
"Cannot create file %s!
\n
"
,
time_meas_fname
);
exit
(
-
1
);
}
}
}
if
(
abstx
)
{
if
(
abstx
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment