Historian QuickStart Guide
Historian QuickStart Guide
Quick-Start Tutorial
This tutorial will guide you through getting started with
Historian, providing you with a basic working knowledge
of configuration and data analysis.
Prepared by:
David Vlaming Solution Architect
Operation and Optimisation Software Activity
Contents
Tutorial Outline ............................................................................................... 3
Historian Overview........................................................................................... 4
Server Applications and Services .................................................................... 4
Client and Reporting Applications .................................................................... 5
Architecture ................................................................................................. 6
Preparing Your System .................................................................................. 7
Installation................................................................................................. 11
Creating the Project ....................................................................................... 14
Configuring the Data Source ........................................................................... 16
Vijeo Citect Configuration - CtAPI.................................................................. 16
Vijeo Citect Configuration Historize Setting .................................................. 17
Creating the Data Source ............................................................................. 17
Historize and Publish ...................................................................................... 20
Historizing ................................................................................................. 20
Publishing .................................................................................................. 21
Permissions and User Security ...................................................................... 21
Creating the Historian Database ...................................................................... 24
Starting the Data Service................................................................................ 26
Data Analysis ................................................................................................ 28
Process Analyst .......................................................................................... 28
Database Security for Process Analyst .............................................................. 31
Project Database ........................................................................................ 31
Historian Database ...................................................................................... 33
Using Windows Authentication ...................................................................... 34
Advanced Troubleshooting for Process Analyst .................................................. 36
Further Resources.......................................................................................... 38
Important Information ................................................................................... 39
Tutorial Outline
In this tutorial we will describe the steps involved in installing and
configuring Vijeo Historian. We will collect data from a Vijeo Citect
control system, and view this data using a client application.
Before getting started, we will briefly cover an overview of
Historian, where it fits in with other Schneider Electric products
and a discussion of Historian components and architecture.
As you proceed through the tutorial, take care to follow the steps
completely and in order. Tips will be provided along the way (in
the margin at right) to help you learn more about the task and
adapt the steps to different environments. You can also see
where you are in the tutorial by using the tutorial outline (bottom
of margin).
Although you can follow the tutorial using older software versions,
we will focus on using Vijeo Historian 4.40 and Vijeo Citect 7.30
on Windows 7 and Windows Server 2008 R2.
You will need to have Vijeo Citect installed and running to
complete the tutorial. We will be using the Example project
provided with Vijeo Citect, though you can use your own project if
you wish.
Overview
Important Information
People responsible for the application, implementation and use of this document
must make sure that all necessary design considerations have been taken into
account and that all laws, safety and performance requirements, regulations,
codes, and applicable standards have been obeyed to their full extent.
Schneider Electric provides the resources specified in this document. These
resources can be used to minimize engineering efforts, but the use, integration,
configuration, and validation of the system is the users sole responsibility. Said
user must ensure the safety of the system as a whole, including the resources
provided by Schneider Electric through procedures that the user deems
appropriate.
Further important information is contained in the Important Information
supplement section of this document on page 39 and must be read forthwith in
conjunction with the content that follows.
2013 Schneider Electric. All Rights Reserved
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
Historian Overview
Vijeo Historian helps plant and IT personnel to optimize
operational efficiency by providing powerful reporting tools that
collect, store and deliver meaningful reporting data from multiple,
disparate systems. By using the information provided by Vijeo
Historian, you can make more effective decisions toward
optimizing operational performance.
Vijeo Historian incorporates Microsoft SQL Server technology
to efficiently capture and store data from plant control systems
(including Vijeo Citect and any OPC DA-compatible systems).
Microsoft Reporting Services is also leveraged to deliver reporting
data, available out of the box.
Vijeo Historian also provides an industry-standard OPC HDA
interface, allowing other systems to work with Historian data.
Through this interface, Historian also works together with
Schneider Electrics Manufacturing Execution System (MES)
offering, Ampla, to improve production efficiency and profitability.
The Vijeo Historian environment is made up of a collection of
applications and services. Next, we will describe some of these
you should know about.
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
Process Analyst
This application is also hosted in the Historian
Web Portal. It is identical in functionality to that
provided with Vijeo Citect, allowing you to graph
historical data
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Excel Client
Create Database
Start Service
Data Analysis
Troubleshooting
Architecture
While a complete understanding of the Historian architecture is
not essential for this tutorial, it is helpful to be aware of how the
systems and components fit together. In particular, note how
Historian makes use of two SQL Server databases, one for the
project (configuration), and another for Historian data.
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
Installation
Several Vijeo Historian installation packages are available, with
each including different SQL Server language variants, and one
package without SQL Server. In this tutorial, we will use the Vijeo
Historian installation package that includes English version SQL
Server.
Note
Both 32-bit and 64-bit
installations of SQL
Server are included
with Historian. The
installation will
automatically detect
and install the correct
version for your
computer.
Tip
It is important to
make sure your
operating system is
up to date with the
latest Service Pack
and updates as some
features may not
work correctly if your
operating system files
are out of date.
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
10
Installation
To launch the installation, double-click the setup.exe file on the
Historian DVD, and proceed with the steps below.
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
11
Tip
When choosing a
password for the SQL
Server system
administrator SA
account, the Historian
installation will
validate this against
your local network
policies. These
policies may require a
combination of letters
and numbers to
ensure a strong
password.
Keep a note of the
password, as you may
need to use it later.
Click Next.
6. The next screen allows
you to select whether to
install database
management and
reporting tools.
Click Next.
Overview
Install
7. As we selected to install
SQL Server, in the next
screen we need to
choose a password for
the SQL Server
administrator account.
Type a password, and
click Next.
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
12
Note
The installation
process may take
longer when running
from a DVD
containing multiple
SQL Server versions.
This is due to the SQL
Server setup files
being compressed on
the DVD. The
installation needs to
extract these large
files before
proceeding, which can
time to complete.
Click Install.
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
13
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
14
Tip
The authentication
type you choose will
also later determine
how Historian
connects to the
project database
when loading
configuration (for
example, when the
Data Service starts).
This setting can be
changed later if
required.
Note
When using Windows
Authentication, the
user account that
connects to the
Historian database
will be determined by
the account under
which each
application or service
runs. For example,
the Data Service will
log on using a
different account to
IIS.
Overview
The project will
now be displayed
in the Historian
Servers tree in
the Historian
Configuration
Manager.
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
15
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
5. Select Save from the File menu and close the Computer
Setup Editor.
6. Run (or restart) the Vijeo Citect project.
Start Service
Data Analysis
Troubleshooting
16
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
17
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
18
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
19
Historizing
To configure Historian to collect data for a given tag, alarm or
trend, it needs to appear under the Historian item in the Historian
Configuration Manager. If you are using Vijeo Citect 7.30 with the
Example Project, the following steps are not necessary.
1. As we saw with the equipment
hierarchy examples earlier, it
makes sense to organize tags into
folders under the Historian item.
Right-click on Historian and
select New Folder
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
20
3. Expand the Data Sources node and locate a tag you wish to
historize.
For example, expand
Vijeo Citect, Cluster1
and click the Tags
folder.
Publishing
To make tags, alarms or trends available to client applications,
they need to be published to a folder under the Published
Information node, and have appropriate permissions set.
If you are using Vijeo Citect 7.30 with the Example project, you
will already have some items published, and the steps below are
not required. However, you will still need to configure permissions
for these items, as we describe in the next section.
1. To publish Historian data, we can drag
folders or items from the Historian
node.
E.g. Click and drag the Steel Mill
folder we created earlier to the
Published Information node.
The Steel Mill folder will now appear
under the Published Information node.
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
21
In the previous steps, we have published data but have not yet
made it available to the clients. Historian client applications
require you to log in to access published information. We will now
create a user so that we can later log in to client applications, and
then assign permissions so that we can retrieve data.
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
22
Tip
You can also assign
permissions to groups
that you create. By
assigning permissions
to a group, any users
in that group will
inherit those
permissions.
23
Tip
You can use the
Historian Data
Manager to manage
remote Historian
databases. To connect
to a remote SQL
Server instance, use
the machine name
(i.e. not the IP
address).
When connecting to
the local SQL Server
instance, you can use
the machine name or
the text (local).
Overview
Install
Click OK.
Create Project
Configure Data
Source
24
Tip
The connection
information you enter
using the Historian
Properties dialog will
be used by all
applications to
connect to the
Historian database.
The two exceptions
are the Historian Data
Manager, and
Reporting Services.
Note
When using Windows
Authentication, the
user account that
connects to the
Historian database
will be determined by
the account under
which each
application or service
runs. For example,
the Data Service will
log on using a
different account to
IIS.
Overview
8. Using the Historian Properties
dialog we now set the
connection to the Historian
database we just created.
Type in
(local)\VIJEOHISTORIAN into the
server name field and select
Historian as the database.
Click OK.
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
25
Note
The Data Service
needs to be restarted
whenever data
collection settings are
changed, for example,
if you add tags to be
historized or change
deadband settings.
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
26
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
27
Data Analysis
Historian provides several client applications that allow you to
retrieve data and perform data analysis. In this tutorial, we will take
a brief look at Process Analyst.
Process Analyst
The Process Analyst is a powerful tool for analyzing data, allowing
you to retrieve and graph Historian data. It is hosted within the
Historian Web Portal, and so is accessible via the Historian Web
Client shortcut.
1. Launch the Historian Web Client using the Start Menu shortcut:
Start All Programs Schneider Electric Vijeo Historian
Clients Web Client.
Tip
The Web Client
shortcut will open the
web portal in your
default internet
browser. Historian
web client
applications are
compatible with
Internet Explorer only
if the shortcut
opens in another
browser, you will
need to launch
Internet Explorer
using the same web
address.
2. An Internet
Explorer window
will be launched,
and will open the
Historian web
portal web page.
3. Click Log In.
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
28
8. We can now use the Add New Pen(s) dialog search for a
historized tag.
Note
Depending on your
Internet Explorer
security settings, you
may receive a
message that Internet
Explorer has not
loaded Process
Analyst (an ActiveX
control). To correct
this, adjust the
security settings
under ToolsInternet
OptionsSecurity tab.
Consider adding the
web portal address to
the Trusted sites list
and modify the
settings for that zone
by clicking the
Custom level button.
Click Search.
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
29
Note
If you do not see data
for the pen, it may be
caused by not having
collected data for the
tag. Check the
configuration for the
tag and verify you
have followed the
steps described
earlier.
If data is still not
retrieved, or you
receive a message in
the Error column,
there may be a
problem with the IIS
settings for the web
service. Check the
Troubleshooting
section for tips on
how to correct this.
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
30
Project Database
In order to retrieve Historian configuration, the project database
needs to be accessible. The connection information for this
database is configured when the project is created using the
Register Historian Server Wizard. It can also be changed at any
time using the Historian Server Properties dialog.
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
31
Note
The SA (System
Administrator) SQL
Server account is a
built-in user account
created during
installation. This
account has full
permission to all
databases on the SQL
Server instance. It is
important to consider
security requirements
when choosing which
account to use. For
more control over
database permissions,
consider creating a
SQL Server user
account for use with
Historian.
4. Click OK.
5. Right-click the project
and select Set as Active
Project.
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
If you would like to use Windows Authentication, the steps above are
not necessary. Instead, follow the steps described later in this
section.
Create Database
Start Service
Data Analysis
Troubleshooting
32
Historian Database
In order to retrieve Historian data, the Historian database needs to
be accessible. The connection information for this database is
configured the Historian Properties dialog.
1. Again using the Historian
Configuration Manager, rightclick on the Historian node and
select Properties.
Overview
Install
Create Project
Configure Data
Source
4. Click OK.
Create Database
Start Service
If you would like to use Windows Authentication, the steps above are
not necessary. Instead, follow the steps described later in this
section.
Data Analysis
Troubleshooting
33
IIS
User account
Windows XP
5.1
<machine name>\ASPNET
6.0
NT AUTHORITY\
NETWORK SERVICE
Windows 7 &
Windows Server 2008
7.X
IIS APPPOOL\
Classic .NET AppPool
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
34
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
35
Advanced Troubleshooting
for Process Analyst
As Process Analyst uses web service technology to retrieve data,
settings in IIS can affect this functionality. If you are not able to
view data after adding a pen in Process Analyst, you may need to
check that settings in IIS have been configured correctly.
One way to troubleshoot problems with the web service is to
navigate to the web service address using Internet Explorer. First,
you need to determine the web service address.
Overview
Install
Create Project
Configure Data
Source
Create Database
Start Service
Data Analysis
Troubleshooting
36
Tip
A common problem
that may occur is
related to the .NET
version set in IIS. To
check this, launch the
IIS Manager and
verify that the .NET
version set for the
HistorianWebService
is set to .NET 2.0.
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
37
Further Resources
If you have trouble completing steps in this tutorial, there are a
number of resources to help you:
Help files
o To access help on any application, select Help from
the menu bar of Historian applications, the Help
button on dialog boxes or press the F1 key. The help
files are also available in the installation folder,
%ProgramFiles%\Schneider Electric\Vijeo Historian.
Product documentation
o Further documentation is available on the product
DVD.
Knowledge Base
o To access the knowledge base for Historian, visit
www.citect-kb.schneider-electric.com/ReportsKB
Overview
Install
Create Project
Configure Data
Source
Historize & Publish
Create Database
Start Service
Data Analysis
Troubleshooting
38
Important Information
Notice
This document is not comprehensive for any systems and does not absolve users of their
duty to uphold the safety requirements for the equipment used in their systems, or
compliance with both national or international safety laws and regulations.
This document does not replace any specific product documentation.
The following special messages may appear throughout this documentation or on the
equipment to warn of potential hazards or to call attention to information that clarifies or
simplifies a procedure.
The addition of this symbol to a Danger or Warning safety label indicates that an
electrical hazard exists, which will result in personal injury if the instructions are
not followed.
This is the safety alert symbol. It is used to alert you to potential personal injury
hazards. Obey all safety messages that follow this symbol to avoid possible injury
or death.
DANGER
DANGER indicates an imminently hazardous situation which, if not avoided, will result in
death or serious injury.
Failure to follow these instructions will result in death or serious injury.
WARNING
WARNING indicates a potentially hazardous situation which, if not avoided, can result in
death or serious injury.
Failure to follow these instructions can result in death, serious injury or equipment
damage.
CAUTION
CAUTION indicates a potentially hazardous situation which, if not avoided, can result in
minor or moderate injury.
Failure to follow these instructions can result in injury or equipment damage.
NOTICE
NOTICE is used to address practices not related to physical injury.
Failure to follow these instructions can result in equipment damage.
Note: Electrical equipment should be installed, operated, serviced, and maintained only by
qualified personnel. No responsibility is assumed by Schneider Electric for any
consequences arising out of the use of this material.
A qualified person is one who has skills and knowledge related to the construction, operation
and installation of electrical equipment, and has received safety training to recognize and
avoid the hazards involved.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not use Vijeo Citect or other SCADA software as a replacement for PLC-based control
programs. SCADA software is not designed for direct, high-speed system control.
Failure to follow these instructions can result in death, serious injury or equipment
damage.
WARNING
LOSS OF CONTROL
The designer of any control scheme must consider the potential failure modes of
control paths and, for certain critical control functions, provide a means to achieve a
safe state during and after a path failure. Examples of critical control functions are
emergency stop and overtravel stop, power outage and restart.
Separate or redundant control paths must be provided for critical control functions.
System control paths may include communication links. Consideration must be
given to the implications of unanticipated transmission delays or failures of the link.
For additional information, refer to NEMA ICS 1.1 (latest edition) "Safety Guidelines for the
Application, Installation, and Maintenance of Solid State Control", and to NEMA ICS 7.1
(latest edition) "Safety Standards for Construction and Guide for Selection, Installation and
Operation of Adjustable-Speed Drive Systems" or their equivalent governing your particular
location.
CAUTION
EQUIPMENT INCOMPATIBILITY OR INOPERABLE EQUIPMENT
Read and thoroughly understand all hardware and software documentation before
attempting any component substitutions.
Failure to follow these instructions can result in injury or equipment damage.
This automation equipment and related software is used to control a variety of industrial
processes. The type or model of automation equipment suitable for each application will vary
depending on factors such as the control function required, degree of protection required,
production methods, unusual conditions and government regulations etc. In some
applications more than one processor may be required when backup redundancy is needed.
Only the user can be aware of all the conditions and factors present during setup, operation
and maintenance of the solution. Therefore only the user can determine the automation
equipment and the related safeties and interlocks which can be properly used. When
selecting automation and control equipment and related software for a particular application,
the user should refer to the applicable local and national standards and regulations. The
National Safety Councils Accident Prevention Manual also provides much useful
information.
Ensure that appropriate safeties and mechanical/electrical interlocks protection have been
installed and are operational before placing the equipment into service. All
mechanical/electrical interlocks and safeties protection must be coordinated with the related
automation equipment and software programming.
Note: Coordination of safeties and mechanical/electrical interlocks protection is outside the
scope of this document.
WARNING
EQUIPMENT OPERATION HAZARD
Verify that the completed system is free from all short circuits and grounds, except those
grounds installed according to local regulations (according to the National Electrical Code in
the USA, for example). If high-potential voltage testing is necessary, follow
recommendations in the equipment documentation to prevent accidental equipment
damage.
Before energizing equipment:
WARNING
UNEXPECTED EQUIPMENT OPERATION
Only use software tools approved by Schneider Electric for use with this equipment.
Update your application program every time you change the physical hardware
configuration.
Failure to follow these instructions can result in death, serious injury or equipment
damage.
Intention
This document is intended to provide a quick introduction to Vijeo Historian. It is not intended
to replace any specific product documentation, nor any of your own design documentation.
On the contrary, it offers information additional to the product documentation on installation,
configuration and implementing the system.
The application described in this document is not a specific product in the normal
commercial sense. It describes an example of how Schneider Electric and third-party
components may be integrated to fulfill an industrial application.
A detailed functional description or the specifications for a specific user application is not
part of this document. Nevertheless, the document outlines some typical applications where
the system might be implemented.
The application described in this document is for illustration purpose. Your specific
application requirements may be different and will require additional and/or different
components. In this case, you will have to adapt the information provided in this document to
your particular needs. To do so, you will need to consult the specific product documentation
of the components that you are substituting in this application. Pay particular attention in
conforming to any safety information, different electrical requirements and normative
standards that would apply to your adaptation.
It should be noted that there are some major components in the application described in this
document that cannot be substituted without completely invalidating the architecture,
descriptions, instructions, wiring diagrams and compatibility between the various software
and hardware components specified herein. You must be aware of the consequences of
component substitution in the architecture described in this document as substitutions may
impair the compatibility and interoperability of software and hardware.
CAUTION
EQUIPMENT INCOMPATIBILITY OR INOPERABLE EQUIPMENT
Read and thoroughly understand all hardware and software documentation before
attempting any component substitutions.
Failure to follow these instructions can result in injury or equipment damage.