controls/DebugVariablePanel/DebugVariableItem.py
changeset 1782 5b6ad7a7fd9d
parent 1774 ac0fe8aabb5e
child 1832 0f1081928d65
equal deleted inserted replaced
1781:b112bfdde5cc 1782:5b6ad7a7fd9d
    25 import numpy
    25 import numpy
    26 import binascii
    26 import binascii
    27 
    27 
    28 from graphics.DebugDataConsumer import DebugDataConsumer, TYPE_TRANSLATOR
    28 from graphics.DebugDataConsumer import DebugDataConsumer, TYPE_TRANSLATOR
    29 
    29 
    30 #-------------------------------------------------------------------------------
    30 # -------------------------------------------------------------------------------
    31 #                 Constant for calculate CRC for string variables
    31 #                 Constant for calculate CRC for string variables
    32 #-------------------------------------------------------------------------------
    32 # -------------------------------------------------------------------------------
    33 
    33 
    34 STRING_CRC_SIZE = 8
    34 STRING_CRC_SIZE = 8
    35 STRING_CRC_MASK = 2 ** STRING_CRC_SIZE - 1
    35 STRING_CRC_MASK = 2 ** STRING_CRC_SIZE - 1
    36 
    36 
    37 #-------------------------------------------------------------------------------
    37 # -------------------------------------------------------------------------------
    38 #                          Debug Variable Item Class
    38 #                          Debug Variable Item Class
    39 #-------------------------------------------------------------------------------
    39 # -------------------------------------------------------------------------------
    40 
    40 
    41 
    41 
    42 class DebugVariableItem(DebugDataConsumer):
    42 class DebugVariableItem(DebugDataConsumer):
    43     """
    43     """
    44     Class that implements an element that consumes debug values for PLC variable and
    44     Class that implements an element that consumes debug values for PLC variable and