06-20-2009 06:56 PM
Hi,
Could you tell me if there is a way to add a introductory information, such as Title, Date and Location (see below) in exported csv files (separately from the data itself)?
For example, I would like to create data format of:
Title,
Date,
Location,
Time, Speed, Temp, Vibration, ... etc
Data,Data,Data,Data,.....
Kind regards
HiroE
06-22-2009 11:54 AM
H HiroE,
I am attaching an example program that does this. The standard "CSV" DataPlugin shipping with DIAdem exports tab delimited ASCII files with a *.csv extension. If you really want the delimiter to be "," or ";" then you need to add the following parametrization:
FilePath = "C:\Test Commas.csv"
Delimiter = "," ' vbTAB
FileParameters = FileParameters & "<filename>" & FilePath & "</filename>"
FileParameters = FileParameters & "<delimiter>" & Delimiter & "</delimiter>"
Call DataFileSaveSel(FileParameters, "CSV", SelChStr)
Brad Turpin
DIAdem Product Support Engineer
National Instruments
06-22-2009 02:39 PM
Thanks Brad,
I will try out your recomendation.
Regards
Hiro