LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Editing ASCII Files

Hello.

 

I am trying to write a VI that will allow the user to transform accelerometer data (ASCII) to a six-axis control file (ASCII) by specifying the position and orientation of each accelerometer with respect to the origin of the six-axis coordinate system and allowing the VI to do the rest.

 

My thought was to have the VI read the first few lines of the data file so that the user can scroll down past the header and specify which row contains the first set of data points, as well as identify to the VI which channels in the data are represented by which columns (time, accelerometer channels, etc.). The VI would then perform matrix operations to transform the data to a six-channel control scheme and write an edited file to the disk.

 

I am, however, having trouble figuring out how to display multiple rows of the data file so that the user can identify to the VI where the first row of data is. Additionally, I don't really know at this point how I am going to import and perform the matrix operations to the data so that the new file can be written. The files to be edited are very large, and I'm not sure if performing a matrix operation on the whole file at once would be efficient or wise.

 

I am sure that I am not the first person to attempt to do this or something similar. I have looked for examples which involve reading and writing ASCII files, but haven't come across any yet that actually involve reading and editing large amounts of data. Most of the examples I've seen are simply opening an ASCII file and overwriting it. If anyone could steer me in the direction of some helpful examples of how to do this, or discussion postings that have to do with applications such as this, it would be greatly appreciated.

0 Kudos
Message 1 of 2
(2,517 Views)

The hardest thing you will be faced with is developing a user interface that is meaningful to someone else besides you.  😉

 

I suggest that you write down all your requirements, just like any other project.  This will give you a better idea of what needs to be done - and how.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 2
(2,506 Views)