- {% if event_signal.measurement is defined and event_signal.measurement is not none %}
- <{{ 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" >
- <{{ event_signal.measurement.ns }}:itemDescription>{{ event_signal.measurement.description }}</{{ event_signal.measurement.ns }}:itemDescription>
- <{{ event_signal.measurement.ns }}:itemUnits>{{ event_signal.measurement.unit }}</{{ event_signal.measurement.ns }}:itemUnits>
- {% if event_signal.measurement.pulse_factor %}<oadr:pulseFactor>{{ event_signal.measurement.pulse_factor }}</oadr:pulseFactor>{% else %}
- <scale:siScaleCode>{{ event_signal.measurement.scale }}</scale:siScaleCode>
- {% endif %}
- {% if event_signal.measurement.power_attributes %}
- <power:powerAttributes>
- <power:hertz>{{ event_signal.measurement.power_attributes.hertz }}</power:hertz>
- <power:voltage>{{ event_signal.measurement.power_attributes.voltage }}</power:voltage>
- <power:ac>{{ event_signal.measurement.power_attributes.ac|booleanformat }}</power:ac>
- </power:powerAttributes>
- {% endif %}
- </{{ event_signal.measurement.ns }}:{{ event_signal.measurement.name }}>
- {% endif %}
|