Exemple #1
0
 def Sampling(self, codey):
     '''
 Duvidas 
     '''
     return {
         "Sampling" : hex2float(code)
     }
Exemple #2
0
class TransducerChannelTeds(TEDS):
    
    def __init__(self):
        
        self.stages  = {
 	    "0A": ("CalKey", self.CalKey ), 
 	    "0B": ("ChanType", self.ChanType ), 
 	    "0D": ("LowLimit", self.LowLimit ),
 	    "0E": ("Hilimit", self.Hilimit ),
 	    "0F": ("OError", self.OError ),
 	    "10": ("SelfTest", self.SelfTest ),
 	    "12": ("Sample", self.Sample ),
 	    "14": ("UpdateT", self.UpdateT ),
 	    "16": ("RSetupT", self.RSetupT ),
 	    "17": ("SPeriod", self.SPeriod ),
 	    "18": ("WarmUpT", self.WarmUpT ), 
 	    "19": ("RDelayT", self.RDelayT ),
 	    "20": ("DataXmit", self.DataXmit ),
 	    "1F": ("Sampling", self.Sampling ) 
        } 


    def CalKey(self, code): 
        return {
            'Calkey': hex2dec(code)  
            }

    def ChanType(self, code): 
        return { 
            'ChanType' : hex2dec(code) 
        }
 	    
    def LowLimit(self, code): 
        return {
            "LowLimit" : hex2float(code)
        }
 	    
    def Hilimit(self, code): 
        return {
            "Hilimit" : hex2float(code)
        }
 	    
    def OError(self. code): 
        return {
            "OError" : hex2float(code)
        }
Exemple #3
0
 def DataXmit(self, code): 
     return {
         "DataXmit" : hex2float(code)
     }
Exemple #4
0
 def RDelayT(self, code): 
     return {
         "RDelayT" : hex2float(code)
     }
Exemple #5
0
 def WarmUpT(self, code): 
     return {
         "WarmUpT" : hex2float(code)
     }
Exemple #6
0
 def SPeriod(self, code): 
     return {
         "SPeriod" : hex2float(code)
     }
Exemple #7
0
 def RSetupT(self, code): 
     return {
         "RSetupT" : hex2float(code)
     }
Exemple #8
0
 def UpdateT(self, code): 
     return {
         "UpdateT" : hex2float(code)
     }
Exemple #9
0
 def Sample(self, code): 
     '''Duvidas  '''
     return {
         "Sample" : hex2float(code)
     }
Exemple #10
0
 def Hilimit(self, code): 
     return {
         "Hilimit" : hex2float(code)
     }
Exemple #11
0
 def LowLimit(self, code): 
     return {
         "LowLimit" : hex2float(code)
     }
Exemple #12
0
 def TestTime(self, code):
     '''Float32 4 '''
     return {
         'TestTime': hex2float(code)
     }
Exemple #13
0
 def SHoldOff(self, code):
     return {
         'SHoldOff': hex2float(code)
     }