Please forgive me if this is a newbie question, but I can't seem to find an answer.
In a nutshell, I have an array (constant) of strings and a cluster of booleans. I want to search the name of each boolean in the cluster for a match to a string in the array and perform an action for each match. Say I want to turn on all booleans that match.
The problem is that the booleans are bound by datasocket - to OPC server to PLC. So when I add a boolean to the cluster, the data binding is dropped. Attempts to reassign data binding are unsuccessful. If I move the control outside the cluster and reassign data binding, it works. There are a fair number of booleans so I want to avoid wiring them one by one.
I am using LabVIEW 8.6 and there is a known bug similar to this for arrays of fixed size. However I don't totally understand the solution and how I would apply it to a cluster: "Uncheck autopreallocate arrays and strings in the VI properties execution category for all VIs not intended to run on an FPGA." There is no listing for clusters. Could I be doing something wrong? Should I be using shared variables instead of data binding?
3OLE2573
Return | DataSocket and Fixed Size Array Do Not Work You cannot use front panel DataSocket data binding with fixed-sized arrays.
Workaround: Uncheck autopreallocate arrays and strings in the VI properties execution category for all VIs not intended to run on an FPGA. |
Message Edited by Katelyn on 08-18-2009 12:14 PM