LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save data in columns with headers?

I'm trying to save 10 different types of data into individual columns with headers, but I can either get one giant column of data with the given header at the start of each data set (imbeded in the column) or I can get the headers in different columns, but the data all in one row. This seems like a simple problem, but for the life of me I can't figure it out--HELP!

I've attached my code...don't laugh, I think I've created a monster trying to figure this out. What I'm trying to get is one column with the header "Power (watts)" and then the power data in that column, one column with the header "angular acceleration (rad/s^2)" and then the angular acceleration data in that column, and so on...

Thanks!
0 Kudos
Message 1 of 5
(3,696 Views)

When saving data I prefer to save the header as a separate step first . If I understand your needs correctly the attached vi example shows how I would do it.

I am using LV 8 so if it does not work let me know what version you need.

 

 

0 Kudos
Message 2 of 5
(3,680 Views)

Hi

Take a look at this VI / Block diagram pic

Here, I am demonstrating how to write data to a file column wise along with relevant column headers

Hope this helps

Regards

Dev

Download All
0 Kudos
Message 3 of 5
(3,679 Views)

Just see how best you can incorporate this logic in your Program

Regards

Dev

0 Kudos
Message 4 of 5
(3,679 Views)
Thanks a ton--that fixed it for me!
0 Kudos
Message 5 of 5
(3,646 Views)