Error reported by S-function 'vs_sf' in 'EuroNCAP_PedAEB/CarSim S-Function':

55 次查看(过去 30 天)
Hi everyone,
I am having troubles everytime a try to run a simulation in CarSim through simulink + matlab, the diagnosis viewer shows the following script:
  • Use vehicle solver: D:\Program Files (x86)\CarSim2021.1_Prog\Programs\solvers\carsim_64.dll
  • Error reported by S-function 'vs_sf' in 'EuroNCAP_PedAEB/CarSim S-Function': Failed to start Solver: the command EXPORT was not followed by a valid name; found PEDDISTDETECT.
Anyone knows what could be the origin of this problem, and if it is a good idea to use the solver suggested ?
I will apreciate all your comments.

回答(1 个)

Ninad
Ninad 2023-9-29
Hi Roberto,
The error message you are encountering suggests an issue with the CarSim solver configuration in Simulink. As per my understanding, it seems that the solver is unable to start due to an invalid name specified after the EXPORT command.
To resolve this issue, you can try the following steps:
  1. Open your Simulink model and navigate to the 'EuroNCAP_PedAEB' subsystem or block that contains the 'CarSim S-Function' block.
  2. Double-click on the 'CarSim S-Function' block to open its parameters dialog box.
  3. Look for a parameter or setting related to solver configuration or export command. It could be named 'Solver', 'Solver Configuration', 'Export Command', or similar.
  4. Check the value specified for this parameter. Ensure that it follows the correct syntax and includes a valid name after the EXPORT command. In your case, it should not be set as 'PEDDISTDETECT', which seems to be causing the error.
  5. If you find that the value is incorrect or contains an invalid name, modify it to a valid name.
  6. Save the changes to the 'CarSim S-Function' block and try running the simulation again.
I hope these steps will help you fix the issue.
Thanks,
Ninad.

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by