LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change names of an Boolean array in a which has been placed in a cluster?

Hi guys,
 
for my program i need to initialize which tests are in a testblock. Each test is settable with a Booelan button to enable the test, or disable it.
 
I have actually 22 testblocks containg over 400 tests. What i would like to do is to make 1 array  with Boolean buttons. So, if you're exploring the testblocks, the labels of this buttons must contain the test names. How can i make a program so the testnames will be automatically transferred to the label of the Boolean buttons? (My array of buttons is placed in a cluster, because i have more data to store about the tests..)
 
thanx for your help.
 
 
 
 
0 Kudos
Message 1 of 4
(3,106 Views)
Hi btwesseli...,

in an array all elements have the same properties. So you cannot make the labels/captions or whatever different for those booleans.
But:
You can overlay an string over the boolean button. Make a string indicator your cluster, make this string transparent and move it over the boolean. Now you can have a
'label' over the boolean containing the name of the test.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(3,096 Views)
Ok thanx! It is worth a try!
 
By the way, is it possible to change one individual value in the array? for example, if I want to change button 1 to true, how can ii do that programmatically? It didn't work out that well with a property node...
0 Kudos
Message 3 of 4
(3,092 Views)
Hi btwesseli,

it's LabView, so you better use dataflow programming 🙂

To change an array element use the function 'Replace Array element'. If you do this in a loop you should use shift registers to keep the latest version of your array.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 4
(3,060 Views)