- In the Simulink Toolstrip, on the Debug tab, in the Tools section, in the Port values button group click the button arrow for Remove all port value labels. Then, select Options.
- In the dialog box, use the options in the Display Format section at the bottom to specify the display format based on whether the data is fixed-point or not.
Transfer Function giving zero Output in Simulink (Solved: Due to exp^- block creating singularity)
33 views (last 30 days)
Show older comments
Jonathan Bessette
on 26 Apr 2023
Edited: Jonathan Bessette
on 2 May 2023
Hi folks, I don't quite understand why I'm getting a zero output after my transfer function, regardless of the control effort from the PID block.
When the transfer function is simulated using a PID in other diagrams and files, it always produces a nonzero output (for a nonzero input). For some reason, in this structure, it is stuck at zero output regardless of what input I give it.
Can y'all help me debug/begin to think of where to troubleshoot? Thanks so much! This zero output is causing a singularity/problem in subsequent blocks.
(attached is the .slx model, it should be able to function on it's own / has no other associated files)
(Solved: the block, -0.21, associated with Beta-1, was a negative exponent, and when 0 or near 0 was being commanded, this results in u^-0.21 == 1/u^.21 == 1/ a very small number, approximately approaching 1/0 and causing this error.)
0 Comments
Accepted Answer
Sara Nadeau
on 26 Apr 2023
The screenshot you included shows port value labels on the model to display the signal values. Have you tried running a simulation and looking at a plot of the data?
Port value labels show instantaneous values and also round the value to MATLAB's short numeric format by default. It's possible that the value isn't literally zero, just very close based on the transfer function values and the dynamics of the input signal.
You could try looking at the data over time for a simulation or changing the port value label settings to display the data using more significant digits or a different format. To change the format for the port value labels:
These settings aren't saved with the model.
I hope this helps!
More Answers (0)
See Also
Categories
Find more on Schedule Model Components in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!