LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Closing all instances of Excel

Hi CVI/LabWindows Forum,

 

I am having an issue with a program I am currently working on.

I am using CVI/LabWindows 2015 on Windows 7.

 

In my code I am using excelrpt to create excel files, write data to them, and create graphs. I have all that working, mostly (sometimes my graphs dont get their titles populated), but I have had an issue recently where my data did not save. I suspect that this is because the code was started and stopped prematurely and excel my code was not able to properly discard my handles. Is there a way to check the task manager for any instances of excel and close them all before continuing?

 

As a separate issue but might as well add it here...

Any ideas as to why my graph titles are not populating?

And is there a way to set the x-axis data range(I am not using ExcelRpt_ChartWizard because I was having issues with it)?

0 Kudos
Message 1 of 7
(3,110 Views)

Hi 

Only for double check, did you use this tutorial: Generating Microsoft Excel Reports with LabWindows/CVI

 

0 Kudos
Message 2 of 7
(3,078 Views)

Yes, I did use that link as a reference.

0 Kudos
Message 3 of 7
(3,058 Views)

Hi, Did you create your code from scratch? or did you modify one of the examples that are shipped?

One good example is call exelreportdemo.cws, if you go to help, find examples and type excel you would see a list of examples.

So it would be good to compare how you calling everything and how they doing it on the example.

 

0 Kudos
Message 4 of 7
(3,033 Views)

I did write my code from scratch. I will look at that demo.

0 Kudos
Message 5 of 7
(2,993 Views)

I dont see which part of this demo is referring to my question.

0 Kudos
Message 6 of 7
(2,992 Views)

Hi, the idea was to double check the code and see how the X-axis is generated.

I was checking this other post, they are using column E as the X-axis values.

 

 

0 Kudos
Message 7 of 7
(2,965 Views)