Moving Average Filter in Simulink

조회 수: 10 (최근 30일)
Daniel
Daniel 2014년 7월 18일
답변: Daniel 2014년 7월 21일
I'm rotating an electric machine by using dSPACE This machine has two phases and that's why I need to know the average current and voltage for a period of 180 degree.
I searched for a moving average filter in Simulink but I'm not able to find what I want. The sample time is fixed and the speed of the electric machine will vary. This means that by using different rotational speeds the number of samples should be different to cover the period of 180 degree.
What will be the easiest way to do this? (using memory blocks is not an option because than I need several hundreds of them). Is there maybe a nice function block what is able to do this?

채택된 답변

Daniel
Daniel 2014년 7월 21일
Hi Thanks for your reaction. I guess I found a solution. It's a mean block in simscape with a variable frequency.

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 18일
You can use a Matlab function block, and declare the current and voltage variables as persistent.

카테고리

Help CenterFile Exchange에서 Electrical Sensors에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by