10-03-2012 03:27 PM
Still new to labview and learning - but having difficulty labeling the heading of the columns when writing to text file. I am trying to seperate 13 columns of text and tried a few solutions I have found on the boards, but not having any luck. All help is greatly appreciated.
I am also having problems where I have to delete the root directory address (C:/) before running the VI otherwise I get an error.
10-03-2012 06:26 PM
Without the datafile info.vi we cannot tell what you are writing to the header.
Lynn
10-04-2012 08:18 AM
Agreed, we need to see the datafile info VI to help you out with your headers.
For clarification, where in your program do you need to delete the root directory address? What error do you get?
10-04-2012 08:30 AM
Here is the file.
10-04-2012 08:56 AM - edited 10-04-2012 08:57 AM
It looks to me that all you need to do is create a string that is a tab delimited list of your headers and write it to the file. Do this after the initial header/metadata is written. This process is just like where you are formating the data and writing to the file.
Now with your other probelm, what happens when you don't delete the file beforehand (specifically, what error)?
10-04-2012 10:36 AM - edited 10-04-2012 10:47 AM
now what is your problem...format of the file? what is it that you want when you say headers? can you post a sample text file of what you want it to look like...this is your code and what it outputs, also put a wait(ms) function in your while loop (your using 100% of your cpu).