Some content on this site is available only to logged-in subscribers. Contact Us for information on becoming a subscriber.

InSource.Solutions | InSource Training | InSource Client Portal
InSource Solutions Logo
Log In Sign Up
InSource.Solutions InSource Training InSource Client Portal Log In Sign Up
  • Home
  • AVEVA MES & Model Driven MES
  • AVEVA MES Tech Notes

TN MES107 Example API Call to Start a MES Client Session

Last updated: March 11th, 2025

Description

  • Author: Brian Schneider
  • Published: March 11th, 2025

Details:

Description

The following article from InSource demonstrates shows how to start a Wonderware MES Client Session. 

  • Author: Michael Walker
  • Published: 09/25/2015
  • Applies to: Wonderware MES 2015

Details

In the example below note that the me.<Attribute> relative references need to be defined for the script to function. 

Dim aaResult As aaMES.Result;
Dim SessionID As Integer ;
Dim ClientType As Integer ;
SessionID = Me.SessionID;
ClientType = aaMES.Core.aaClientTypes.clientOperator;
aaResult = aaMES.Core.aaSession.StartSession(ClientTypes, SessionID);
If aaResult.Success Then
me.resultText = "StartSession PASSED " + SessionID;
Else
me.resultText = "StartSession Failed: " + aaResult.Exception.Message;
EndIf;

 

initialize mes session
Give feedback about this article

Recommended articles

TN MES200 Aveva MES Service Fails to Start After A Server Restart

Read More

TN MES120 Using MES Database to determine shrink for bulk production processes

Read More

TN MES100 Data Driven - Create a Data Driven Enterprise with Wonderware Performance

Read More

TN MES101 MES Client Control - Managing Client Sessions Example

Read More
Support Icon

CONTACT SUPPORT

How to reach us

10800 Midlothian Turnpike Tpke, Suite 209, Richmond, VA 23235

1.877.INSOURCE

Technical Support - 1.888.691.3858

Contact Us

  • InSource Solutions
  • InSource Training
  • InSource Client Portal
  • Log In
InSource Solutions Logo

© 2025 InSource Solutions. All Rights Reserved.

Knowledge Base Software powered by Helpjuice

Expand