running uan-cw-example.cc on animation interface

132 views
Skip to first unread message

Reza Rachman

unread,
Mar 26, 2013, 2:15:33 AM3/26/13
to ns-3-...@googlegroups.com
dear all,

i'm sorry if this topic has already discussed before, i wanna run project uan-cw-example.cc in NetAnim but it always failed. i've already copy the file into "scratch" folder and it still failed. please your advises, comments and helps.

best regards,

reza rachman

Andrea Sacco

unread,
Mar 27, 2013, 3:42:47 AM3/27/13
to ns-3-...@googlegroups.com
Hi Reza,
I dont' understand.. What are you copying to the scratch folder? What type of error are you getting?

Regards,
Andrea

Reza Rachman

unread,
Mar 27, 2013, 10:16:16 AM3/27/13
to ns-3-...@googlegroups.com

dear andrea,

is it possible run file or sample project (uan-cw-example.cc) on NetAnim? as i know, we can run sample project (ex:third.cc) on NetAnim with we have to generate xml file first. so, can we do same on uan-cw-example.cc?

best regards,

--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/xTrFMypiaX4/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Andrea Sacco

unread,
Mar 27, 2013, 4:50:42 PM3/27/13
to ns-3-...@googlegroups.com
For what I remember, I wrote a preliminar implementation of NetAnim some time ago..

I've managed to run NetAnim with an UAN example scenario, and I was able to see packets flowing from a node to another.

I don't remember anything about an XML file and, probably, the NetAnim interface has been extended and my implementation is not longer complete.

I can take a look at the code and give you an update tomorrow. In the meantime, can you give me some logs of the errors you are getting, while using NetAnim with uan?

Thank you,
Andrea

Reza Rachman

unread,
Mar 29, 2013, 11:05:54 PM3/29/13
to ns-3-...@googlegroups.com
hi Andrea,

this is my error (picture attached) when i tried ./waf --run src/uan/examples/uan-cw-example and ./waf --run scratch/uan-cw-example
can you brief or give me some steps how it will work fine? or maybe, another clues that related with my problems. 
big thanks.

best regards,

reza rachman


--
Screenshot from 2013-03-30 10:00:12.png

Reza Rachman

unread,
Mar 31, 2013, 9:03:53 PM3/31/13
to ns-3-...@googlegroups.com

hi andrea,

any suggestions after look my error?

Andrea Sacco

unread,
Apr 1, 2013, 1:42:45 AM4/1/13
to ns-3-...@googlegroups.com
Hi Reza,
it seems you are getting a compilation failure... The compilator cannot find the uan-cw-example.h header. Try this:
- remove *all* the files you have copied to the scratch directory
- invoke a waf build and be sure to get no compilation error
- try to run the uan-cw-example with "./waf --run uan-cw-example" or "./waf --run src/uan/examples/uan-cw-example"
- try to run the uan net anim example with "./waf --run uan-animation" or "./waf --run src/netanim/examples/uan-animation"

If everything will work fine, you can then start modifying the uan-animation source.
If you want to copy an example source file to the scratch folder you must include the header file (renaming them) and be sure the compilation give no errors.

Regards,
Andrea

Reza Rachman

unread,
Apr 7, 2013, 9:23:26 AM4/7/13
to ns-3-...@googlegroups.com
hi Andrea,

i'm sorry for late reply your email. by the way, thank you for your helps, it worked for me :-)
big thanks.


best regards,




Reza Rachman

unread,
Apr 30, 2013, 11:09:20 PM4/30/13
to ns-3-...@googlegroups.com
Hi Andrea,

I want to ask how to place output from running program uan-cw-example.cc to txt file? It's like a trace file in NS2. Can you brief me about that?
Big thanks.

Best Regards,
Reply all
Reply to author
Forward
0 new messages