How to send the Moving RMS value to workspace?

6 Ansichten (letzte 30 Tage)
ANANTA BIJOY BHADRA
ANANTA BIJOY BHADRA am 7 Dez. 2023
Beantwortet: Divyanshu am 19 Dez. 2023
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 Kommentar
madhan ravi
madhan ravi am 8 Dez. 2023
Please share the picture of your model with the error message.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Divyanshu
Divyanshu am 19 Dez. 2023
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!

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by