LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dual Numerical Control Change

Solved!
Go to solution

Dear Friends

I have two Numerical Control in the FrontPanel. Now I want to program Numerical Controls such that when I changed one of them the other one change susequently.

for example in the attached VI when I set "A" to 1 "B" should be automatically 1 to and when I changed "B" from 1 to 5 "A" Should be changed to 5 automatically.

 

Sincerely V.S

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

Hi VS,

 

use an event structure and a value change event for each control…

Best regards,
GerdW


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

Dear GredW

Could you please explain more?

 

Regards

0 Kudos
Message 3 of 7
(2,800 Views)
Solution
Accepted by topic author V.S

Hi VS,

 

that's what it looks like for a value change event of "A":

check.png

 

Btw. is it that hard to spell my name correctly?

Best regards,
GerdW


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

Dear GerdW

So sorry for misspelling

Thanks for the solution.

 

Regards

0 Kudos
Message 5 of 7
(2,781 Views)

Dear GerdW

The suggested solution works but when I change the data several times in a row it hangs and I can not input new values any more.

Please see the attached file.

 

Regards

0 Kudos
Message 6 of 7
(2,773 Views)
Solution
Accepted by topic author V.S

Hi, V.S

 

You have too much event structure in while loop.

 

It will run step by step.

 

For example, when you change value A , and it will run "A" event but the last three event wait for user changing value.

 

The program is not to work, because it wait others event occurs.

 

You can add more case in one event.

 

ex1.JPG

 

 

 

Patrick

 

Certified LabVIEW Developer
Message 7 of 7
(2,761 Views)