Tech Note 989 - Historizing AppServer Objects To Partner Historians and Retrieving Data Using HistClient Trend
Tech Note 989 - Historizing AppServer Objects To Partner Historians and Retrieving Data Using HistClient Trend
All Tech Notes, Tech Alerts and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.
Topic#: 002817
Created: October 2013
Introduction
A Wonderware Historian can be configured to have a symmetrical "partner" Historian that you can use as a backup if the primary/main
Historian is not available. When the primary Historian is unavailable, a Historian Client (also called HistClient) automatically switches over
to the configured partner Historian. The client remains connected to the partner Historian, even when the primary Historian becomes
available again. A HistClient switches back to an available primary Historian if it fails to connect to the partner or during a new attempt
to connect to the primary Historian, such as when restarting Trend.
This Tech Note shows you an example how you can configure an object in AppServer to push data to both primary and a partner
Historian Servers. It then shows the Historian Client automatically switches over to the configured partner Historian
Application Versions
Wonderware Historian Server 2012R2 (version 11.0) and later
Note: This Tech Note assumes that you are familiar with Wonderware Historian Server, Historian Client, and Application Server. If you
have any questions regarding the Microsoft SQL Server or the Operating System, please contact Microsoft Technical support at
www.microsoft.com for further assistance.
For more information on configurations of Historians in a partner setup, please see Tech Note 987 Configuring AppServer to Store
Data in Primary and Partner Historians.
Historians in a partner setup are not intended to be a synchronized pair, where both the Historian configuration and data are fully and
automatically synchronized. It is up to you to make sure that the two historians are symmetrical and synchronized.
This example uses three computers. One is for the AppServer and the other two are for the primary and partner Historians. HistClient
Trend can run on the AppServer to monitor data from either of the Historians.
In the following steps, we will add a new instance of UserDefined object and configure a UserDefined attribute to historize data in the
Historian Servers.
1. From the AppServer IDE, click the Template Toolbox and expand the Application folder
3. From the Development View/Unassigned Host panel, right-click the object and click Assign To… object (UserDefined_001 is
assigned to Area_001 in this example).
5. Click the UDAs tab and add a new UDA. In this example it is called MyUDA1.
10. Deploy the object. Deploying the object with the History extension configuration creates a corresponding tag in the Historian.
1. On each of the Historians, open the ArchestrA System Management Console (SMC).
The Historian name shown in the Tag Picker is always the name of the primary Historian, even when the client is connected to the
partner.
When a HistClient successfully connects to either the primary Historian or its partner, columns Server and I/O Address are updated
with the connected Historian server name in the tags list of the selected tags.
There is no automatic synchronization built in to the redundant Historian setup; it is up to the Historian server administrator to
make sure that the two Historians in the pair are symmetrical and synchronized.
If the SQL Server Service is running while Historian Service is not running, this is not recognized by the Historian Client as a
scenario in which the Historian Server is unavailable.
Procedure
1. Open the ObjectViewer and add the MyUDA1 attribute attribute (created in the Configuring AppServer Object for Historization)
section to the Watch window.
4. On the main menu, click Tools/Servers. The Server List Configuration window appears.
file:///C|/inetpub/wwwroot/t002817/t002817.htm[11/26/2013 9:54:57 AM]
Historizing AppServer Objects to Partner Historians and Retrieving Data Using HistClient Trend
5. Type the primary Historian Server name along with login information to connect the Trend to the Primary Historian (MyServer1 in
this example).
6. The Trend chart (Figure 1 below) shows the Primary Historian in the Tag Picker as well as in the tag list below the trend.
B. Nguyen
Tech Notes are published occasionally by Wonderware Technical Support. Publisher: Invensys Systems, Inc., 26561 Rancho Parkway South, Lake Forest, CA 92630. There is also
technical information on our software products at Wonderware Technical Support.
Back to top
©2013 Invensys Systems, Inc. All rights reserved. No part of the material protected by this copyright may be reproduced or utilized in any form or by any means, electronic or
mechanical, including photocopying, recording, broadcasting, or by any information storage and retrieval system, without permission in writing from Invensys Systems, Inc.
Terms of Use.