LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Put informations in clusters with for loop

Solved!
Go to solution

Hello everybody,

 

I will try to explain my problem.

 

I have X clusters in a cluster or a tab control or just in front panel (it could be adaptable for the most efficient way).

Each cluster had the same composition :

 - 2 delta numeric control ("delta min"/ "delta max")

 - others controls not useful for my problem (reference value, value min/max...)

 

I have an Excel file with all min/max delta for the X clusters.

I separate in 2 arrays my min max delta, but now I would like with a for loop fill in each delta numeric control for all clusters. I replaced the excel file by 2 random arrays.

So, in fact, at the beginning of my for loop, I have :

- 1 "delta minimum" array (with x values)

- 1 "delta maximum" array (with x values)

- 1 [cluster/tab control] of clusters (with x clusters)

The arrays and clusters are in the same order.

 

Could you help me to fill in the different clusters ?

You could delete the big cluster if the solution is easier without.

 

Thanks in advance,

 

Florian

 

0 Kudos
Message 1 of 7
(2,630 Views)

Hi Florian,

 

two notes:

1. as your clusters all look the same you should use a typedefinition for them

2. I want to recommend a different scheme for storing/handling your data: create an array of clusters! Either keep the names/labels of your current clusters in a 2nd array (of strings) or add the label as string into your current cluster. Then you can easily autoindex each cluster to fill in the delta values…

 

Side note: the data structures for storing data in the program doesn't need to be the very same you use for displaying those data to the user!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(2,626 Views)

Thank you 

 

 

 

 

 

0 Kudos
Message 3 of 7
(2,611 Views)

Hi Florian,

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(2,587 Views)

Hello 

 

 

 

 

 

0 Kudos
Message 5 of 7
(2,559 Views)
Solution
Accepted by topic author flabastie

Hi Florian,

 

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(2,554 Views)

Hello GerdW,

 

You begin to know my Labview code and I need again your help.

My project is in good way, but I have again some troubles :

- I want for each cluster to color in red the min/max error counter if an error occurs. I already did that, but with the typedef, I don't find the good way for this coloration.

- If an error occurs, I have to log the error with all datas of the cluster. An error occurs when i want to write in my file. The file is well created with the option "open or create", but when i want to write ... error.

 

After this two problems, i think a very big part of the code will be ok.

 

Thanks for your help,

 

Florian

Download All
0 Kudos
Message 7 of 7
(2,531 Views)