无法解决Simulink FOC模型中的端口尺寸错误
Can't solve port dimension errors in Simulink FOC model
我正在尝试使用 Simulink 中的电机控制模块组开发 FOC 算法(见附件截图),但出现以下错误(见附件截图)。我不知道我做错了什么,因为我将 d 和 q 电流馈送到我的离散 PI 控制器并将结果直接馈送到我的逆公园变换。我不知道如何解决这个问题,我们将不胜感激。
Simulink 文件 OneDrive Link:
我打不开你的模型。但是从您的屏幕截图中我看到以下内容:
- 信号箭头处的小数字表示此路径中有多少信号。我认为它应该总是 1(在你的模型中),除了三相电流,它应该是 3。所以到处都是 2 有问题。
- 可能的错误是,您将右下角的
PhaseCur
解复用为仅 2 个信号路径。无论出于何种原因,克拉克变换似乎只需要阶段 a 和 b,而不是 c.但不是删除 c 而是将它与 a (或 a 和 b 放在一起,c 放在一边)。因此,与其之前的 2-Way-Demux 不同,不如使用 3-Way-Demux 并在 Clarke 变换之前摆脱阶段 c。
这是迄今为止最明显的错误,试试看是否有效。
documentation of the Clarke transform block 状态:
The block accepts two signals out of the three phases (abc), automatically calculates the third signal, and outputs the corresponding components in the αβ reference frame. For example, the block accepts a and b input values where the phase-a axis aligns with the α-axis.
我正在尝试使用 Simulink 中的电机控制模块组开发 FOC 算法(见附件截图),但出现以下错误(见附件截图)。我不知道我做错了什么,因为我将 d 和 q 电流馈送到我的离散 PI 控制器并将结果直接馈送到我的逆公园变换。我不知道如何解决这个问题,我们将不胜感激。
Simulink 文件 OneDrive Link:
我打不开你的模型。但是从您的屏幕截图中我看到以下内容:
- 信号箭头处的小数字表示此路径中有多少信号。我认为它应该总是 1(在你的模型中),除了三相电流,它应该是 3。所以到处都是 2 有问题。
- 可能的错误是,您将右下角的
PhaseCur
解复用为仅 2 个信号路径。无论出于何种原因,克拉克变换似乎只需要阶段 a 和 b,而不是 c.但不是删除 c 而是将它与 a (或 a 和 b 放在一起,c 放在一边)。因此,与其之前的 2-Way-Demux 不同,不如使用 3-Way-Demux 并在 Clarke 变换之前摆脱阶段 c。
这是迄今为止最明显的错误,试试看是否有效。
documentation of the Clarke transform block 状态:
The block accepts two signals out of the three phases (abc), automatically calculates the third signal, and outputs the corresponding components in the αβ reference frame. For example, the block accepts a and b input values where the phase-a axis aligns with the α-axis.