From 3a9991f60533a54b18bb8f9b5b6274fbfcb54e50 Mon Sep 17 00:00:00 2001 From: Benjamin Reese Date: Tue, 24 Oct 2023 10:24:38 -0700 Subject: [PATCH] Unhide raw variables for debug --- python/surf/devices/linear/_Ltc4151.py | 32 +++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/python/surf/devices/linear/_Ltc4151.py b/python/surf/devices/linear/_Ltc4151.py index e14d9748df..0d0512f968 100644 --- a/python/surf/devices/linear/_Ltc4151.py +++ b/python/surf/devices/linear/_Ltc4151.py @@ -34,19 +34,19 @@ def __init__(self, base = pr.UInt, mode = 'RO', pollInterval = pollInterval, - hidden = True, + hidden = False, )) self.add(pr.RemoteVariable( name = 'SenseLsb', description = 'Sense LSB Data', offset = (0x1 << 2), - bitSize = 4, - bitOffset = 4, + bitSize = 8, + bitOffset = 0, base = pr.UInt, mode = 'RO', pollInterval = pollInterval, - hidden = True, + hidden = False, )) self.add(pr.LinkVariable( @@ -56,7 +56,7 @@ def __init__(self, units = 'A', disp = '{:1.3f}', dependencies = [self.SenseMsb,self.SenseLsb], - linkedGet = lambda: (int(self.SenseMsb.value()<<4)|int(self.SenseLsb.value()&0xF))*20.0E-6/self.senseRes + linkedGet = lambda: (int(self.SenseMsb.value()<<4)|int(self.SenseLsb.value()>>4))*20.0E-6/self.senseRes )) self.add(pr.RemoteVariable( @@ -68,19 +68,19 @@ def __init__(self, base = pr.UInt, mode = 'RO', pollInterval = pollInterval, - hidden = True, + hidden = False, )) self.add(pr.RemoteVariable( name = 'VinLsb', description = 'Vin LSB Data', offset = (0x3 << 2), - bitSize = 4, - bitOffset = 4, + bitSize = 8, + bitOffset = 0, base = pr.UInt, mode = 'RO', pollInterval = pollInterval, - hidden = True, + hidden = False, )) self.add(pr.LinkVariable( @@ -90,7 +90,7 @@ def __init__(self, units = 'V', disp = '{:1.3f}', dependencies = [self.VinMsb,self.VinLsb], - linkedGet = lambda: (int(self.VinMsb.value()<<4)|int(self.VinLsb.value()&0xF))*25.0E-3 + linkedGet = lambda: (int(self.VinMsb.value()<<4)|int(self.VinLsb.value()>>4))*25.0E-3 )) self.add(pr.LinkVariable( @@ -112,19 +112,19 @@ def __init__(self, base = pr.UInt, mode = 'RO', pollInterval = pollInterval, - hidden = True, + hidden = False, )) self.add(pr.RemoteVariable( name = 'AdinLsb', description = 'Adin LSB Data', offset = (0x5 << 2), - bitSize = 4, - bitOffset = 4, + bitSize = 8, + bitOffset = 0, base = pr.UInt, mode = 'RO', pollInterval = pollInterval, - hidden = True, + hidden = False, )) self.add(pr.LinkVariable( @@ -134,7 +134,7 @@ def __init__(self, units = 'V', disp = '{:1.3f}', dependencies = [self.AdinMsb,self.AdinLsb], - linkedGet = lambda: (int(self.AdinMsb.value()<<4)|int(self.AdinLsb.value()&0xF))*500.0E-6 + linkedGet = lambda: (int(self.AdinMsb.value()<<4)|int(self.AdinLsb.value()>>4))*500.0E-6 )) self.add(pr.RemoteVariable( @@ -145,5 +145,5 @@ def __init__(self, bitOffset = 0, base = pr.UInt, mode = 'RW', - hidden = True, + hidden = False, ))