Should be trivial. When you acquire the data, I assume you are calling a
function that returns a 1D array which will eventually be a single row of
your spreadsheet file. Simply modify the DAQ function so that it contains
the timestamp in the first array element, which will then give you time as
the first column.
To get the time stamp, look in the "Time&Dialog" palette (under LV5, which
is what I presently have open here). There are various functions in there
you can use. In the simplest case, your program writes the data to disk and
does no further numeric manipulation (i.e. renormalisation, time averaging)
and so, instead of the DAQ function returning a numeric array, you can
return a string array with the first element a human-readable date-time
string. If you ne
ed the array to be in the form of numerics, return the
numeric value obtained from the function "Get date-time in seconds". Note
that if using the first option, you can use the "Format date-time string"
function and you do not need to explicitly wire the current seconds count to
it, since it defaults to "now".
If you want a more detailed response you need to ask a more detailed
question
Joel wrote in message
news:3a3eb78c@newsgroups.ni.com...
>
> I have developed a VI that acquires data and at regular intervals writes
the
> data to a spreadsheet. I would like to have the date and time in the
spreadsheet
> also and am having some problem getting there from here.
>
> Can anyone help?