Sign in to follow this  

Alarm On High Voltage Spike

Recommended Posts

I am logging voltage data between 0 to 4.5 volts with daily logs twice per day (7AM to 7PM based on your guidance of several days ago)..  I would like to have some type of audible alarm (perhaps buzzer connected to LabJack U3) when a voltage spike exceed 4,5 volts.  Perhaps the alarm would remain on for say one minute.  Is this feasible?  If so can it be accomplished easily?  An alternative, would be the ability to some how flag any days file that had such a spike that exceeded 4.5 volts.


James Allen

Share this post

Link to post
Share on other sites

That's actually quite easy.  I can't address what buzzer to get, but let's say you have it wired to a channel called "Buzzer" which is a digital output, and the voltage data you refer is in a channel called "Volt".  In the Event for the Volt channel put:


if ((volt[0] > 4.5) && (volt[1] <= 4.5))




Then create a sequence called "soundBuzzer":


Buzzer = 1

delay(60) // 1 minute

Buzzer = 0


That's it!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this