Scope trace of sine signal is broken into multiple traces (channels?)in Simulink

3 Ansichten (letzte 30 Tage)
I am new to Simulink, and not very experienced in signal processing -- just know a little more than the basics. I'm trying to simulate a DPLL. The input is a 8MHz sine wave sampled at 25MHz. I've defined function for a few of the blocks in the diagram --and perhaps this is where the problem lies ; in the way functions are processed in Simulink?
Anyway the output of various blocks, for instance the output of the phase detector, the scope shows multiple traces or channels for the same signal. I'm expecting to see a single trace updating at the sample rate. I have no idea why it is doing this --or how to even begin to Google how why/what is happening.
Any explanation, or reference I can read that may shed some light on why this breaking of signals into "channels"(?) is appreciated.
Thank you

Akzeptierte Antwort

Sudarshan
Sudarshan am 2 Nov. 2022
Hi Jorge,
I inspected the file dpll_1.slx and did find multiple “channels” in the Scope output.
The first thing to check is whether the output signal being fed to the scopes are of the same dimensions that you want as outputs. The output signal seems to be of size 31x1 which seems to be why the scope displays multiple signals. To display the dimensions of your signal, go to DEBUG-> Information Overlays -> Signals -> Signal Dimensions. This will show the signal sizes for all the outputs being fed into the scope.
Also, you can try using the “Time Scope” block from DSP System Toolbox Library instead of the regular Scope block. Doing this gave me a single output.

Weitere Antworten (0)

Produkte


Version

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by