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 InTouch
  • AVEVA InTouch Tech Notes

TN - 1483 Embedding Axis Camera Views in InTouch

Last updated: March 7th, 2025

Description

  • Author: Rich Brooks
  • Published: March 7th, 2025

Details:

Description

This article from InSource shows how to embed Axis camera views in an Aveva InTouch HMI application.

  • Author:  Rich Brooks
  • Published:  3/4/2025
  • Applies to:  Aveva InTouch HMI 2023 R2 SP1 or higher

Details

Live camera streams may be embedded in an InTouch application using the WebWidget.

Create a new Industrial Graphic symbol.  Drag and drop the WebWidget onto the canvas.

 

The WebWidget has a single property named URL.  Build a data change script such as the following to define the URL.  URL_String, Cam_User, Cam_PW, and Cam_Num are message tags that are passed in from InTouch.  The Cam_User and Cam_PW are the login and password for the camera.  Cam_IP is the camera IP address.  Cam_Num is the camera number.  Set it to default to "1" if not defined.

dim URL_String as string;

URL_String = "https://" + Cam_User + ":" + Cam_PW + "@" + Cam_IP + "/axis-cgi/mjpg/video.cgi?camera=" + Cam_Num + "&resolution=1920x1080&fps=15";

Cam_URLPB = URL_String;

The syntax for the URL is "https://<user name>:<password>@<ip address>/axis-cgi/mjpg/video.cgi?camera=<camera number>&resolution=1920x1080&fps=15"

The camera number and resolution are optional.  1080p is the minimum resolution for some cameras.  15 frames per second is the industry standard.   

The following is a screen capture of the streaming video from one of the cameras.

A  preset name may be sent to a PTZ camera using the following command.  Cam_PresetName is and InTouch tag used to pass the configured preset name for a camera view.  This is sent following the first URL string described previously when there is a desired PTZ camera preset view required.

URL_String = "https://" + Cam_User + ":" + Cam_PW + "@" + Cam_IP + "/axis-cgi/com/ptz.cgi?gotoserverpresetname=" + Cam_PresetName;  

The syntax for the URL is "https://<user name>:<password>@<ip address>/axis-cgi/com/ptz.cgi?gotoserverpresetname=<camera preset name>"

intouch axis camera
Give feedback about this article

Recommended articles

TN IT221 Using AXIS Media Control With InTouch

Read More

TN IT228 Using NAD with a Modern Application

Read More

TN IT237 Tagname Undefined, Define "MoveWindow"?

Read More

TN IT236 How to Change the Query in the ActiveX Alarm Viewer Control in Wonderware InTouch WindowViewer

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