LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Include multiple fp files in a Type Library

I am creating 4 IVI drivers for a single instrument that contains a power supply, function generator, RF signal generator, and a switch.

To do this I have created 5 function panels; 1 for each of the instruments and one for the generic/required functions. This was done because the customer wants a single DLL with each function with a subset to have the prefix as xxxsg_, xxxfg_, xxxps_, and xxxsw_ while the entire DLL is built as xxx.dll.

Building the indepenent instruments was not a problem but since the DLL will ultimately be used in testStand, I need to build the type library. CVI only is allowing me to link to a single fp file. Is there a way in CVI to include multiple fp files.

I know that I can create an ODL and RC
file, include them in the project file and then they would be built into the DLL. Considering the number of functions, this would be painful.

Thanks.

Randy
0 Kudos
Message 1 of 5
(3,694 Views)
Hello

I dont think there is a way currently for CVI to target multiple fp files to create a type library. The fastest way to do this would be to have the fp create the ODL file for you , under Options >> Generate ODL file. Combine the odl file from all the fp's and add it to the project. You can also use mktyplib.exe ( found under ..\CVI\sdk\bin ) to compile the ODL file for you.

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
Message 2 of 5
(3,695 Views)
I generated an ODL file for each fp and then combined them into a single ODL file and compiled it with mktyplib to generate the .tlb file.

I have included the .tlb file in the project but the resulting DLL still doesn't have type information. What step am I missing.

Thanks.

Randy
0 Kudos
Message 3 of 5
(3,694 Views)

I am facing the same problem with the creation of a type library.

Is there no simple way to combine .fp-files? Unfortunatly "cut and paste" seems not to work!!

0 Kudos
Message 4 of 5
(3,520 Views)
Forget about it.
My target .fp file was marked 'read-only'->Cut and paste works!!
0 Kudos
Message 5 of 5
(3,515 Views)