eventSignalEmix.xml 1.3 KB

12345678910111213141516
  1. {% if event_signal.measurement is defined and event_signal.measurement is not none %}
  2. <{{ event_signal.measurement.ns }}:{{ event_signal.measurement.name }} xmlns:scale="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:power="http://docs.oasis-open.org/ns/emix/2011/06/power" >
  3. <{{ event_signal.measurement.ns }}:itemDescription>{{ event_signal.measurement.description }}</{{ event_signal.measurement.ns }}:itemDescription>
  4. <{{ event_signal.measurement.ns }}:itemUnits>{{ event_signal.measurement.unit }}</{{ event_signal.measurement.ns }}:itemUnits>
  5. {% if event_signal.measurement.pulse_factor %}<oadr:pulseFactor>{{ event_signal.measurement.pulse_factor }}</oadr:pulseFactor>{% else %}
  6. <scale:siScaleCode>{{ event_signal.measurement.scale }}</scale:siScaleCode>
  7. {% endif %}
  8. {% if event_signal.measurement.power_attributes %}
  9. <power:powerAttributes>
  10. <power:hertz>{{ event_signal.measurement.power_attributes.hertz }}</power:hertz>
  11. <power:voltage>{{ event_signal.measurement.power_attributes.voltage }}</power:voltage>
  12. <power:ac>{{ event_signal.measurement.power_attributes.ac|booleanformat }}</power:ac>
  13. </power:powerAttributes>
  14. {% endif %}
  15. </{{ event_signal.measurement.ns }}:{{ event_signal.measurement.name }}>
  16. {% endif %}