05-23-2018 01:46 PM
Hi all,
Would be grateful if there is someone can help me to delete the repeated elements in the 2D array as in the attached thread. Thanks in advance
Solved! Go to Solution.
05-23-2018 02:13 PM
@Al-rawachy wrote:
Hi all,
Would be grateful if there is someone can help me to delete the repeated elements in the 2D array as in the attached thread. Thanks in advance
Sorry, your question is not specific enough to give an answer.
What do you mean by "attached thread?" I looked at the attached VI and it has only 1D arrays in it, not 2D.
What do you mean by "repeated elements?" Is that any element, or matching rows, or matching columns? If you mean any element, then what do you mean by delete? Setting it to default for that datatype, or NaN?
05-23-2018 03:12 PM
Try this. The first element in any array cannot be duplicated by default.
05-23-2018 08:05 PM
05-24-2018 12:34 AM
As said before, if you have integers, change the data type of your input 1D array to I32.
If you use LabVIEW 2017, there is a VIM to do this for you in one step. If you have earlier version of LV, you can download the OpenG Arrays toolkit from VIPM, and use that:
05-24-2018 07:02 AM
Thank you guys for your help. it is really helpful
05-25-2018 07:05 AM
Hi Blokk,
+1 kudos from me for your really helpful post!
Could you maybe elaborate a bit more on where you found the VIM? I have LabVIEW 2017 Professional installed but could not find this VI. I only found the openG version on my machine.
Thank you a lot!
05-25-2018 07:22 AM
@ikaiser wrote:
Hi Blokk,
+1 kudos from me for your really helpful post!
Could you maybe elaborate a bit more on where you found the VIM? I have LabVIEW 2017 Professional installed but could not find this VI. I only found the openG version on my machine.
Thank you a lot!
Hmm, I might have used accidentally my LV2018 beta at home when posting to this thread. I do not have access right now to LV2018, but I guess this is the case. Anyway, LV2018 is now officially released and accessible, so I do not violate the NDA 🙂
06-04-2018 12:04 AM
@ikaiser wrote:
Hi Blokk,
+1 kudos from me for your really helpful post!
Could you maybe elaborate a bit more on where you found the VIM? I have LabVIEW 2017 Professional installed but could not find this VI. I only found the openG version on my machine.
Thank you a lot!
Just for the reference, the above mentioned vim is not an NI one, neither exists in LV2018. I totally forgot that some time before, I installed a package from LAVA, so that vim is from Hooovahh:
06-04-2018 02:01 AM
You can also use Variant attributes with the side effect of the output array also being sorted.
/Y