0% found this document useful (0 votes)
1K views10 pages

Omicron Excel

documento para intercambio de información entre el software Test Universe y Microsoft Excel

Uploaded by

yand_carlos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views10 pages

Omicron Excel

documento para intercambio de información entre el software Test Universe y Microsoft Excel

Uploaded by

yand_carlos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Test Universe Data Export

Sample: Import into Excel 2003


OMICRON Test Universe

Manual Version: TU_Data_Export_Excel.ENU.2 - Year 2006


© OMICRON electronics. All rights reserved.
This manual is a publication of OMICRON electronics GmbH.
All rights including translation reserved. Reproduction of any kind, e.g., photocopying, microfilming, optical
character recognition and/or storage in electronic data processing systems, requires the explicit consent of
OMICRON electronics.
Reprinting, wholly or in part, is not permitted. The product information, specifications, and technical data
embodied in this manual represent the technical status at the time of writing and are subject to change without
prior notice.
We have done our best to ensure that the information given in this manual is useful, accurate, up-to-date and
reliable. However, OMICRON electronics does not assume responsibility for any inaccuracies which may be
present.
The user is responsible for every application that makes use of an OMICRON product.

2
OMICRON Test Universe Import into Excel 2003

Import into Excel 2003

Requirements for running the sample


 Microsoft Office Excel 2003 (Part of Microsoft Office Professional Edition 2003) or later version

Sample description
This sample shows how TU Data can be easily imported in MS Excel 2003 and how to create custom
reports.
The exported document will contain a State Sequencer with multiple shots used to test an under voltage
relay (between two voltages U1 and U2 that are read from XRIO). The external application reads the
exported result data and shows a report with a graphical representation of the trip time depending on the
voltage.
Sample for exporting Test Data to MS Excel 2003:
 We assume an Undervoltage relay with inverse-time tripping characteristic t,trip = f(V) with V <
Vnom (e.g. AREVA PU321 with characteristic set for inverse-time undervoltage tripping)
 Set the max. test voltage Vmax and the min. test voltage Vmin as well as the max. expected trip
time tmax in User Parameters section of Test Object
 Run test: 10 voltage shots evenly spaced between Vmax and Vmin will be generated in State
Sequencer
 Export the Data to XML
 Import in Excel or .NET application
 Get graphical representation tact = f(Vtest) of the tripping curve in the external application

Note:
1. The naming of the parameters may differ, according to the registry settings (e.g. VL1-E).
2. The sample documents can be found in the Test Library.

3
OMICRON Test Universe Import into Excel 2003

Creating the sample

1. Exporting the data


The sample OCC document XMLSample_Excel_NET.occ can be run with a CMC and the proper relay
connected or in stand-alone fashion without any connected devices (Demo mode). The following
screenshots assume Demo mode, so they do not represent realistic inverse-time values but just the
simulated Demo mode values. Open this file by double-clicking it or by selecting Open Existing Test
Document form the Test Universe Start Page. After running the test, export the data using the file name
XMLSample_Excel.XML.

2. About importing
By importing data, you don't have to retype the test result data you want to analyze in Microsoft Excel.
You can automatically update your Excel reports and summaries from the original source because the
data is bound, i.e. the original file stays dynamically linked to the Excel spreadsheet thus updating any
changes in the original file.

3. Opening the XML data file in Excel


Steps to import data from XML files:
1. Click File, and then click Open.
2. In the Look in list, click the drive, folder, or Internet location that contains the file
XMLSample_Excel.XML.
3. In the folder list, locate and open the folder that contains the file.
4. Click the file, and then click Open.
5. The Open XML dialog box appears.
6. Select Use the XML Source task pane and then click OK.

4
OMICRON Test Universe Import into Excel 2003

The schema of the XML data file is displayed in the XML Source task pane. You can then drag elements
of the schema to the worksheet to map those elements to the worksheet.
Your XML data file is now bound to this map of the worksheet.

If you are opening an XML data file that does not refer to a schema then Excel will infer the schema of the
XML data file.

4. Working with the data

 Placing the fields on the sheet

In order to place the fields on the worksheet you need to drag and drop them from the XML Source. First
place the fields from the AnalogOutSignal table as in the following picture:

5
OMICRON Test Universe Import into Excel 2003

To see the values of the fields you need to click on the Data menu, then XML and Refresh XML Data.
We need to filter the data in order to view just what we need for the f(VTest). Filter the Name column after
VL1-E:

6
OMICRON Test Universe Import into Excel 2003

Then we need to obtain the amplitude of the voltage only for the Undervoltage state. All odd states are
prefault and all even states are fault states so the values corresponding to the Undervoltage are the ones
having the ProgOrderNumber 2,4,6,…
We will create a column manually bound to these values (using formulas e.g. B70 "=C8"), named
VTestAmplitude and from the SequencerMeasurement table we will add the Tact field and refresh the
XML data.

 Creating a chart based on the XML data


Click on Insert menu and then Chart.
In the Chart Wizard select Chart Type XY(Scatter) and sub-type Scatter with data points connected by
lines and click Next.
In the Series tab, add a series and then complete the values for the X by selecting the VTestAmplitude
column and for the Y by selecting the Tact column. Click Next.

7
OMICRON Test Universe Import into Excel 2003

7. Set the Chart Title "The tripping characteristic" and the X, Y axis and click Finish.

As mentioned above, these screenshots show the randomly generated OCC Demo-mode results. Testing
a real inverse-time relay should result in a gradually decreasing time-over-voltage characteristic.

8
OMICRON Test Universe Import into Excel 2003

 Modifying the XML Data Source.


Execute the test again e.g. with different relay settings and do the XML data export. Refresh or reopen
the .xls document to see the new data.

Another way of modifying the data source is by writing a script that after each test run automatically
exports to the XML file. The characteristic with the new data can be updated in Excel by just using
Refresh XML Data or by reopening the excel document.

Writing the script


1. Open the document on which you want to apply the script
2. Click the View menu and then the Script View.
3. The script window is opened but it's running in the immediate mode. Stop the run by going to the
Script menu and then Stop (Shift + F5)
4. From the Proc combo box click on OnCmdTestTestAll.

5. Type the following code inside the method body:


Document.TestAll()
Document.ExportDataXML("XMLSample_Excel.XML", cExportDataNoSchema)

where the "XMLSample_Excel.XML", is the path to your data export xml document.

6. Save the script by saving the document (Ctrl+S or click File and then Save).

9
OMICRON Test Universe Import into Excel 2003

Support

When you are working with our products we want to provide you with the greatest
possible benefits. If you need any support, we are here to assist you!

24/7 Technical Support – Get Support


www.omicron.at/support
www.omicronusa.com/support

Offering our customers outstanding support is one of our top priorities. At our
technical support hotline, you can reach well-educated technicians for all of your
questions. Around the clock – competent and free of charge.

Make use of our 24/7 international technical support hotline: +43 59495 4444.

Additionally, you can find our Service Center or Sales Partner closest to you at
www.omicron.at or www.omicronusa.com.

Customer Area – Stay Informed


www.omicron.at/customer
www.omicronusa.com/customer

The customer area on our website is an international knowledge exchange


platform. Download the latest software updates for all products and share your own
experiences in our user forum.

Browse through the knowledge library and find application notes, conference
papers, articles about daily working experiences, user manuals and much more.

OMICRON Academy – Learn More


www.omicron.at/academy
www.omicronusa.com/academy

Learn more about your product in one of the training courses offered by the
OMICRON Academy.

OMICRON electronics GmbH, Oberes Ried 1, 6833 Klaus, Austria, +43 59495

10

You might also like