There isn’t a library block with this behavior, but it is straightforward to implement such functionality with the min/max blocks, as shown below. This example is taken from saturation implementation in the PID Controllers from the PLECS library. The assertion logic serves to generate an error for the invalid condition when the lower limit exceeds the upper limit.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Possible Bug in Conditional Integration Anti-Windup with external saturation | 2 | 73 | May 23, 2025 | |
Differences between simulation on PLECS and RTBox | 4 | 964 | March 1, 2022 | |
How to change input values in the midst of simulation? | 1 | 542 | May 9, 2024 | |
CAN communication with Plecs on TI C2000: (apparently) undeterministic behavior | 3 | 56 | April 30, 2025 | |
My saturation block made in c-script can't work | 3 | 504 | July 4, 2022 |