LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build a Cluster

Solved!
Go to solution

Hi guys I want to try to build a cluster with the silver controls but I'm having some trouble. Can you help me?

I don't understand where is the error.

 

 

0 Kudos
Message 1 of 8
(4,223 Views)

upload in 2011

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 2 of 8
(4,220 Views)

So what is the error you are seeing?

How does your VI demonstrate it?

What is it that you want to have happen?


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 8
(4,218 Views)

The error I got is this one:

 

You have connected two cluster with different elements

These cannot be wired together because their data types (numeric, string, array, cluster, etc.) do not match. Show the Context Help window to see what data type is required.
Cluster , a 1-D array of
    double [64-bit real (~15 digit precision)],
conflicts with cluster Cluster->String, a string.

 

Attached there are the prints. The first immage referst to the cluster that works. In the second one you don't see the booleans because in the front panel I haven't added. The two cluster should be similar but seems not...

Download All
0 Kudos
Message 4 of 8
(4,213 Views)
Solution
Accepted by topic author inuyasha84

That errors are expected.

Wiring a newly bundled cluster with the order:

[0] numeric array

[1] numeric array

[2] string

[3] string

to an indicator cluster having another order:

[0] string

[1] string

[2] numeric array

[3] numeric array

will create errors of course!

 

Solution:

Either modify the order of your bundle function or re-order the controls in your "cluster" indicator.

 

Norbert

 

PS: Gerd added a third possible solution by creating a new indicator using the context menu and select Create>>Indicator for the output of the bundle function. Remove the original "cluster" indicator.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 5 of 8
(4,199 Views)

Hi inu,

 

as the error message on the broken wire says: the clusters are maybe similar but they are not the same type!

 

They have to be exactly the same type! Create a new cluster indicator from the output of the BundleCluster function...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 8
(4,198 Views)

Ok, I think I see your problem.

 

If you look at the cluster builder you will notice that in addition to the inputs on the left and the output on the right, there is also a middle terminal. If you wire a constant to that input it will define the data type for the cluster builder. You can then wire onto an input, or not.

 

If you don't wire an input, whatever came in on the center terminal for that value is passed straight on through to the output.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 7 of 8
(4,191 Views)

oh I see!!! silly me!

Thank you all guys.

0 Kudos
Message 8 of 8
(4,174 Views)