LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I Have a DLL that works in .net (in an app for pocket pc)...

I Have a DLL that works in .net (in an app for pocket pc)...(pda is a Symbol ptt8800)
I want that dll to work with labview.

I have an app. in .net that is doing a lot of thinks.One of that is that i can read a barcode from pda's scanner.(this model
of pda have a barcode reader on it,that is not always open)
To do this,the app is calling a dll (Symbol.Barcode.dll)
I don't know how i can call this dll in my pocket pc labview application.i have read in ni's site a lot of pdf but i didn't manage.

If someone can help pls answer...
i give u the dll and u can see those with microsoft visual studio .net
0 Kudos
Message 1 of 9
(9,248 Views)


@+30 wrote:
I Have a DLL that works in .net (in an app for pocket pc)...(pda is a Symbol ptt8800)
I want that dll to work with labview.

I have an app. in .net that is doing a lot of thinks.One of that is that i can read a barcode from pda's scanner.(this model
of pda have a barcode reader on it,that is not always open)
To do this,the app is calling a dll (Symbol.Barcode.dll)
I don't know how i can call this dll in my pocket pc labview application.i have read in ni's site a lot of pdf but i didn't manage.

If someone can help pls answer...
i give u the dll and u can see those with microsoft visual studio .net


I'm not sure how you intend to call a .Net dll in a pocket PC system. As far as I know there is no .Net support in Pocket PC nor the newer Windows Mobile. A dll compiled to run on the host system under Windows 32bit (x86 architecture) can surely not run directly under Pocket PC (typically ARM based architecture).

If you want to call the .Net DLL on your host system then you simply use the LabVIEW .Net interface nodes.

Rolf Kalbermatter

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 9
(9,233 Views)
hello Rolfk,
The dll that i'm telling u is for pocket pc windows 2003.
I used this dll with .net to build an application for pocket pc (with vb.net ) and it worked.
I want now to build an application with labview,and i want to use this dll.
Can i?
And if i can,How?
The problem is that i have this pocket pc.It has a barcode scanner that i want to work with.
To enable tha barcode scanner with th vb.net application i call the dll.
With labview how can i enable this scanner?
0 Kudos
Message 3 of 9
(9,164 Views)


@+30 wrote:
hello Rolfk,
The dll that i'm telling u is for pocket pc windows 2003.
I used this dll with .net to build an application for pocket pc (with vb.net ) and it worked.
I want now to build an application with labview,and i want to use this dll.
Can i?
And if i can,How?
The problem is that i have this pocket pc.It has a barcode scanner that i want to work with.
To enable tha barcode scanner with th vb.net application i call the dll.
With labview how can i enable this scanner?


I have no idea. To my knowledge the LabVIEW PDA module does not have .Net support, only LabVIEW for Windows does have that. I still have some serious doubts that an entire .Net runtime is even available under Pocket PC OS. But you say it is so you will be better suited to investigate that than myself.

Rolf Kalbermatter

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 9
(9,153 Views)
If your pda is not the symbol unit but a domestic pda and you want to
add a barcode scanner then you can use either a Grabba www.grabba.com
or a Socket device www.socketmobile.com. Both these units have a
keyboard wedge software utility but the Grabba has a free SDKs whilst
you have to buy the Socket one. Grabba Support is also very good.

If you have a Symbol unit then you will have to use the Symbol sdk to
get it working properly

Ces
www.gripon.com


0 Kudos
Message 5 of 9
(9,091 Views)
You should be able to call your DLL relatively easily in LabVIEW for PDA.  If you havn't seen this knowledge base article yet, take a look.  If you know how to call DLL's in LabVIEW then you should already have a good idea of how to do it.

How To Call External Code in LabVIEW PDA for Pocket PC

I hope this helps.

Regards,
Eric A.
National Instruments
Distributed I/O Product Support Engineer
0 Kudos
Message 6 of 9
(9,068 Views)


@Eric A. wrote:
You should be able to call your DLL relatively easily in LabVIEW for PDA.  If you havn't seen this knowledge base article yet, take a look.  If you know how to call DLL's in LabVIEW then you should already have a good idea of how to do it.

How To Call External Code in LabVIEW PDA for Pocket PC

I hope this helps.

Regards,


Well, not having seen the DLL I wouldn't be so sure. A .Net assembly is also inside a DLL but there is no way you could call it with the Call Library Node. If it is however a normal C DLL, created with whatever C(++/#) compiler then yes that will work.

Rolf Kalbermatter

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 7 of 9
(9,062 Views)
Hi,
Good point Rolfk.  It is true that the DLL has to be compatible before anything else can work.
Eric A.
National Instruments
Distributed I/O Product Support Engineer
0 Kudos
Message 8 of 9
(9,002 Views)


@Eric A. wrote:
Hi,
Good point Rolfk.  It is true that the DLL has to be compatible before anything else can work.


And I did look at the DLLs in the first post in the meantime. They are definitely .Net assemblies, both from the naming as the internal binary format. As far as LoadLibrary/GetProcAdress (and with that the Call Library Node) are concerned they export absolutely nothing!!

So the OP will have to be more specific if he wants to use these DLLs in a host application (which should be easy with the .Net functionality in LabVIEW for Windows) or in a deployed PDA application (which I wouldn't know if the DLL even could run on, but definitely won't be accessible from a deployed LabVIEW PDA  client app).

Rolf Kalbermatter

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 9 of 9
(8,867 Views)