Skip to content

Commit

Permalink
add option to use rear terminals
Browse files Browse the repository at this point in the history
  • Loading branch information
greyltc committed May 30, 2017
1 parent 3247e4a commit 495309e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mppTracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
parser.add_argument('--reverse_polarity', default=False, action='store_true', help="Swaps voltage polarity on output terminals.")
parser.add_argument('--file', type=str, help="Write output data stream to this file in addition to stdout.")
parser.add_argument("--scan", default=False, action='store_true', help="Scan for obvious VISA resource names, print them and exit")
parser.add_argument("--rear", default=False, action='store_true', help="Use the rear terminals")

args = parser.parse_args()

Expand Down Expand Up @@ -206,6 +207,8 @@ def close(self):
#sm.query_ascii_values = dummy.query_ascii_values
#sm.close = doNothing

# sm is now set up (either in dummy or real hardware mode)

if args.t_total == 0:
timeString = "forever"
else:
Expand All @@ -228,6 +231,10 @@ def close(self):

sm.write(':format:elements time,voltage,current,status')

# use rear terminals?
if args.rear:
sm.write(':rout:term rear')

# let's find our open circuit voltage
sm.write(':source:function current')
sm.write(':source:current:mode fixed')
Expand Down

0 comments on commit 495309e

Please sign in to comment.