Wrong number of input arguments passed to S-Function

조회 수: 1 (최근 30일)
Alessio Capuano
Alessio Capuano 2018년 1월 18일
답변: Dimitri MANKOV 2022년 8월 9일
Hi,
Im trying to build a model containing a speedgoat CAN communication block (IO601) which is referenced to an S-Function (sg_IO601_read_s_3). When building the model I get the following error:
Error reported by S-function 'sg_IO601_read_s_3' in 'HIL_RC16_Gen1/SpeedGoatInputs/CAN from ECU/Read (v3)': Wrong number of input arguments passed. 7 arguments are expected
The properties of the block are not editable as you can see in the Picture.
Any idea about that would be very appreciated.
Thanks, Alessio

답변 (1개)

Dimitri MANKOV
Dimitri MANKOV 2022년 8월 9일
Hi Alessio,
Could you please try installing the latest Speedgoat I/O Blockset version for your MATLAB Release, and see if it solves this issue? Please note that it might be useful to delete previous codegen files before attempting to re-build your model.
Best,
Dimitri

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by