From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add labview data header

Solved!
Go to solution

Hi guys,

 

I am trying to add a header on my data files.

 

I will attach 2 pictures, the first one is how it is, the second one how I would like to be.

 

I am attaching the vi to see. 

 

Regards

0 Kudos
Message 1 of 3
(915 Views)
Solution
Accepted by topic author hugomeshg

Hi Hugo,

 

cleanup that huge block diagram!

And simplify it to NOT USE so many "value" property nodes, when you can use wires instead!

Learn to use better data structures, like arrays, to handle an amount of similar data items.

Learn to use (autoindexing) loop to repeat the same task again and again (like setting up those virtual channels).

Learn to setup several channels with just one DAQmxCreateVirtualChannel call…

 

See this:

There's a very simple way to create a spreadsheet string from an array…

 

(Btw. typically you use either TAB, comma, or semicolon to separate data in a spreadsheet file. Using spaces is rather uncommon.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(909 Views)

Hi GerdW,

 

Thank you for your help. It worked.

 

I studied labview 2 years ago and I stopped, and then I returned to use the labview last week. My level is begginer yet, thanks for your suggestion to help me to improve myself.

 

Best Regards 

0 Kudos
Message 3 of 3
(871 Views)