LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CREATE INSTALLER WITH EXCEL

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:

aitorplaza_0-1575981198783.png

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:

aitorplaza_1-1575981535698.png

Please, could you help me?

Thanks,

Aitor

0 Kudos
Message 1 of 5
(3,460 Views)

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

0 Kudos
Message 2 of 5
(3,428 Views)

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.

0 Kudos
Message 3 of 5
(2,891 Views)

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

 

0 Kudos
Message 4 of 5
(2,868 Views)

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:

aitorplaza_0-1578986934507.png

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:

 

aitorplaza_3-1578987039769.png

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:

aitorplaza_4-1578987039774.png

 

Please could you help me? do you know something else about this?

 

Thanks in advance

Best Regards,

 

Aitor Plaza

0 Kudos
Message 5 of 5
(2,819 Views)