Browse FAQs

How to create OPC DefaultMeasurements extension xml file

Published date: 24 December 2018

User has a device in Power Monitoring Expert that does not OPC tags exported when "Update OPC" is selected in Management console. The device does not have a measurement template in DefaultMeasurements.xml in the ...\system\IONServices folder nor extension in ...\system\IONServices\DefaultMeasurementsExt

Power Monitoring Expert (PME) 8.x, 9.x

Text Editor

When Update OPC is selected in Management Console, the system will read the DefaultMeasurements.xml file and the contents in the folder DefaultMeasurementsExt. If the device type is not found in these files the ...\config\IONServices\IONServicesConfigurtion.xml file does not populate the desired device


Previous versions of software would require editing the defaultMeaurements.xml file to add the desired device. A more sustainable method is to create a new extension file.
In the instructions below, replace the text MyNewDevice with the name of the device type as seen in Management Console

1) In the ...\system\IONServices\DefaultMeasurementsExt folder create a new text file and change the file name and extension to DefaultMeasurements_MyNewDevice.xml
2) Open the file in a text editor 
3) Copy the following text into the file. Additional text will be required later

<?xml version="1.0" encoding="utf-8"?>
<!--The follow is catagorized by features that contain one or more Ctxts. A Ctxt refers to perspective (labeling) or system details (wiring cofiguration)-->
<DefaultMeasurements xmlns="" xmlns:f="">
    <MT name="MyNewDevice">

         <f:DeviceType name="MyNewDevice">
            <f:FR ref="MyNewDevice"/>

4) Create the OPC mapping between the MT tags to add desired measurements that will be exposed to OPC. The attached file can be used as an example. A simple single measurement would have the following information

<Ctxt label="Energy" >
     <Ctxt label="Real Energy">
        <M name="Real Energy Signed" label="Real Energy Signed" />

5) Once finished mapping the OPC points, save the file and close the text editor. 

6) Use Management Console to Update the OPC Server again and confirm the desired device is now available.

Was this helpful?

What can we do to improve the information ?

Can't find what you are looking for?

Reach out to our customer care team to receive information on technical support, assistance for complaints and more.