Playing .WAV files from Citect

After fighting with playing .WAV files from Citect, I am still having a bit of an issue.

Using Windows Media player, it seems that it attempts to connect to the internet, even though I have turned off everything in the settings except for associating the music files with .WAV files.  This gives a blue rotating circle and a program running indication in the Task bar.  We have had this happen to the point where the Citect program becomes unresponsive until the operations are finished.

The systems I work on do not have internet connections, so this must be due to retrying and eventually failing.

Question here is if anybody has used another lightweight program that just plays the file without the overhead?

I am assuming that Windows Media Player does not give the ability to turn these things off, but maybe I have missed them.

  • Did you run into a problem with the built-in DspPlaySound() function?
  • We use DspPlaySound() function with no issues, clients are running on Windows 10. Code example below.

    DspPlaySound("[USER]:\{ProjectName}\97744ALARM-1000ms.wav",0);

    We also leverage the Text To Speech functions located in the Speech.ci file, though our operators seems convinced that Steven Hawking is talking due to the digitized speech.
  • Hi Michael.
    Using Citect 2018R2 we had the same problem with the rotating blue icon when playing .WAV files which was resolved by deleting the following file on every client:

    C:\Program Files (x86)\AVEVA\Citect SCADA 2018 R2\Bin\SE.Citect.PlaySound.exe

    Our sound then played as normal but without the rotating blue icon issue!

    Be aware that this file is re-created after the subsequent installation of every Citect 'Update'.

    Hope that helps.
    Ash
  • Hi All,

    In October 2020 Update there was a fix (see readme):

    66451 - DspPlaySound() had issues in playing system sounds.
    As part of this there was an additional fix :
    C:\Program Files (x86)\AVEVA\Citect SCADA 2018 R2\Bin\SE.Citect.PlaySound.exe is from Oct 2020 update onward no longer called for Win7Sp1 or greater. (So Ash, this should remove the need to remove it on a future update)

    Earlier OS'es still use SE.Citect.PlaySound.exe since there was a memory leak on these OS'es.
  • DspPlaySound() worked OK - we got the sound in the end.
    This is a hangover from the Deployment Manager Custom Files issue. All we wanted to do was beep when an alarm came on. Locating the file seemed to be a big issue, but it is solved. A bit of code required to get the error from it, but nothing we haven't done before.
    After looking through the knowledgebase, I couldn't find much on the PlaySound function for Citect - certainly not the information you replied to Ashley with. Although I am not running R2, the file is still in there. The Wonderware version seems to use the 2nd argument for timing/asynchronous operation. That would be a nice option for citect, too.

    Mike