From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-18-2014 05:33 AM
I have a combo box which is populated from a cluster array which is unbundled to the element I want to populate the combo box with. There is multiple types with the same element such as
1 - 60mm
1 - 60mm
1 - 60mm
1 - 60mm
3 - 60mm
3 - 60mm
What I want to do is just show one 1 - 60mm and one 3 - 60mm and when selected will get the index value to be displayed with thos types only in a table?
Solved! Go to Solution.
06-18-2014 05:39 AM
You mean you want to remove the duplicate elements?
06-18-2014 05:41 AM
Yes I want to remove the duplicates and when that element is selected it will load all matching elements
06-18-2014 05:52 AM
@PauldePaor wrote:
Yes I want to remove the duplicates and when that element is selected it will load all matching elements
What is the output that you are expecting? the index of the matching values? number of matching values?
06-18-2014 05:55 AM
The output is being displayed in a table and I would like just to display all matching elements in the table
06-18-2014 06:35 AM
I am not limited to a combo box any other form of control like a combo box will also suffice
06-18-2014 06:49 AM
You can go for a Ring control. Still not able to understand "matching elements". Do you mean that other elements in the cluster along with "Type"?
06-18-2014 06:56 AM
My cluster has multiple elements with an ID Type Time Date Stamp and various other paramenters. Some elements have the same type for instance
ID Type Time Date
1 1-60mm 13:00 18/06/2014
ID Type Time Date
2 1-60mm 13:00 18/06/2014
ID Type Time Date
3 3-50mm 13:00 18/06/2014
I would like the combo box or ring control to display just one 1-60mm(no duplicates) and when pressed it will load every other element with type
1-60mm in my table
06-18-2014 07:10 AM
Here's how I would do that: (second case is 0, Default and it's just stright wire connecting shiftregisters)
06-18-2014 07:17 AM - edited 06-18-2014 07:20 AM
I just made a sample code to show one of the way to achieve what you want (To be honest, I did to refresh my coding skill). You can tweek to get it to a good shape.