Home > Back-end >  Ns3 how to make your own program generation. XML files for the use of netanim
Ns3 how to make your own program generation. XML files for the use of netanim

Time:09-22

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 scratch/first, 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:

Oh oh, just made a post to find the answer, is stickup AnimationInterface anim (" wireless - anmation. XML "); Didn't change wireless - anmation. XML. This file is called first XML. Wipe sweat

CodePudding user response:

Seems to question also helps to solve the problem by themselves, and
  • Related