Example #1
0
    def OnButtonRunClick( self, event ):
        if False==fakePicoScope:
            self.myUnit = PicoScope.open_unit();
            if( 0!=PicoScope.set_channel(self.myUnit,  # handle
                                      0,               # channel
                                      1,               # enabled
                                      1,               # dc-coupling
                                      7 ) ):           # range
                print "ERROR: could not set channel";

            if( 0!=PicoScope.set_trigger(self.myUnit,  # handle
                                         5,            # source
                                         0,            # threshold
                                         2,            # direction (disabled)
                                         0,            # delay
                                         0) ):         # autoTrigger
                print "ERROR: could not set trigger";
        self.myTimer.Start(150,oneShot=True);
Example #2
0
#!/usr/bin/env python

import PicoScope;

myUnit = PicoScope.open_unit();
print "Hello, World! :", myUnit
PicoScope.close_unit(myUnit);
print "Goodbye, Cruel World!"