05-21-2025 02:37 AM
Hello everyone,
I’d like to know if it’s possible to separate words from numbers in a string.
For example, my string is: "CH0: float, CH1: float, CH2: float"
. I’d like to extract the float values in order to plot them in different charts.
Thanks in advance to anyone who takes the time to look into this !
To provide more context, my VI acts as a TCP server that reads messages sent by the client, which are of the format described above.
Solved! Go to Solution.
05-21-2025 03:02 AM - edited 05-21-2025 03:03 AM
Hi Quinon,
@Ouinon wrote:
I’d like to know if it’s possible to separate words from numbers in a string.
For example, my string is:"CH0: float, CH1: float, CH2: float"
. I’d like to extract the float values in order to plot them in different charts.
Yes, it's possible.
What have you tried and where are you stuck?
05-21-2025 10:35 AM - edited 05-21-2025 10:36 AM
@Ouinon wrote:For example, my string is:
"CH0: float, CH1: float, CH2: float"
.
the only "numeric" in your example string are 0, 1, and 2.
If the "float" in you string are numbers, and the "trimmings" are always the same, all you needs is the following:
05-22-2025 02:35 AM