Exemple #1
0
def main():
    try:
        # Get command line parameters
        (options, args) = uhd_siggen.get_options()

        # Create the top block using these
        tb = uhd_siggen.top_block(options, args)

        # Create the GUI application
        app = gui.app(
            top_block=tb,  # Constructed top block
            gui=app_gui,  # User interface class
            options=options,  # Command line options
            args=args,  # Command line args
            title="UHD Signal Generator",  # Top window title
            nstatus=1,  # Number of status lines
            start=True,  # Whether to start flowgraph
            realtime=True)  # Whether to set realtime priority

        # And run it
        app.MainLoop()

    except RuntimeError, e:
        print e
        sys.exit(1)
Exemple #2
0
def main():
    try:
        # Get command line parameters
        (options, args) = usrp_siggen.get_options()

        # Create the top block using these
        tb = usrp_siggen.top_block(options, args)

        # Create the GUI application
        app = gui.app(top_block=tb,                    # Constructed top block
                      gui=app_gui,                     # User interface class
                      options=options,                 # Command line options
                      args=args,                       # Command line args
                      title="USRP Signal Generator",  # Top window title
                      nstatus=1,                       # Number of status lines
                      start=True,                      # Whether to start flowgraph
                      realtime=True)                   # Whether to set realtime priority

        # And run it
        app.MainLoop()

    except RuntimeError, e:
        print e
        sys.exit(1)
Exemple #3
0
        toggle_button(
            sizer=vbox,
            parent=panel,
            value=True,
            label='toggle it',
            callback=callback,
        )
        
        single_button(
            sizer=vbox,
            parent=panel,
            label='sig test',
            callback=callback,
        )

if __name__ == "__main__":
    try:

        # Create the GUI application
        app = gui.app(
                      gui=app_gui,                     # User interface class
                      title="Test Forms",  # Top window title
                      )

        # And run it
        app.MainLoop()

    except RuntimeError, e:
        print e
        sys.exit(1)
Exemple #4
0
            sizer=vbox,
            parent=panel,
            value=True,
            label='toggle it',
            callback=callback,
        )

        single_button(
            sizer=vbox,
            parent=panel,
            label='sig test',
            callback=callback,
        )


if __name__ == "__main__":
    try:

        # Create the GUI application
        app = gui.app(
            gui=app_gui,  # User interface class
            title="Test Forms",  # Top window title
        )

        # And run it
        app.MainLoop()

    except RuntimeError, e:
        print e
        sys.exit(1)
        self.vbox.Add((0, 10), 0, 0)
        self.vbox.Add(u2_hbox, 0, wx.EXPAND)
        self.vbox.Add((0, 20), 0, 0)


if __name__ == "__main__":
    try:
        # Get command line parameters
        (options, args) = usrp2_siggen.get_options()

        # Create the top block using these
        tb = usrp2_siggen.top_block(options, args)

        # Create the GUI application
        app = gui.app(
            top_block=tb,  # Constructed top block
            gui=app_gui,  # User interface class
            options=options,  # Command line options
            args=args,  # Command line args
            title="USRP2 Signal Generator",  # Top window title
            nstatus=1,  # Number of status lines
            start=True,  # Whether to start flowgraph
            realtime=True)  # Whether to set realtime priority

        # And run it
        app.MainLoop()

    except RuntimeError, e:
        print e
        sys.exit(1)
Exemple #6
0
        self.vbox.AddSpacer(5)
        self.vbox.AddStretchSpacer()


if __name__ == "__main__":
    try:
        # Get command line parameters
        (options, args) = usrp_siggen.get_options()

        # Create the top block using these
        tb = usrp_siggen.top_block(options, args)

        # Create the GUI application
        app = gui.app(
            top_block=tb,  # Constructed top block
            gui=app_gui,  # User interface class
            options=options,  # Command line options
            args=args,  # Command line args
            title="USRP Signal Generator",  # Top window title
            nstatus=1,  # Number of status lines
            start=True,  # Whether to start flowgraph
            realtime=True,
        )  # Whether to set realtime priority

        # And run it
        app.MainLoop()

    except RuntimeError, e:
        print e
        sys.exit(1)