Professional Documents
Culture Documents
Manual Data
Section 1 – Manual Data Acquisition Service (MDAS) 8-3
Lab 16 – Importing Original Data 8-7
Lab 17 – Importing Versioned Data 8-11
8-2 Module 8 – Manual Data
Module Objectives
z Explain and define Old Data
z Explain MDAS and how it acquires data
z Acquire MDAS data
Wonderware Training
Section 1 – Manual Data Acquisition Service (MDAS) 8-3
Section Objective
z Explain MDAS and how it acquires data.
This section explains the Manual Data Acquisition Service (MDAS) and how it acquires data.
Introduction
MDAS is designed for ArchestrA and Wonderware Application Server to define tags and store
within the Historian. MDAS provides access to data storage, data retrieval and tag configuration
functionality in the Historian.
MDAS is part of the low-level retrieval system that makes it possible to enter old or legacy data
and provide update capabilities. It provides this capability for all users.
The MDAS service provides rich set of functionality, useful not only to internal Historian clients like
the OLE-DB Provider, but also to Historian external clients.
MDAS Overview
MDAS is a thin client-side internal component that provides high-speed remote access to Historian
for storing data in history (real-time data as well as original or modified old data), retrieving data
from history and configuring the tag database.
The primary benefits for MDAS are:
z Rich functionality
z Performance
z Remote-ability
z Ease of use
The Historian OLE-DB provider is an internal MDAS client.
Data Categories
The Historian distinguishes between two main categories of data, based on the timestamp of the
data and the time it is presented for historization.
z Real-time data: Real-time data is defined as data arriving at the server in time sequential
order, with a time stamp that is within +999 milliseconds/-30 seconds of current server
time.
z Old data: The term "old data" is loosely used to describe all non-real time data. Old data
can arrive at the server at any time, in any order and with any time stamp relative to
current server time (The Historian does not support historization of data in the future, i.e.
when the time stamp is ahead of server time). Old data includes real-time data arriving late
from a store/forward cache.
The Historian allows modification of historized data by either inserting one or more new values into
history after the original data for that time period had been historized, or by updating a value or a
time region of values.
All modifications are versioned, and previous versions are preserved in all cases, allowing the user
to view the original data prior to the modifications.
The term "original data" refers to the original set of values historized for a tag.
For example, a real-time stream of data from an I/O Server represents original data and is written
to disk as the original version. Inserts or updates performed on the original stream of data results
in a new version.
Data modification may be performed for any tag category (I/O Server, system or manual). For
manual tags, new data can be presented as either original data (non-versioned) or inserted data
(versioned).
Note: The Historian supports viewing of only the original version or the latest version of data.
Interim versions are preserved in history but are not exposed through the retrieval layer. Future
releases of the Historian may allow full access to all data versions.
Note: Formatting and importing a normal .csv file is demonstrated within the context of Lab 16,
“Importing Original Data”.
Wonderware Training
Section 1 – Manual Data Acquisition Service (MDAS) 8-5
Format Differences
The format for the fast load .csv file is essentially the same as the normal format, with the following
exceptions:
z All data in the file is treated as original data.
z The OperationType field in the file header is ignored.
z The Missing Block Behavior field in the header is used for a different purpose. A value of
10 denotes that tags in the file are specified by name, whereas a value of 11 denotes that
the wwTagKey attribute is used to specify tags.
z By default, missing blocks are created as necessary.
z The actual data values in the file must be in time sequential order, starting at the top of the
file.
z Values that have out-of-sequence timestamps are ignored.
In other words, if a data value in the file has a timestamp that is earlier than the timestamp
in the previous line in the file, the data value is discarded, regardless of whether it belongs
to the same tag or a different tag.
z The file should contain only one data value per line.
The following information explains the correct .csv format for use with MDAS:
If two multipoint update .csv files for the same tag are simultaneously copied to the
\DataImport directory, the update will span across the total time for the two files. A query
returning latest data will hide (mask) the original version of the data from the end of the first file
to the start of the second file.
For example, if the update in one file ranges from 00:00:00 to 00:05:00, and the other ranges
from 00:10:00 to 00:15:00, the result will be an update starting at 00:00:00 and ending at
00:15:00 ("latest"); the original data from 00:05:00 to 00:10:00 will be masked as "original"
data.
No data is lost. To view either data from a query, use the wwVersion column to specify either
"original" or "latest." By default, the latest data is displayed. To prevent the masking of the original
data, process the .CSV files one at a time.
Wonderware Training
Lab 16 – Importing Original Data 8-7
Introduction
This lab demonstrates how the Historian MDAS Acquisition engine takes data from a .csv file and
"pushes" it (automatically inserts it) into a viewable Historian tag. It is then available for analysis by
Query Analyzer or ActiveFactory Trend.
Participants use the ArchestrA System Management Console, MS Explorer, ActiveFactory Query,
and ActiveFactory Trend applications.
Objective
Upon completion of this lab you will be able to:
z Use a .csv File to insert data values into a Historian tag as original data
z View the Results Using Microsoft SQL Server Management Studio
z View the Results Using ActiveFactory Trend
4. If the file has not been opened before, scroll down to Notepad and highlight it.
This file contains values changing every second for the LIT_001.PV tag. There is no data available
for this tag in the history blocks within the period shown in the file, so this data will be inserted as
original data.
Wonderware Training
Lab 16 – Importing Original Data 8-9
Both versions retrieved the same value for each instance in time.
Wonderware Training