LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a win32 DLL from .fp, .c and .h files?

I have recently bought a Sorensen DCS150-7E power supply with GPIB. I know that there are a number of ways to program this piece of equipment including NI-488 and NI-VISA classes. However, Elgar has provided both LabView and LabWindow code (.c, .h and .fp files) to program the power supply. As I'm new to all this, I don't know how to use LabView or LabWindow, mainly due to the short lifecycle of my project. I however, do know how to use .Net, in particular C#. National Instruments have provided a method called Instrument Wrapping to convert function panels to .Net classes. To do this you need the function panel as well as the win32 DLL using standard calls. Unfortunately, I'm not particularly advanced in the use of C/C++ or LabWindow thus I don't know how to create the required DLL. I have attempted it but to no avail. I just need some help (step by step guide) on how to create the DLL or if some kind person could create the DLL for me I would be eternally grateful :D. I have been trying to solve this problem for about a day and half but due to the short nature of my project I can not spend a great deal of time on it (I have 6 months left to create the entire software side of the testset and I just learned how to use TestStand, GPIB and all NI equipment).

I have attached all the required files.

Thank you.

With Regards

Elnaz
Message 1 of 5
(3,822 Views)
Try this out

1- Create an empty project
2- Open the fp in CVI
3- With the fp open, go to Options >> Create DLL Project. This will ask you to save a project and then load it up.
4- Chose Release or Debug configuration from the Build menu item, and then build the DLL from the same Build menu item.
5- If you want to change the name of the DLL, go to Build >> Target Settings.

I hope this helps
Bilal Durrani
NI
0 Kudos
Message 2 of 5
(3,807 Views)
There's some additional info here and here.
0 Kudos
Message 3 of 5
(3,805 Views)
I also found some more information here. Refer to the section "Create a DLL from the Original LabWindows/CVI Instrument Driver". This some has some step by step instructions with images as well.
Bilal Durrani
NI
0 Kudos
Message 4 of 5
(3,786 Views)
Thank you all.

Part one of "Conversion of Instrument Driver from LabWindow/CVI to LabView" worked like a charm.

Sincerely,

Elnaz
0 Kudos
Message 5 of 5
(3,754 Views)