コード例 #1
0
    def disconnect(self):
        self.status["stop"] = ps.ps5000aStop(self.chandle)
        assert_pico_ok(self.status["stop"])

        # Closes the unit
        # Handle = chandle
        self.status["close"] = ps.ps5000aCloseUnit(self.chandle)
        assert_pico_ok(self.status["close"])
        print("\n----------------- \nConnection closed \n-----------------")
コード例 #2
0
 def stop(self):
     self.status["stop"] = ps.ps5000aStop(self.chandle)
     assert_pico_ok(self.status["stop"])
     self.status["close"] = ps.ps5000aCloseUnit(self.chandle)
     assert_pico_ok(self.status["close"])
コード例 #3
0
# operation = 0
# shots = 0
# sweeps = 0
# triggerType = ctypes.c_int16(1) = PS5000a_SIGGEN_NONE
# triggerSource = ctypes.c_int16(1) = P5000a_SIGGEN_NONE
# extInThreshold = 1
wavetype = ctypes.c_int32(1)
sweepType = ctypes.c_int32(2)
triggertype = ctypes.c_int32(0)
triggerSource = ctypes.c_int32(0)

status["SetSigGenBuiltIn"] = ps.ps5000aSetSigGenBuiltInV2(
    chandle, 0, 2000000, wavetype, 10000, 100000, 5, 1, sweepType, 0, 0, 0,
    triggertype, triggerSource, 1)
assert_pico_ok(status["SetSigGenBuiltIn"])

# pauses the script to show signal
time.sleep(36)

# Stops the scope
# Handle = chandle
status["stop"] = ps.ps5000aStop(chandle)
assert_pico_ok(status["stop"])

# Closes the unit
# Handle = chandle
status["stop"] = ps.ps5000aCloseUnit(chandle)
assert_pico_ok(status["stop"])

# Displays the staus returns
print(status)
コード例 #4
0
 def stop(self):
     """Stop data capture."""
     assert_pico_ok(ps.ps5000aStop(self._handle))
コード例 #5
0
 def stopScope(self):
     self.status["stop"] = ps.ps5000aStop(self.chandle)
     assert_pico_ok(self.status["stop"])
コード例 #6
0
 def stop(self):
     # Stop the scope
     # handle = chandle
     self.status["stop"] = ps.ps5000aStop(self.chandle)
     assert_pico_ok(self.status["stop"])