LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a function panel file (.fp) properly in CVI

Hi!
[Windows 10; CVI 2015  15.0.0(413)]
I am developing a .dll in c using LabWindows/CVI. I need a .fp file to include it in the .dll so i can see function prototypes when i include the .dll in TestStand. 

I have difficulties creating a .fp file. When i see guideline for creating .fp (https://www.ni.com/en/support/documentation/supplemental/07/generate-ni-labwindows--cvi--function-pa...) i can see, that after creating the fp, there is already filled functions. But that doesnt work for me. When i go Options-> Generate Function Tree... i get the .fp file, but it is empty! Not prefilled with function prototypes.
Why in the guidline i have provided earlier (https://www.ni.com/en/support/documentation/supplemental/07/generate-ni-labwindows--cvi--function-pa...) there are generated functions in the .fp file? What i need to do to achieve the same result? I want to avoid adding the functions manually and filling the parameters my self. 

I am enclosing snippets of my header file and what i fill into "generate function tree dialog".

Thanks for responds!

Download All
0 Kudos
Message 1 of 3
(4,596 Views)

Hello,

 

FP generation is very sensitive to the syntax you use in the header file. It doesn't support all forms of declarations. In your case it seems it doesn't work if you use __declspec(dllexport) in your declarations. Adding __declspec in Default qualifier field is not a solution. What you can do is to remove __declspec(dllexport) from your declarations and choose that your dll to export the symbols from GM3_wrapper.h:

Build>>Target Settings>> Press Change button from Exports section on the bottom of the dialog. In DLL Export Options dialog choose Include file symbols and check your header file.

Message 2 of 3
(4,562 Views)

Hi!

Thanks for your advices. I have actually had done this and it warked. So i guess it was all about the specifiers. 

Thanks 
Jan 

0 Kudos
Message 3 of 3
(4,515 Views)