Skip to content

Commit

Permalink
Merge pull request #2 from ilario/master-slowscan
Browse files Browse the repository at this point in the history
Slower scans for reducing noise
  • Loading branch information
greyltc authored Jul 11, 2017
2 parents 6dbc359 + 858f0d9 commit f4481ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mppTracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def myPrint(*args,**kwargs):
print(*args,**kwargs)

if not args.dummy:
timeoutMS = 10000
timeoutMS = 50000
openParams = {'resource_name': args.address, 'timeout': timeoutMS, '_read_termination': u'\n'}

myPrint("Connecting to", openParams['resource_name'], "...", file=sys.stderr, flush=True)
Expand Down Expand Up @@ -283,8 +283,8 @@ def close(self):
sm.write(':source:sweep:ranging best')
sm.write(':sense:current:protection {0:.6f}'.format(sweepParams['maxCurrent']))
sm.write(':sense:current:range {0:.6f}'.format(sweepParams['maxCurrent']))
sm.write(':sense:voltage:nplcycles 0.1')
sm.write(':sense:current:nplcycles 0.1')
sm.write(':sense:voltage:nplcycles 0.5')
sm.write(':sense:current:nplcycles 0.5')
sm.write(':display:digits 5')

sm.write(':source:voltage {0:0.4f}'.format(sweepParams['sweepStart']))
Expand Down

0 comments on commit f4481ec

Please sign in to comment.