02-10-2012 02:20 PM
if I initial x = 0.
I want to increase x++ to x=10, then I want to decrease x-- back to 0.
Solved! Go to Solution.
02-10-2012 03:10 PM
What is this for?
Do you know anything about loops or arrays?
Have you written any code yet?
02-10-2012 04:24 PM
I want to emulate the LED chase effect on LabVIEW.
I tried to use "case" but I have problem with "default".
Then, I tried to create 2 while loops, 1 for increment and 1 for decrement but i couldn't make the variables connect between two loops. Furthermore, it doesn't what i want.
02-10-2012 04:27 PM
Oh, althought I has been studying labVIEW not for a long time, I think i know how to use loops, arrays, clusters.
02-10-2012 04:27 PM
This has two ways of doing it. At top, the easy way. At bottom, the really easy way.
02-10-2012 04:50 PM
Here's one a bit more complex but it gives you more control over the limit of loops.
02-10-2012 05:01 PM
Surely we can make it prettier than that.
02-10-2012 05:11 PM
Thank you for super fast reply code.
I am new, so I am afraid that I will make you guys mad with my questions :D. Please bear with me.
But as I am trying to emulate the led chase effect, that mean the code has to be iterated forever, (except when pressing stop).
So, my question is: Is there a way to loop your codes forever, that means: the variables go back and forth between 0 and 9?
And, of course, I am trying to solve this problem, too.
02-10-2012 05:14 PM
Take any of these solutions and put it inside a loop.
If you want it to go forever, I'd use a while loop and set the condition to "continue if true" and use a constant false.
Can you give it a try and post what you come up with?
02-10-2012 05:14 PM