Hello,
so I have a dc microgrid model with sources generation and loads, and this microgrid is controlled by model predictive controller, the model predictive controller is a referenced model, as for the microgrid model it is defined as a parent model, plus the model predictive controller has a plant model, and it imports the signals from the microgrid model as well, before the plant model i placed a discrete variable time delay because of an error that occured before, and when i run the model it's working fine, but it's giving me this error, i will upload a photo showing the parameters of the delay time,
the error:'' Warning: Block Modelpredictivecontroller/Discrete Variable
Time Delay/S-Function: The specified delay time is smaller than the specified Sample time (Ts). This may cause inaccurate simulation results.''
the sample time of the microgrid model is 1e-6, total time is 0.48, and i tried to change the value of the sample time of the block from 1e-6 to 1e-8 and to 1e-4, but none of it worked, always the same error
ps: additional to the error before it is giving me another error:
''The specified buffer for 'Modelpredictivecontroller/Measurment/Power generation/Mean3/Model/Transport Delay' was too small. During simulation, the buffer size was temporarily increased to 21504. In order to generate code, you need to update the buffer size parameter''.
thanks in advance