Cleaned up
This commit is contained in:
@@ -4,6 +4,7 @@ from frappy.core import Readable, Parameter, FloatRange, HasIO, StringIO, Proper
|
||||
|
||||
class TSSOP16_IO(StringIO):
|
||||
end_of_line = '\r'
|
||||
wait_before = 3.0
|
||||
identification = [ ('*IDN?', r'0x48,ACM1219,.*') ]
|
||||
|
||||
class TSSOP16(HasIO, Readable):
|
||||
@@ -14,7 +15,13 @@ class TSSOP16(HasIO, Readable):
|
||||
pollinterval = Parameter(default=0.1)
|
||||
|
||||
def read_value(self):
|
||||
l = self.communicate('readCVT')
|
||||
vals = l.split(',')
|
||||
vals = [ float(v) for v in vals ]
|
||||
return vals[0]
|
||||
try:
|
||||
l = self.communicate('readCVT')
|
||||
vals = l.split(',')
|
||||
vals = [ float(v) for v in vals ]
|
||||
return vals[0]
|
||||
except:
|
||||
self.io.closeConnection()
|
||||
self.io.connectStart()
|
||||
time.sleep(3.0)
|
||||
return self.read_value()
|
||||
BIN
frappy_psi/tnmr/code-reference.pdf
Normal file
BIN
frappy_psi/tnmr/code-reference.pdf
Normal file
Binary file not shown.
BIN
frappy_psi/tnmr/templates/setup_files/SCOUT/tmp.tnt
Normal file
BIN
frappy_psi/tnmr/templates/setup_files/SCOUT/tmp.tnt
Normal file
Binary file not shown.
@@ -387,7 +387,7 @@ class TNMR:
|
||||
return False
|
||||
self.set_activefile()
|
||||
|
||||
self.load_dashboard(TEMPLATE_FILE_PATH + 'scout_dashboard.txt')
|
||||
self.load_dashboard(TEMPLATE_FILE_PATH + 'dashboard.txt')
|
||||
|
||||
success = ntnmr.LoadSequence(filename if filename[-4:]=='.tps' else (filename+'.tps'))
|
||||
if(success):
|
||||
|
||||
Reference in New Issue
Block a user