09-18-2013 04:04 AM
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.
Solved! Go to Solution.
09-18-2013 04:06 AM
upload in 2011
09-18-2013 04:09 AM
So what is the error you are seeing?
How does your VI demonstrate it?
What is it that you want to have happen?
09-18-2013 04:16 AM
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...
09-18-2013 04:22 AM - edited 09-18-2013 04:24 AM
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.
09-18-2013 04:22 AM
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...
09-18-2013 04:26 AM
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...
09-18-2013 04:52 AM
oh I see!!! silly me!
Thank you all guys.