LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Tables in Labview

Hello, I am trying to create a custom table or array that is capable of holding some data from an excel file in such a way that a check box is to be added next to each row. I want to be able to check which rows I am interested in then click some button that will process only the checked rows. I tried doing the following but I am having a small problem: I created a 1 D array of Clusters, where the cluster is consisted of a checkbox control and an array of strings control. I was able to successfully load the data from the excel sheet into the array, but the problem I am having is with the horizontal scroll bar cannot be added to the 1D array. Also, the checkbox works more like an Indicator, I couldn't click it once the VI runs. Is there a better method to do so using tables or arrays ? Attached is the VI that I am trying to build Thanks, Sam
0 Kudos
Message 1 of 3
(2,850 Views)

Looked at your code.  Not sure why you couldn't get the horizontal scrol bar to show on the 1D array in the cluster, but I was able to do that.  You have to be sure to right click on the array border within the cluster to get the option.  If you just click on an element you will get the options for the element not the array.  Same holds true if you click on the border of the cluster. 

 

As for the check box, you are correct, it is functioning as an indicator, since the Parameters array is an indicator.  To make the check box act as a control, the array must be a control.  The problem is, you must write data to a control programatically, which means the use of a local variable in LabView. 

 

Suggest that you write your data from the output of the Excel VI to a local variable of the Parameters array.  Change the Parameters array to a control as well.  That should give you the functionality that you desire.

Troy
Message 2 of 3
(2,825 Views)

Hello Troy,

 

Thanks for the info. I wasn't talking about the Horizontal scroll bar of the 1Darray inside the cluster, but the one for the Parameter array. It makes sense that it will only have the Vertical bar since I expand my array downwards but It will be nice if I can have a Horizontal scroll bar as well.

 

Thanks,

Ayman

0 Kudos
Message 3 of 3
(2,800 Views)