Simulink : Signal exchange between export-function via Ccaller

4 次查看(过去 30 天)
Hello,
I encounter a blocking problem. I have an export-function assembly, that communicates with each other through 3 types of ports:
- In/Out Simulink Port
- SimulinkFunction / FunctionCaller
- Caller
Unfortunately the signals do not pass through the CCallers while everything works on a more simplified model.
Can you help me?

回答(1 个)

Yatharth
Yatharth 2023-8-24
It seems like you are facing a blocking problem with the communication between different ports in your assembly, specifically with the CCallers. While everything works fine in a simplified model, the signals are not passing through the CCallers in your current setup.
Here are a few suggestions to help diagnose and resolve the issue:
  1. Verify the configuration: Double-check the configuration of the CCallers and ensure that they are correctly set up to handle the signal passing. Ensure that the input and output ports of the CCallers are properly connected and configured.
  2. Check the data types: Make sure that the data types of the signals passing through the CCallers are compatible. Check if there are any mismatches in data types that could be causing the blocking issue.
  3. Debugging: Enable debugging options in your assembly model to trace the flow of signals and identify any potential issues. Use breakpoints or logging mechanisms to track the signal flow through the CCallers and check if there are any unexpected behaviors or errors occurring.
  4. Test with simplified models: Create a simplified model that focuses solely on the CCallers and their connections. Test this simplified model to ensure that the CCallers are functioning correctly in isolation. Gradually add components and connections from your original assembly to identify if there is a specific component or connection causing the blocking issue.
You can review the documentation and resources available for the specific CCaller implementation you are using. Check if there are any known issues, limitations, or recommended practices that could be relevant to your situation.
This query might be helpful for you
  1 个评论
Amine
Amine 2023-8-24
Thank you for your answer, hopefully I find the solution of my issue 1 day ago.
This issue was that each Model Reference have not the same Configuration which imply that the checksum for creating the compilation folder slcc (inside slprj) was different.
From that I understand that each models are not writing/reading in the same memory for exchanging signal data.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Event Functions 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by