![]() |
上海壹僑國際貿(mào)易有限公司
主營產(chǎn)品: FILA,DEBOLD,ESTA,baumer,bernstein,bucher,PILZ,camozzi,schmalz |

聯(lián)系電話
![]() |
上海壹僑國際貿(mào)易有限公司
主營產(chǎn)品: FILA,DEBOLD,ESTA,baumer,bernstein,bucher,PILZ,camozzi,schmalz |
聯(lián)系電話
2023-9-22 閱讀(274)
我在模擬兩個結點,發(fā)送兩條信息;建了兩個面板,面板A,面板B.實現(xiàn):點擊面板A上的開關Switch_1A,面板B上有指示燈Indicator_B亮。建模完成仿真時,沒有彈出任何問題,彈出面板A 面板B,我點擊面板A上的Switch_1A,這個開關呈亮狀態(tài),但是面板B上的Indicator_B沒亮。請教這是錯在哪里了??
下面是兩個結點里面的程序:
NODEA:
variables
{ message Message_A mMessage_A;
}
on envVar Var_Switch_1A
{
mMessage_A.Switch_1A= getValue(this);
output(mMessage_A);
}
NODEB:
variables
{ message Message_B mMessage_B;
}
on message Message_A
{
putValue(Var_Indicator_B,this.Switch_1A);
mMessage_B.Indicator_B=this.Switch_1A;
output(mMessage_B);
}