LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing to Excel file is very slow. How can I speed this VI up?

Hi Kirit,

yes please clarify. What do you try to do?

Mike

0 Kudos
Message 11 of 22
(2,972 Views)

Old thread revival time! I seem to be having the same issue as the orignal poster. Each time I use the Excel Easy Text item, it bogs my program to a crawl. Can I use a 1D array to acheve the same thing by using the Eas Text function?

 

 

0 Kudos
Message 12 of 22
(2,694 Views)

Hey Eric,

Yes you should be able to create a 1-D array then push that whole array to the Excel and only use that function once, thus speeding up your program.

Kira T

Applications Engineer

0 Kudos
Message 13 of 22
(2,651 Views)

OK thanks.

 

I tired to do that and I get an error because it expects a string and I am sending an array to it. I apologize for my ignornace. I am a novice when using the Report Generation Tools as I haven't used it at all.

0 Kudos
Message 14 of 22
(2,639 Views)

Hi,

 

sounds like you might need to typecast what you are feeding to your Excel Easy Text vi. You can take a look at the examples given in the Report Generation Toolkit manual http://www.ni.com/pdf/labview/us/report_generation_toolkit.pdf You may want to take a close look at the "Advanced Operations and Formatting" section where it implements string concatenation and array string/number conversions.

 

If you are still having the same issue, post back with your code so we can take another swing at it. Thanks!

Aldo A
Applications Engineer
National Instruments
0 Kudos
Message 15 of 22
(2,616 Views)

I can't seem to figure this out....

 

Image2.png

0 Kudos
Message 16 of 22
(2,597 Views)

Hi Eric,

 

open the context help and move the mouse over the red cross on the wire to "figure it out". Smiley Wink

Best regards,
GerdW


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

I believe I have figured it out, but I need to test it.

 

I've placed the array in the Array to Spreadsheet function and then placed the output to the Excel Easy Text vi.

0 Kudos
Message 18 of 22
(2,571 Views)

All,

 

SUCCESS!!! But...while I have gotten the code to work, it appears that when the data is placed in the Excel file, the data is condensed to one cell and not the cells within the workbook. Is there something that I am doing incorrectly?

0 Kudos
Message 19 of 22
(2,554 Views)

Hi Eric,

 

There's a good example in the Example Finder called "Excel Macro Example.vi".  Does this help?

 

Thanks!

Ryan

Ryan C.
Applications Engineer
National Instruments
Message 20 of 22
(2,537 Views)