ursb@my-deja.com wrote:
>hi!>I've written a couple of procedures which I would like to reuse in CVI>as
well as in LabView.>So I need a dll incl functionPanel etc.>I've found lots
of informations how to built an instrument driver, but>where can I find informations
how to create my own library?>Thanks for any hints>Urs>>>Sent via Deja.com
http://www.deja.com/>Before you buy.
Urs,
There are a couple of things you can do to use these functions in other applications.
The first and simplest way is to #include the header file where these functions
are defined and add the .c file to the project. You should then be able to
call any of the functions you have written in the .c & .h file. This .c file
should only have your functions and no main as this would be in your actual
applica
tions .c file.
If you wish to use a dll you'll first need to create the dll, this will require
a dllmain function and therefore some changes to your c file. There is a
KnowledgeBase entry on creating DLLS and exporting the functions you want
access to. You can search the Knowledge Base at www.ni.com/support, the Knowledge
Base entry that I'm referring to is "DIRECT-3U6SEL". You may also want to
refer to the Programmer Reference Manual for LabWindows/CVI, page 3-20 for
more information.
Best of luck.
Kamran Shah
National Instruments