LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

call dll in a pocket PC

I created a VI that need to call a dll (target: Pocket Pc), I could created the dll, but in the "Call Library function" i don't know wich path to specify, Ihave tryed everything and it keeps giving me the same error:"funcname is a missing VI or file"," There was an error building the executable.Please check the VI's or C files that were added". What path should I put
0 Kudos
Message 1 of 6
(3,622 Views)
Hello,

There is a little more you must do to call a DLL from a Pocket PC Labview VI. This Knowledge Base demonstrates how to do this:

How To Call External Code in LabVIEW PDA for Pocket PC

Hope this helps! Let me know if there is anything else I can help with or clarify.

Ken S.
National Instruments
0 Kudos
Message 2 of 6
(3,621 Views)
thanks, I have done everything but is still giving me the same error "funcname is a missing VI or C file". Here is what I have done, please let me know if something is missing:
1)created a .cpp file after filling the inputs and ouputs of the "call library function"
2)I created the stub dll containing "only" the function prototype.
3)In order to build the dll I included the .c file and the VI.
Now, here are some questions:
1)when I want to build the executable for the PDA it does not let me to include .cpp files, just .c, so I had to rename the .cpp file to .c Is this ok or should I create a new .c file?
2)In the library path name, should i put the one for the stub dll?, it should include the stubdll or just the directory where the stub dll is?

thank
s
0 Kudos
Message 3 of 6
(3,621 Views)
Hello,

You should be fine just renaming the .cpp file to a .c file.

The library path name should be the directory for the stub dll. And you should be fine with just choosing the directory for this dll.

I�ve also attached a project which demonstrates how to build a project like this one. It basically has a DLL which access some battery information on the Pocket PC.

Let me know if there is anything else I can help with or clarify.

Ken S.
National Instruments
0 Kudos
Message 4 of 6
(3,622 Views)
Hi, i've the same problem, only that the VI is compiled and pocket_PC say me this error msg:
"it's impossible find "VI_name.exe" and all its components. Control that the
path and name of file are exact and that all libraries are available"
The beatiful think is that also with the example PPCBatt downladed an NI site the pocket says me that same error
message.

How i can to do ?
Which are the libraries that i must to include in the "build for pda" window?
Until now i've wired the VI objects with stub dll and in "build for pda" window i've included the .lib file of
my dll, following the instructions that are on NI site.
I've even copied the PPCBatt precompiled of the example on my pocket_PC but the result is the same.
PLEASE HELP ME.


Thanks a lot.
0 Kudos
Message 5 of 6
(3,593 Views)
Hi mohak,

Refer to the following KB discussing the 4 key files needed to call a DLL in LabVIEW PDA for PocketPC:
KB 33CARIQS: How To Call External Code in LabVIEW PDA for Pocket PC?

Hope this helps. Good luck!

Kileen
0 Kudos
Message 6 of 6
(3,582 Views)