07-03-2007 11:25 AM
07-03-2007 12:27 PM - edited 07-03-2007 12:27 PM
you are trying to wire a cluster to an array. The pink wires are misleading because they are of different types.
The "Array" local variable is of type: 1-D string array
The cluster is of type: cluster of { 1-D string array, double, boolean}
therefore you can't wire them together..
The problem is in the "Remove: Value Change"
Are you trying to replace / remove / add an element in the string array? and then put it back to the cluster? and into the array of clusters?
Message Edited by JoeLabView on 07-03-2007 01:30 PM
07-03-2007 12:41 PM - edited 07-03-2007 12:41 PM
Looking at the images, it looks as though you want to remove an element from the array that goes into the cluster..
Before suggesting something, I need to understand what you are actually trying to do... why do you have a FOR Loop and verify if the boolean is FALSE, then add element(s) to the array.. Does the feature remove multiple entries at once or do you treat each selection as a single item... (I'm asking because <maybe> there is a more efficient way to implement the solution).
Why this? (see attached image):
Message Edited by JoeLabView on 07-03-2007 01:41 PM
07-03-2007 12:48 PM
07-03-2007 12:59 PM - edited 07-03-2007 12:59 PM
the short answer to your question (purely as educational purpose) is to recombine the cluster and insert into the cluster-array...
However, it is bad advice because I would need to know why you are modifying the string array inside an array of clusters.. In other worlds, for each cluster element, everytime you have a FLASE boolean, you append that the string array to the string array of the next cluster element whose boolean value is FALSE.. That's a growing array... but the first time it is called, you write back the same string array..
I only had one coffee today.. maybe I'm missing something... 😉
YES:: Now the array of clusters is NOT the same as the original one...
It is of type: {array of strings, array of boolean, array of double}
original type: { array of strings, double, boolean}
But you are trying to wire a regular cluster (not array) to the Array local variable. Now what does that "Array" local variable look like?
EDIT STARTS HERE:
I just saw your reply..
"what i am trying to achieve here is that when boolean is true (to answer your question) is to delete/exclude that row from being analyzed (so ignore the corresponding array and double, ignore the entire row)"
let me see if I understood... I'll post another diagram...
Message Edited by JoeLabView on 07-03-2007 02:01 PM
07-03-2007 01:08 PM - edited 07-03-2007 01:08 PM
see diagram below:
It clears the string array for every cluster element where the boolean is set to FALSE..
in the true case, you could wire the cluster tunnels directly together (in & out). But is only clears the string array... does not do anything to the double..
Message Edited by JoeLabView on 07-03-2007 02:08 PM
07-03-2007 01:13 PM - edited 07-03-2007 01:13 PM
The better way would be to index the element of the cluster whose values you want to remove. This may eliminate the need for the loop.
Sp the image you provided (below) is actually the Array which you are wiring to (local variable).. is that right? You want to maintain the same size of array, but if the boolean (left) is set to FALSE, it clears the 5 boxes in the middle. The double to the right remians unaffected..
Now is it okay to clear those 5 boxes of string? There may be other ways of providing a solution without clearing any data, etc...

Message Edited by JoeLabView on 07-03-2007 02:19 PM
07-03-2007 01:31 PM - edited 07-03-2007 01:31 PM
Message Edited by unknown00 on 07-03-2007 01:34 PM
07-03-2007 02:08 PM
07-03-2007 04:21 PM - edited 07-03-2007 04:21 PM
Message Edited by unknown00 on 07-03-2007 04:23 PM