LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Log changes in controls.

Solved!
Go to solution

Hello friends!
How do I make the attached vi recognize changes in the state of the controls if the controls are inserted in the tab. When the controls are outside, everything works fine, but if I insert the control into the tab, changes to it are not detected.
Thanks for the help!

0 Kudos
Message 1 of 6
(123 Views)
Solution
Accepted by topic author MarceloPinto71

Hi Marcelo,

 


@MarceloPinto71 wrote:

How do I make the attached vi recognize changes in the state of the controls if the controls are inserted in the tab.


You need to get the references to those controls, too.

To do so:

  1. The VI already gets the references of all controls on the VI "Panel".
  2. Now you need to determine if there is a reference to a tab control to determine all controls inside the tab (pages).
  3. Build an array from all references from step 1 and all references found in step 2 to register the event as shown in the example VI.
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(108 Views)
I'm sorry for asking more, but could you give me an example with the boolean and boolean2 controls inside the tab? I think it will be easier for me to understand. I'm a bit confused.
0 Kudos
Message 3 of 6
(96 Views)

@GerdW 

I'm sorry for asking more, but could you give me an example with the boolean and boolean2 controls inside the tab? I think it will be easier for me to understand. I'm a bit confused.

0 Kudos
Message 4 of 6
(68 Views)
Solution
Accepted by topic author MarceloPinto71

Hi Marcelo,

 

like this:

  1. Get all control references for VI panel
  2. for each reference: check if it is a tab container (using ToMoreSpecificClass)
  3. for each tab container: get all pages and get all controls per page
Best regards,
GerdW


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

@GerdW , It is working! Thank you very much!

0 Kudos
Message 6 of 6
(48 Views)