<?xml version="1.0"?> <pipeline> <register> <load name="python" /> <load name="graphic"/> </register> <!-- python script = script name (omit .py) optsstr = override option provided in the script (getOptions() function) e.g. "global=false" will set option "global" to false (to overide several options separate by ;) syspath = string with directories that will be added to python's syspath (by default ., if several separate by ;) --> <!-- generate sine/saw wave --> <sensor create="PythonSensor" script="sensor" syspath="." block="0.1" optsstr="sr=50.0;dim=2"> <output channel="sine" pin="sine"/> <output channel="saw" pin="saw"/> </sensor> <!-- visualization --> <consumer create="SignalPainter:plot" title="SINE" size="10.0"> <input pin="sine" frame="0.2s"/> </consumer> <consumer create="SignalPainter:plot" title="SAW" size="10.0"> <input pin="saw" frame="0.2s"/> </consumer> <!-- decoration --> <object create="Decorator" icon="true" title="Pipeline"> <area pos="0,0,400,600">console</area> <area pos="400,0,400,600">plot*</area> </object> </pipeline>