Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Historian

InitializeEx()

  • Last UpdatedMar 07, 2025
  • 1 minute read

Creates a connection to the AVEVA Historian.

Method

InitializeEx(string ComputerName)

Parameter

ComputerName

Name of the computer on which the Historian is running. If you are not connecting to the Historian over a network, use a blank string ("") for the computer name.

Note: You cannot use an AVEVA Historian alias for this parameter.

Returns Value

0 = Success.

1 = Unknown failure.

3 = Unable to initialize ActiveEvent.

4 = ActiveEvent is already initialized.

7 = Remote function call failed.

8 = Unable to determine local computer name.

Remarks

After you initialize the Historian, use the IsConnected property to determine if the connection was successful. Also, you only need to initialize with the server one time. You can invoke an unlimited number of events after initialization has occurred.

If you are using the InTouch HMI software, initialization does not occur unless the ActiveEvent ActiveX control is part of an open window. This limits the use of the InvokeEventEx method within InTouch Application Scripts, Condition Scripts, or Data Change Scripts.

When you close an InTouch window, all ActiveX controls are automatically uninstantiated.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in