etherlab/extension.py
author Edouard Tisserant
Mon, 11 Aug 2014 23:13:35 +0200
changeset 2164 7a959b19d5a4
parent 2111 f2cffda17d00
permissions -rw-r--r--
Propagated matiec changes in FB var accessors
2048
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
     1
import features
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
     2
2086
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     3
def GetEtherLabLibClass():
2111
f2cffda17d00 Split etherlab.py into multiple files
Laurent Bessard
parents: 2086
diff changeset
     4
    from EthercatMaster import EtherlabLibrary
2086
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     5
    return EtherlabLibrary
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     6
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     7
features.libraries.append(
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     8
    ('Etherlab', GetEtherLabLibClass))
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     9
2048
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    10
def GetEtherLabClass():
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    11
    from etherlab import RootClass
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    12
    return RootClass
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    13
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    14
features.catalog.append(
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    15
    ('etherlab', _('EtherCat Master'), _('Map located variables over EtherCat'), GetEtherLabClass))
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    16