From f9d72e0a0c966322ae14be0f06658ffacefd15fd Mon Sep 17 00:00:00 2001 From: Tom Rondeau <trondeau@vt.edu> Date: Tue, 5 Feb 2013 21:03:38 -0500 Subject: GRC: can get list of ControlPort monitors to start them after top_block starts. For any GUI type (wx, qt, none), the ControlPort monitors will be started after the flowgraph is started to make sure the endpoints and blocks are created and available. --- grc/python/Generator.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'grc/python/Generator.py') diff --git a/grc/python/Generator.py b/grc/python/Generator.py index 912ce13752..77abc45281 100644 --- a/grc/python/Generator.py +++ b/grc/python/Generator.py @@ -107,6 +107,7 @@ Add a Misc->Throttle block to your flow graph to avoid CPU congestion.''') imports = self._flow_graph.get_imports() variables = self._flow_graph.get_variables() parameters = self._flow_graph.get_parameters() + monitors = self._flow_graph.get_monitors() #list of blocks not including variables and imports and parameters and disabled def _get_block_sort_text(block): code = block.get_make().replace(block.get_id(), ' ') @@ -146,6 +147,7 @@ Add a Misc->Throttle block to your flow graph to avoid CPU congestion.''') 'flow_graph': self._flow_graph, 'variables': variables, 'parameters': parameters, + 'monitors': monitors, 'blocks': blocks, 'connections': connections, 'messages': messages, -- cgit v1.2.3