Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package-url = 'https://github.com/PyMoDAQ/pymodaq_plugins_mock'
name = "pymodaq_plugins_mock"
description = 'Set of base PyMoDAQ plugins including Mock ones for development'
dependencies = [
"pymodaq>=5.0.0",
"pymodaq>=5.3.0",
]

authors = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ class DAQ_0DViewer_Mock(DAQ_Viewer_base):
params = comon_parameters + [
{'title': 'Wait time (ms)', 'name': 'wait_time', 'type': 'int', 'value': 100, 'default': 100, 'min': 0},
{'title': 'Separated viewers', 'name': 'sep_viewers', 'type': 'bool', 'value': False},
{'title': 'Show in LCD', 'name': 'lcd', 'type': 'bool', 'value': False},
{'title': 'Mock channels', 'name': 'lcd', 'type': 'group', 'children': [
{'title': 'Show in LCD', 'name': 'show_lcd', 'type': 'bool', 'value': False},
{'title': 'Show LCD Graph', 'name': 'lcd_graph', 'type': 'bool', 'value': False},
]},
{'title':'Mock channels', 'name': 'mocks', 'type':'groupmock', 'children':[
{'title': 'Mock 00', 'name': 'Mock_00', 'type': 'bool', 'value': True,
'removable': True, 'renamable': False,
Expand Down Expand Up @@ -196,13 +199,19 @@ def grab_data(self, Naverage=1, **kwargs):
data=[DataFromPlugins(name='Mock0D', data=data_tot,
dim='Data0D', labels=labels)]))
self.ind_data += 1
if self.settings['lcd']:
if self.settings['lcd', 'show_lcd']:
if not self.lcd_init:
self.emit_status(ThreadCommand('init_lcd', dict(labels=labels, Nvals=len(labels), digits=6)))
self.emit_status(
ThreadCommand('init_lcd',
dict(labels=labels,
Nvals=len(labels),
digits=6,
show_graph=self.settings['lcd', 'lcd_graph'])))
QtWidgets.QApplication.processEvents()
self.lcd_init = True

self.emit_status(ThreadCommand('lcd', data_tot))
self.emit_status(ThreadCommand('lcd', dict(values=data_tot,
show_graph=self.settings['lcd', 'lcd_graph'])))

def stop(self):
"""
Expand Down
Loading