function filterAllow* not recognized

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 Commento

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

Accedi per commentare.

 Risposta accettata

Steven Lord
Steven Lord il 14 Giu 2022

0 voti

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.)

Più risposte (1)

Walter Roberson
Walter Roberson il 14 Giu 2022

0 voti

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

Prodotti

Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by