Tops Posted June 26, 2008 Report Posted June 26, 2008 Hi. Found this nice forum and it seems like a good place to be. I have a bit of troubble with implement a time delay between cases. Its probably easy but i need som help on the way. I simplify this to a vi with 3 cases, A B and C. Start in case A, wait 4s, move on to Case B, stay 4s move on to C, stay 4s and staro over. I works the first time, but after staring over it get stuck in B. It seems fine in highlight. Comments? Quote
FLAnatic Posted June 26, 2008 Report Posted June 26, 2008 QUOTE (Tops @ Jun 25 2008, 09:36 AM) Hi. Found this nice forum and it seems like a good place to be.I have a bit of troubble with implement a time delay between cases. Its probably easy but i need som help on the way. I simplify this to a vi with 3 cases, A B and C. Start in case A, wait 4s, move on to Case B, stay 4s move on to C, stay 4s and staro over. I works the first time, but after staring over it get stuck in B. It seems fine in highlight. Comments? What is happening is that Each "elapsed time" resets and starts timing right away. After 4 seconds have passed at B, 4 seconds have also passed at C and A, so it cycles through those states instantly after the first time through, and then sits at B while the 4 seconds elapses again. The display looks like its sitting at B but it just cycling through A and C faster than you can see, which is why it looks like its operating normally when in debug mode. You need to reset the timer the first time you enter a new state. Here is a way of doing it. http://lavag.org/old_files/post-11511-1214407165.vi'>Download File:post-11511-1214407165.vi Quote
Tops Posted June 27, 2008 Author Report Posted June 27, 2008 Hi. Thanx for the solution, I wasn't sure if the timer funktion. All tre runs at all time? I thought maby the fisrst start and it wont start over untill next time enering that case. Another dumb question I try find, how to enter text in the wiring? Ive done in once but cant find it again... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.