LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate multiple cluster controls for main.vi

Hi,

 

I have situation here:

1) Main.vi will load data from database and update the cluster control which contains Boolean button, combo box, & multiples string box (as attach inside the vi).

2) If there is more than 1 row of data, would need dozens of repeatable cluster controls. Maximum 50 rows of data will be pull from database.

3) User can change the contents of the cluster info, delete the cluster row and update back to database.

Do have any suggestion or example link to as requested for multiple cluster control creation.

I do have intermediate stage level of LabView knowledge but it seem I'm struck here.

Appreciate for the help.

 

Thanks,

Simon

0 Kudos
Message 1 of 10
(5,970 Views)

Hi Simon,

 

The simplest way of achieving the required functionality is creating an array of those clusters. When reading data from the database, you can populate the data to each element of the array. You can also programmatically control number of elements to be shown on the front panel, depending on how many cluster you want to show.

 

Thanks,

Arev

 

CTO | RAFA Solutions

 

Certified-LabVIEW-Embedded-Systems-Developer_rgb.jpgCertified-LabVIEW-Architect_rgb.jpg

0 Kudos
Message 2 of 10
(5,948 Views)

Hi Arev,

Thanks for the reply.

I did consider the array cluster at beginning. If I would like to update the combo box contents of the cluster, I don't think able to do it for cluster array.

Worst case will be create multiple cluster, hide and show.

-Simon

 

 

 

0 Kudos
Message 3 of 10
(5,881 Views)

Hi Simon,

 

If the items of the combobox within the cluster are the same for all the elements of the array, then you'll be able to programmatically fill them.

 

Please find attached you code modified to add the programmatic addition of items in the array elements.

 

Thanks,

Arev

 

CTO | RAFA Solutions

 

Certified-LabVIEW-Embedded-Systems-Developer_rgb.jpgCertified-LabVIEW-Architect_rgb.jpg

Message 4 of 10
(5,877 Views)

Hi Arev,

 

The combobox of the cluster is same for all elements of the array.

Another question, if the user key in some value(dbl) in one of the index array row control, how to know which index array is the corresponding one as i need to do some calculation and display the value to the same cluster indicator.

 

Thanks,

Simon

0 Kudos
Message 5 of 10
(5,794 Views)

Saw one of the post using array of cluster in table format (as attach).

I want to fix the table size to row 20, additional increase will show vertical scroll bar. But somehow the table not allow me to scroll down with element size increase.

-Simon

0 Kudos
Message 6 of 10
(5,783 Views)

Your table is an indicator, and it is disabled.

It doesn't have enough elements in it to have to need to scroll down.

Message 7 of 10
(5,777 Views)

Ravens,

 

Thanks to point out. The example is grab from one of the post & didn't noticed is disable.

Only if the user increase the element size, it will allow user to put info up the index array.The rest will be disable.

 

Thanks,

Simon

0 Kudos
Message 8 of 10
(5,765 Views)

How to put name on left top corner of the table ?

Put name to header.jpg

Thanks,

Simon

0 Kudos
Message 9 of 10
(5,762 Views)

I don't think you can.

 

What you could do is put a transparent string or label over top of it.

Message 10 of 10
(5,748 Views)