Jump to content

How to name columns when writing data to a file


Recommended Posts

Posted

Hi all, I am inputting 2 signals into the "Write LabView Measurement File" subVI/control thing, and although the data saves correctly, there is no column heading for each set of y-values. How do I get it to name these? Thanks.

Posted

I was about to post the same question, except for Excel (or any spreadsheet) files. No matter how I wire things, I'm getting broken wires and "bad data type" errors.

Posted

For normal ascii data files you can write the column headers before you actually take the data by simply writing the headers as text to the file using the Write Characters to File function.

If you use the separator in that header file that you are using for the spreadsheet data and follow the header line with a CR/LF constant it will show up nicely at the top of your data file and be formatted like you want it to be in Excel as long as you append the file and do not write to a new file.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.