09-25-2019 02:49 AM
Hello,
I have a problem with a vi. Excel don't start on a computer.
configuration:
windows 10
Excel 2010
Labview 2019
I've make another VI to test the excel function
This Vi works on a computer with excel 2016 and Windows 7
What can I do to run this VI on the pc Windows 10 and excel 2010
Thank you
Solved! Go to Solution.
09-25-2019 03:20 AM
Well, after removing the unneeded sequence structure and doing a Block Diagram cleanup.
No, that vi is not going to work! Perhaps if you added some information about what your subvis were doing we might be able to assist you.
09-25-2019 04:58 AM
This vi is composed by these subvi
1- open excel
2-open new workbook
3 - open new sheet
4- set cell value (number are a test )
see pictures
these vi works with Windows 7 and excel 2016, but not with Windows 10 and excel 2010
09-25-2019 05:53 AM
09-25-2019 07:10 AM
You are running one VI on two very different machines, using different OS's, different versions of Excel, and the most recent versions of LabVIEW. You have provided no code, but persist in showing pictures of code (do you want us to waste our time trying to re-create all of your VIs so we can test the code that "works sometimes"? Why don't you help us to help you by providing all the VIs, say, by compressing the folder containing them and attaching the ZIP file?).
If you are using the Report Generation Toolkit, there are Example programs, including one written about 5 years ago that you might check out and see how it performs on your two systems (on the first page of the Forum, search for "Revised Excel" -- I think the key word is "Revised"). This is a complete VI, so you should just be able to download and run ...
Bob Schor
09-25-2019 07:21 AM
sorry,
here is the files
09-25-2019 03:32 PM
Am I correct that you are trying to run Excel without the Report Generation Toolkit, perhaps using ActiveX or something like that?
I've taken a quick look at your Test Excel VI. I made a few "cosmetic" changes. Do you understand how Data Flow works? You absolutely don't need (and shouldn't use) the Frame Sequence Structure here. Keeping wires short and straight simplifies looking at the VI.
I gave up on ActiveX for Excel a long time ago (once I discovered the Report Generation Toolkit). Here's how I'd do this now:
If you don't have the Report Generation Toolkit, then I apologize for wasting your time. Until I saw the VIs that you attached, I really didn't "get" what you were trying to do.
Bob Schor
09-26-2019 02:19 AM
this sequence is a part of an old labview program.
I've modernized to adapt with a new instrument but the program don"t run excel with a new computer (Windows 10 excel 2010 labview 2019). The rest of the program works. So with the test VI i try to test why excel doesn't work.
. I've tryed to launch excel with a simplified progrma but it doesn't work.
thank you for your response.
09-27-2019 08:18 AM
Thank you for attaching your VI. I do understand that this is an old program, one you probably didn't create, but it is a mess, making it very difficult to understand, difficult to maintain, difficult to improve, but possibly fairly simple to re-create by someone with moderate LabVIEW skills. Here are some suggestions:
Bob Schor
09-30-2019 08:34 AM
Thank you for yours advices.
I didn't create this program. I'm automation engeener and I've discovered Labview with this program. I'm doing Grafcets to réorganize this program and make subvi. I've to insert a second measuring instrument with VISA. I tried to call a specialized socety but they estimate 15 000$ for this project
Just a last question: Do you have any reliable vi with an excel example to test the new computer before take hours to develloping a new program.