objdictgen/nodelist.py
changeset 748 18ed0f3b030a
parent 744 bc1bbbb5ef71
child 781 77fe158d6ccd
equal deleted inserted replaced
747:4725d8f909ff 748:18ed0f3b030a
    68         Define a new path for the CanOpen network project
    68         Define a new path for the CanOpen network project
    69         !!! Does not check if new path is valid !!!
    69         !!! Does not check if new path is valid !!!
    70         """
    70         """
    71         self.Root = newrootpath
    71         self.Root = newrootpath
    72         self.Manager.SetCurrentFilePath(os.path.join(self.Root, "master.od"))
    72         self.Manager.SetCurrentFilePath(os.path.join(self.Root, "master.od"))
       
    73     
       
    74     def GetMasterNodeID(self):
       
    75         return self.Manager.GetCurrentNodeID()
    73     
    76     
    74     def GetSlaveNumber(self):
    77     def GetSlaveNumber(self):
    75         return len(self.SlaveNodes)
    78         return len(self.SlaveNodes)
    76     
    79     
    77     def GetSlaveName(self, idx):
    80     def GetSlaveName(self, idx):