LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a row of data into an array?

I have a Labview 5.1 program that records flow vs. rotation data for valves that we manufacture. It is set up so the tech turns the valve to the desired location & hits a button on the front pannel to pass the data to an array. When the tech is done with the valve, he stops the program and it opens excel, loads the data, plots it, etc. The problem is, if he forgets to hit the button at some point during the test, the whole test is lost because we can not go back to fix it. My thought is if I could put in a control that he could manually enter the data in that he missed (it is usually easy to figure out which point was missed), the data could be added to the array before the program is stopped and the data is sent to excel.
The problem is it can not easily be appended to the array because it needs to be placed in the middle somehow and all the rotations will need to be adjusted after that point. For example, if the data is 0°,0: 10°,1000: 20°,3000: 30°,4000: etc. And we realized we missed the point at 20° because it should be 20°,2000; we would need to insert that where the 20°,3000 is and then change that 20° to 30° and the 30° to 40° and so on. I hope that makes sense. I have no idea's on how to do this so if anyone has had to do something similar, some direction would be appreciated.
0 Kudos
Message 1 of 4
(3,376 Views)
Its quick, its dirty, it assumes alot, but I think it will get the idea accross.

Good Luck.

DOH! LV 5.1 . . . guess you get screen shots instead (LV 6.1 doesn't go that far back).
Message 2 of 4
(3,376 Views)
Insert Into Array and Delete From Array don't exist in LV 5.1 if I recall correctly 😞

You can duplicate their function by splitting the array at the index where you wish to insert, appending the value, then reassembling the array.

The attachment (saved to 5.0 from 6.0.2) should show a quick example of it.

Good luck!
0 Kudos
Message 3 of 4
(3,376 Views)
Thanks to both of you! I see exactly what I need to do now!
0 Kudos
Message 4 of 4
(3,376 Views)