LPCManager.py
changeset 13 2e3c3da3593e
parent 10 6450214a7c80
parent 12 8917feb27b92
child 14 37734da73adc
equal deleted inserted replaced
10:6450214a7c80 13:2e3c3da3593e
   511         "Slave_NodeId": 2,
   511         "Slave_NodeId": 2,
   512         "Master_NodeId": 1,
   512         "Master_NodeId": 1,
   513     }
   513     }
   514     
   514     
   515     class LPCSlaveEditor(SlaveEditor):
   515     class LPCSlaveEditor(SlaveEditor):
   516         BASE_PARAMS = False
   516         SHOW_BASE_PARAMS = False
   517     
   517     
   518     class LPCCanOpenSlave(_SlaveCTN):
   518     class LPCCanOpenSlave(_SlaveCTN):
   519         XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?>
   519         XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?>
   520         <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   520         <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   521           <xsd:element name="CanFestivalSlaveNode">
   521           <xsd:element name="CanFestivalSlaveNode">
   557         
   557         
   558         def GetCanDevice(self):
   558         def GetCanDevice(self):
   559             return str(self.BaseParams.getIEC_Channel())
   559             return str(self.BaseParams.getIEC_Channel())
   560     
   560     
   561     class LPCNetworkEditor(NetworkEditor):
   561     class LPCNetworkEditor(NetworkEditor):
   562         BASE_PARAMS = False
   562         SHOW_BASE_PARAMS = False
   563         
   563         
   564     class LPCCanOpenMaster(_NodeListCTN):
   564     class LPCCanOpenMaster(_NodeListCTN):
   565         XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?>
   565         XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?>
   566         <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   566         <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   567           <xsd:element name="CanFestivalNode">
   567           <xsd:element name="CanFestivalNode">
   579         def GetCanDevice(self):
   579         def GetCanDevice(self):
   580             return str(self.BaseParams.getIEC_Channel())
   580             return str(self.BaseParams.getIEC_Channel())
   581     
   581     
   582     class LPCCanOpen(CanOpenRootClass):
   582     class LPCCanOpen(CanOpenRootClass):
   583         XSD = None
   583         XSD = None
   584         CTNChildrenTypes = [("CanOpenNode",LPCCanOpenMaster, "CanOpen Master"),
   584         CTNChildrenTypes = [("CanOpenNode", LPCCanOpenMaster, "CanOpen Master"),
   585                            ("CanOpenSlave",LPCCanOpenSlave, "CanOpen Slave")]
   585                             ("CanOpenSlave", LPCCanOpenSlave, "CanOpen Slave")]
   586         
   586         
   587         def GetCanDriver(self):
   587         def GetCanDriver(self):
   588             return ""
   588             return ""
   589         
   589         
   590         def LoadChildren(self):
   590         def LoadChildren(self):