LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Indexing control and indicator at once

Dear Labview Community

 

 

We have written a Labview VI to control our Galvanostates containing 8 cells, each of them should indicate some values and be controlled by the user. Now, we have 2 arrays of length 8 in which to operator has to change the index twice, for control and indicator, to handle one cell. 

 

We then used an integer to read out the element of the array, but then the default values for the control show up and not the values which were set at a earlier point. 

 

Now the question is, how does one handle 2 arrays at once, a control and a indicator, without having to change the index of each array? 

 

Thank you in advance

 

0 Kudos
Message 1 of 4
(2,181 Views)

Hi John,

 

please attach your VI(s). It seems from your description you have created some race conditions.

 

Also: why would one have to change some index values for an array control/indicator? It would be much easier to understand with an VI for inspection...

Best regards,
GerdW


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

Dear GerdW

 

Attached will you find a VI which contains the mentioned structure ( I am not allowed to upload to whole Vi). We would like to change the index of the indicator and control at once, not having to change the index for each of them.

 

Thank you in advance

 

cheers

0 Kudos
Message 3 of 4
(2,037 Views)

Hi John,

 

you can work with property nodes to set the index of the visible array element:

Example John Wayne_BD.png

(The English name of that property should be "index values".)

Use a scalar numeric control and hide the index display of the arrays...

 

Your inner while loop was just RubeGoldberg...

Best regards,
GerdW


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