LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Type restriction while editing function panel

Hello,
I'm editing a function panel for an IVI driver. I have for example this kind of function :
ViStatus MyFunction(ViSession vi, unsigned char **SpecificBuffer, MyStruct **Result);

I haven't found a way to create a function panel for that function because there's no possibility to enter our own type for a control. For the function above, I can't declare a parameter as an unsigned char ** or as a MyStruct **.

Is there any solution for that?

Thanks
0 Kudos
Message 1 of 3
(3,173 Views)
Hello,

Indeed, it is not possible to specify any data type in the function panel. Nevertheless you can make the choice to pass the pointer to your structure as a pointer to a void.
You will find a simple exemple in the attached file. You can do the same with an array of string.

Regards.
0 Kudos
Message 2 of 3
(3,135 Views)
You can add custom data types for function panels. Open up an fp in edit mode, select Options >> Datatypes. You can add your custom data types in this dialog. Make sure that you have typedef'ed your data type as well. Check out the Help for more information on how to use the dialog. This menu option only shows up if you are editing an fp.
Bilal Durrani
NI
0 Kudos
Message 3 of 3
(3,120 Views)