12-13-2021 05:31 AM
Hello everyone,
first of all: I am completely new to labview. I am trying to get my program to save measured values in a *.txt file in the following format:
TIMESTAMP SIGNAL1 SIGNAL2 SIGNAL3
I got as far as concatenating the timestamps and the signal1, but when I now add a second signal, the values are not delimited from each other. For example, I now get an output file like this:
13.12.2021 10:49:32,324 0,4325460,867425
I would like to have it in the following format:
13.12.2021 10:49:32,324 0,432546 0,867425
I attached a picture of what my code currently looks like
Solved! Go to Solution.
12-13-2021 06:24 AM
12-13-2021 06:36 AM
Hello Jay,
thank you for your answer. Using a space instead of a tab doesnt solve my problem. Now the output file reads as follows:
13.12.2021 13:34:18,8486 0,03436811,112798
I need the last two columns to be seperated like this:
13.12.2021 13:34:18,8486 0,0343681 1,112798
12-13-2021 06:58 AM
Hi siebo92,
What is your "Build Table" subVI? It looks like Express VI with a blue background, but I couldn't find one in my LabVIEW (2020 SP1, 2021)?
for your question, "1D String Array to Delimited String" should do the job
https://labviewwiki.org/wiki/1D_String_Array_to_Delimited_String_function
12-13-2021 08:18 AM - edited 12-13-2021 08:21 AM
@siebo92 wrote:
Hello everyone,
first of all: I am completely new to labview. I am trying to get my program to save measured values in a *.txt file in the following format:
TIMESTAMP SIGNAL1 SIGNAL2 SIGNAL3
I got as far as concatenating the timestamps and the signal1, but when I now add a second signal, the values are not delimited from each other. For example, I now get an output file like this:
13.12.2021 10:49:32,324 0,4325460,867425
I would like to have it in the following format:
13.12.2021 10:49:32,324 0,432546 0,867425
I attached a picture of what my code currently looks like
If they are supposed to be tabs, they aren't any more. The tabs got transformed into spaces. You may have to actually split the string at specific locations.
Alternatively, you can use scan from string. Just make sure your decimal point is set as "comma".