0

So I am using Simulink and I am trying to incorporate a fuzzy logic controller to auto-tune the parameters of my PID. But how do I use the output of a MATLAB Function block as the parameters in a PID block?

Overview

Here I show my function which has the outputs of P, I & D (K_p, K_i & K_d in standard notation). I want to use them inside the PID block mask parameters:

PID Parameters

I'm sure there is a simple way to do this but I just can't figure it out! Any help?

4

1 回答 1

3

The PID Controller block only allows the P, I and D gains to be entered as parameters (i.e. on the dialog) not as signals (i.e. through inports).

You'll need to implement your own PID. The doc shows what the implementation should look like. You'll need to replace the P, I and D gain blocks by product blocks with your P, I and D input signals feeding into the product blocks.

于 2013-07-16T05:24:55.460 回答