Hi,
I would like to filter CAN Messages with the command filterAllowOnly, but if I type it in the command window it says
filterAllowOnly
Unrecognized function or variable 'filterAllowOnly'.
I use R2022a with the Vehicle Network Toolbox installed. My College on version 2021b experiences the same issue. Are we missing something? Otherwise i would open a bug report on this.
Best Regards and thanks in advance,
Tobi

댓글 수: 1

Tobias Friebel
Tobias Friebel 2022년 6월 14일
Thanks for explaining! I was mislead by the Error Output and should have read the manual more carefully.
In addition for others who may stumble across this question:
To filter exisiting messages instead of a channel the canSignalTimetable function can be used.
Thanks again,
Tobi

댓글을 달려면 로그인하십시오.

 채택된 답변

Steven Lord
Steven Lord 2022년 6월 14일

0 개 추천

There are two filterAllowOnly functions in Vehicle Network Toolbox.
The first filterAllowOnly function requires two inputs, the first of which must be a J1939 channel object created by the j1939Channel function. Your call above specifies 0 input arguments, which does not satisfy the requirements of this function.
The second filterAllowOnly function requires two or three input arguments, the first of which must be a CAN channel object created by a function like canChannel. Your call above does not satisfy the requirements of this function either.
This is not a bug.
Build the appropriate channel object and pass it into filterAllowOnly along with the compatible second and/or third inputs (since you mentioned a CAN channel, that would be the name or IDs and types.)

추가 답변 (1개)

Walter Roberson
Walter Roberson 2022년 6월 14일

0 개 추천

That is not a general function. It is a method that applies only for https://www.mathworks.com/help/vnt/ug/canchannel.html canChannel objects. It can only be found if you pass in a canChannel

제품

릴리스

R2022a

질문:

2022년 6월 14일

댓글:

2022년 6월 14일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by