ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

regarding array

Hello Everyone, Kindly anyone help me how to insert number in an 1d Array.

0 Kudos
Message 1 of 4
(1,570 Views)

@kumar58 wrote:

Hello Everyone, Kindly anyone help me how to insert number in an 1d Array.


Use the Insert Into Array function.

 

CTRL+Space, type Insert Into Array, or go to the Array palette:

wiebeCARYA_0-1643369797422.png

 

0 Kudos
Message 2 of 4
(1,565 Views)

@kumar58 wrote:

Hello Everyone, Kindly anyone help me how to insert number in an 1d Array.


You need to provide significantly more detail:

 

  • Are you trying to insert a number in edit mode into an array control or diagram constant?
  • Are you trying to do this at runtime?
  • Where does the array come from? Where does the number come from? Where does the output go?
  • Are you trying to insert that number into an arbitrary location, moving all existing higher elements up?
  • Are you trying to append or prepend that number to the 1D array (i.e. insert at the end or beginning)?
  • Are you trying to replace an existing value with a new value, keeping the array size constant?
  • Note that if you do this repeatedly, you should keep the array in a shift register or feedback node. Are you familiar with these?

You will get significantly more precise answers if you would attach a very simple VI so we can tell what you are trying to do.

0 Kudos
Message 3 of 4
(1,528 Views)

Use the free online tutorials. This is pretty basic.

0 Kudos
Message 4 of 4
(1,521 Views)