05-16-2019 07:15 AM
Hi, I need to get an array of 2 dimensions below and put each variable inside an array. It would separate this array with all information in multiple arrays, with information only from the corresponding variable. In the end I need to save these array.
Array
CU:OK
CU:ERROR
FIBER_C:H
FIBER_D:H
HALOGEN:OFF
THAR:OFF
THAR_T:0
THAR_C:0.66
HALOGEN_C:-0.17
MOTORS_C:-0.12
Solved! Go to Solution.
05-16-2019 07:36 AM
Hi Rafael,
In the end I need to save these array.
To me this looks like a text with some linefeeds, but surely not like an "array"…
(You seem to use the colon as separator char, so use ArrayToSpreadsheetString/SpreadsheetStringToArray with colon!)
05-16-2019 07:42 AM
The array is like this. What I said before was just an example of the message I will receive via serial.
05-16-2019 07:49 AM
05-16-2019 08:06 AM
When the message is sent by the serial and transforms it into a 2-dimensional array, using the logic below. I need now to remove each variable from that and save it to another array.
05-16-2019 08:52 AM
What exactly do you mean by "remove each variable"? Show us an example of how you want your final array to look.
It sounds to me like you are just trying to index out a column.
05-16-2019 09:09 AM
It would stay that way. Each variable in an array with its results.
05-16-2019 09:30 AM
Hi Rafael,
why do you want to place each "variable" in a 2D array?
Please provide more information on how you need all those data!
(I could imagine using a key-value pair table, implemented using Variant attributes in a FGV.)
05-16-2019 11:16 AM
It was an idea, but it could be in a matrix too, the important thing is to separate the variables.
05-16-2019 12:03 PM
It appears that you already have your "variables" separated in your third message in this post. Just use the output of your separated "variables" and wire an Index Array to get your individual values/data.