X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFETGlitch.py;h=56f30754290675c0b5390b420235d451837a4e8f;hp=50abc2c592ebbf6d07d5af5524adbc698deabb9d;hb=a2de4ca441a02031e56fc8d14f8a476c644049e0;hpb=cac3f7817e7022215ab8fdb91daa70bfeddae089 diff --git a/client/GoodFETGlitch.py b/client/GoodFETGlitch.py index 50abc2c..56f3075 100644 --- a/client/GoodFETGlitch.py +++ b/client/GoodFETGlitch.py @@ -152,6 +152,12 @@ class GoodFETGlitch(GoodFET): print "time vcc gnd glitchcount count"; for r in c: print "%i %i %i %i %i" % r; + def npoints(self): + c=self.db.cursor(); + c.execute("select time,vcc,gnd,glitchcount,count from glitches where lock=0 and count=0;"); + print "time vcc gnd glitchcount count"; + for r in c: + print "%i %i %i %i %i" % r; #GnuPlot sucks for large sets. Switch to viewpoints soon. # sqlite3 glitch.db "select time,vcc,count from glitches where count=0" | vp -l -d "|" -I