Home > Back-end >  How to generate in ns3 NetAnim used XML
How to generate in ns3 NetAnim used XML

Time:10-24

Beginners ns3, hope to be able to use NetAnim graphical display of network topology, already will NetAnim take the example of successful execution, now want to add this functionality in your own code,
First used the ns3 provides the most simple example code first. Cc, just add a few lines of code:
1, the header file # include "ns3/netanim - module. H"
2, in the Simulation: : Run (); Front row joined the code AnimationInterface anim (" first. XML ");

After running./waf - run first, the program can run successfully, without error, but also did not see the XML files are generated,

: could you tell me which step is wrong, this is because I was there, but also have other what code, in order to generate the XML file?

CodePudding user response:

The generated XML file with the scratch in the same directory,
  • Related