-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathunlock_runtime.py
More file actions
27 lines (23 loc) · 837 Bytes
/
unlock_runtime.py
File metadata and controls
27 lines (23 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""
1. Initialize pyglet window/runtime
2. Process DAQ plugins
3. Process Decoder plugins
4. Process App plugins
"""
from yapsy.PluginManager import PluginManager
from core.pyglet_window import PygletWindow
from plugins.drivers.daqplugin import DAQPlugin
from plugins.apps.appplugin import AppPlugin
from plugins.decoders.decoderplugin import DecoderPlugin
if __name__ == "__main__":
manager = PluginManager()
manager.setPluginPlaces(['plugins'])
manager.setCategoriesFilter({'DAQ': DAQPlugin,
'Decoder': DecoderPlugin,
'App': AppPlugin})
manager.collectPlugins()
window = PygletWindow(manager)
conf = {'DAQ': 'Lab Streaming Layer',
'Decoder': None, # 'Dummy Decoder',
'App': 'Time Scope'}
window.start_with(conf)