LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

calling external DLL- mobile module

Hi all,

I am using a HP-iPAQ PDA running windows mobile 5. I use LabVIEW 8.6 mobile module to build a project. In my main VI I have a call to C DLL . I am able to build the application and deploy, but when i try running the solution i get a message saying

"Error- Unable to run the applictaion on the remote device.

CreateProcess failed with error code = 193

 

Possible reasons:

The application does not exist on the remote device.

Another application with the same name is already running.

The application is not compatible with the operating system of the device.

The remote device has timed out. Redeploy the application, and allow the application to run on the device"

 

If I try opening the applictaion after downloading from the PDA, i get a message saying

"The file "test_application" cannot be opened. Either it is not signed with a trusted certificate, or one of its components cannot be found. You might need to reinstall or restore this file. "

 

I get the same error messages when I try running the example code provided " Calling External Code - DLL Method.lvproj". But the error message says "CreateProcess failed witherror code = 126."

If I copy the dll into \ mobile device\Windows folder manually, I am amble to run the example program.

But this manual copying of dll does not work for the project I have created Smiley Sad

Message Edited by vanishree on 10-22-2009 04:51 PM
0 Kudos
Message 1 of 7
(3,776 Views)
see whether this will help
0 Kudos
Message 2 of 7
(3,756 Views)
0 Kudos
Message 3 of 7
(3,755 Views)

I dont have those dlls (COREDLL, etc) mentioned. It should be there on the PDA right?

0 Kudos
Message 4 of 7
(3,739 Views)

What DLL is this C DLL? A standard Windows DLL or a custom DLL from you or someone else?

 

Windows Mobile is an entirely different OS than the standard desktop OS and it runs on a different CPU architecture too. So if you have a C DLL that runs on your x86 architecture desktop Windows system it is entirely useless for a mobile project. You do need that DLL compiled specifically for the Windows Mobile system and for your target CPU architecture (either ARM version 4 compatible, MIPS or  SH3) and to compile that DLL you need an according cross compile toolchain such as Microsoft Visual C Embedded.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 5 of 7
(3,726 Views)

It is a custom DLL built using visual studio 2008 for Windows Mobile 5.0 Pocket PC and ARMV4I machine.

I used embedded Visual C++ 4 to build the same DLL for Pocket PC 2003 Device ARMV4 architecture and this works.

Thanks ,

 

 

Vani

0 Kudos
Message 6 of 7
(3,715 Views)

vanishree wrote:

It is a custom DLL built using visual studio 2008 for Windows Mobile 5.0 Pocket PC and ARMV4I machine.

I used embedded Visual C++ 4 to build the same DLL for Pocket PC 2003 Device ARMV4 architecture and this works.

Thanks ,

 

 

Vani


I assume you have built the according stub DLL for your desktop system so you can compile the entire thing on your LabVIEW system at all. Other than that it would seem something with the settings for your Visual Studio Project to be wrong.

Message Edited by rolfk on 10-26-2009 05:42 PM
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 7 of 7
(3,710 Views)