LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

shift array row

Hello everyone,

 

 

             I need to do a strange task. i.e say i have a 2 day array ( find the attached) taken from excel file. I have to edit the array in such a way that after 30 3000, i need to insert 40 4000. If i place cursor near 3000 and press ENTER or some button new row should be created where i can fill 40 4000. Is it possible?

Thanking you,
Sushmith
0 Kudos
Message 1 of 6
(2,364 Views)

Hi Sushmith,

 

in Excel you would insert an empty row and input the missing values. Is that what you want? Maybe you could write an Excel macro using VBA to do all this and start that macro with a button in the Excel ribbon menu? Is that what you want?

 

Anyway: read the Excel/VBA help to do your task... 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,356 Views)

No no. I need to insert value/edit in front panel. Later I will be storing whole table in excel, thats not a problem.

Thanking you,
Sushmith
0 Kudos
Message 3 of 6
(2,350 Views)

Hi Sushmith,

 

then why do you attach an Excel file when you need help for a LabVIEW vi?

 

How do you present that data to a user? When using a table you could check the "active cell" property and use it's indices to insert new data automatically...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,348 Views)

Hello GerdW,

 

              The Computer with Labview is in lab and i'm out, so I had to use excel.. 

 

Can you please show me the above mentioned procedure with some example?

Thanking you,
Sushmith
0 Kudos
Message 5 of 6
(2,336 Views)

Hi Sushmith,

 

use ActiveCell and InsertIntoArray:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(2,326 Views)