Hi there.
Almost total newbie here. I've searched the forums around here for an
answer, and i can't find one that explicity states how to do exactly
what I need - but i apologise if what I am asking is trivial, or maybe if my description causes you to cringe at how little i understand of LabVIEW.
I was thrown headfirst into LabVIEW a few days back, having never used
it before and having only a very limited, basic knowledge of
programming from my earlier education, and have succeeded in doing some
minor alterations to a program written already, which in a nutshell
takes in data from a number of analogue voltage sensors, goes through
a data acquisition box, and is converted to a digital waveform format
in LabVIEW (v7.1) periodically.
From what I understand, the program runs using a sample rate and a
number of samples specified - in other words for a set time, where it
then outputs a timestamp/sensor voltage for each sensor in spreadsheet
form. I don't know the entire mechanism but my problem is with this
part - exporting it - which is the feature i have added.
What i need is a format for the timestamps in the spreadsheet which
begins at zero. Right now, i'm using the Export Waveform to Spreadsheet
VI, practically unchanged from its default code. I've put it in, i
believe, in the right place, and can run the program to obtain a file
readable in Excel, which shows the correct sensor voltages at the
correct increments. The changes i have made have been only to change
the "Waveform Time to Date String" module to omit the date, and give
the time to 6 decimal places.
The final thing i need to do is simply to somehow re-code how the time
stamps are written to the exported file. I understand that this works
using the parameters "t0" and "dt" which i presume are taken in by some
means from the system clock. Since i have chopped off the hours and the
date, my spreadsheet shows the minute past the hour, and then the
seconds, milliseconds etc. So for example if it was 14:38 at 56.949495
seconds, the header would show 38:56.949495 for that particular sensor
reading. What i need is the time to start when the program is run from
zero, but still output in this format.
I think it can be achieved by altering the "WDT Get Waveform Time Array" VI used in the "Export Waveform..." VI, but i don't know exactly how.
Is there a simple way to do this?
Cheers for your time,
Liam