Initial Commit
This commit is contained in:
1
ext/__init__.py
Normal file
1
ext/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .reichebscombined import ReicheBSCombined
|
||||
12
ext/reichebscombined.py
Normal file
12
ext/reichebscombined.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from slic.core.sensor.bsmonitor import BSMonitor
|
||||
|
||||
class ReicheBSCombined(BSMonitor):
|
||||
|
||||
# Du brauchst kein extra init. BSMonitor tut schon das richtige...
|
||||
|
||||
def _unpack(self, data):
|
||||
# data ist ein dict mit allen Deinen Kanälen
|
||||
pid = data["pid"] # der effektive Channel-Name der Pulse ID
|
||||
# hier dein Code
|
||||
# am Ende sollte eine Zahl rauskommen:
|
||||
return data
|
||||
Reference in New Issue
Block a user