09-07-2012 03:37 PM - edited 09-07-2012 03:40 PM
Hello all,
I have a strange issue with the MS Office Report VI that's included with the Report Generation Toolkit. I created an Excel template which I linked using the "Custom template for Excel" preference and applied all the named ranges. However, two of the named ranges that I am inputting are 1D Arrays of doubles. Now the problem:
When I input the arrays to their specific name range (it's only 6 values), instead of inputting just the array values into the cells, it inputs like this:
0 Value
1 Value
2 Value
...
6 Value
It pushes the "Value" to the column next to the name range because of the 0-6.
It does this with both arrays so it screws up all the formulas. Any one know how to remove the 0-6 and just input the values?
Thanks all
Solved! Go to Solution.
09-07-2012 09:22 PM
I don't know if this will help, but I'm passing data through a state machine using shift registers. When it's time to add an element to the array, I use the "Build array" function in the state that takes data. All the data is there, but the Index number (0-6) is being included in the report.
09-08-2012 10:35 AM
It would be better if you can show the code (2009 version please)
09-08-2012 02:52 PM
09-08-2012 09:11 PM
I may be wrong but I think it is because of the way this express vi deal with array. One of its subVI use a Convert to DDT node which add a "channel" value to the rows of an array. If the case, to avoid this you will have to use the Excel specific VIs of the Report Generation Toolkit or if you don't have the toolkit to use ActiveX.
Ben64
09-10-2012 06:57 AM - edited 09-10-2012 06:57 AM
Looks like you're right Ben. If you run the code, it pastes 0-5 then 1-6. Is there no other way around this other than using the Excel specific VIs or ActiveX? It's so easy/convenient just using this express VI.
09-10-2012 08:46 AM
09-10-2012 08:47 AM
Sounds good, thanks Ben!
01-26-2013 10:58 PM
Greetings, I wrote a program that generates an array of data and stores a data table, just as a chart, just starting to program, I hope that my program can be useful
01-26-2013 11:21 PM
I add the program to read a report from excel