I’ve been looking into integrating our Torque Vectoring model into IPG to run some lap time simulations, and I initially decided I would try to use the OpenXWD format and Simulink.
Upon further reading, it seems like I could instead keep the powertrain model in IPG and instead just modify the PTControl unit as described in the Formula CarMaker tutorial (5.5.1). However, upon opening and running the example/tutorial model “FSE_TorqueVectoring” using the Simulink model ‘TorqueVect.mdl’ (which I have not modified) I am getting two errors which prevent it from running.
Location of the error code:
I think I understand that ‘CreateBus PTC_Cfg Battery’ is receiving only 6 inputs, and inside, the demux is expecting 8 (I tried to upload a screenshot of this, but I am only allowed one as a new account!).
I’m not sure how to fix this, as I don’t think I’m able to modify the green S-Function Block “cm_ptcontrol_in”. There is even a 6 on the output line of the function block so it seems that was expected from the function.
Have I misstepped somewhere? Does this work for anyone else with the Formula Carmaker package? Any ideas would be appreciated, thank you.