DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Can data be saved as CSV without Channel headers?

I am saving to CSV using:

Call DataFileSaveSel("<filename>" &"C:\NameOfFile.csv"&"</filename>","CSV","'myFiles/Angle', 'myFiles/lift'")

 

this works fine giving data as below

 

Angle lift
0   0
0.1   4.525e-005
0.2   0.000181
0.3   0.00040725
0.4   0.000724
0.5   0.00113125

 

For one application however, i can't use the file without going in and removing the headers ('Angle lift') first.

Is there a way to save the file without headers?

0 Kudos
Message 1 of 4
(3,778 Views)

Hi chrismcc,

 

this is possible. Please add a new parameter after filename as follows:

Call DataFileSaveSel("<filename>" &"C:\NameOfFile.csv"&"</filename><channelnames>no</channelnames>","CSV","'myFiles/Angle', 'myFiles/lift'")
Message 2 of 4
(3,770 Views)

Thanks usac that does the job.

Is there a listing of possible parameters anywhere?  I couldn't find one.

0 Kudos
Message 3 of 4
(3,760 Views)

Hi Chris,

 

This is what I have squirrelled away.  I don't know how comprehensive it is, and I don't think I've ever used "timeformat" for export, but hopefully all you really need is here.

 

"filename"         specifies the file that is to be read.
"delimiter"         is the character used to separate values. I think only tab, semi-colon, and comma are supported.
"decimalpoint"  indicates whether a "." or a "," is used to separate the integral part of the number from the fractional part.
"timeformat"     indicates what time format to expect in the document and how to write the time format back out again.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 4 of 4
(3,717 Views)