LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with saving time stamps to "write to measurement file" excel format.

I am having problems saving the timestamps from my data to the write to measurement express vi for excel.  My incoming data is converted from dynamic data to a 1d array for processing, which I understand you lose the time stamp data. I added a new array for time stamps but this array then cannot be converted back to the dynamic data that is requested to go into the write to measurement file express vi.  I would prefer to leave the data in an array to be saved rather than converting it to a waveform so is there any way to add the time stamps from my 1d array back into the write to measurement file? 

0 Kudos
Message 1 of 7
(3,995 Views)
Why don't you want to convert the dynamic data to a waveform data type? This retains the time stamp and dt. You can easily use the Get Waveform function of you want the y array. The Write to Measurement function will accept the waveform data. Of you insist on using an Express function, you must accept its requirements.
0 Kudos
Message 2 of 7
(3,989 Views)

I am taking data from the analog inputs and monitoring it realtime while it is then being saved to an array of scalars that averages the dynamic data so I don't have as much data to deal with.  When converting to a waveform can you reduce it to essentially one value of the average input?  

0 Kudos
Message 3 of 7
(3,980 Views)
Yes.
0 Kudos
Message 4 of 7
(3,978 Views)

how do you go about that while keeping the data type waveform?  mean changes it to a double.and does not retain the time information.

0 Kudos
Message 5 of 7
(3,961 Views)

I set it up to build a waveform now but I am still having issues with it saving the correct timestamp.  The time just incriments for every second (as it did before converting the dynamic data to the waveform). I attached a screenshot.  

0 Kudos
Message 6 of 7
(3,940 Views)
I think I misunderstood what you were doing. You didn't attach the file you are saving but I think the issue is with the dt and not the timestamp. When you reduce the samples to the mean, you have a single sample and the dt is meaningless. You could use the tone out takes for one iteration of your loop as the dt.
0 Kudos
Message 7 of 7
(3,916 Views)