LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help! Inserting a 1-D comment array into a 2-D string array at specified row AND column

Solved!
Go to solution

Hello everyone,

 

I am writing a 2-D string array to excel and i need a way to add comments to my file like this:  

 

SLAM    NAME    G Level    Comments

1              RALF         26               

1              RALF         26

1              RALF         26

1              RALF         26

 

For some reason, i cannot specify a row AND column to write because: 

 

When i use replace array subset it only replaces 1 element at my index. 

When i use replace array subset with a loop, it creates empty spaces until it reaches the end of the array it is replacing.

When i use Insert into array: i cannot wire 2 inputs for row and column.  

 

In my complete VI i will need to write from row 1-1001, a different comment from 2-2002, a different comment from 3-3003, etc until a stop condition is met so i need to figure out how to do this programatically and not have it replace any elements outside of the range or it will override previous commetns. 

 

I am at a loss of what to do. Any and all suggestions are greatly appreciated. 

 

Thanks!

0 Kudos
Message 1 of 3
(2,348 Views)
Solution
Accepted by topic author proph

Hi proph,

 

I made a small subtile change to yur VI and now it replaces all values of the 4th column…

 

THINK DATAFLOW!

Use shift registers when you need to propagate values from one loop iteration to the next!

 

USE/LEARN DEBUGGING TECHNIQUES!

There are tools like probes and highlight to understand your VI execution and to find problems…

 

Go through all those free online courses offered by NI!

Best regards,
GerdW


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

So simple! but it makes sense. Thank you so much for your help. 

0 Kudos
Message 3 of 3
(2,327 Views)