LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Table from signal has no delimiters

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(1,174 Views)
Use a space as a delimiter rather than a tab

"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 5
(1,155 Views)

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

0 Kudos
Message 3 of 5
(1,150 Views)
Solution
Accepted by siebo92

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

 

Ajskrim_0-1639400278077.png

 

 

 

_______________________________________________________________

-Patrik
CLA || CTA
If it helps - Kudo it, if it answers - Mark As Solution
Message 4 of 5
(1,140 Views)

@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".

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 5
(1,116 Views)