Generate sound on station for alarming

Forum Home Forums Understanding the Software Using Formulas Generate sound on station for alarming

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #237
    OlegA
    Participant

    How I can generate any sound without web pages?
    Can I use Beep function in formula for alarming?

    I tried to use System.Media.SystemSounds.Beep.Play(). It doesn’t work.

    #238
    Mikhail
    Moderator

    Hello,
    Formulas are calculated on a server machine by SCADA-Server service.
    Most likely Windows doesn’t allow services to access a sound card.
    What device should play a sound in your case?

    #239
    OlegA
    Participant

    Yes, it’s sound card.

    #240
    OlegA
    Participant

    Do you know a way of get access to sound card for SCADA-Server?

    #241
    Mikhail
    Moderator

    Try the following:
    1. Create a simple console application that play a sound. You can use Microsoft Visual Studio 2013 Community Edition.
    2. In the formula call
    System.Diagnostics.Process.Start(“C:\\MyPath\\PlaySound.exe”);
    3. Be careful using such formulas. Do not use them for calculated channels.

    Please, write here about the result.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.