Dual Function Call Subsystem Implementation

13 次查看(过去 30 天)
I am working with a real-time Simulink application and have two network interrupts that trigger IRQ Function Calls. I have a function call subsystem that needs to be triggered by either function call source depending on which is active (state of a tag say "network1Enbl")
So if network1Enbl = 1 use Function Call 1 to trigger the subsystem, else use Function Call 2.
The issue is obviously that you cannot preform normal operations on the function call signal or take in two function calls to a single subsystem.
My question is how can I implement this functionality, would it be possible to implement a custom S-Function to take in both Function calls and the network state, then output the selected Function Call? Perhaps there is there a more straight forward way to do this?
Would greatly appreciate some guidance, Thank you very much.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Create Large-Scale Model Components 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by