LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Emailing a report

I have a Waveform chart and Table(Express VI) in my VI that I would like to email out at set times(Just as an attachment or something). I didn't know what functions I should use for it, I've had problems with it in the past because they update every cycle. It's also a gmail account if that helps any

Thanks!

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

This is the VI and SubVI if it helps 

Download All
0 Kudos
Message 2 of 8
(3,884 Views)

You have not attached all the vi's, so can't comment. Have a look at this example: http://forums.ni.com/t5/Example-Program-Drafts/Sending-SMTP-Email-Attachments-from-LabVIEW/ta-p/3509...

I would avoid using express VIs when possible as they don't have the flexibility low level functions could offer. Also it has a wrapper around it which makes it slightly inefficient and larger.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 3 of 8
(3,873 Views)

Here is an old VI for sending email using Gmail servers.

 

I haven't used it in years, but it should still work...

 

 

========================
=== Engineer Ambiguously ===
========================
Message 4 of 8
(3,871 Views)

Everything works except I get Error 5 saying that the file is already open. Is there a close file function I could use on either the report or email part? or should I try solving it a different way?

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

If you are sending a File, the file must be closed.  You can either write (and send) multiple small files, or do a "Close/Send/Reopen/Goto End" operation on the file.

 

Bob Schor

Message 6 of 8
(3,837 Views)

My VI builds a new report every hour. Is there a way to wait until it builds that new report(closing the old one) and then send the previous hour(old one) in an email?

Just for reference the last part on my concatenate is the current time in \%m%d%y_%H format

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

Hi Amanda,

 

I'm not sure I quite understand what you are asking. It seems to me that you would like to send each report an hour after it has been created, upon creation of the next report. Is this correct?

 

If this is the case, you should just build logic to retrieve the previous report from memory by name when you create the new report. The easiest way to do this would probably be to subtract an hour from the new timestamp and use that to reopen the previous report.

 

As a sidenote, after looking at your attached VIs, I would highly recommend you look into the LabVIEW Training Courses provided by NI to help build your LabVIEW skills. It can be amazing how much more quickly and effectively you can develop LabVIEW applications after taking just a few days of training!

 

Best,

 

Duncan W.

Message 8 of 8
(3,772 Views)