Exemple #1
0
    def read(self):
        self.i.write("STOP")
        time.sleep(1.0)
        cd = CaptureData()

        ## Read 1000000 points at a time due to some limitation...
        for i in range(0, 24):
            self.i.write("WAV:START {0}".format(i * 1000000 + 1))
            self.i.write("WAV:STOP {0}".format((i + 1) * 1000000))
            self.i.write("WAV:DATA?")
            d = self.i.read_raw()
            cd.append1000Zdata(d)

    ## Preamble after wave query
        cd.preamble = self.i.query("WAV:PRE?")
        self.i.write("RUN")
        cd.stats()
        return cd
Exemple #2
0
    def read(self):
    	self.i.write("STOP")
    	time.sleep(1.0)
        cd = CaptureData()

        ## Read 1000000 points at a time due to some limitation...
        for i in range(0,24):
            self.i.write("WAV:START {0}".format(i*1000000 + 1))
            self.i.write("WAV:STOP {0}".format((i+1)*1000000))
            self.i.write("WAV:DATA?")
            d = self.i.read_raw()
            cd.append1000Zdata(d)
        ## Preamble after wave query
    	cd.preamble = self.i.query("WAV:PRE?")
    	self.i.write("RUN")
    	cd.stats()
        return cd
## start with python -i capture_ex1.py

from CaptureData import CaptureData

## Create CaptureData object
cd = CaptureData()

## Create synthetic data
cd.createsynthetic(7.123456,18.987654,3.989898,noise=0.38)

## Save
cd.save("syn2")

## ctrl-d to exit
## start with python -i capture_ex1.py

from CaptureData import CaptureData

## Create CaptureData object
cd = CaptureData()

## Create synthetic data
cd.createsynthetic(7.123456, 18.987654, 3.989898, noise=0.38)

## Save
cd.save("syn2")

## ctrl-d to exit