Discusiones sobre Productos NI

cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 

Insert data in array

I want to know if its possible to insert data into an array, but I wish to do it as I would in excel, by using the option of insert row.

Is it possible to insert a value into an array in a specific row, so that all the other values are moved one row down?

Please let me know how to do this, and if you could please provide some sample code, that would be great.

Thanks!

0 kudos
Mensaje 1 de 2
4.435 Vistas

Hello Nando88,

 

You can use an Insert Into Array function.

 

Programmatically Inserting Elements, Rows, Columns, and Pages into Arrays:

http://zone.ni.com/reference/en-XX/help/371361G-01/lvhowto/prog_insrt_elements_rows_co/

 

You can find an example on the next link:

 

Re: How best to insert a sub-array (row) into a 2D array at the correct index which is depending on the value of the first column:

http://forums.ni.com/t5/LabVIEW/How-best-to-insert-a-sub-array-row-into-a-2D-array-at-the/m-p/121980...

 

Best regards.

David P.
National Instruments
Applications Engineer
www.ni.com/soporte
0 kudos
Mensaje 2 de 2
4.420 Vistas