LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to make a double null?

I see two arrays in your code, the output of the Array local and one of the items in the cluster is an array. The delete element function will work on any kind of array, even an array of clusters.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 11 of 22
(1,488 Views)
i am already aware of those 2 arrays. the array inside the cluster is successfully cleared, but it keeps saying the array local is a cluster of 3 items and not an array so i can't wire it to delete function
0 Kudos
Message 12 of 22
(1,483 Views)
Ok, I think I see what you mean. You want to delete an element from the contents of the Array local where the boolean value in the cluster is false, is that correct?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 13 of 22
(1,459 Views)
correct if boolean is false then i want the cluster array and cluster double to be deleted (not set to 0 or anything). i got the cluster array to work but not double
0 Kudos
Message 14 of 22
(1,455 Views)


@unknown00 wrote:
i am already aware of those 2 arrays. the array inside the cluster is successfully cleared, but it keeps saying the array local is a cluster of 3 items and not an array so i can't wire it to delete function

I must admit that it is really difficult to understand what you actually want.

You have an array of clusters. Each array element is a cluster of with three items:

  1. A 1D array of strings
  2. A SGL numeric
  3. A boolean

It seems that if the boolean is FALSE, you want to do something special to the array element, it is just not clear what! Do you want to remove the entire element so you end up with a shorter array of clusters, retaining only the elements where the boolean is TRUE? Do you want the SGL to have a special value? What do you actually want?

 

0 Kudos
Message 15 of 22
(1,453 Views)
Do you want to remove the entire element so you end up with a shorter array of clusters, retaining only the elements where the boolean is TRUE?

yes

read my post above yours too

0 Kudos
Message 16 of 22
(1,445 Views)
A numeric (e.g. your SGL)  always has a value, it cannot be empty. You also cannot remove that element from the cluster, because all array elements must have the same cluster.
 
Of course an array can have zero lenght, so one possibility would be to replace the SGL with an array of SGLs in the cluster. If the value is valid, you would generate an array with a single element. If the value is invalid, you would use a SGL array of zero lenght in the cluster.
 
Still, I suspect that you are approaching all this way too complicated. What do you actually need to do?
0 Kudos
Message 17 of 22
(1,443 Views)
delete cluster array and cluster double if false. the middle picture is what it is currently doing, the bottom picture is what i want it to do. boolean really doesn't matter what it is but cluster array and cluster double must be deleted
0 Kudos
Message 18 of 22
(1,440 Views)
What is your LabVIEW version?
 
Here's a quick draft in LabVIEW 8.0. See if it helps.
0 Kudos
Message 19 of 22
(1,429 Views)
thanks altenbach it seems to work fine so far. what was wrong with my method? is it not possible to delete the cluster double? just curious
0 Kudos
Message 20 of 22
(1,422 Views)