1 SWITCH01 - two-way ideal signal switch
This submodel produces an output that switches from one value (input at port 4) to another one (input at port 3) when the command switch (input at port 2) is above or equal to the user supplied threshold. The output switches from the value at port 3 to the one at port 4 when the command signal drops below the threshold :
当命令开关(端口 2 的输入)高于或等于用户提供的阈值时,此子模型生成的输出从一个值(端口 4 的输入)切换到另一个值(端口 2 的输入)。当命令信号降至阈值以下时,输出从端口 3 的值切换到端口 4 的值:
output = input3 when command ≥ threshold
当命令≥阈值时,输出 = input3
output = input4 when command < threshold