Showing results for 
Search instead for 
Did you mean: 

Excel versus Labview CPU time

I have LV 7.1 code that calls up Excel which then formats a spreadsheet nicely.  This is done with a VI inside an event structure within a while loop.
The problem I'm having is LV seems to be using the CPU approx. 99% of the time.  So I have to wait about 2.5 minutes for the Excel formatting to complete.  After formatting completes I can flip between the Excel and LV programs quickly.
Of course running the VI by itself only takes about 5 seconds to complete.
Can anyone tell me if its the event structure, the loop, the VI inside the event structure, or just the way the OS handles both programs at the same time that's causing this bog down?
Nick Salemi
Teledyne Energy Systems, Inc.
0 Kudos
Message 1 of 3
Try Tools, Advanced, Profile vi's.
0 Kudos
Message 2 of 3

Are you doing a single call of multiple call to Excel to format the sheet?  LabVIEW uses ActiveX that if you are doing multiple calls could be the issue.  Another way to deal with highly formated Excel would be to precreate a template (*.xlt) and fill in just the data.


Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 3 of 3