11-18-2005 10:51 AM - edited 11-18-2005 10:51 AM
Message Edited by Azazel on 11-18-2005 10:52 AM
11-18-2005 10:57 AM
11-18-2005 10:59 AM
02-26-2010 05:12 PM
Hi-
How can I pass a cluster of any type and number of elements to a SubVI?
I tried using a reference to the cluster, but the SubVI only accepts references that have the same number of elements.
Is a polymorphic VI the only solution, or can I make it somehow work with references?
Thanks!
02-26-2010 06:14 PM
OK. So it seems like I put a filled cluster into the reference instead of an empty cluster.
This created a strict reference. Changing it to a non-strict reference made it work.
02-26-2010 06:22 PM
Dan10 wrote:OK. So it seems like I put a filled cluster into the reference instead of an empty cluster.
This created a strict reference. Changing it to a non-strict reference made it work.
02-26-2010 06:52 PM
In my first attempt, I created controls in the SubVI by right clk create reference and then change to Control. This created a strict reference.
In the second attempt, I create a Contr Refnum and a Cluster from the Modern subdirectory. I put the Cluster into the Refnum. This created a non-strict reference.
By defining the non-strict controls as the inputs of the SubVI the problem was solved.