11-06-2018 09:21 AM
I need your help again. I want to have alarm (continuous beeping sound) till the user acknowledges (click) on the alarm.
for example, if the Numeric 3 value more than 5, this will trigger alarm c and start beeping sound till the user click on alarm c boolean indicator. when value goes less than 5 should not have any sound.
11-06-2018 01:00 PM
Is this a hardware alarm connected to e.g. a DIO line or you want the program to beep?
(You don't need a wait in the lower loop because you have a timeout event that defines the loop rate. Consider using arrays for the controls and LEDs)
11-06-2018 01:08 PM
again some pseudocode:
// the Numeric 3 value more than 5, this will trigger alarm c // AlarmC := numeric3 > 5 // start beeping sound // EnableBeep := EnableBeep OR AlarmC // till the user click on alarm c boolean indicator // // using indicators as input controls is a bad UX! // EnableBeep := EnableBeep AND NOT(UserConfirm) // make UserConfirm a button with latching behaviour // in a parallel loop: IF EnableBeep THEN beep(100ms)
11-06-2018 01:22 PM
Thanks for reply. No this is not hardware alarm.
There are back end calculations to have numeric values for alarm a, b, and/or c. I need to start beeping alarm when that alarm light goes ON and keep beeping, till the user acknowledge this by clicking on the alarm indicator.
11-06-2018 02:05 PM
Do you want to be able to silence the alarm even if one of the values is over the limit or do you only want to acknowledge an alarm once the values are normal again?
Here is a quick rewrite that can hopefully give you some ideas. Note that arrays simplify the diagram N times here!
11-06-2018 03:22 PM
Thanks for the help. Your code looks clean and great.
Yes I want the alarm to be silent even if one of the values is over the limit.
Sound Stopping condition:
1-User click on the alarm(a, b, or c), whichever is ON. (If more than one(a and b) is ON then clicking on any one of the alarm should be ok.)
2-all values comes down to normal (State light in your code OFF)
I am sorry, I am new and having hard time using array to simplify codes. Thanks for help.
11-08-2018 08:53 AM
I am trying hard for some days to implement sound alarm. Unfortunately did not find much of the solution for Sound alarm.
There are background calculations for Numeric 1,2,3 field(In attached program I can input values manually). I need to have sound alarm along with the light.
Start Beeping condition::
-Any of the alarm goes ON(light on in the attached program)
Stop Beeping condition::
1-all values comes down to normal (i.e. State light in the code OFF)
2-User click on the alarm/light(a, b, or c), whichever is ON. (If more than one is (i.e. a and b) is ON then clicking on any one of the alarm should stop beeping. Sound(beeping) will be off but Alarm light should still be ON in this case) (Acknowledge string will record/show the time of the mouse click.)
11-08-2018 09:21 AM
11-08-2018 09:35 AM
I am getting error message opening the file: "File version is later than current version"
any idea how to open this?
11-09-2018 08:20 AM
I have converted the Sound alarM2 file posted by RTLSVU to LabVIEW 15. This should fix the error that you where experiencing.