07-21-2017 10:16 AM
Hello,
I have made the attached vi, which is supposed to take readings from a vacuum pump every second, average the last 60 readings, and report and log the result every minute.
When the vacuum gets below a certain threshold, I would like it to send one email notifying the user. However, it sends emails continuously. This is the part I am having trouble with.
How do I program it to send a single email when the vacuum crosses the threshold, but to not send any more emails?
Solved! Go to Solution.
07-21-2017 10:28 AM - edited 07-21-2017 10:30 AM
You need to "set a flag" when the threshold is reached and you have sent the email.
Check the flag each time you check the pressure, and don't send an email if the pressure remains low and the flag is set.
Remember to clear the flag when the pressure returns to normal so you will be ready to send another email next time.
07-21-2017 11:27 AM
How exactly do I "set a flag"? I am new to this.
07-21-2017 11:42 AM - edited 07-21-2017 11:57 AM
Here is an example.
Notice how the iterations keep counting but the emails sent only increments once for each time Pressure Low is true.
07-21-2017 03:44 PM
Just use Boolean Crossing PtByPt.vi