필터 지우기
필터 지우기

How to send the Moving RMS value to workspace?

조회 수: 2 (최근 30일)
ANANTA BIJOY BHADRA
ANANTA BIJOY BHADRA 2023년 12월 7일
답변: Divyanshu 2023년 12월 19일
I am working with the RMS value of current in simulink. I need the RMS value sent workspace. My sample time 4.960317460317460e-06. Now in the moving RMS block, I am having trouble in getting the RMS value. The problem is with the window length and overlap length. I set the window length 206000 which is more than 1/(4.960317460317460e-06) or 201600. But everytime I simulate, I get the follwoing info:
  • The input signal length (number of rows) 1 is not a multiple of the HopSize (Window Length - Overlap Length): 206000. Select the 'Allow Arbitrary Fixed size signals' check box or use an input length which is a multiple of 206000.
So I selected the aribary signal checkbox. Then It simulates but I don't see get any value in the workspcae. What is causing the problem? The help would be appriciated.
  댓글 수: 1
madhan ravi
madhan ravi 2023년 12월 8일
Please share the picture of your model with the error message.

댓글을 달려면 로그인하십시오.

답변 (1개)

Divyanshu
Divyanshu 2023년 12월 19일
Hi Ananta,
I am assuming that you want to save the values produced by 'Moving RMS' block to base workspace. This can be achieved by using the 'To Workspace' block. You can go through the following steps:
  • Connect the output of 'Moving RMS' block to 'To Workspace' block.
  • In the Block parameters dialog box for 'To Workspace' block set the Save Format to 'Array'.
  • Now in the base workspace go to out>simout. This will hold the output values of 'Moving RMS' block at each time step.
Please refer the following documentation for further details about 'To Workspace' block:
For more details about the error message you can refer the following documentation:
Hope it helps!

카테고리

Help CenterFile Exchange에서 Signal Import and Export에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by