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
promise
OpenXG-RAN
Commits
a725a3a8
Commit
a725a3a8
authored
9 years ago
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some error checks in ulsim added
parent
49c70ff9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
openair1/SIMULATION/LTE_PHY/ulsim.c
openair1/SIMULATION/LTE_PHY/ulsim.c
+12
-5
No files found.
openair1/SIMULATION/LTE_PHY/ulsim.c
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.
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