wip
authorDan White <dan@whiteaudio.com>
Mon, 14 May 2012 16:58:10 +0000 (11:58 -0500)
committerDan White <dan@whiteaudio.com>
Mon, 14 May 2012 16:58:10 +0000 (11:58 -0500)
python-lib/mpsse-test.py

index f395b2d3bbc50744e79a4080b974724c78744ddc..a36ab1104a24d18e03c5a7787f59d80dde8de6a4 100755 (executable)
@@ -11,8 +11,8 @@ import usbio
 
 
 
-#do_shell = True
-do_shell = False
+do_shell = True
+#do_shell = False
 
 
 
@@ -97,16 +97,16 @@ for p in orderiter:
     vatoi.posB = 128
     v430.vdd = 128
     v430.dvdd = 128
-    sleep(0.1)
+    sleep(0.01)
     for s in p:
         s()
-        sleep(0.1)
-    sleep(1.0)
+        sleep(0.01)
+    sleep(0.3)
 
 
 
 
-psdefaults()
+#psdefaults()
 
 
 ##############################################################################
@@ -129,15 +129,15 @@ dac.power(dac.POWER_ON, bitfield)
 # set initial output voltages
 # before tuning
 # channels 0 .. 4
-#dac.vina(2.0)
-#dac.vinb(2.0)
-#dac.vcmi(2.0)
+dac.vina(1.2)
+dac.vinb(1.2)
+dac.vcmi(1.2)
 dac.vbias_core(100e-3)
 dac.vbias_buf(100e-3)
 
 # zero others
-#for i in range(5, 8):
-    #dac.setv(i, 0.0)
+for i in range(5, 8):
+    dac.setv(i, 0.0)
 
 
 ##############################################################################