LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I send an email from cFieldPoint Application?

I am using LabVIEW 9.0 with Real Time module and cFP2200.  I created a RealTime project with continuous communitcation architecture with one loop.  I would like to send an email from the program if a power outage or sensor failure occurs.  I initially developed the program on my host computer as a regular LabVIEW project and I was using SMTP Email Send Message.vi.  In the RealTime Project, I recieve the following error

 

 

Error 53 occurred at an unidentified location

Possible reason(s):

LabVIEW:  Manager call not supported.

 

Is there another function that I can use to send mail from a real time application?

0 Kudos
Message 1 of 7
(3,151 Views)
0 Kudos
Message 2 of 7
(3,136 Views)

CarolK,

 

I know SMTP Email Send Message.vi works both from a cFP target and PC host with LV8.6 and LV8.2  Pretty sure I tested this specifically with a cFP2220 controller.  The only limitation I have found is that you can't email a file attachment.

 

This LV2009 document indicates that SMTP is still supported.

0 Kudos
Message 3 of 7
(3,121 Views)

Sorry to open an old thread...

 

Has there been any progress to sending an attached file via e-mail using a cfp?

 

Or is there a workaround?

 

Thanks,

 

Tim L.

iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
0 Kudos
Message 4 of 7
(2,870 Views)

What is the problem you are having? While muks pointed out a possible reason to the error 53, UDP is not part of SMTP and therfore can't be the problem here. I know I have used TCP/IP extensively on cRIO and cFP and never saw a problem like this with it. And the SMTP library only makes use of TCP nodes, which should be fully supported on either of these systems.

 

Did you do any debugging to see where the SMTP VIs would go wrong, or are you just stumbling over ANY problem and since you found this post you conclude it must be the SMTP functionality?

 

As to sending attachments, I believe there is a problem in the SMTP VI library which has to do with line endings between the SMTP header and the attachement. I'm not sure about the details exactly but I believe some SMTP servers are rather picky and expect exactly two CR LF sequences between the SMTP header and any attachment. There should be some info here in other posts about that. The bigger problem nowadays however is that the SMTP VI library does not support authentication and that is a rather tricky beast to tackle, which is why nobody took the effort upon him or herself to create an extended SMTP library and post it for all to use.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 5 of 7
(2,865 Views)

Rolf,

 

I am using the standard send mail attachment Labview .VI and it is failing on the text to utf .vi's.

 

The send simple e-mail works fine (This is my fallback position).

 

When I get time to go back, I will write my own Send Mail VI's and Bypass the UTF module (Error 53, Module not supported) and see if I can still run the Base modules. At the moment I can't risk the downtime if they don't work.

iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
0 Kudos
Message 6 of 7
(2,862 Views)

Well I see. That whole UTF business is of course nice and good for internationalization but unfortunately a pitta. TYou don't have access to an earlier LabVIEW version? Before somewhere around LabVIEW 8.5 or so this UTF functionality was not in the SMTP VI's. A pitta for our asian friends of course! Smiley Happy

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 7 of 7
(2,860 Views)