05-23-2014 04:20 AM - edited 05-23-2014 04:21 AM
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.
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.
Solved! Go to Solution.
05-23-2014 09:28 AM
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".