LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

insert data into array and append

i am inserting data into an array at a specific index for each specific test.

I am having a tough time achieving this.

what am i doing wrong?

can anyone help me fix my code?

thanks

0 Kudos
Message 1 of 3
(267 Views)

Do you mean that you want to replace an element of the array? Or actually insert the value thereby increasing the size of the array?

 

So:

[0,0,0,0,0] -> [0,0,5,0,0]

Or

[0,0,0,0,0] -> [0,0,5,0,0,0]

 

I imagine the first case. You should use the Replace Array Subset function.

0 Kudos
Message 2 of 3
(253 Views)

1. Your loops run forever.  That is simply not allowed in a Windows system. 

2. From what I'm seeing, you just need a simple While loop with an Event Structure inside of it.  With the Event Structure, you can handle your button presses.  This will greatly allow you to simplify your code.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(251 Views)