def __init__(self): self.tag = "0x6000" self.x_axis = "Time" self.y_axis = "Index" self.x_data = [] self.y_data = [] self.export_data = [] self.header = {} self.maxLen = max_data_length self.use_lan_data = False if self.use_lan_data: self.consumer = udp.Consumer() else: self.consumer = MmapCommunication() self.tag_idx = 1 self.to_check_tag_idx = False
def __init__(self): self.x_axis = "TimeElapsed" self.y_axis = "Index" self.transform = "None" self.center_tag = "0x6000" self.outer_tag = "0x6000" self.x_data = [] self.y_data = [] self.origin = [0, 0, 0] self.export_data = [] self.header = {} self.maxLen = max_data_length self.use_lan_data = False if self.use_lan_data: self.consumer = udp.Consumer() else: self.consumer = MmapCommunication()
def set_use_lan_data(self, new_value): self.use_lan_data = new_value if self.use_lan_data: self.consumer = udp.Consumer() else: self.consumer = MmapCommunication()