10-13-2012 03:19 PM
How to do this loop?
Thanks
10-13-2012 04:10 PM
Your VI has a password, thus we cannot see what you want to do and what loop you are talking about.
10-13-2012 04:42 PM
Yes, for that reason I want know how to do it.
10-13-2012 05:33 PM
@carlos55 wrote:
Yes, for that reason I want know how to do it.
What is "it"?
To replicate the operation of the attached VI, start with an initialized 2D boolean array in a shift register and replace one element at a time with a TRUE value. You can calculate the current position based on the iteration terminal and some simple geometry.
We won't do your homework. What have you tried so far?
If you get stuck, show us what you have it we might be able to point you in the right direction.
10-13-2012 05:33 PM
Maybe this attached file will get you started, it took me all of 12 minutes!
10-13-2012 06:23 PM - edited 10-13-2012 06:25 PM
@bmihura wrote:
Maybe this attached file will get you started, it took me all of 12 minutes!
The LED needs to move in a spiral, not diagonally across, so the solution would need little bit more code. 😉
Here's my version, you can even select the starting direction. 😄
(The password is pretty long...)
10-13-2012 06:41 PM
Drat, now I must one-up you altenbach! Pretend this is a LabVIEW VI and not a YouTube link:
http://www.youtube.com/watch?v=f1YNyQqbiF0
10-13-2012 07:09 PM
I do not want to do my homework, just needed help figuring out how to begin.
With what you said and I have an idea, I appreciate it.
And I apologize for my bad English, I only know Spanish.
greetings and thanks.
10-13-2012 08:43 PM
You could do it using a state machine like the attached VI.
You have posted this question twice. Please don't do that, it could waste peoples time.
Kind Regards
10-13-2012 10:01 PM
Thank you!
I was do the program, but I don´t want the 4 cases, I just want 2 cases; up and down, and that the enum be in the same fornt panel, but I can´t, can you help me?