01-19-2021 04:52 AM
I'm a new member. Please help me compare two array.
EX:
Array1 Array2 ArrayResult
1.2 1.2
4.3 4.3
5.6 6.4 6.4
7.1 1.7 1.7
4.3 4.3
Thanks for help
Solved! Go to Solution.
01-19-2021 04:59 AM - edited 01-19-2021 05:00 AM
Hi kienle,
what have you tried?
Where are you stuck?
What are your comparison conditions?
@kienle99 wrote:
EX:
Array1 Array2 ArrayResult
1.2 1.2
4.3 4.3
5.6 6.4 6.4
7.1 1.7 1.7
4.3 4.3
Can you descibe in words how to compare and how to determine the ArrayResult?
Does the ArrayResult contain 5 elements or just 2 elements?
Do you know the difficulties of comparing floating point values?
"4.3" might not be the same as "4.3" once you display more significant digits!
01-19-2021 08:10 AM
Hi GredW,
I want ArrayResult contain 2 elements.
I don't know the difficulties of comparing floating point value.
I just want to pick values of array2 different values of array1 in database. Is that hard?
Please help me, Thank you.
01-19-2021 08:36 AM - edited 01-19-2021 09:15 AM
Did you consider the Not Equals function?
01-19-2021 09:02 AM
Hi RavensFan
Suddenly, but it repeat value of array1
01-19-2021 09:15 AM - edited 01-19-2021 09:16 AM
Well, you used greater than or equal to, not "not equal" to.
And if you turned on the conditional tunnel for the auto-indexing array going out, then the boolean will decide which values get put into the exiting array, and which get left out.
You won't even need the case structure inside!
I would recommend you learn more about LabVIEW from here. How to Learn LV
01-19-2021 10:28 AM
01-19-2021 11:59 AM - edited 01-19-2021 12:01 PM
@kienle99 wrote:
I just want to pick values of array2 different values of array1 in database. Is that hard?
The secret of getting the right answer is to ask the right question. So far the problem is ambiguous!
(Also note that it is LabVIEW, not LABView. Using the wrong lettercase typically identifies you as a beginner. 😉 It also helps if you tell us your LabVIEW version, because the solution to the second problem could use techniques (e.g. "Set") that are not available in older versions).
01-19-2021 09:45 PM
Thank you, Henrik_Volkers
I done with the coding. Thank you so much
01-19-2021 09:49 PM
Hi AltenBach
Yes. Thank you for the advice.