LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Guys, please help with 3 simple inputs! - DAQ in Labview + e-mail

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.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
0 Kudos
Message 11 of 15
(354 Views)

 


@Courtney2010 wrote:

Okay, now you're making me think more logically. Smiley Happy

 

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.  Smiley Wink  To be honest, my cat wrote most of this but I had to finish it when he got distracted playing with the mouse. Smiley Surprised

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
0 Kudos
Message 12 of 15
(349 Views)

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. Smiley Happy

 

:womanwink:Court

 

 

0 Kudos
Message 13 of 15
(335 Views)

The dog has obviously been programming in a text-based language.  No wonder it needed to be rescued.

 

Lynn

0 Kudos
Message 14 of 15
(332 Views)

 


@johnsold wrote:

The dog has obviously been programming in a text-based language.  No wonder it needed to be rescued.

 

Lynn


REXX maybe???  Smiley Tongue (Wow, now I'm getting punchy.  Glad it's almost beer-thirty.)

 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
0 Kudos
Message 15 of 15
(320 Views)