08-07-2017 11:31 AM
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!
08-07-2017 12:16 PM
This is the VI and SubVI if it helps
08-07-2017 12:41 PM
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.
08-07-2017 12:43 PM - edited 08-07-2017 12:47 PM
Here is an old VI for sending email using Gmail servers.
I haven't used it in years, but it should still work...
08-07-2017 01:39 PM
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?
08-07-2017 03:52 PM
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
08-08-2017 09:12 AM
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
08-09-2017 09:53 AM
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.