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
(262 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 LV2020 on Win8.1+cRIO
Message 2 of 3
(256 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
(218 Views)