AR #31933 - 11.3 System Generator for DSP - Why do I receive an error message stating "Continuous sample times not allowed" when driving a Simulink Spectrum Scope with Xilinx System Generator blocks?

Search Answers Database


 

11.3 System Generator for DSP - Why do I receive an error message stating "Continuous sample times not allowed" when driving a Simulink Spectrum Scope with Xilinx System Generator blocks?

AR# 31933
Part SW-SysGen
Last Modified 2009-09-10 00:00:00.0
Status Active
Keywords buffer, fft, gateway, out, scope

Description

Keywords: buffer, fft, gateway, out, scope

Why do I receive error messages when my Simulink model uses Simulink Spectrum Scope Blocks to plot the output of System Generator blocks?

Solution

Because of the interaction with the System Generator simulation solver and the MATLAB solver, some System Generator designs will appear to Simulink blocks with a continuous sample rate. When this occurs, you cannot directly connect the outputs of System Generator blocks directly to Simulink blocks (which cannot accept continuous sample times), such as the Spectrum Scope.

To work around this issue, you can add a Simulink Zero Order Hold block (or any other Simulink block that samples the signal)which will sample the signal and allow it to drive blocks such as the Spectrum Scope. The Zero-Order Hold block is found in the default Simulink > Discrete blockset.
 
 
/csi/footer.htm