Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use a table to control a 3 axis move?

Currently I have 3 axis motion VI where values are calculated using the formula node. These value are then converted to motor steps (Screen shot attached).  (Please ignore my broken wires and unwired nodes). Then an array is built and the motor steps go on thier merry way.

 

I want to replace the formula node with three colums and 60 rows of values (either in some type of table or array). The original values will be created in Excel then "plopped" into the table/array. 

 

 

 

Thanks,

 

Bill

 

 

  

  

0 Kudos
Message 1 of 3
(3,199 Views)

Hi Bill,

 

A 2D array sounds perfect for your needs of using 3 columns with 60 rows. This link has information on how to create arrays.  As for importing points from an Excel file, there is an example called Read from Text file.vi  that displays how to read from a file. Just be sure to save your excel as a text file.

Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(3,185 Views)
Thanks for the help, I'm on the right path now.
0 Kudos
Message 3 of 3
(3,165 Views)