11-11-2016 04:12 AM
Hi,
I am trying to support a customer with very old code in Lookout 4.0.1. What I need to do is get one Pot control to update the value in another. They have this in place already and I have tried to copy how this is done but when I do this by adding a new control (Pot Object) and setting the value parameter (right click, edit connections.. in Connection Browser) to the other control it does not update. I suspect I have missed a parameter somewhere but I don't know what it is!!
If anyone could guide me I would be very grateful
Kevin
11-14-2016 01:44 AM
Hi,
In your process, if there are two pots which are pot1 and pot2, and you want to use pot 2 to control pot1, you can right click pot1 and choose edit connections, then confugure it as the following pictures, the function will be realized. You can have a try again.
11-14-2016 03:32 AM
Hi,
Thanks that was very helpful, I had the connection the wrong way round i.e. I thought I had to write the value in rather than read it. All sorted, thanks.
I do have another related question though, how do I set Pot2 value from a push button. I want to set it to zero when the button is off and to say 20 when on. I can see I can use the same connection principle but how do I apply the coding logic I need.
Thanks again
Kevin
11-14-2016 11:33 PM
If the pot is pot1 and the push button is pb1, you can configure the pot edit connection as the following picture.
11-15-2016 07:57 AM
Thanks!
Kevin