LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

custom type in Function Panels

I created many function panels with Labwindows and they work fine.
The problem arises when a function of my library uses a custom type,
e.g. a struct: I have to edit the control in the function panel
window, and I can choose only among standard C types. If I choose a
type which is different from the one used by my function, the library
works fine anyway, but it is not very elegant for the end-user.
Any suggestion appreciated.
Tanks
0 Kudos
Message 1 of 2
(2,800 Views)
In the FP Editor, open any function panel for edit. Go to Options->Data Types... You can add your own data types here and they will be available in the function panel editing features. If the data type has an instrinsic base type you can specify it so the FP editor can make assumptions about control types.

Remember, after you generate the FP, you will need to go to the header and add the typedef statements for the data types you used.

Best Regards,

Chris Matthews
Measurement Studio Support Manager
Message 2 of 2
(2,800 Views)