Simulink: Sync and Sync

in order to simulate some processes, I had a problem getting a predefined working order for my self-modeling blocks.

How can I be sure that, for example, block A must be completed before block B and C start working?

The problem is that some blocks should work after some others, and some should not. I must admit that I do not have much experience working with Simulink to accomplish time-dependent things (although basic Simulink knowledge is available).

For example, this script should be implemented:

A -> B, C -> D, E, F

The main thing is that all AF blocks do not have a logical correlation with each other, they all do several things. My goal is to get B and C to start working after A has finished. And D / E / F after B and C finished. In this case, the word "parallel" was wrong, it should not be calculated really in parallel. Just make sure it matches a predetermined stable order.

Edit: My new idea is to use the matlab workspace als buffer so that my block A can send its results to the workspace (using the "to workspace" block). But now I have to make sure that blocks B and C can read the results (using "From the workspace") A AFTER the information has been transferred to the workspace ... how to do it?

Edit2: , : " ", , , ( ). , , . "simin" , :( , "1", . , "" .

, .

, poeschlorn

+3
3

, , A, , B C, A , B C .

EDIT: , , . , . , , , Simulink . .

enter image description here

, , , Simulink , . Simulink , , , , .

+1

, .

" Matlab" disp, .

+1

It is not clear what you are asking. When you say that block A should be finished, do you mean the output function? The simulation method in Simulink is that blocks are started sequentially, so locks B and C will never be executed until block A completes work with the output.

I don’t know of any obvious way to run blocks B and C in parallel in Simulink.

0
source

Source: https://habr.com/ru/post/1788494/


All Articles