LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Variable number of parameters on function panel

I'm trying to build a Function Panel for my application. Many of my functions have a variable number of parameters.
In some cases, they could be selected from a list. In a few others, one parameter defines the type of the next parameter and another parameter tells the number of pairs. How do I expound these functions on the function panel?
0 Kudos
Message 1 of 2
(2,601 Views)
For the second option (various pairs of parameters), you could take example from EasyTab_LoadPanels () function in Easy Tab custom control included in CVI. The callback associated to the function panel calls a second function (defined with the va_list macro provided in C language for creating variable-argument functions) that scans and interprets the list of parameters received.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,587 Views)