Raspberry PI Simulink Package Two Encoders XCP Error

The model is congifured to run on a raspberry pi 4 model B, This problem appears only when i'm trying to monitor my model after deploying it on the raspberry pi, when only one encoder block exists it works fine, but when i add the second one theis error appears and simulink cann't connect to my to log my data.

7 Comments

The reference to XCP tells me that you configured for Simulink Real-TIme, which is intended to be run on SpeedGoat systems. Are you sure that is what you wanted?
The model is congifured to run on a raspberry pi 4 model B, This problem appears only when i'm trying to monitor my model after deploying it on the raspberry pi, when only on encoder block exists it works fine, but whe i add the second one theis error appears and simulink cann't connect to my pi.
I have the same problem.
On a model with ony 5 encoders on fixed-time for a RPi4. It's impossible to use more than one at a time.
If anybody knows a possible solution, will ve very apreciated
thanks!
"xpc" is the Simulink Real-time product. Is that the product you are using? Simulink Real-time is only supported on Speedgoat hardware, not on Raspberry Pi.
XPC runs normally without any error on when i remove one of them. i don't know if this is related to XPC at all. XPC just appears in the hardware configuration.
I solved this by replacing the encoder block by two sperate interrupts connected on the same pins as the encoder but still can't figure out why it is not working.
Hello everyone
I had read this document https://es.mathworks.com/help/supportpkg/raspberrypi/ug/remotely-monitoring-and-controlling-an-application-on-hardware.html and for this reason I assumed that it could be worked with XCP and the RPi4.
Anyway, at least I'm not an expert on Simulink. Surely what @Walter Roberson says will surely be more accurate.
On the other hand,@Muhammad Essam can you tell me this about interruptions? What block did you use? Did you use the External Interrupt of the RPi support package?
Today I will try to find a solution.
Thank you all
Hello Mr. Mañosa,
did you find a solution using interrupts?
Thanks.

Sign in to comment.

Answers (1)

Hello Mr. Essam,
have you found a solution for this issue? I am facing the same with my raspi 4 B.
Thanks.
Best

Products

Release

R2021b

Asked:

on 12 Mar 2022

Commented:

on 11 Mar 2024

Community Treasure Hunt

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

Start Hunting!