11/2/2020 9:56 AM  
Joined: 12/18/2014 Last visit: 11/25/2020 Posts: 20446 Rating: (2231)

I'm confused too. You only switch the release for the mathematical instruction with the preceding logic on or off. And if you do not write any values in the parameters (and formulas) in the mathematical instruction, the value 0 is always output. I don't know what you promise from your circuit.

11/2/2020 10:58 AM  
Joined: 2/22/2008 Last visit: 11/24/2020 Posts: 2045 Rating: (156) 
Maybe you are searching for a solution like program in attachment ? You have not described, what should be happen, if more than 1 input is on. In this case i have presetted the values in order of input number, I4 is highest priority. Regards, Scorp AttachmentAMux1.zip (10 Downloads) 
11/2/2020 1:23 PM  
Joined: 2/23/2017 Last visit: 11/2/2020 Posts: 27 Rating: (0) 
Thanks a lot Scorp :) Your snipped seems to do what I was looking for. Thank you very much. To answer your question about what happens if more than one input is "1", I have XORed all four inputs so, in my mind, only one of them can (or should) be active at the time. I'll play with your solution and will learn from it 
Last edited by: flotul at: 11/02/2020 13:32:33 

11/2/2020 2:03 PM  
Joined: 2/22/2008 Last visit: 11/24/2020 Posts: 2045 Rating: (156) 
You can not use the XOR blocks in the solution with the analog multiplexers, because you need the 4 digital inputs directly at the multiplexers. You can control the bevavior by choosing the right values in the parameter of the multiplexers. There are 4 values for each multiplexer. If both inputs are off, then select 0 as value. If 1 input is on, then select your desired value. If both inputs are on, then select anything else or the same value as for the input with the higher priority. If you only have 4 different values (100, 200, 300, 400), then you also can use only 1 multiplexer with 2 digital inputs at all, depending on your wiring diagram of the inputs. If you want more than 4 inputs (e.g. 6), you only need to cascade a third multiplexer. Regards, Scorp 
Follow us on