12-09-2025 04:08 AM - edited 12-09-2025 04:11 AM
Case 1 can be solved like this:
12-09-2025 12:08 PM
Your expected grouping output file cannot be correct, because the first row contains duplicates (32, 56, 73).
Here's a quick draft solution that gives the same output (once we remove the duplicates in your grouping file and sort each row!)
As suggested, I uses a MAP where the key is the output row and the value is a SET of positive integers. The output rows are naturally sorted.
(Just a rough draft. I am sure it can be simplified! There could also be bugs)
12-09-2025 07:55 PM
Thank you.
It seems I can't open it in my LabVIEW 2018 environment.
Is there a way to open it in 2018?
Best regards,
mxarai
12-09-2025 11:38 PM - edited 12-09-2025 11:40 PM
No. SETs and MAPs were introduced in LabVIEW 2019. Rewriting it in traditional code would be tedious, but could be done.
See also my talk.
12-12-2025 01:34 AM
Everyone,
This task seems extremely difficult to code in LabVIEW 2018, so I've decided to give up and do it manually.
Thank you all for your cooperation up to this point.
Best regards,
mxarai
12-12-2025 09:55 AM - edited 12-12-2025 10:36 AM
You can replace the maps and sets with variant attributes as explained in my talk. Should be very quick.
personally, I would use an array of clusters where each element is a row.
12-12-2025 10:41 AM - edited 12-12-2025 12:49 PM
@altenbach wrote:personally, I would use an array of clusters where each element is a row.
Here's a quick draft that does not use anything fancy (maps, sets, variant attributes)
LabVIEW 2018). I am sure it could be simplified further.
(See below for a simpler version)
12-12-2025 12:47 PM
@altenbach wrote:
I am sure it could be simplified further.
OK, I simplified it a little bit over breakfast. Same result, but please test.
12-12-2025 07:46 PM
Hi altenbach;
This is excellent.
I was able to confirm the results I was hoping for.
Since I needed to verify this process multiple times, this was a huge help.
Thank you very much.
I appreciate it.
mxarai