LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

alarm controller

How can I modify the Alarm Controller (found in the LabVIEW examples) so that I have a continuous audible beep while the indicator is red?  I will be using a high limit alarm, so I only want the beep to stop when I fall back below the high limit.  I've tried a few things (using a greater than comparison, while loop etc), and had my PC making all sorts of strange noises, but nothing sensible yetSmiley Indifferent.  I'd appreciate  help (rather than a modified file - unless this is compatible with version 6.0.2, nothing newer please).
0 Kudos
Message 1 of 5
(3,010 Views)
that should read "I'd appreciate DESCRIPTIVE help"
0 Kudos
Message 2 of 5
(3,010 Views)
Hi
 
A way to create a beep that stays on would be to use the Call Library function node within LabVIEW, i have included a simple VI i have writtten and a screen shot of how to configure the node. Ive written it in LabVIEW 6.1 so it will be compatible with your own version. You can take this VI and insert it into the AlarmController.vi expample that you have been using and it should create a beep that will stay on, beware that this will be the sound through the PCs sound card so it will carry on until the program tells it to stop! not when you switch your speakers on and off !!!
 
Hope this will help, please post back if you have anymore questions
 
Regards
YatinM
NI UK
Download All
0 Kudos
Message 3 of 5
(2,974 Views)
Thanks for your reply, I can't open the VI Smiley Sad but I'll try to recreate it from the jpg.
0 Kudos
Message 4 of 5
(2,962 Views)
I got it sorted Smiley Very Happy, but not using your method - in set controller alarms.vi I wired the output from the for loop (which already goes to alarm global.vi and the alarm states indicator) to an Or Array Elements Boolean (so that if ANY of the channels are in an alarm state, the alarm will sound) and then wired this Boolean output to the little question mark (don't know what this is called) on a case structure I inserted inside the while loop.  Finally, I put the Snd Play Wave File VI in the case structure when true.
0 Kudos
Message 5 of 5
(2,945 Views)