Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with inserting non-DBL element into array with the

Hi Support,

I think I have encountered a bug with the "Insert into array"-function. I use it to insert an element into an array of cluster elements.

I wire first the Input Array with my array of cluster elements. Then I wire Index. Now when I wire the New Element/Subarray, I get a bad wire. The same happens with the Output Array.

To see why this happens, I erase the bad wires, and right-click on the New Element/Subarray and choose Create Constant. Now LabVIEW creates and wires a DBL-constant to this input. Strange?!!...

Any hint?!!

Thanks,
Mats Eklund
0 Kudos
Message 1 of 2
(2,522 Views)
Hello Mats!

Since you are using clusters, the issue here is probably cluster element order. When you are using clusters as array elements, and you want to add a new array element, the new cluster's elements must be in the same order as the clusters in the existing array. You can check and change the order of cluster elements by right-clicking on the border of the cluster, and selecting "Reorder Controls in Cluster..."

Please take a look at my attached VI that demonstrates this issue. Also, for more information, check out the LabVIEW help under "clusters" and "modifying cluster order."

Hope this helps!

Liz Fausak
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,522 Views)