How to pass multiple signals in Fractional-order Integration in SIMULINK (MATLAB)?

Here is the pasted screenshot. The FOMCON fractional-order integral block is designed for taking only a scalar signal. If I try to apply Multiple inputs to the integration (FOMCON) block it shows a dimension error.

Answers (1)

Use a For - Iterator subsystem which encapsulates this Integrator block. For the iterator you need to feed in the output of the width(which in your model is 1 when Switch condition is true and 4 when false) of the incoming signal , which is usually done by using width block. And within the For- Iterator subsytem you need to feed in the Switch Signal in each iteration using a Selector Block or a Multiport Switch feeding it’s output to the Integrator block and saving the output of the Integrator block in each iteration using Assignment Block. The output of the For- Iterator subsystem can be connected to a scope. By the way, I have no idea what the FOMCON integrator block does, but my suggestion should work without causing error.

15 Comments

Thanks a lot for answering, I will try and reach out to you if in case it does not work.
Or just a simpler way , just put Integrator block to each input signals of the Switch block ;). But it looks hectic this way, but from your side it will be the quicker side to test it .
Yes dear brother. That I totally agree to pass the signals to seperate Integrator blocks but dear brother the signals are like 45 (45 vectors) hence it is not possible to make a huge simulink web.
I will try by tonight and will tell you about your approach :)
Many thanks dear brother.

Sorry for the picture quality , I don"t have a laptop so only poor quality phone images.

Note the multiport switch settings is simply select last data port to "1" as the iterator and assignment blocks are 1 based.

Result 1 when input signal is 1

Result 2 when input signals are 4 (you can adapt the accordingly to your signal inputs 45 for example like you said)

Hope it helps.

Just give me 2 days, I am in an assignment, I will implement your strategy and come up with my own result. By the way thanks a ton for doing all this simulation.
I have no words to appreciate you (its immense appreciation from me). by the way you can implement your fractional-order integrator and see if it works (please).
Here are steps (in pictrue to download and install FOMCON toolbox)
  1. Go to add on button and click it (as shown)
  2. Type FOMCON and install FOMCON (as shown)
  3. Open SIMULINK and click on library to see your FOMCON installed in directory (as shown)
  4. Click on Fractional-order integrator block (as shown) and drag or open in Blank simulink file to see if it works
madhan ravi brother, I am so sorry to state that, I read and tried to implement your strategy. Firstly, The number of signals are N (which is user input and will be given in script file). It is not 45 or any number it is a user input I have to give in MATLAB workspace.
Secondly the iterator block shows error while running the SIMULINK as it says FOMCON fractional-order integrator should have the same sample time as the Iterator block. A fractioanl-order integrator takes in continuous signals and not discrete hence it is a big issue. Tried and worked all night could not solve error.
I would be highly highly super glad if you solve this problem of giving a user defined N (number of signals should be fed by the user in script ) to the FOMCON fractional-order integrator block.
Yes, you are correct. The Toolbox is robust that it doesn’t allow to propagate vector signals. I can only suggest you to contact the author directly.

Sign in to comment.

Categories

Products

Asked:

on 18 Nov 2023

Commented:

on 2 Dec 2023

Community Treasure Hunt

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

Start Hunting!