03-20-2020 12:14 PM
Still no.
You just don't seem to comprehend what we tell you in messages. Go back and reread all the messages in this thread again.
No where did we tell you to connect the i terminal to the Index Array.
What happened to the counter in the shift register?
What happened to making a state machine? Instead you wire stuff into a shift register and never use the value from the left hand side.
I hate to discourage anyone, but you really don't seem to have a logical mind capable of doing programming.
03-20-2020 12:15 PM
NO. How does that match up to the state machine that we discussed earlier? Why have you still refused to bring those states out of your subvi into your main vi? Each of those frames in your subvi would represent a state in your state machine. You do not want a separate state for each position. Go to position is the same for each, with only the input differing. I outlined a basic state flow for you here . You may need other states (a wait state, for instance). This outline will work for 1 to infinity (well, maybe not quite infinity, but you get the point) number of positions.
03-21-2020 12:10 PM - edited 03-21-2020 12:31 PM
Hi
I am very sorry to insist but I have read your messages several times and I am trying hard. I really do not know if you understand what I want to do, because I still do not understand how to take a position of the array and then increase it ... I need to clarify that because otherwise I can not go ahead
Thank you
I understand this
03-21-2020 12:36 PM
Have you followed the directions from the messages? Have you taken advantage of the free training resources? You are not going to understand the comments when you don’t have a basic LabVIEW understanding. You have been told multiple times what to do, but you have failed to show any attempt to do what you were told,
For clarity sake I will repeat.
1. Make a state machine.
2. Outside the state machine make an array of your positions.
3. Add a shift register initialized to zero.
4. Wire the shift register through all states but 1. In that 1 state you will decide whether to increment your counter. If you increment were it through with a +1. Otherwise wire it through.
5. Have a state to stop if there are no more elements in your position array.
03-21-2020 12:46 PM
I attach the program
03-21-2020 03:58 PM
https://blog.jki.net/free-jki-state-machine-home-learning-next-two-weeks
Sign up while it lasts.
mcduff
03-21-2020 09:09 PM
(headbang)
03-22-2020 11:16 AM
Hi
The array is okey used like this?
03-22-2020 11:31 AM - edited 03-22-2020 11:31 AM
03-22-2020 11:32 AM
Hi,
If my position is bad, I will have to send it back to the correct position. To do this, I will have to take the position that the cylinder should have reached and subtract it from where it is. With this new position, I can send it back to the VI where I make the cylinder move to the indicated position. Should I do it like this? And for this I send the position obtained to a shift register so that I can use it whenever I want to do the subtraction?
Thank you