From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-23-2010 10:37 AM
02-23-2010 10:46 AM
tau at wayne wrote:
Hi people,
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.
Ben
02-23-2010 12:04 PM
02-23-2010 12:29 PM
Go back and read that error message again and pay attention to the part that sasy "1d array of clusters".
Ben
02-23-2010 01:24 PM
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?
02-23-2010 01:37 PM
Pull the cluster out of the array using a Index Array fucntion found on the array palette.
Ben
02-23-2010 03:25 PM
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?
02-23-2010 06:33 PM
Please give credit to Ben for this answer.
02-24-2010 09:55 AM
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.