04-15-2024 11:50 AM
Hello Guys, i have a issue with my data
i have some data from a test in a 2D array, but i want to separate each information on a separate strings,
this action i want to made when the operator select the first data of the 2D array
i have this code what select all the data on a string but for me that way doesn't work
if someone can help me with this i will I would appreciate it.
Solved! Go to Solution.
04-15-2024 12:59 PM
@Ignacio564 wrote:
Hello Guys, i have a issue with my data
i have some data from a test in a 2D array, but i want to separate each information on a separate strings,
Hmm, I didn't catch this — how should your expected result look for the given data shown on the Front Panel above?
04-15-2024 01:13 PM - edited 04-15-2024 01:14 PM
Your question is not clear at all.
As a first step, place some typical data into the table and make the values default so we have something to play with.
Then create a string indicator filled with the result you expect so we can see what you actually want..
Then attach again. (Also consider "save for previous" (2020 or below) so more users can help you)
04-15-2024 01:18 PM
i want to separate the result in array for later convert to separate strings
but first i need to get the information in some array but i don't know how to get the
information in array what is selected with the first data of the 2D array
04-15-2024 01:34 PM
@Ignacio564 wrote:
i want to separate the result in array for later convert to separate strings
but first i need to get the information in some array but i don't know how to get the
information in array what is selected with the first data of the 2D array
It is still a complete mystery what you actually want.
For example if you want only the rows that contain a specific value in the first column, here's one possibility:
04-15-2024 01:34 PM
Ok again
here is the VI
i want to select the row information from the 2D array to a separate array, this action with the first data of the table.
right now i can get the all the data on only 1 string but that way it doesn't work for me
04-15-2024 01:37 PM
@Ignacio564 wrote:
Ok again
here is the VI
i want to select the row information from the 2D array to a separate array, this action with the first data of the table.
right now i can get the all the data on only 1 string but that way it doesn't work for me
Still not clear, let try trivial way, may be this is what you looking for:
04-15-2024 01:38 PM - edited 04-15-2024 01:48 PM
Please never ever attach a new VI with the same name as a VI posted earlier. That causes endless confusion!
You still have not said what kind of string you expect from the current default data.
Can there be more than one row with the same value in the first column? If there is only one, do you simply want a 1D array containing that row?
04-15-2024 01:46 PM
This is what i need!!
Sorry for the confusion and an apology if I was not very clear
Thank you I appreciate it
04-15-2024 01:47 PM - edited 04-15-2024 01:50 PM
@altenbach wrote:
Can there be more than one row with the same value in column 1? If there is only one, do you simply want a 1D array containing that row?
Here's one possibility. If there are multiple matches, you'll get the first one. As a bonus you'll get an empty 1D array if there is no match. (and if you want the last matching row, omit the conditional terminal)