This is an old revision of the document!


Using the Modular Output System

If you'd like to use the Modular Output System in your own projects, the system is relatively easy to use.

Include the Library

<script python> import ardi.util.outputengine as outie </script>

Create and Start an Instance

<script python> oe = outie.OutputEngine(“My Source Name”) oe.Start() </script>

This creates an instance of the Output Engine. You pass a name that identifies your application. Calling 'start' may block for a few moments, depending on the output configuration. This varies, as some output types are outgoing (they only send data) while some are incoming (they host a service for other systems to query).

Writing Key/Value Pairs

If you want to write numeric, status or other key-value data, you use the WriteValue function of the OutputEngine object.

To record an event, use WriteLog.