| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi I have a while loop with a cycle time of 100 sec, when I stop it I have to wait 100 sec untill the while loop stops. There is any manner to stop it immediatly? Thanks |
|
#2
| |||
| |||
| Change the implementation, so the wait is 1 ms and the functional code is only executed every 100 ms. |
|
#3
| |||
| |||
| Hi This is not clear for me... Can you explain better? I send my code.. untitled6.JPG: http://forums.ni.com/attachments/ni/.../untitled6.JPG |
|
#4
| |||
| |||
| Why are you using a property node for a control that is not accessed within the loop? And the conditional terminal is set to run if True. Your while loop doesn't make sense.. Can you post the entire code (attach your vi) and explain what you are trying to do? R |
|
#5
| |||
| |||
| Hi, enzo, You can do something like this: <img src="http://vi-lib.com/forForum/while100.PNG"> Andrey. |
|
#6
| |||
| |||
| I`m using aproperty node because I run more than one while loop at the same time and I want to stop them whith only one button. |
|
#7
| |||
| |||
| Is this what you are looking for?Message Edited by muks on 07-09-2008 07:46 AM whilestop.vi: http://forums.ni.com/attachments/ni/...1/whilestop.vi |
|
#8
| |||
| |||
| The while can have any delay in the above vi but it will stop the vi execution immediately the stop button is pressed. |
|
#9
| |||
| |||
| No I don`t want to stop all the VI but only the while loop. |
|
#10
| |||
| |||
| Please post your code so that we may suggest an appropriate solution. If you have multiple loops running in parallel, you may need one that has an event structure. We'll be able to determine that after seeing your code. R |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.