12-10-2019 06:41 AM
Hi,
I have a project with some Vi's.
I want to create an Installer in order to be installed in PC's without LabView.
The project is the following:
You can see in red two documents that I have introduced into the project because I could not read and work from Excels. (I read it in an old post)
The executable works good but the only think that does not work is when I have to read from Excel.
I don't know what to do.
I attach this documents on Source files like this:
Please, could you help me?
Thanks,
Aitor
12-10-2019 07:31 AM
Hi aitorplaza,
It looks like you have a conflict on the NI_Excel.lvclass and the NI_Standard report.lvclass.
It may be safer to start by resolving these conflicts before building the installer.
Also, have you tried running your executable on the development environment?
You should enable debugging option when building the executable to be able to better understand which error is occuring in your software. The Following link describes how to debug a LabVIEW executable software :
https://labviewwiki.org/wiki/Debugging_Executables
Best regards,
Mourad FAKHFAKH, Certified LabVIEW Developer
12-12-2019 06:47 AM
Hi Mourad FAKHFAKH,
Yes, I know that there is a conflict. The problem is that I do not know how achieve reading Excels in an installer because the APP runs well.
"Also, have you tried running your executable on the development environment?" yes, it works.
So do you know if Have I add to the installer anything different than NI_EXCEL.lvclass and NI_Standard Report.lvclass? Or how to do it?
Thanks in advance.
12-13-2019 10:18 AM
Hi Aitorplaza,
In order to debug your software, we have to know at which stage the problem is occuring.
You are saying that the application is running well when launched with the VI, OK.
What I meant by my previous post is that having conflicts in your code may cause side effects when trying to generated the installer, you don't know how LabVIEW is going to handle it. I am not saying that it caused the problem for sure, but it's a possibility.
Also, to further progress in your debug, there is a way to check which error is occuring on the executable and debug as if it was a VI, simply by activating the debug mode when generated.
This will understand what error is occuring on the code to be able to analyze it, otherwise it will be just assumptions.
Best regards,
Mourad FAKHFAKH, Certified LabVIEW Developer
01-14-2020
01:30 AM
- last edited on
12-19-2024
03:55 PM
by
Content Cleaner
Hi Mourad FAKHFAKH,
I have been debugging the software. I noticed that the main and only problem that is causing that the project do not work was that LABVIEW 2017 does not open Excel.
I explain in a simple example:
If I execute this from the PC of the development, it runs OK and open EXCEL
If I create an executable or an installer, and I run this code from the target computer. It does not work, i do not why. Error message from my project:
I have been checking the compatibility of versions here, https://www.ni.com/en/support/documentation/compatibility/17/report-generation-toolkit-and-microsoft... and all is OK in the target PC.
I have a Windows 10 (64 bits), Labview 2017 and Office 2010.
I have been reading some post where says that upgrading from office 2007 to 2010 the problem was solved. but not in my case.
I have been investigating about instr.lib, this library is not on the target computer, do you think it could be some of the problems? this message apperas when I run the code:
Please could you help me? do you know something else about this?
Thanks in advance
Best Regards,
Aitor Plaza