LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

array control

HI

I have worked a lot on labview and C , now i have started working on CVi . Its fairly simple but what I want to know is that can you make a array indicator or control on .UIR file (user interface) as in the case of labview ?

Currently I am working on CVi9.0 , I have read that this feature is newly introduced in 2010 CVi . But I am more interested in how to show arrays data on CVi as we do it on labview .

or in simple words I want to input an array from .uir and i want to display some generated array on the .uir .

if you have any examples , that would be a great help.

 

regards

 

Regards
0 Kudos
Message 1 of 2
(2,856 Views)

Unfortunately CVI hasn't a direct equivalent of LV array indicator/control. What you are referring to about CVI2010 is an array of controls, which is a different thing: it's the way of grouping controls / indicators of the same type so that they can be accessed as a single unit.

 

The most close equivalent of LV array indicator is maybe the table control, but you will need to customize the table so that it fits the array datatype, number of elements and dimensions. All this can be done programmatically or interactively in the UIR editor but it must be done indeed: you cannot "wire" an array to a table and have it automatically adapt to it. Nevertheless, manipulating a table it's an easy task in CVI.

 

Filling the array or reading data entered by the operator must be done programmatically too, using Set/GetTableCellVal or Set/GetTableCellRangeVals.

 

Searching with the example finder you can find several example regarding the table control both on your machine and on NI site.



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?
Message 2 of 2
(2,850 Views)