Hi,
I am making a control for a multichannel pump. It has the capability of controlling each channel independently, but coupling them (pos. and neg.) as well. F.e., by selecting A+ for both channel 1 and 2, by raising channel 1 I can raise channel 2 without actively touching it, etc. Now, I have a working solution as posted below, but it annoys me that I need to add an event case for each channel change, as scaling the device is annoying. Also, I'm using loads of local variables and it seems the regulars here don't like that :) I'd be grateful if anybody gave me a tip towards a simpler solution.
Thanks for your help!