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 AG114 Play a sound file with ArchestrA Symbol scripting

Last updated: March 3rd, 2025

Description

  • Author: Chris Cleope
  • Published: March 3rd, 2025

Details:

Description

With regular InTouch scripting there was the PlaySound() function, but this does not exist in ArchestrA scripting. The following example will show how to play sounds on an ArchestrA Symbol.

  • Author: Dillon Perera
  • Published: 12/30/2015
  • Applies to: InTouch with ArchetrA Graphics 10.1 and up

Details

To play a sound with an ArchestrA symbol we will need to use Microsoft .NET's System.Media library. This can be used to play .wav files.

  1. Create a button to run the script.
  2. On the button add an Action Script animation.
  3. Enter the following script, replacing PATHTOFILE with the name of the sound file you would like to play.
'Create a SoundPlayer object
dim SoundPlay as System.Media.SoundPlayer;
SoundPlay = new System.Media.SoundPlayer();

'Point it to the file we want to play
'for example SoundPlay.SoundLocation = "c:\MyAlert.wav"
SoundPlay.SoundLocation = "PATHTOFILE";

'Load the sound file and play it
SoundPlay.Play();

 

playback audio
Give feedback about this article

Recommended articles

How to receive group emails

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