LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

concatenating strings

Hi,
I'm having a lot of problems concatenating my time stamp with the data collected from the Polhemus Fastrak. Polhemus gives me 7 elements, and The time stamp would be the eigth. After concatenate the probe shows that all elements are in the string. After the string goes through the smaller FOR LOOP it loses teh TIME STAMP!?!? Could you look at the bit of program I have attached and see if I've done anything incorrectly? I would greatly appreciate your help!
Thanks,
Ivanka
0 Kudos
Message 1 of 2
(2,536 Views)
The problem is the \r\n at the end of the first string. If you want to use "Fract/Exp String to Number" directly, you would need to strip these out and add at leat one \s instead before concatenating.

Easier would be to use "Scan strings for tokens" first as in the attached code fragment image. The default delimiters here are \s,\t,\r,\n and empty tokens are skipped.

(Of course you could also get only the seven numbers of the original string, convert the time separately, and append it to the DBL array after the loop.)
0 Kudos
Message 2 of 2
(2,536 Views)