LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timestamp spreadsheet strings

I am making a DAQ application, and I want to add timestamps to the analog samples. I am reading from two Analog Inputs. When just reading one sample at a time, there is no problem, I get the desired result which looks like this:
4,522351 3,123546 15:12:35.250
4,562246 3,128452 15:12:35.865
But when I tell the 'read.vi' to read more than one sample, I get:
4,522351 3,123546
4,562246 3,128452
15:12:35.250
The problem isn't that the timestamp only appears once, that's not so bad, but the timestamp should be at the beginning, after the first samples, and not at the end after all the samples.
Any solutions?
Tanks.
0 Kudos
Message 1 of 3
(2,730 Views)
I found the solution myself, so for those who need it too:

the resulting string from 'array to spreadsheet string' is the input string for 'search and replace string', the 'search string' must be 'return'. Like this the first return in the spreadsheet string will be converted. Then, the 'replace string' is the output of a concatenated string: tab+timestamp+return.
This does it then.
0 Kudos
Message 2 of 3
(2,730 Views)
Hi aspoo, I am trying to get a time stamp as well but can't even get to record sub second you seem to have done it please tell me how I am recording 64 channels at ten times a second and would like to get it in the format

HH:MM:SS:MSMS CHN0 CHN1 CHN2 - - - -CHN63
0 Kudos
Message 3 of 3
(2,730 Views)