I am having trouble trying to take input to a user defined MATLAB function block from the output of three phase current measurement block in simulink.

2 views (last 30 days)
I am using a User defined Matlab Function block and taking input from a Three phase current measurement block. I want the input data in an array form of three phase currents. How do I take such an input? Simply connecting the output from three phase current measurement block to the input of the function block is not working as the input only receives the first row of the total matrix of currents. Do I need to add some code to read the data differently? I can see the three phase currents in the scope and I can also import them into the workspace in any desired format but can't seem to figure out how to directly read them into my matlab function block.
  2 Comments
TAB
TAB on 4 Jun 2018
So as I understood, your current output is in matrix format (mxn) and you want to read first row in Matlab function block.
Is this correct ?
Nirmit Regmi
Nirmit Regmi on 4 Jun 2018
I dont know in what format the current output from the three phase current measurement block is. All I know is that I can export it to workspace using simout in many formats(time series, structure, array, etc). I want to read this directly in the matlab function block without exporting into workspace.

Sign in to comment.

Answers (1)

Birhan Gezahegn
Birhan Gezahegn on 17 Sep 2021
it is too long! i have idea on this issue if u need some information

Products

Community Treasure Hunt

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

Start Hunting!