LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a known issue with emailing from case structures

Hi,

I am working on a quality control vi for data coming in as a text string. I need to be able to have the vi perform a check with the responce to the check (true or false) will cause different steps to then be performed. I was able to get the vi to perform 1 check and email out if the responce was false. When I tried to add a second check if the responce was true, the vi would run without any errors but would not email out or would only email out from the first check even if the first check passed and it was the second check that failed. This was all done without case structures. I then started using case structures with the true responce leading to other checks but the false responce leading to an email generation. For some reason even a simple one check with the email generation happening in the false case will not work. There are no errors or anything, it goes through the whole process correctly but will not send an email. Please help!!

Tim Koles
0 Kudos
Message 1 of 7
(2,988 Views)
Please attach your VI.
 
At leat for me it is impossible to make complete sense out of your description. 🙂
Message 2 of 7
(2,978 Views)
Hi,

Here is the vi and the sample text file it calls for. You will of course have to change the path name. Feel free to call me if you have any other questions. Thanks

Tim
410-326-7259
Download All
0 Kudos
Message 3 of 7
(2,972 Views)
You are setting an error condition and then that error is wired to the email send. When you have an error in, the function will not do anything except pass the error on. That's a major reason for using error in/error out connections - to skip code when an error exists. You don't have to use the general error handler to get a pop-up message. Especially since the error code is undefined. You could also clear the error before wiring it to the email function.
0 Kudos
Message 4 of 7
(2,958 Views)
Thanks,

So instead of wiring an error handler, I should be able to just place the email sending vi within the false case box and it will generate the email whenever the false case is run?

Tim
0 Kudos
Message 5 of 7
(2,950 Views)

Don't wire the error input to the e-mail VI.

Open the front panel of the "email send message.vi" and look at the code (it's all plain LabVIEW :)), you can see that everything is skipped IF the error input contains an error condition. This is by design.

0 Kudos
Message 6 of 7
(2,951 Views)
Thanks guys. I have used your advice and build the rest of the vi. Everything seems to be working now. I may post back if I get stuck again. I am working on another section that deals with some processes that I am not to familiar with.

Tim
0 Kudos
Message 7 of 7
(2,941 Views)