LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problème d'accès à une dll lors de la génération d'un exécutable

Solved!
Go to solution

Hello,

I have a problem when I create a file .exe.
In LabVIEW, everything works. But when I create an .exe file, I have an "Error code 7".
The problem is the pointer to GetValueByPointer.xnode.
Does anyone have a solution?

thanks a lot

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

@ludo67 wrote:

Hello,

I have a problem when I create a file .exe.
In LabVIEW, everything works. But when I create an .exe file, I have an "Error code 7".
The problem is the pointer to GetValueByPointer.xnode.
Does anyone have a solution?

thanks a lot


When you created the exe did you include the dll in the category Source Files -> Always Included?

 

Ben64

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

Hello,
(see joint picture n°1)
-> the xnode surrounded in blue calls a file "GoSDK.dll", which is a personal dll, and works normaly.
-> the blocks surrounded in red uses the function "GetValueByPointer" of the library "lvimptsl.dll" which is a Labview Library. And this is here where I have a problem, and the error code 7.

I have tried to replace the blocks surrounded in red by xnode
(see joint picture n°2)
And when I launch the software in Labview, Labview shuts down.

Download All
0 Kudos
Message 3 of 5
(2,973 Views)
Solution
Accepted by topic author ludo67

Hi Ludo67,

 

Can you try to create a folder named "resource" in your application folder

For example if you call your main folder myTestFolder, you should have the followings files

C:\myTestFolder\myProgram.aliases
C:\myTestFolder\myProgram.exe
C:\myTestFolder\myProgram.ini
C:\myTestFolder\niwebserver.conf

 

so add this folder

C:\myTestFolder\resource

 

and copy the dll "lvimptsl.dll" from C:\Program Files (x86)\National Instruments\LabVIEW XXXX to this new folder.

 

Paolo_P
Certified TestStand Architect
Certified LabVIEW Architect
National Instruments France

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

Hi,

 

Ok I've done that, all works well now.

 

Thanks for your help.

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