08-27-2012 02:50 AM
Hello
I have Main VI that contain a cluster of 13 elements (string)
I want to connect this cluster as an input to a subVI. See Attachment
But then there is this string --> String Refnum error. Can anyone please help
Thanks
Solved! Go to Solution.
08-27-2012 03:28 AM - edited 08-27-2012 03:31 AM
In the subvi you have a cluster containing 13 references to strings,
and it's a different thing compared to the control you wire to it in the main vi.
I think you want instead to pass the reference to the whole cluster you have placed in the main vi.
08-27-2012 04:00 AM
Hello NightCrawler,
As Marco said, references and values are different, and you can not connect them to each other.
If you just want to read/write values of the elements of your cluster in a subVI, you may need to pass the reference of your cluster, and play with the property nodes related to it.
See the example attached ! 😉
Eric
Eric M. - Senior Software Engineer
Certified LabVIEW Architect - Certified LabVIEW Embedded Systems Developer - Certified LabWindows™/CVI Developer
Neosoft Technologies inc.
08-27-2012 04:12 AM
cross post in German LV forum...
08-27-2012 04:23 AM
Hello Eric
I cant open the attachment. I am having Lbaview 2011... Could you please repost it in 2011 format``??
Thanks
08-27-2012 04:29 AM
MarcoMauri...
But one question.... is it possible to make a cluster of references? I have strings in another part of the same VI. Nw when I have a lot of references together, Can i make a cluster of it to make the VI look small.???
08-27-2012 04:32 AM
08-27-2012 05:28 AM - edited 08-27-2012 05:29 AM
Hi!
If all you need is to update a lot of indicators you may consider using the reference to the cluster (and avoid using tons of references for single controls).
hope this helps,
Marco
08-31-2012 07:48 AM
Thank you guys!!
09-01-2012 03:58 AM
And unless the cluster contains tons of long strings and arrays and you branch the wire to 500 different places in your program, it would be even better to simply pass the entire cluster through the subVI instead and wire its output value back to the terminal or a local.
Value Property updates happen synchronously in the UI thread and are VERY slow. They never can win in performance from a more dataflow oriented wire diagram even if such a diagram may cause some data copies somewhere because of branched wires, but with a proper dataflow wiring you shouldn't get that problem either.