Hi
You can see the basic idea in a lot of Videos.... For example that one....
https://www.youtube.com/watch?v=DZuVu4qU9Uc
Basic Idea:
For The LCD one Output is enough.... Cause it show COM1/2 same time.
You have to create "One Set" of Input Configs for each Situation.
At first you have your ON-ON Switch. this only need ONE Config.... Cause all its do is toggle a Variable between 0 and 1
If in Pos 1 the Variable have to eb "0"..... In Pos 2 the Variable have to be 1 .
With this we say what "Mode" is active ( COM1 or COM2)
We also need now a OUTPTU Config that read the used Variable..... Lets call it MODE to use it later in the Preconditions!
The other Configs need always a Set of 2....
E.g. For the Swap Button you need TWO Input Configs...
Both use the same Button..... But one need to swap COM1..... The other need to swap COM2
And both need there Precondition.... The first Only work if MODE = 0 the second only work if MODE =1 .
Same logic for the Encoders.... You need at first 2 Configs for the Khz Encoder Input.
The first only work if Mode=0 (Com1) and again the second only work if Mode=1 (COM2)
Additional you need for your Khz/Mhz idea a Input for the Encoder Button.
It once again will toggle a own MF Variable.... Input : if($=1,0,1) So every press toggle a between 0/1 !
Lets call this second Variable e.g. "Hz Mode"
So at te End you need 4 Configs for the Encoder....
Config 1 set COM1 Khz ..... It say Only work if Mode=0 (Com1) AND only work if HzMode = 0 (Khz)
Config 2 set COM1 Mhz..... It say Only work if Mode=0 (Com1) AND only work if HzMode = 1 (Mhz)
Config 3 set COM2 Khz ..... It say Only work if Mode=1 (Com2) AND only work if HzMode = 0 (Khz)
Config 4 set COM2 Mhz..... It say Only work if Mode=1 (Com2) AND only work if HzMode = 1 (Mhz)
***********
Please watch the linked Video.
If you not be able to handle this.... Ask here again where you struggle. I will help you !