LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cluster Variant not compatible in Type Def

Solved!
Go to solution
I get an error when trying to Write To Index 20, 21, 22, 23, 24, 27 but no error when Write To Index 19, 25, 26, 28, 29. The error I get refers to the cluster variant data type not being compatible. Any ideas regarding a fix?
Download All
0 Kudos
Message 1 of 4
(2,753 Views)

Check your indexing.  It looks like some of the indices you've picked are for you boolean controls rather than your numeric controls.

 

If you put a read of the variant value before you write to it and create an indicator on that, you'll see it returns FALSE (a boolean) rather than a number.

0 Kudos
Message 2 of 4
(2,739 Views)
But the indices appear to be numbered correctly in the cluster so why are they showing as booleans rather than numerics (i.e. the problematic indices represent numerics in the type def).
0 Kudos
Message 3 of 4
(2,710 Views)
Solution
Accepted by topic author Murray@Yahoo

Instead of writing to the property node, change it to read and check out the variant output for the indices. Probably that will help you. 🙂 eg. index 20 the output is false.

 

I apologize for mentioning the same thing as Ravens. Essentially you have overlapped the numeric control and a boolean button (the text string). So the ordering is confusing when you look at the type def. What you need to do is, separate all the overlapped controls, number them (reorder them) according to your need, and then redesign the structure (type def).

 

Message Edited by NitinD on 23-03-2010 06:29 PM
Message Edited by NitinD on 23-03-2010 06:30 PM
0 Kudos
Message 4 of 4
(2,703 Views)