10-11-2018 06:49 AM
Hi, I'm new to labview. I have a string (Data1: A, Data2: B, Data3:C.......), I need to go through this string to fetch the data, regardless of the order. Example: look up Data2 and return only B. But I need to do this for a set of Data1 or Data2 and etc, my string will contain a lot of data.
Solved! Go to Solution.
10-11-2018 06:55 AM
10-11-2018 06:59 AM
Actually I tried several options that I found in the forum but none served me, my idea was this a search and a loop and with that go through the string and fetch the data that I need.
10-11-2018 07:03 AM
Hi Rafael,
my idea was this a search and a loop and with that go through the string and fetch the data that I need.
Then you should create a VI following that idea of yours.
Come back when you have specific questions!
(Like that "what is your problem and where are you stuck?")
10-11-2018 07:05 AM
If all your data is in one line (no new-line constant), you can transform string into array.
Then you can search throw 1st column and take correct element from 2nd one.
10-11-2018 07:43 AM
It did not work here. Labview 2012.
10-11-2018 07:48 AM
Of Course you can't place strings into "double" numbers
10-11-2018 08:05 AM
Perfect, now it worked. Now I need to scan this array and fetch only the data I need. Example: fetch the data B from the variable Data2.
10-11-2018 08:11 AM
@rafael.assis16 wrote:
Now I need to scan this array and fetch only the data I need.
Yes, you should scan array for "name" and select correct element from second col
10-11-2018 09:23 AM
Could you give me an idea how I can get the row and column and just show the data I need? Example: Show B of Dados2 (row1, column0) in a variable of type string.