11-22-2017 06:27 AM
Hi,
I'm unable to clear the 2 dimensional array element using Data operations method.
Please fix the issue.
11-22-2017 06:39 AM - edited 11-22-2017 06:40 AM
Data Operations->Empty Array
Edit: Right-click on the Index Display to get that context menu.
11-22-2017 06:42 AM
Your array is empty if one or more dimensions is empty so you don't really have a problems.
Still, to correctly clear an array, you need to click on the array container (border) or the index terminal (not on an array element!) and "right-click...data operation...empty array".
11-22-2017 06:47 AM
Even quicker, just grab one of the grayed element and drag it outside the container to the diagram. Now grab it again and move it back. 😄
11-22-2017 07:02 AM
Hi,
I'm inserting array of empty elements into empty array. But my resultant array was not empty!
My For loop executes depending on inserted array size.
Expected output - 0 but it executes 5 times
11-22-2017 07:13 AM
Hi Padmanaban,
But my resultant array was not empty!
Wrong!
LabVIEW says "it's empty!"
("Leer" is German word for "empty".)
We had this discussion just last week: even when there are rows (6 in your case) you don't have any columns in your 2D array making it (technically) empty…
11-22-2017 07:16 AM
This is by design. Here are plenty of threads to read through for explanations:
For loop Auto Index should not index empty array
Array size of empty array - bug
DELETE EMPTY ROWS FROM A 2D ARRAY
11-22-2017 07:51 AM
If I insert array of empty elements into an empty array, my resultant array was empty array but For loop iterates depends on number of empty elements inserted!
Please fix this LabVIEW bug in future versions.
11-22-2017 08:15 AM
@PadmanabanJ wrote:
If I insert array of empty elements into an empty array, my resultant array was empty array but For loop iterates depends on number of empty elements inserted!
Please fix this LabVIEW bug in future versions.
Read the links I gave earlier. This is NOT a bug.
11-22-2017 08:21 AM - edited 11-22-2017 08:22 AM
PadmanabanJ wrote:Please fix this LabVIEW bug in future versions.
As Tim said, this is not a bug. The current behavior is in fact desirable and there is nothing to fix but your own code. 😄 You need to be aware of this feature and code accordingly.