1/5/2007 11:39 AM | |
Posts: 1 Rating:
|
Hi,
for all those who need to sound an alarm on PC Runtime in wincc flexible, I'v created a DLL which you can call from runtime. You need to put the dll in the Windows\System directory, and register it with :
regsvr32 c:\windows\system\musicdll.dll
Next, you have 3 methods in dll to call from your runtime script, like:
script 1. play alarm sound
Dim fs
Set fs = CreateObject("muzika.muzikaKlasa")
fs.SvirajHavarijski() 'to play sound for Alarm
script 2.play warning sound
Dim fs
Set fs = CreateObject("muzika.muzikaKlasa")
fs.SvirajAlarm() 'to play sound for warning
script 3. stop sound
Dim fs
Set fs = CreateObject("muzika.muzikaKlasa")
fs.Zaustavi() 'to STOP sound
Of course, the sound files must be regular WAV files (not MP3 or...),
and MUST be in location/file:
c:\alarmwavs\alarm.wav --for warning sound
c:\alarmwavs\havarijski.wav --for ALARM sound
Cheers
Mike
AttachmentmusicDLL.zip (1217 Downloads) |
This contribution was helpful to
9 thankful Users |
1/5/2007 3:11 PM | |
Posts: 3149 Rating:
|
Great idea - thank you [:D] |
11/10/2009 1:04 AM | |
Posts: 2 Rating:
|
Mike, This is a great help to me. Works perfect. Thanks, Don |
9/4/2012 4:53 PM | |
Posts: 4 Rating:
|
Hi Mike, Thanks a Lot for this solution, but how do you stop the script when you acknowledge alarm? Best Regards, Goce |
9/10/2012 9:47 AM | |
Posts: 10 Rating:
|
For scada Quotation, Which Item Should be Selected. Please reply me.. |
9/24/2012 1:56 PM | |
Posts: 3037 Rating:
|
Hello Litu, Do you use WinCC V 7? You can use this C script for outputing a sound in WinCC. How can I output a sound via C script in WinCC? Tweety |
1/18/2013 9:37 AM | |
Posts: 3037 Rating:
|
Hello, Do you use WinCC flexible? You can use this link. How do you start a sound file via a script in the WinCC flexible PC Runtime? Tweety |
This contribution was helpful to
2 thankful Users |
Follow us on