LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Actions In Labview

      Hello, I'm currently setting up a temperature monitor and I can't figure out how to get labview to send certain commands to it. I already have it connected to labview, and I can read  its temperature in Labview. I can also send certain strings that will reset the monitor, disable a built in alarm, change the reading from C to F (and vise-versa), etc.. However, these strings are limited and sometimes have no noticable effect or simply don't work.

    The monitor is one of these, and it connects to the RS232 (serial) port. I downloaded the correct labview drivers for the monitor and, after tweaking a few things, was able to get a
successful temperature reading (in labview). It was at this point that I also became able to send a few commands to the monitor that had noticable effects.

    What I need to do now is get labview to send an e-mail out if the monitor reads below or above a certain temperature. I am very new to labview, so I don't know if what I want to do is even possible, although I have a few ideas that could work. For instance, if I could get labview to run, say, a batch file whenever the monitor reads a certain temp then that might work. I don't know how I could get labview to do that, though (or even if I could).

    Any ideas, questions, or comments will be helpful; and detailed explanations are greatly welcomed.

   
0 Kudos
Message 1 of 5
(2,973 Views)
There are prebuilt VI's that send emails. If they are installed, they are located at: Data Communication/Protocols/SMTP email.

These are included in all but the base LabView package.
-John Sullivan
Problem Solver
0 Kudos
Message 2 of 5
(2,949 Views)
There is also a good (free!) ActiveX control from a company called Ostrosoft that does email. It is theoretically possible to write SMTP drivers in LV - and in pre-spam-filter days it was even practical. The problem is that today you will spend days trying to figure out how to get emails past corporate spam filters that are looking for "malformed" email headers - which is to say any message that doesn't match its arbitrary set of rules.

If this looks interesting check out this thread. I posted drivers for the Ostrosoft control.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 5
(2,925 Views)
You can also try the OpenG SMTP library. I had posted a corrected version in this thread.
0 Kudos
Message 4 of 5
(2,904 Views)
Wow, that was a huge help. Now all I have to do is figure out how to get that working with the instrument 🙂

The corporate spam filters probably won't be a problem because these e-mails will be sent only through one, secure network.
Ummm....yeah. If I have anymore questions I'll come here. Thanks everyone.
0 Kudos
Message 5 of 5
(2,898 Views)