etherlab/EthercatMaster.py
changeset 2405 af050469fc5c
parent 2404 87eb184414bd
child 2406 ffd091b51cd0
equal deleted inserted replaced
2404:87eb184414bd 2405:af050469fc5c
     7 #                          RTES Lab : CRKim, JBLee, youcu
     7 #                          RTES Lab : CRKim, JBLee, youcu
     8 #                          Higen Motor : Donggu Kang
     8 #                          Higen Motor : Donggu Kang
     9 #
     9 #
    10 # See COPYING file for copyrights details.
    10 # See COPYING file for copyrights details.
    11 
    11 
       
    12 from __future__ import absolute_import
    12 import os
    13 import os
    13 from copy import deepcopy
    14 from copy import deepcopy
    14 from lxml import etree
    15 from lxml import etree
    15 
    16 
    16 import wx
    17 import wx
    21 from ConfigTreeNode import ConfigTreeNode
    22 from ConfigTreeNode import ConfigTreeNode
    22 from dialogs import BrowseValuesLibraryDialog
    23 from dialogs import BrowseValuesLibraryDialog
    23 from IDEFrame import TITLE, FILEMENU, PROJECTTREE
    24 from IDEFrame import TITLE, FILEMENU, PROJECTTREE
    24 from POULibrary import POULibrary
    25 from POULibrary import POULibrary
    25 
    26 
    26 from ConfigEditor import MasterEditor
    27 from etherlab.ConfigEditor import MasterEditor
    27 from EthercatCFileGenerator import _EthercatCFileGenerator
    28 from etherlab.EthercatCFileGenerator import _EthercatCFileGenerator
    28 from EthercatSlave import _EthercatSlaveCTN, ExtractHexDecValue, GenerateHexDecValue, TYPECONVERSION, VARCLASSCONVERSION, _CommonSlave
    29 from etherlab.EthercatSlave import \
       
    30     _EthercatSlaveCTN, \
       
    31     ExtractHexDecValue, \
       
    32     GenerateHexDecValue, \
       
    33     TYPECONVERSION, \
       
    34     VARCLASSCONVERSION, \
       
    35     _CommonSlave
    29 
    36 
    30 try:
    37 try:
    31     from EthercatCIA402Slave import _EthercatCIA402SlaveCTN
    38     from etherlab.EthercatCIA402Slave import _EthercatCIA402SlaveCTN
    32     HAS_MCL = True
    39     HAS_MCL = True
    33 except Exception:
    40 except Exception:
    34     HAS_MCL = False
    41     HAS_MCL = False
    35 
    42 
    36 # --------------------------------------------------
    43 # --------------------------------------------------