LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Initializing arrays?

Hello!

In a VI have an empty 2D-array (3 columns, x rows),
in which I want to insert a new row. The first time
I start the VI, the row is correctly inserted. When
I start the VI again, the array-insertion-VI doesn't
insert anything. Ideas if I have to initialize
the target array in any way?

Thanks in advance, Michael.
0 Kudos
Message 1 of 2
(2,644 Views)
Hi,
if the array is a front panel control/indicator you have to fill in some data in that area (even if it's 0.00) to "activate" those cells for future use.
To be sure that everything it's done properly, initialize the array with default values for a specific number of rows and columns before any other operation.
Message 2 of 2
(2,644 Views)