Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using qt to make an interface to modify ns3 parameters

Using qt to make an interface to modify ns3 parameters

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 820 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jiliguli
    wrote on last edited by
    #1

    I need to use qt to make a script code that can modify some parameters in ns3, a c/c++ application project, such as modifying the number of nodes in
    first.cc(a script in ns3) or something like that, and then I can run the first.cc file by directly clicking the run button on qt interfaces. Has anyone done this? Would this be better implemented in VScode, qtcreator or some other editor? Thanks.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What is ns3 ?
      How are you interacting with it from Qt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What is ns3 ?
        How are you interacting with it from Qt ?

        J Offline
        J Offline
        jiliguli
        wrote on last edited by
        #3

        @SGaist
        1.NS3 is mainly used to simulate computer networks, and can simulate real-world networks of various types and sizes on a single computer.It is an open source project written in C++。
        2.I'm actually not quite sure exactly how I'm going to get the two of them to interact. I was thinking it could be run via VScode (since I can run them separately in VScode) or via qt calls to the terminal (since ns3 can also be run directly via the terminal). But some of the compilation files and such would be different between the two of them? So I can't run them both together without problems.

        Pl45m4P 1 Reply Last reply
        0
        • J jiliguli

          @SGaist
          1.NS3 is mainly used to simulate computer networks, and can simulate real-world networks of various types and sizes on a single computer.It is an open source project written in C++。
          2.I'm actually not quite sure exactly how I'm going to get the two of them to interact. I was thinking it could be run via VScode (since I can run them separately in VScode) or via qt calls to the terminal (since ns3 can also be run directly via the terminal). But some of the compilation files and such would be different between the two of them? So I can't run them both together without problems.

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @jiliguli

          I still dont understand what you are trying to do. Do you want to use NS3 and Qt together in one project (using NS3's source code)? Or do you want to keep NS3 untouched, use it as software and build your own Qt app upon that?!
          What parameters do you want to modify? Write to a file?


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          J 1 Reply Last reply
          0
          • Pl45m4P Pl45m4

            @jiliguli

            I still dont understand what you are trying to do. Do you want to use NS3 and Qt together in one project (using NS3's source code)? Or do you want to keep NS3 untouched, use it as software and build your own Qt app upon that?!
            What parameters do you want to modify? Write to a file?

            J Offline
            J Offline
            jiliguli
            wrote on last edited by
            #5

            @Pl45m4 I want to use NS3 and Qt together in one project。These parameters are in the ns3 .cc file,such as first.cc。84ba24ee594247cf21b0d2e805f36cd.png 2e32cf34b59726593692743f337a9a7.png

            Pl45m4P 1 Reply Last reply
            0
            • J jiliguli

              @Pl45m4 I want to use NS3 and Qt together in one project。These parameters are in the ns3 .cc file,such as first.cc。84ba24ee594247cf21b0d2e805f36cd.png 2e32cf34b59726593692743f337a9a7.png

              Pl45m4P Offline
              Pl45m4P Offline
              Pl45m4
              wrote on last edited by
              #6

              @jiliguli

              Have you read about NS3 and Qt integration already?

              • https://www.nsnam.org/docs/tutorial/singlehtml/#overview
              • https://forum.qt.io/topic/30865/integrating-ns3-with-qt
              • https://www.nsnam.org/wiki/HOWTO_configure_QtCreator_with_ns-3

              You could link your Qt and the NS3 project and build your own GUI that uses NS3 (I have no experience regarding this, but I think it might work)


              If debugging is the process of removing software bugs, then programming must be the process of putting them in.

              ~E. W. Dijkstra

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved