LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling DLL functions by Alias: Possible?

What I want to do is to control a measuring instrument using LabVIEW.
The instrument vendor provides access to the instrument's functionality
through various DLLs. There are templates to write custom programs with
VB and VC++. In these templates, a VB module serves as "glue code"
between VB and the DLL. In it, a typical DLL function is declared as
follows:
Declare Function foo Lib "XYZ" (....)
These are EXPORTED functions. I can access these directly through
the LabVIEW VI CallLibraryFunction.

The problem is that some other functions are declared as
Declare Function foo2 Lib "XYZ" Alias "#1016" (...)

These functions are NOT exported, and so are not available to LabVIEW.
At least, LV complains...

What does Alias "#1016" mean?

Is there a way to access these functions? The best idea I could come up
with is to write a DLL in VB which would now export those "aliased"
functions. Would this work? And how would I proceed?

TIA, any help appreciated!

--
--germ
0 Kudos
Message 1 of 3
(2,858 Views)
For a little more information on alias I would try the following document: http://www.canaimasoft.com/f90VB/OnlineManuals/UserManual/TH_45.htm

If they are using the function #1016 in VB it sounds like they are exported and would be available to Labview as well. There is a vi you can use to determine all the functions exported. It is available at http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/90e15135d6d37fd9862567cf0065eee4?OpenDocument.

Hope this helps.
0 Kudos
Message 2 of 3
(2,858 Views)
In article <506500000005000000E8510000-1005954886000@exchange.ni.com>,
codeman2 wrote:

> For a little more information on alias I would try the following
> document:
> http://www.canaimasoft.com/f90VB/OnlineManuals/UserManual/TH_45.htm

Thanks.
>
> If they are using the function #1016 in VB it sounds like they are
> exported and would be available to Labview as well. There is a vi you
> can use to determine all the functions exported. It is available at
>
> http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/90e15
> 135d6d37fd9862567cf0065eee4?OpenDocument.

I have one already called Get Exported Functions (or similar). The
aliases do not show up.

--
--germ
0 Kudos
Message 3 of 3
(2,858 Views)