tau at wayne wrote:
I am trying to make an array of clusters , send them to a function ( i coded the subvi myself) and then have another array of clusters display the results.
The problem is that is giving me cable error saying that I have connected two terminals of different type. The source is a cluster of 4 elements and the sink is a cluster of 4 elements.
Should it just work?
I tried something simpler like an array of cluster of boolean switch and an array of cluster of led and it worked fine. Why this one is not woking and what can i do to fix the error?
A side question.
In order to make a subvi you select the code and from EDIT menu you choose Create VI. whats the shortcut to put the code back instead of subvi icon?
Thanks in advance.
Last part first... ctrl-z is un-do and will work until you save. After that you will have to cut-n-paste or resort to a backup.
If the cluster definitions are not compatible you'll get a broken wire. Float over the wire with your wiring tools selected and use your help window to see what is in both wires.
Images of your code may help us help you.
Go back and read that error message again and pay attention to the part that sasy "1d array of clusters".
You are right. It skiped from my mind when I typed it in here. It couldnt be copy pasted.
And what exactly am i supposed to do with that?
How can I pass an array of clusters to a function and have it do what it is supposed to do?
Pull the cluster out of the array using a Index Array fucntion found on the array palette.
I tried that function, and almost all others in array palete. The subvi seems to not like the array stuff. I still would get the same error, :"trying to connect 1D array to a cluster of 4 elements".
Could you show how you did it?
Please give credit to Ben for this answer.
For some reason it didnt work, however I made it work with index array and a loop. I like more the version that you guys said though. Thanks.
Could someone tell me why the cluster that has the graph isnt accepted in the array? Thanks again.