From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling DLL from LabVIEW PDA 7.1

I have a DLL written in eMbedded VC++ 4.0 and it works well on my iPAQ when I called it from MS .NET Compact Framework.

Now I try to call it using LabVIEW PDA 7.1 module. But when I try to config the "Call Library Function Node". I got "Bad image. The application or dll is not a valid windows image. please check this against your installation diskette.".

I attached the dll and the VI. The function I called is defined as:
long TDR3125_Open(void);
0 Kudos
Message 1 of 3
(2,643 Views)
Hello yqin,

Take a look at these two Knowledge Base articles concerning the use of DLLs in LabVIEW PDA.

http://digital.ni.com/public.nsf/websearch/160BC981E2587B5486256D2F005554AA?OpenDocument
http://digital.ni.com/public.nsf/websearch/517300B49212795986256DDD00623FEE?OpenDocument

I think this information should help you out. If it doesn't, please attach a copy of the DLL you are trying to use (only the vi was attached to your last post).

Thanks,
E.Lee
Applications Engineer
National Instruments
Eric
DE For Life!
0 Kudos
Message 2 of 3
(2,626 Views)
yqin wrote:

> I have a DLL written in eMbedded VC++ 4.0 and it works well on my
> iPAQ when I called it from MS .NET Compact Framework.
> Now I try to call it using LabVIEW PDA 7.1 module. But when I try
> to config the "Call Library Function Node". I got "Bad image. The
> application or dll is not a valid windows image. please check this
> against your installation diskette.".\

Could it be that your DLL is really a .Net assembly instead?

rolf Kalbermatter
Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 3
(2,615 Views)