LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of controls

Hi everybody,
I'd like to know if exists in LabWindows/CVI array of controls.
For example an array of Numeric, or Command Button.

Thank very much for your answers.
0 Kudos
Message 1 of 5
(3,386 Views)
There is no array of controls. About the closest thing to it is to create an array with initializers.
For example,
int naCommandButton[] = {PANEL_COMMAND1, PANEL_COMMAND2, PANEL_COMMAND3}; // where these are the control Id's from the .h file of the UIR.

You can then use this array in your program to manipulate all the button.

Hope this helps.
0 Kudos
Message 2 of 5
(3,386 Views)
Thank you very much JAL, it has been very useful for me.

"JAL" escribió en el mensaje
news:506500000005000000EB7A0000-1021771306000@exchange.ni.com...
> There is no array of controls. About the closest thing to it is to
> create an array with initializers.
> For example,
> int naCommandButton[] = {PANEL_COMMAND1, PANEL_COMMAND2,
> PANEL_COMMAND3}; // where these are the control Id's from the .h
> file of the UIR.
>
> You can then use this array in your program to manipulate all the
> button.
>
> Hope this helps.
0 Kudos
Message 3 of 5
(3,386 Views)
Since CVI first started, what virtually all developers wanted at some time
or other was a simple array of controls. We never got it, and never will.
You can either generate the controls programmatically, which is a pain, or
set them all up on the .uir manually, which is a pain. Note that when
cutting and pasting groups of controls they end up in the wrong order, the
numbers and ID's running from right to left and bottom to top.

I've sent a little demo separately.

"neolaxus" wrote in message
news:3ceec5cf@newsgroups....
> Hi everybody,
> I'd like to know if exists in LabWindows/CVI array of controls.
> For example an array of Numeric, or Command Button.
>
> Thank very much for your answers.
>
>
0 Kudos
Message 4 of 5
(3,386 Views)
In a little CVI defense, most of the requests we received for arrays of controls were addressed by the table control. You can do arrays of numeric, string or event picture data (if you want little button or LED pictures) with the table control. It doesn't address arrays of complicated controls like graphs, and it isn't extremely simple for arrays of boolean controls. Most of the requests we receive was for numeric and string data though and the table works very well for that.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 5 of 5
(3,386 Views)