[英]How do you gateway FlexRay frames before a Graphics/Trace window if you have a CAPL node there?
這比其他任何事情都更適合練習。 我在圖形 window (CAPL 節點的位置)之前添加了一個 CAPL 節點,我只是想熟悉一些簡單的事情,比如向信號和事物添加偏移量。
如果我想使用以下內容,我可以通過 CAN 信號原封不動地傳遞它:
on message CAN1.*
{
message CAN1.* msg;
if(this.dir == rx) {
msg = this;
output(msg);
}
}
問題是我不知道如何為 FlexRay 執行此操作。 我根據以下內容嘗試了一些組合,但總是以錯誤告終;
on frFrame * {
frFrame * myFrame;
if(this.dir == rx) {
myFrame= this;
output(myFrame);
}
}
任何指針將不勝感激。
如果您想將程序節點中的 FR 幀傳遞給 Graphics window 或 Trace window,您只需編寫以下內容
on frFrame *
{
if(this.dir == rx)
output(this);
}
不需要添加條件if(this.dir == rx)
。 因為如果您正在模擬它,則該幀有可能是一個 tx。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.