Displayurl property, E 62) – Rockwell Automation FactoryTalk Historian SE ActiveView 3.2 User Guide User Manual

Page 70

Advertising
background image

FactoryTalk Historian ActiveView User Guide

62

The read-only Display property is the dispatch interface of the opened
display. It may be "Nothing" (in Visual Basic terms) if the loading of the
display failed. Error trapping can be implemented via the
DisplayURLIsValid property and the FailedDisplayURL event.

This is a nearly fully-functional Display object. You could build a Web-
based version of FactoryTalk Historian ProcessBook that would put trends
into a display. It is one of the most powerful features of this FactoryTalk
Historian ActiveView ActiveX control.

Example

Following are examples for accessing the Display object of the opened
display.

Pbd1.Display.SetTimeRange "*-4h", "*-1h"
Pbd1.Display.BackgroundColor = RGB(256,0,0) 'Red
Dim MyTime as string
MyTime = Pbd1.Display.EndTime

DisplayURL Property

The read-write DisplayURL property specifies the location of the
FactoryTalk Historian ProcessBook display file (.pdi). This parameter is
required to display a .pdi.

It can be set to a URL string. HTTP and FTP protocols are supported. You
may also use a UNC path or a local path to a display. For the UNC and
local paths, the protocol prefix file: is optional.

This property also supports relative paths, but you must specify the
absolute path the first time you set the control's DisplayURL property.
After that, you can specify a DisplayURL that is relative to the initial path.
The protocol may or may not be specified in the relative path. You cannot
specify a different protocol in the relative path. Also, the property always
returns the absolute path.

For example, you can specify
http://myserver/mydir1/mydisplay1.pdi first, and then

Advertising