Function Call Trigger Problem

4 views (last 30 days)
Ali
Ali on 17 Jan 2025
Commented: Fangjun Jiang on 19 Jan 2025
Outport block must be connected to one of the following blocks: an exported function, a Simulink function, an Initialize/Reset/Terminate function, a Merge or Mux block that is driven by exported functions, or a Ground block.
How can i solve this problem? Thank you.

Answers (1)

Fangjun Jiang
Fangjun Jiang on 17 Jan 2025
This "Outport" block seems to output a function call trigger. The message tells you what type of block can receive this signal. This signal is "control/trig" signal. It is different than a typical "data" signal.
  2 Comments
Ali
Ali on 18 Jan 2025
Moved: Fangjun Jiang on 19 Jan 2025
I want to use this resulting signal as a PWM at the end of the function. Therefore, I will assign the PWM duty value with this value with the embedded coder. What should I add so that I can do this? Actually, isn't this enough when you use outport?
Fangjun Jiang
Fangjun Jiang on 19 Jan 2025
Show or attach your model. It is not clear what you try to do based on your description and how it is related to "function call trigger" output.

Sign in to comment.

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!