Radio Environment map+lena-dual-stripe.cc

325 views
Skip to first unread message

networksim...@gmail.com

unread,
Dec 4, 2016, 2:44:36 AM12/4/16
to ns-3-users
Hello

I want to provide figure 1 from lena-dual-stripe. So, First i enable REM, by changing false to true, according:

static ns3::GlobalValue g_generateRem ("generateRem",
                                       "if true, will generate a REM and then abort the simulation;"
                                       "if false, will run the simulation normally (without generating any REM)",
                                       ns3::BooleanValue (false),
                                       ns3::MakeBooleanChecker ());

 second i run the lena-dual-stripe.cc in terminal and it runs successfully, third by text file obtained as output i apply this script in gnuplot:

set view map;
set xlabel "X"
set ylabel "Y"
set cblabel "SINR (dB)"
unset key
plot "lena-dual-stripe.dat" using ($1):($2):(10*log10($4)) with image

at the end i get figure 2, But my purpose is getting figure 1.

How can resolve it?
How can get figure 1 exactly?

Thanks.
1.png
2.png

Biljana Bojović

unread,
Dec 15, 2016, 1:28:53 PM12/15/16
to ns-3-users

Did you try changing the resolution and other parameters of REM helper?

networksim...@gmail.com

unread,
Dec 17, 2016, 11:44:57 PM12/17/16
to ns-3-users
Hello

I Apply These Codes(The File is Attached Here), And As I Said, I Get Figure 2 but not Figure 1.

How Can I Resolve This Problem? And What values should take into account as input? Do The Lines From 827 To 835 Wrong?

Thanks 
lena-dual-stripe.cc

Biljana Bojovic

unread,
Dec 19, 2016, 3:56:47 AM12/19/16
to ns-3-...@googlegroups.com
Hi,

the documentation does not say that if you just run lena-dual-stripe with the default parameters that you will get exactly the same map. It just shows an example of a single run of specific parameters. In order to create the same or similar map you need to carefully configure both dual-stripe scenario and rem helper. In the documentation for REM you may find the reason why this specific configuration of REM map is not generated by default when running lena-dual-stripe example. The map that is by default generated when running lena-dual-stripe scenario is a low resolution map that is showing the macros and buildings. I attach the figure.

Please go again through the documentation about Rem environment maps:
ttps://www.nsnam.org/docs/models/html/lte-user.html#radio-environment-maps

Then also check https://www.nsnam.org/docs/models/html/lte-user.html#reference-scenarios to see all the parameters of dual-stripe.

First, you should make sure what are coordinates of macros, buildings and eNodeBs. It will probably help you to draw it on a paper first. Then think about which part of map you would like to have on your REM map. Then configure x and y coordinates of REM map, and resolution. Also check the index of RB. Also, seems that you are not using the latest lena-dual-stripe code.

Cheers,
Biljana




--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

rem.png

swapna kattta

unread,
Jun 25, 2018, 3:03:18 AM6/25/18
to ns-3-users
Hello sir i am uable get any firure for this code. Actually i am not able to use

set view map;
set xlabel "X"
set ylabel "Y"
set cblabel "SINR (dB)"
unset key
plot "lena-dual-stripe.dat" using ($1):($2):(10*log10($4)) with image
 
i am not getting where to write these lines and how to run it. I tried on terminal but showing the error. plz resolve this


thanks

say...@gmail.com

unread,
Jun 28, 2018, 2:46:20 PM6/28/18
to ns-3-users
Reply all
Reply to author
Forward
0 new messages