Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
from picoscope import ps5000a
import matplotlib.pyplot as plt
import numpy as np
import time
ps = ps5000a.PS5000a()
# rapid block mode
ps.setChannel(channel="A", coupling="DC", VRange=1)
ps.setChannel(channel="B", enabled=False)
n_captures = 100
sample_interval = 100e-9 # 100 ns
sample_duration = 2e-3 # 1 ms
ps.setResolution('16')
ps.setSamplingInterval(sample_interval, sample_duration)
ps.setSimpleTrigger("A", threshold_V=0.1, timeout_ms=1)
samples_per_segment = ps.memorySegments(n_captures)
ps.setNoOfCaptures(n_captures)
def __init__(self):
self.ps = ps5000a.PS5000a(connect=False)
def __init__(self):
PicoScopeBase.__init__(self, ps5000a.PS5000a(connect=False))