LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy startup DLL using ".CDF" files

Solved!
Go to solution

Hello,

 

I'm new on Labview and I would like to deploy startup DLL on a PXI target using ".CDF" files.

 

I've already read this tutorial : http://www.ni.com/white-paper/12919/en/

But there is no mention of deploying DLL.

 

As you can see on the screenshot below i've included the *.DLL file in the sources files.

 

screen.jpg

 

 

When I build the application, I can see that the path of my dll has been added to appbuilder.cdf :

 

"<CODEBASE FILENAME="ni-rt/startup/XXXXX.dll" TARGET="/ni-rt/startup/XXXXX.dll"/>"

 

But after the deployment, the target doesn't launch the DLL anyway.

 

Finnally when i manually add the path of my DLL to the key StartupDLLs in th ni-rt.ini and then reboot my target, it works fine.

But the idea is to do it automatically using ".CDF" files.

 

Thanks for your help.

0 Kudos
Message 1 of 2
(2,308 Views)
Solution
Accepted by topic author Pierro26

Problem solved.

 

I just paste the path to my DLL in my ".CDF" file between :

 

<MERGEINI TARGET="/ni-rt.ini">[LVRT]

 

StartupDLLs=c:/ni-rt/cvi/My_DLL.dll

 

</MERGEINI>

 

It seems that FTP my DLL inside the "CVI" folder helped.

To do that i changed the "Support folder" value from "/ni-rt/startup/data" to "c:\ni-rt\cvi"  in My Real-Time Application properties, section "Destination".

0 Kudos
Message 2 of 2
(2,277 Views)