LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error messages

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.

0 Kudos
Message 61 of 143
(1,402 Views)

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. 

0 Kudos
Message 62 of 143
(1,402 Views)

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

0 Kudos
Message 63 of 143
(1,366 Views)

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.

0 Kudos
Message 64 of 143
(1,350 Views)

I attach the program

0 Kudos
Message 65 of 143
(1,347 Views)
0 Kudos
Message 66 of 143
(1,330 Views)

(headbang)

Message 67 of 143
(1,320 Views)

Hi

 

The array is okey used like this?

0 Kudos
Message 68 of 143
(1,285 Views)

Hi 99,

 


@labview99 wrote:

The array is okey used like this?


No.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 69 of 143
(1,280 Views)

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

0 Kudos
Message 70 of 143
(1,278 Views)