From 4e424a66abc2de85b01c9bb70d969712f01e7422 Mon Sep 17 00:00:00 2001 From: mer0m Date: Wed, 30 Nov 2016 12:07:16 +0100 Subject: [PATCH] - --- instruments/AG34972A.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/instruments/AG34972A.py b/instruments/AG34972A.py index 803cdba..2506b5c 100644 --- a/instruments/AG34972A.py +++ b/instruments/AG34972A.py @@ -15,13 +15,13 @@ class AG34972A(abstract_instrument): def __init__(self, channels, vtypes, adress): self.adress = adress self.port = 5025 - self.channels = channels + self.channels = channels self.vtypes = vtypes def model(self): #self.send("*IDN?") #return self.read() - return "AG34972A" + return "AG34972A" def connect(self): print('Connecting to device @%s:%s...' %(self.adress, self.port)) @@ -37,16 +37,16 @@ class AG34972A(abstract_instrument): def configure(self): self.strCh = '' - for ch in self.channels: + for ch in self.channels: self.send('%s (@%s)'%(CONF_VAL_TYPE[ALL_VAL_TYPE.index(self.vtypes[self.channels.index(ch)])], ch)) - self.strCh = self.strCh + ch + ',' - self.strCh = self.strCh[0:-1] - self.send("ROUT:SCAN (@%s)"%self.strCh) - self.send("TRIG:COUN 1") + self.strCh = self.strCh + ch + ',' + self.strCh = self.strCh[0:-1] + self.send("ROUT:SCAN (@%s)"%self.strCh) + self.send("TRIG:COUN 1") def getValue(self): self.send("INIT") - self.send("FETC?") + self.send("FETC?") return self.read() def read(self): -- 2.16.4