- 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)
조회 수: 29 (최근 30일)
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.)
Sara Nadeau 2023년 4월 26일
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!