Check out the related Code Repository Files or visit the LabVIEW Wiki Internet Portal
Tags |
(This content has not been tagged yet)
|
![]() |
Feb 20 2006, 08:44 PM
Post
#1
|
|||
|
Active Member Posts: 16 Joined: 10-February 06 Member No.: 4102 LV:7.0
|
hello,
I develop an application, that has to inform the administrator for email and sms when a value surpasses a limit. How do I do to send email and sms with the labview? Help...
|
||
|
|
|||
| Ad |
Feb 20 2006, 08:44 PM
Post
#
|
||
|
|
|
||
|
|
|||
Feb 20 2006, 11:24 PM
Post
#2
|
|||
|
Very Active Member Posts: 164 Joined: 18-March 04 From: Canada Member No.: 311 Using LabVIEW Since:1995 LV:8.20 ,7.1.1 ,.
|
What version of LabVIEW are you using? If you have 7.1 (and 7.0?), there are SMTP-based Mail VIs under the Communication palette.
If you're using older versions, you will need the Internet Toolkit from NI. You could also check out the OpenG for these features. -Khalid
|
||
|
|
|||
Feb 21 2006, 05:43 PM
Post
#3
|
|||
|
Active Member Posts: 16 Joined: 10-February 06 Member No.: 4102 LV:7.0
|
I am to use the version 7.1. Did I try to use smtp of the labview (the examples) but don't I get to send email???
And on, to send sms?? Thank you
|
||
|
|
|||
Feb 21 2006, 07:19 PM
Post
#4
|
|||
|
Very Active Member Posts: 164 Joined: 18-March 04 From: Canada Member No.: 311 Using LabVIEW Since:1995 LV:8.20 ,7.1.1 ,.
|
I am to use the version 7.1. Did I try to use smtp of the labview (the examples) but don't I get to send email??? Do you get any errors from the Email VI? -Khalid
|
||
|
|
|||
Feb 21 2006, 08:42 PM
Post
#5
|
|||
|
<customize this text> Premium Member ![]() Posts: 1060 Joined: 9-April 04 From: Rotterdam Member No.: 349 Using LabVIEW Since:1992 LV:8.5.1 ,8.2.1 ,7.1.1
|
I am to use the version 7.1. Did I try to use smtp of the labview (the examples) but don't I get to send email??? And on, to send sms?? Considering that the SMTP VIs are with full source code you could certainly go a little deeper and single step into them to see what the problem is. The SMTP VIs as they come with LabVIEW 7.x and higher work very good but have a few limitations. First they have no support for authentification. If your SMTP server requires authentification then you will have to look for alternatives. Second they can NOT make a hole into your firewall on their own, both on your computer nor some gateway on the way to your SMTP server. You will have to configure the firewall(s) to allow the SMTP traffic to go through. Sending SMSs is a completely different story. You can directly communicate with the GSM modem through VISA and the serial port but not every GSM modem has exactly the same command set. Also to get a reliable communication with a GSM modem that does always work independant of the initial state of the modem is quite some work. I have done it in an alarming and messaging application for Wismo GSM chip based modems (Wavecom and Maestro) and it wasn't trivial. Our company also sells a Toolkit to talk to these modems http://www.citengineering.com/pagesEN/products/sms.aspx Another possibility is to buy some ready to run SMS application and install it and interface to it through ActiveX, TCP/IP or whatever it supports. If your messaging and alarming should be reliable writing your own solution won't be a very straightforward and fast way to do it. Rolf Kalbermatter
|
||
|
|
|||
Feb 22 2006, 11:02 PM
Post
#6
|
|||
|
Active Member Posts: 16 Joined: 10-February 06 Member No.: 4102 LV:7.0
|
hello Khalid Ansari,
I am to use the example (Email Notification.vi), to understand as doing. The errors is in the connection mail server. The errors i: " Could not establish connection with.. Error 62 ". What am to do wrong? Thank you Hugo Fernandes
|
||
|
|
|||
Feb 22 2006, 11:18 PM
Post
#7
|
|||
|
Active Member Posts: 16 Joined: 10-February 06 Member No.: 4102 LV:7.0
|
hello Rolf Kalbermatter,
Thank you for having answered, I am an electrónica student, I have to develop a system of acquisition of data (data as the temperature, humidade....) and to inform the administrator for email and sms. I have same to develop the system it is finalist's project. Thank you
|
||
|
|
|||
Feb 23 2006, 12:39 PM
Post
#8
|
|||
|
Very Active Member Posts: 164 Joined: 18-March 04 From: Canada Member No.: 311 Using LabVIEW Since:1995 LV:8.20 ,7.1.1 ,.
|
It's obvious that LabVIEW is not able to connect to your mail server. Can you send/receive mail from this computer using any other mail client via the same SMTP server?
-Khalid
|
||
|
|
|||
Feb 23 2006, 10:51 AM
Post
#9
|
|||
|
Active Member Posts: 16 Joined: 10-February 06 Member No.: 4102 LV:7.0
|
Hello Khalid Ansari,
I receive email with the labview. I connect the email server to receive the email, I make authentication and I introduce the password. Will it be that have authentication/password with server smtp? But with VI smtp of the to do that? thank you
|
||
|
|
|||
Feb 23 2006, 03:13 PM
Post
#10
|
|||
|
<customize this text> Premium Member ![]() Posts: 1060 Joined: 9-April 04 From: Rotterdam Member No.: 349 Using LabVIEW Since:1992 LV:8.5.1 ,8.2.1 ,7.1.1
|
Hello Khalid Ansari, Receiving email is done with the POP3 protocol (or some more advanced one). There authentification is always necessary since you can look into the mail box of a person. To send emails you are using an entirely different protocol called SMTP. SMTP is completely independant of POP3 and had traditionally no need for authentification before the sh*theads of spammers started to poisen email.I receive email with the labview. I connect the email server to receive the email, I make authentication and I introduce the password. Will it be that have authentication/password with server smtp? But with VI smtp of the to do that? thank you I'm not sure where you got the POP3 VIs though, maybe the Internet Toolkit or OpenG, because LabVIEW does NOT come with POP3 VIs out of the box. The LabVIEW email VIs implement the SMTP protocol but without support for authentification. But since you get error 62 I think it is likely that you don't even get the the point where authentification is required but rather that a firewall or something like that is dropping your connection immediately. This is: 1) A problem most likely entirely out of control of LabVIEW, eg. your network setup. 2) Something you will need to investigate by debugging into the LabVIEW VIs (single step mode, etc. etc.) 3) By going into the email subVIs you can also see what the server is answering if any and only with that detailed information is any change that someone else here can help you. Rolf Kalbermatter
|
||
|
|
|||
Feb 23 2006, 04:57 PM
Post
#11
|
|||
|
Active Member Posts: 16 Joined: 10-February 06 Member No.: 4102 LV:7.0
|
Hello rolfk,
Thank you for having answered. I to use the following example. Because it is that don't get to send the email? I already turned off firewall. Thank you
SMTP_email.llb ( 706.3K )
Number of downloads: 599
|
||
|
|
|||
Feb 25 2006, 12:20 PM
Post
#12
|
|||
|
<customize this text> Premium Member ![]() Posts: 1060 Joined: 9-April 04 From: Rotterdam Member No.: 349 Using LabVIEW Since:1992 LV:8.5.1 ,8.2.1 ,7.1.1
|
Hello rolfk, Thank you for having answered. I to use the following example. Because it is that don't get to send the email? I already turned off firewall. Thank you
SMTP_email.llb ( 706.3K )
Number of downloads: 599This code looks a little hairy and I have no interest in trying to research what it does exactly. Just use the SMTP VIs that come with LabVIEW under Communication->SMTP Email instead. Rolf Kalbermatter
|
||
|
|
|||
Feb 25 2006, 07:45 PM
Post
#13
|
|||
|
Active Member Posts: 16 Joined: 10-February 06 Member No.: 4102 LV:7.0
|
oi Rolf Kalbermatter,
I made the following example. I used them VI, continues to give a error. Don't I know the one what to do more??!! help, please
Attached File(s)
|
||
|
|
|||
Feb 26 2006, 07:49 AM
Post
#14
|
|||
|
<customize this text> Premium Member ![]() Posts: 1060 Joined: 9-April 04 From: Rotterdam Member No.: 349 Using LabVIEW Since:1992 LV:8.5.1 ,8.2.1 ,7.1.1
|
oi Rolf Kalbermatter, I made the following example. I used them VI, continues to give a error. Don't I know the one what to do more??!! help, please Are you now using the standard SMTP VIs that come with LabVIEW? What error do you get? In what low level VI (connection, when writing which command, when receiving after which commmand)? What LabVIEW version, which OS version, what email server,...... ? Rolf Kalbermatter
|
||
|
|
|||
Mar 3 2006, 01:12 AM
Post
#15
|
|
|
Active Member Posts: 16 Joined: 10-February 06 Member No.: 4102 LV:7.0
|
Hello,
Yes, I using the standard SMTP VIs that come with LabVIEW. I have the following error: " code : 56 source : TCP Open Connection in NI_SMTPEmail.lvlib:SMTP Email Open Session.vi:3->NI_SMTPEmail.lvlib:SMTP Email Send Message Charset.vi:2->NI_SMTPEmail.lvlib:SMTP Email Send Message.vi:1->testesend email.vi " what happens? Thank you |