LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using existing C++ DLL with LV ?

Hi all,

I have some existing C++ DLL that I want to use with LV.

I enterend all the data to the node and still I'm unable to use all the functions in the DLL.

Can you tell where I'm wrong ???
Thanks,

FATMAN
0 Kudos
Message 1 of 17
(3,557 Views)
FatMan wrote in message news:<5065000000080000002B790000-1042324653000@exchange.ni.com>...
> Hi all,
>
> I have some existing C++ DLL that I want to use with LV.
>
> I enterend all the data to the node and still I'm unable to use all
> the functions in the DLL.
>
> Can you tell where I'm wrong ???
> Thanks,
>
> FATMAN

You may need to look at the LabVIEW manual(calling external routine)
of the data type it supports. LV does not support any arbitrary data
type in external DLL. Also sometimes you need to pass the pointer to
the data instead of the data value itself.
Irene
http://www.geocities.com/irene_he
0 Kudos
Message 2 of 17
(3,557 Views)
thnaks,

The functions are legitimate for LV.
It seems like the LV doesn't recognise any of my functions ?

FatMan
0 Kudos
Message 3 of 17
(3,557 Views)
What version of LabView are you using? If 6.x, when you're in the configuration screen for the Call Library node, can you pull down a list of functions?
What error messasges do you get?
Can you use any functions from your DLL?
How do you know that "the functions are legitimate for LV" if "LV doesn't recognize any of my functions?"
0 Kudos
Message 4 of 17
(3,557 Views)
I'm using LV ver 6.x

There are no functions in the pull down menu (thats why I think LV doesn't recognise my functions ).

I'm using these functions in other programs that I have in C++.

I meant that the function data type is correct (at least in my opinion...)

FatMan
0 Kudos
Message 5 of 17
(3,557 Views)
Maybe LabView isn't finding the DLL. Double check the path to the DLL in the configuration screen for the Call Library node. Either specify the path or put the DLL on the DOS serach path.
If you specify a DLL that LabView can't find and type a function name into the configuration screen, the LabView error will be "Call Library Function Node: function not found in library."
0 Kudos
Message 6 of 17
(3,557 Views)
The LV finds the DLL , it just doesn't recognise the functions in it .

FatMan
0 Kudos
Message 7 of 17
(3,557 Views)
Are you sure it's finding the DLL? How do you know? As I said before, if LabView doesn't find the DLL, the message it displays is "function not found in library". It doesn't say "DLL not found": it says "function not found". Can you call any function in the DLL?
0 Kudos
Message 8 of 17
(3,558 Views)
OK ,

I stand corrected ...

I've got the DLL file in the path "C:\WINNT\system32" and still get the ssame results -
"The function name specified for this node cannot be found in the library"

Thanks,

FatMan
0 Kudos
Message 9 of 17
(3,558 Views)
Can you post the DLL?
0 Kudos
Message 10 of 17
(3,558 Views)