LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sync between two controls - Please help.. Fast response is appriciated !!

Hi,

I simply wish to sync two controls in the following way:

1. I have Control A displaying three values (like a combo box) which
cannot be changed by the user, for example: X, Y, Z
2. The second control, Control B, has defualt value, say 100, however
the user can change its value when the application is operated
3. The user first select Control A value then he set Control B value,
for example for Control A's value X he sets Control B's value to 150,
for Control's A value Y he assigns Control's B value to 250 and for
Control's A value Z he assigns 450

The problem starts when i switch between Control A's values (states),
the values of Control B were not kept

Hope i explained it ok..

Can someone please assist me???

Thanks

0 Kudos
Message 1 of 8
(3,568 Views)
Hi,

I am not sure I understand exactly what you are trying to do Smiley Indifferent

If you want Control B to be automatically set to a value that depending on Control A's state, you can use a local variable and a LUT (look up table) in wich you asign a Control B's value for each Control A's state.

Or it's even easier with a combo box since you can use it as a LUT by disabling "Values match labels" 😉

Check example attached.
Hope this helps 😉


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 8
(3,561 Views)

Hope i explained it ok..

Guess you did, but i could not understand it ok! Smiley Wink
 

You said, values of Control B were not kept. can you explain that with an example code or picture of block diagram??
 
Is control B a numeric control??
Do you want control B to remember its previous values that were corresponding to values of control A????
0 Kudos
Message 3 of 8
(3,559 Views)
Hey Titou!
 
How are you??
 
From your signature, it looks like LabVIEW 8.2 is inducing some modest qualities in you!
 
All the best
 
May your learning curve progress as a straight line with a slope=1 and offset=0  Smiley Wink
0 Kudos
Message 4 of 8
(3,556 Views)


devchander a écrit:

From your signature, it looks like LabVIEW 8.2 is inducing some modest qualities in you!


Well... it takes time, patience, humility and even more... but it's certainly going to be worth 😉




devchander a écrit:
 
May your learning curve progress as a straight line with a slope=1 and offset=0  Smiley Wink


Actually, the offset is negative (I started from underground Smiley Very Happy) so I'm trying to keep going with the highest slope I can Smiley Tongue



We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 5 of 8
(3,552 Views)
Smiley Very Happy
0 Kudos
Message 6 of 8
(3,549 Views)

Hi devchander

Thanks for the prompt response 🙂

Where should i send teh sampled VI to?

0 Kudos
Message 7 of 8
(3,535 Views)
Hi Molder,

Did you see the small VI "example2.vi" I posted here ? and does it correspond to what you need ?
Please let me know if I am missing the point Smiley Surprised...

BTW, if you want to post VIs or images the is a special field "attachment" to post file with your message. 😉

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 8 of 8
(3,521 Views)