MATLAB: How to give sample time to NCO block in Simulink and how it will be interacting with other block having different sample time

different sample time blockssimulinksimulink modelling

I'm using two blocks which has to work on two different sample times. Block 1 => working on sample time 1/1000 sec. Block 2, which is NCO has to work on sample time 1/100e6 sec. But in NCO there is no option to provide sample time. How to provide sample time to NCO block? And finally, how to integrate these two blocks? [_I'm using Fixed-step discrete solver_]

Best Answer

Pass the NCO output signal through a zoh block and set its sample time (the zoh sample time)