LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

compare cluster that contains clusters

Solved!
Go to solution

Hi,

I want to compare two clusters (the clusters are type def and each cluster contain many clusters).

How can i compare them and return array or clusters of boolians for each "sub-cluster" in the original one?

(The compare elements mode also compares the controls inside each panel)

Thanks

0 Kudos
Message 1 of 10
(5,089 Views)

I guess I don't understand the question. The comparison will result in the same structure and you can unbundle the inner comparison result any way you want.

 

If you want more specific answers, please attach a simple example demonstrating your problem.

 

compclu.png

0 Kudos
Message 2 of 10
(5,080 Views)

For example, I am getting the whole settings as one cluster, and I want to check each sub-cluster for changes compared to the old settings (which means which instrument I should update.)

0 Kudos
Message 3 of 10
(5,050 Views)

Sounds like you need to right click on the Equals node and choose Comparison Mode > Compare Elements.

 

But the picture doesn't really show much at all...


GCentral
0 Kudos
Message 4 of 10
(5,045 Views)

@PokiBono5 wrote:

For example, I am getting the whole settings as one cluster, and I want to check each sub-cluster for changes compared to the old settings (which means which instrument I should update.)


Why would an image of a front panel explain the problem???

0 Kudos
Message 5 of 10
(5,040 Views)

This what i am getting:

(code-1, front panel result-2)

and I want to compare only the clusters (so get only 4 Boolean elements)

 

Thanks

Download All
0 Kudos
Message 6 of 10
(5,036 Views)

@PokiBono5 wrote:

This what i am getting:

(code-1, front panel result-2)


Can you explain what that even means?

0 Kudos
Message 7 of 10
(5,029 Views)
Solution
Accepted by topic author PokiBono5

@PokiBono5 wrote:

This what i am getting:

(code-1, front panel result-2)

and I want to compare only the clusters (so get only 4 Boolean elements)

 

Thanks


That is a day-dream.

 

Best you can do is check the aggregates and if not equal break out each sub-cluster and compare aggregates on each.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 10
(5,025 Views)

By unbundling each element and then comparing at the levels you care about, you can get what I think you're describing...

Example_VI.png


GCentral
0 Kudos
Message 9 of 10
(5,015 Views)

 
Updating Media

I just had the same problem for dynamic cluster length and found out that you can do it with OpenG's Cluster to Array of VData__ogtk.vi 

0 Kudos
Message 10 of 10
(3,561 Views)