LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

wat the advantage of using the cin as compared to calling external code by the call library function.

where can i get additional info regarding the following topic
1. I have a pda12a acquisition board and the driver are written in c++,how to i convert into a dll.
2. will it be better if i use call library function or cin(the program is very large and it contain alot of function statement that describe different operations)
3. I have read up on the calling of external code from labview 6.1 manual. And also the basic 1 and 2 and the advanced course manual but i find that the information is not detail enough, where can i source for more detail so that i will have a better understanding of calling the external code.
0 Kudos
Message 1 of 2
(2,680 Views)
Derek,

I would recommend going with the DLL over the CIN. Most drivers come with DLLs and there are certain advantages to using DLLs. One is that any application could call into the functions exposed by the driver and the other is that by using a DLL the code is only loaded into memory when the driver is called. If you use a CIN, to the best of my unserstanding the code will be complied into your application ... thus increasing the footprint of your application.

I found a tutorial in NI Developer Zone titled: How to build a DLL with Visual C++. You can find it by going to the Resource Library at http://zone.ni.com/libraries/ and then go to LabVIEW -> Connectivity -> DLL Integration

On this page you should also find a document titled: An Overview of Accessing DLL
s or Shared Libraries from LabVIEW

Another resource you may want to look at, if you haven't already, is the manual Using External Code in LabVIEW. This covers the use of CINs and DLLs in LabVIEW 6i, you can find it from http://www.ni.com/manuals

You may want to check to see if the pda12a board's manufacturer can provide you with the function calls and parameters for their driver - that should make things go faster.

Best of luck,
Kamran
An
Message 2 of 2
(2,680 Views)