hexagon logo

NaNs passed from Simulink to ADAMS at t=0. What is proper way to deal with it?

Hello,
 
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?
 
Thank you