LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2-D array indexing

Solved!
Go to solution

So, I'm having trouble getting this simple 2-D array vi to work the the way I think it should. The vi is taken from a larger one that I'm writing to provide motion control signals to a 3-axis stepper motor position stage. In the vi, the data being written to the array element in the for loop is to be the sensed positon value from one of the stepper motors.

 

How this vi is working is that upon exiting the for loop, only the final element in row 0 has been updated, as opposed to each element in row zero, which is what I'm after.

 

What am I doing wrong?

0 Kudos
Message 1 of 5
(3,065 Views)

You need to replace the tunnels with a shift register. 

 

Lynn 

0 Kudos
Message 2 of 5
(3,060 Views)
 
Message Edited by Root Canal on 10-16-2008 10:41 AM
Message Edited by Root Canal on 10-16-2008 10:42 AM

global variables make robots angry


Download All
0 Kudos
Message 3 of 5
(3,056 Views)
Solution
Accepted by topic author datalog
Ahh right. I've just gone and modified my full stepper motor vi with shift registers and verified that this is the way to go. Thanks for sorting that one out. I honestly would not have thought that this was the change that was needed.
0 Kudos
Message 4 of 5
(3,050 Views)

Just for your reference, here's a quote from this post:

 

  • Usually you will mark a reply from another user as a solution - only mark your own reply if you have provided the solution to your question.

 

The post above does not contain a "solution", so it should not be marked as such. 🙂

Message 5 of 5
(3,021 Views)