12-27-2023 12:04 PM - edited 12-27-2023 12:45 PM
Good morning. I would need to take the individual float values, inserted between the square brackets and save them in arrays or even in separate indicators for each value. I tried a scan from string, but I can't figure out how to make it work properly. Attached is a VI, run with Labview2016, where a series of values are listed in square brackets. Could you give me some help. Thank you Francis
12-27-2023 01:09 PM - edited 12-27-2023 01:11 PM
Here is my take on the solution,
[Edit] Even simpler
VI attached in v16.0
12-27-2023 03:08 PM
Thanks for your help. In reality the values contained in the square brackets have the decimal point, not the decimal point. This example works if we have, for example, 5.456 and not 5.456
12-27-2023 03:15 PM
I have fix it in attachment.
12-27-2023 04:06 PM
@ciccio25 wrote:
I have fix it in attachment.
You have to explicitly call out the decimal separator in the format string only if system default in different from the separator used in your string. Depending on the source of this string and the computer this code runs on, it should be handled.
Are you sure that the string will always use dot as decimal separator?
12-28-2023 08:53 AM
HI.
Yes i'm sure, the system will use only decimal poit.
I use Labview on Debian 10 distribution.
More Thanks for support.
12-30-2023 10:33 AM
If your question was answered, please mark appropriate post as answer.