LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send an email at a specific time with data

Solved!
Go to solution

Hello everyone, I hope I'm posting in the right forum. 

 

I'm very new to LabView but I'm picking up quicky. 

Where I work they have a very complicated VI, it does have an emailer setup that when a tests fualts for low current or overtemp the VI will send out an email as to what rig faulted and at what time and the fault. 
I've been tasked with having these VI's send out an "update" email every morning at 8am, or whatever time I determine. 

Basically the email will contain,

-part number

-current test duration time

-temp...etc

 

I'm assuming I can make a while loop around the entire VI? What do I use to initalize an email at a specific time? 

 

I'm sure this is a newbie question, so for that I apoligize! 

 

Thank you for all your help!

 

Ryan

 

0 Kudos
Message 1 of 4
(2,786 Views)

If you already have the functionality to send an email, bundle that up into a subVI.

 

Check the time.  If it's within a small threshold, send an email.

0 Kudos
Message 2 of 4
(2,780 Views)
Solution
Accepted by topic author ryan1776

you can generate a dynamic event or....send email.png

Message 3 of 4
(2,749 Views)

So for this dynmaic event I have a few questions. 

The VI I'm working with is not of my own creation and there is a lot of stuff going on with it. 

It seems like over the years they just keep adding to it without making it cleaner. It happens!

 

So there are 3 states (event structure) in this VI..

Start up-which bypasses alarms for 5 min then automatically goes to 

RUN- which obviously has all alarms active, 

and-Inspection mode. Which pauses everything. 

 

So I'm assuming I can drop this dynamic event into the RUN event of the VI, so when the Inspection mode is active for example, no emails will send.... basically. 

 

Is this correct? 

Would it need it's own while loop as you show to contain all of it? 

 

Thank you for your help and ideas. 

Ryan 

0 Kudos
Message 4 of 4
(2,699 Views)