LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

once I have sent an email I cant switch my case structure back to false

This may be a stupid question because nobody else seems to have had a problem with it, so sorry if this is the case.

Using the email Vi example provided with Labview, in a case structure, when the case structure goes true, it stays true as soon as the email vi is running, even after it has sent the email.

Is there any way to stop it or does it need a specific timeout period?
My very simple example is provided.

Thanks for any help

Alexi
0 Kudos
Message 1 of 3
(2,586 Views)
I'm not sure what your exact problem is. If you set the front panel Boolean false and run the VI, the false case is executed and the VI stops. If you then set the control to true, the true case executes and then the VI stops. If you intead to use this as a subVI, I would think that this is the intended behavior. It would be up to the calling VI to change the true/false value being passed. If you just want to test the functionality of your code and do a Run Continuously, then you could temporarily set the mechanical of the control to Latch When Released so that the control automatically returns to the false state after having it's value read.
0 Kudos
Message 2 of 3
(2,586 Views)
alexi wrote:

> This may be a stupid question because nobody else seems to have had a
> problem with it, so sorry if this is the case.
>
> Using the email Vi example provided with Labview, in a case structure,
> when the case structure goes true, it stays true as soon as the email
> vi is running, even after it has sent the email.
>
> Is there any way to stop it or does it need a specific timeout period?
> My very simple example is provided.

Are you sure hotmail.com has an SMTP server running? I really doubt
that. Or even if it does you may not be able to contact it, as most ISP
block outgoing port 25 on their network to reduce problems with virus
hyjacked boxens spamming the internet. Don't blame him, it is a very
sensitive thing to do.

If one of these p
roblems occurs the Open TCP Connection function will
timeout after 60 seconds and return with an error 56, network timeout.

You will probably have to use the SMTP server of your ISP to send the
messages to and this server will further send it to the correct receiver
even if that one is on hotmail.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 3 of 3
(2,586 Views)