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
(921 Views)
Solution
Accepted by 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
(915 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
(877 Views)