LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview windows CE 5.0 - call library node for twinCAT

Hi,

 

I'me trying to make an vizualisation for an beckhoff cp7706 control panel by making in Labview an .exe-file for a touch panel Windows CE 5.0.

 

I used an example "calling extarnal code (DLL Method)" to give it a try. When trying to use the tcAdsDll i get different errors and i can't even build it. If I'me using the OS Info.dll it works on an x86 device but not on an ARM. What am I doing wrong? 

 

Greats

Dieter 

0 Kudos
Message 1 of 6
(3,837 Views)

Hi Dieter

 

On a mobile device, you need to use the dll as a 'stubb dll' to have access to the functions & configure the call library function node in your VI. Once you create the executable, you have to add a .lib or .c file of your library to the additional files in the source files category of your build specifications.

 

 

Take a look through this article:

 

http://digital.ni.com/public.nsf/allkb/517300B49212795986256DDD00623FEE?OpenDocument

 

It provides an explanation how to use the library on a mobile device.

Best Regards

Michiel
Applications Engineer
NI Belgium
http://www.ni.com/ask
0 Kudos
Message 2 of 6
(3,788 Views)

Hello Dieter,

 

I have the same problem. Did you found a solution?

 

Greats

Johannes

0 Kudos
Message 3 of 6
(3,606 Views)

Hi Nookie

 

The issue was determined as the dll being compiled to use a THUMB instruction set, and not an ARM instruction set, which is the one Labview uses when compiling for ARM. Some newer ARM cpu's can handle both but LabVIEW compiles for ARM and this causes the error. You can try building your VI for a windows mobile 5 target. In this case, the code is compiled for THUMB and you should be able to run the exe on the touch panel.

Best Regards

Michiel
Applications Engineer
NI Belgium
http://www.ni.com/ask
0 Kudos
Message 4 of 6
(3,602 Views)

Hello Everyone,

 

did anyone manage to get this going? I have many problems making the .exe for CE and I'm really looking for a working sample.

 

Regards, Rimco

0 Kudos
Message 5 of 6
(3,037 Views)

Hello Rimco,

 

Do you have exactly the same issue?

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 6 of 6
(3,002 Views)