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.
what have you tried and where are you stuck?
What about SearchString function? What about a loop to repeat the search?
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.
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?")
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.
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.
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.