gkonstan wrote in message <8lp1cp$sfr$1@foo.grnet.gr>...
>Hi all,
>I want to write a file with data acquired from analogue input and in first
>column having date/time/secs of the measurement.
>I have problem connecting the date string with the array of measurements.
>any help will be great!
>thank you.
>
>
Arrays should contain data of the same type - you can't stick a string in an
array of double precisions.
It depends on what you want to do with the file after you've created it. If
you will be reading the file back into Labview, and you need it in 'number'
format (for graphs or something), you could use the 'get time/date in
seconds' function (which returns a huge number representing the number of
seconds elapsed since the year 1066, or something like that). You could
put
this number in your first column and then 'index array' it out when you read
the file back. You could then convert it to a time/date string if you need
to display it
Alternatively you could convert your data array to a spreadsheet string,
then concatenate your time/date string (plus a Tab) to the start of the data
string. You could either convert the resulting spreadsheet string back to an
array of strings, then index to form a 2D array of strings for your file; or
you could concatenate all the spreadsheet strings together and form a tab
delimited txt file.