11-10-2016 02:24 AM
Hi everyone,
Here is my problem:
- Following the NI tutorial (http://zone.ni.com/reference/en-XX/help/370051AC-01/cvi/programmerref/examplecreatinglvrtdlls/), I build the simpCalC.dll using CVI2015. I build it with realease and selected "Real time only in target settings. Also I included the .h files in exported files.
- The DLL passed the DLL checker 2015
- Under my cRIO 9081 target (Phar Lap/Labview 2015) i added a VI calling the simpCalc.dll using the "Call library function node". I set simpCalc.* for name/path.
- When i run the VI, it works, the dll is called properly.
But I now want to build a real time application, so I put the dll at c:\ni-rt\startup\simpCalc.dll using NIMAX ftp. Problem is: i get an error 7 whatever the path/name I set.
Can you please help me in that case?
Thank you
Solved! Go to Solution.
11-10-2016 05:07 AM
Hello Guillaume.Cl,
have you tried an absolute path internally in the call library function node and or external so you can chose the path?
Can you try to add the dll to your project and always include the dll into the build executable?
11-10-2016 05:26 AM
Hi,
Thanks for answering.
Yes i tried both setting on Call library node
I also tried to add the dll in the project and include it in teh build
In addition, i add the check file exist.vi : it says the file exist but still got error 7.
Do the real time application needs more than the dll file to run?
Thank you
11-10-2016 05:31 AM - edited 11-10-2016 05:46 AM
Hello Guillaume.Cl,
it could be also a mitstake during creating the DLL. I have attached a simple LV project in which i created a DLL and copied it manually to the RT folder and called it on the target inside the executable.
11-10-2016 06:45 AM
Can you also give me the dll folder pls?
Thank you
11-10-2016 06:48 AM
Hello Guillaume.Cl,
for my example i used the C:\ni-rt\startup\Add.dll folder.
11-10-2016 07:05 AM
Hi,
I joined the project + VI's + dll
Maybe it can help
The dll was compiled in cvi 2015 (compiled with release for real time only)
The real time targer is 9081 cRIO (Phar Lap OS)
Like i said in my first post, it works by just running the VI's, but it doesn't when I build a real time application.
PS: pls change the .txt file to .dll (seems I can't link a .dll file)
Thank you
11-10-2016 07:51 AM
Hello Guillaume.Cl,
i tried it on an 8106 RT system with LV 2016 and it worked. I build the RT application with setting the dll as always included and enabled debugging under the advanced settings. The dll was copied on the RT target automatically into the data folder.
11-10-2016 07:58 AM - edited 11-10-2016 08:00 AM
11-10-2016 08:11 AM
Hi,
Thanks for replying.
I checked for Labwindows 2015 run time engine but I don't have it and I can't install it on my cRIO 9081.
Maybe it worked for you because your target is a pxi?
Thank you