10-28-2010 03:25 PM
This version addresses some of smercurio's very valid concerns. It is not fancy enough to send out "Sensor 1 and 3 are STILL high but # 2 just went low" but it alerts you to any changes that occur on any sensor line. The history of email messages should be sufficient to determine exactly what occurred and when. Note that the shift register sends whatever happened in the current iteration to the next iteration allowing a comparison that drives the email sender. Also note that the recipients input is expecting an ARRAY of addresses which is why your simple string caused a bad wire.
The other concern here is that a sensor could potentially go from high to low in less that 100 mSec resulting in a missed alarm if the timing is just right (errr, wrong). This would best be handled by adding an electronic RC (resistor/capacitor) delay circuit in hardware to make the sensor pulse last longer than your loop speed.
10-28-2010 03:31 PM
@Courtney2010 wrote:
Okay, now you're making me think more logically.
after Input 0 - - Send me an e-mail because it happened
after Input 1 - - (a dog will trigger this input after hearing input 0) (I know it sounds weird, but trust me)
after Input 2 - - Send 1 more email, and restart the program - This means everything is back to normal (A time value for how long it took to get from 0 to 2 would be great here, but I'm not pushing my luck.
Okay, now that you all think I'm certifiably insain.. lol.
These dogs are amazing, and I will have to show you this when I'm finished.
I love you guys!
Court
Take a look at my last VI and see if you can incorporate some of the specifications you just mentioned.
We don't think you're insane (very much anyway). If your dogs are so smart perhaps they can help you with the coding. To be honest, my cat wrote most of this but I had to finish it when he got distracted playing with the mouse.
10-28-2010 04:02 PM
Wow, this looks great!
edit - It worked too! I put in my email and smtp server and got the email on my phone in seconds!
What a super bunch of people on here!
I asked one of my dogs to help, but he just gave me this look (attached)
I'm going to play around with some stuff and see if I can learn what you all did, and maybe I can do something to help you in the future.
:womanwink:Court
10-28-2010 04:05 PM
The dog has obviously been programming in a text-based language. No wonder it needed to be rescued.
Lynn
10-28-2010 04:41 PM
@johnsold wrote:
The dog has obviously been programming in a text-based language. No wonder it needed to be rescued.
Lynn
REXX maybe??? (Wow, now I'm getting punchy. Glad it's almost beer-thirty.)