LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Numerical Classification

Solved!
Go to solution

Case 1 can be solved like this:

Yamaeda_0-1765275082623.png

 

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 11 of 19
(223 Views)

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)

 

altenbach_0-1765303453303.png

 

altenbach_1-1765303469069.png

 

0 Kudos
Message 12 of 19
(194 Views)

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

0 Kudos
Message 13 of 19
(174 Views)

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.

0 Kudos
Message 14 of 19
(161 Views)

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

0 Kudos
Message 15 of 19
(85 Views)

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.

0 Kudos
Message 16 of 19
(56 Views)

@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.

 

altenbach_0-1765558068783.png

 

 

(See below for a simpler version)

 

0 Kudos
Message 17 of 19
(45 Views)
Solution
Accepted by topic author mxarai

@altenbach wrote:
I am sure it could be simplified further.

OK, I simplified it a little bit over breakfast. Same result, but please test.

 

altenbach_1-1765565111422.png

 

 

Message 18 of 19
(32 Views)

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

0 Kudos
Message 19 of 19
(19 Views)