LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read from .txt file and output the content as two arrays

I am using the contoured move to control the x-y stage. The trajectory datas for x and y axis are generated using my interpolation program and it is stored in a .txt file as two columns. What I want to do is read .txt file and output the content of this file as two arrays. Is there anyone has any ideas? Thanks, the .txt file is attached.
0 Kudos
Message 1 of 2
(2,139 Views)
Hi Awen,

This is quite easy to do, you can merely use the "read from spreadsheet file" function to get a 2D array (2 columns and n rows) and then use the index array function to get whatever row/colums you want..

Hope the attached VI helps you 😉


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 2 of 2
(2,136 Views)