01-15-2006 02:58 AM
01-15-2006 09:44 AM
01-16-2006 05:24 AM
Dear Lynn
Thanks for your reply. But that's not what I wanted. My program also can generate the half triangle, but problem is because of the while loop the generation continues and so the cycle moves with time. I wanted a constant single cycle which will not move with time. Just like the first full cycle. As you may notice even though the first full cycle is also inside the while loop, it is not moving with time. But the second oen does. I wanted to generate only one static cycle, not a moving one.
Please let me know about it
Rahul
01-16-2006 03:20 PM - edited 01-16-2006 03:20 PM
Rahul,
Your problem has nothing to do with nested while loops. In fact you can delete the two inner while loops without any change in functionality. You might also want to add a small wait statement inside the main loop.
If you don't want to have a continuous generation in the lower part, wire a TRUE to the "reset signal" input.
To select one of the two signals to display, use a case structure instead of all that merging, converting, and slicing. 🙂 (see image).

Message Edited by altenbach on 01-16-2006 01:22 PM