I inherited an ADAMS model that involves co-simulation with Matlab/Simulink.
In the Simulink model, before the computed data gets exported back to ADAMS, by an outport block, a unit delay block was included ( 1/z ). The reason for using the 1/z block as I understand it, is to have stability between the ADAMS and Simulink codes.
Without the time delay block, Simulink passes NaNs to ADAMS, causing the simulation to crash. Even though, the time delay block allows for the co-simulation to complete, it inherently modifies the data being passed to ADAMS: the lag + stair-step shape.
What other alternatives are there to using the unit delay that prevents the passing of NaNs to ADAMS without impacting the data being passed?
let us know if it worked. Anyway, as said: perfect solution was to find and fix the reason of the NaNs. . division by time t=0 in one of the blocks or something like this? Simulink provides many easy ways for debugging such issues.
let us know if it worked. Anyway, as said: perfect solution was to find and fix the reason of the NaNs. . division by time t=0 in one of the blocks or something like this? Simulink provides many easy ways for debugging such issues.