06-18-2014 03:15 PM
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!
Solved! Go to Solution.
06-18-2014 03:22 PM - edited 06-18-2014 03:23 PM
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!
06-18-2014 04:00 PM
So simple! but it makes sense. Thank you so much for your help.