LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to stop timeout event

hi,
Inside a while loop i've placed one timeoout event with other button click event, but after stopping the while loop the time out event didn't stop.. how to stop that event,
Suggestions pls??
 
Thanks and Regards
Jagan
0 Kudos
Message 1 of 10
(4,684 Views)
Hey,
If I well understood your problem, you just have to create an event "stop, changed value", and link the stop button to the stop of your while loop. ( ensure that your stop command is INSIDE the event "stop, changed value")
Let me know if you understand what I mean, and if it solves your problem,
best regards,
V-F
0 Kudos
Message 2 of 10
(4,677 Views)
Can you post your code?

Do you have two seperate event structures? or just one? You only need one from what it sounds like.
Also the default timeout for an event structure is -1, meaning never.

If you have one event structure with 2 cases, make sure all your event cases have the buttons that corrospond to them. Like ramses said, this helps with certain button reading properties for LabVIEW
0 Kudos
Message 3 of 10
(4,667 Views)
Without any code I can think of 10 reasons (at the very least).
So please post (a screenshot of) your code.

Ton

To create images of a part of code you could use the Code Capture Tool it is great for this purpose, you select the part you want to capture, start the tool (Tools->Code Capture Tool), review your setting (FP-none, BD-selected, Clipboard-FileName), finish the capture.
Then you switch over to your internet browser, in the file dialog you past the file name from the clipboard and the file is attached.
To download

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 10
(4,661 Views)

hi steven

im having only one event structure.. see within a while loop im having the event structure. im having three cases, one is time out event having the time out of value '0'. that is it never wait for other to event occur. if i click other other event after running that time out event is running. in one case im stoping the while loop with a boolean. but after giving the true value to the while loop the time out event is continously running. tell me how an i stop the time out event??

Thanks and regards,

Jagan

0 Kudos
Message 5 of 10
(4,618 Views)
Hi Jagan,
did you create an event for your stop button? You need one.
Can you upload your code or a picture of it?

Mike

Message Edited by MikeS81 on 06-15-2008 09:06 AM
0 Kudos
Message 6 of 10
(4,615 Views)


2716jag wrote:
im having only one event structure.. see within a while loop im having the event structure. im having three cases, one is time out event having the time out of value '0'. that is it never wait for other to event occur. if i click other other event after running that time out event is running. in one case im stoping the while loop with a boolean. but after giving the true value to the while loop the time out event is continously running. tell me how an i stop the time out event??
You should really show us your code! We cannot troubleshoot vague descriptions. Attach your VI or at least attach a picture of the code.
 
Have you tried running in execution highlighting mode?
 
Some guesses:
  • Are you possibly running the VI in "continuous run" mode? That would restart the code after it finishes. 
  • Is your stop button outside the loop, but wired to the stop terminal across the loop boundary?
 
 


Message Edited by altenbach on 06-15-2008 01:48 AM
0 Kudos
Message 7 of 10
(4,608 Views)


2716jag wrote:
 im having three cases, one is time out event having the time out of value '0'.

That has no meaning !
0 Kudos
Message 8 of 10
(4,607 Views)
Its working fine.. i just stop the while loop out side the event case, after putting as event the problem solved.
Is there any option to provide asynchronization between lab view app and dll function through call library node fn
Thanks
Jagan
0 Kudos
Message 9 of 10
(4,500 Views)



2716jag wrote:
Is there any option to provide asynchronization between lab view app and dll function through call library node fn

(Is this still in any way related to the earlier discussion or is this a new problem? If it is a new problem, you should start a new thread!)
 
I also don't understand what you mean. Anything In LabVIEW that has no direct data dependency is asynchronous. I think you need at least five more sentences and even maybe an attached VI or image to explain what you want to do and what you need. We cannot read minds!


Message Edited by altenbach on 06-28-2008 11:33 AM
0 Kudos
Message 10 of 10
(4,496 Views)