Negative points from goodfet.glitch.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Fri, 23 Apr 2010 15:26:12 +0000 (15:26 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Fri, 23 Apr 2010 15:26:12 +0000 (15:26 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@462 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/GoodFETGlitch.py
client/goodfet.glitch

index 50abc2c..56f3075 100644 (file)
@@ -152,6 +152,12 @@ class GoodFETGlitch(GoodFET):
         print "time vcc gnd glitchcount count";
         for r in c:
             print "%i %i %i %i %i" % r;
         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
     
     #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
     
index c1b0cea..1d301a9 100755 (executable)
@@ -20,6 +20,7 @@ if(len(sys.argv)==1):
     print "%s avr graph" % sys.argv[0];
     print "%s avr graphx11" % sys.argv[0];
     print "%s avr points" % sys.argv[0];
     print "%s avr graph" % sys.argv[0];
     print "%s avr graphx11" % sys.argv[0];
     print "%s avr points" % sys.argv[0];
+    print "%s avr npoints" % sys.argv[0];
     print """
 This populates a database, glitch.db, with a record of all attempted
 glitches.  Graphs can then be generated from the results, allowing
     print """
 This populates a database, glitch.db, with a record of all attempted
 glitches.  Graphs can then be generated from the results, allowing
@@ -45,6 +46,9 @@ if(sys.argv[2]=="graph"):
 if(sys.argv[2]=="points"):
     glitcher.points();
     exit();
 if(sys.argv[2]=="points"):
     glitcher.points();
     exit();
+if(sys.argv[2]=="npoints"):
+    glitcher.npoints();
+    exit();
 
 if(sys.argv[2]=="crunch"):
     glitcher.crunch();
 
 if(sys.argv[2]=="crunch"):
     glitcher.crunch();