LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I automatically send an email if the state of an LED is high?

I've recently just got a NI MyDaq and have started using Labview. I've made a simple program that sounds an alarm if the noise level is above a certain level or if one of the switches has been activated but I now am not able to figure out how to send an email msg if the alarm has been triggered. Please help, thank you.   

0 Kudos
Message 1 of 8
(3,143 Views)

Here's a VI that will probably help you out:

 

http://zone.ni.com/reference/en-XX/help/371361H-01/lvcomm/email_vis/SMTP Send

 

Cheers Marc

0 Kudos
Message 2 of 8
(3,140 Views)

thanks for the quick reply.

 

ive used these VI's but i cant work out how i can make it send the msg if the alarm is triggered 😕

0 Kudos
Message 3 of 8
(3,137 Views)

Did you also tried the example which is given in "SMTP Email Send Message VI"? Its quite good and usefull to test if you can connect to a smtp server. Cheers

0 Kudos
Message 4 of 8
(3,126 Views)

i cant get it to send me a msg from the example files, im really confused, shouldnt the examples work straight away? 

0 Kudos
Message 5 of 8
(3,120 Views)

Well with all preconditions met they work straight away, this one needs a smtp server to work (as the whole vi needs). Did you had a connection with your smtp (email) server?

0 Kudos
Message 6 of 8
(3,117 Views)

yha, wen i type it in and test and say it replied, the servers connects, not sure whats wrong

0 Kudos
Message 7 of 8
(3,114 Views)

What error code do you get? What server are you using? Is it one that requires authentication? If you got the server name from your IT department, they can tell you.

0 Kudos
Message 8 of 8
(3,101 Views)