Info

This question is closed. Reopen it to edit or answer.

Simulink block for input validation

1 view (last 30 days)
Late
Late on 25 May 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
In my current project I am trying to generate an access function (getter) to certain parameter. The Coder outputs something like:
void MyModelGetMyParam(u8 *rty_y) { *rty_y = SomeStruct->myParam; }
As it can be seen, there are no NULL pointer checks for both SomeStruct and rty_y.
How could I achieve input validation in such cases (i.e. have it generated)?

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!