Wie kann ich die reale Hardware mit einem Harness-Test prüfen?

1 次查看(过去 30 天)
Ich möchte die Payload einer seriellen Schnittstelle auf einen bestimmten Inhalt prüfen. Die Nachrichten werden im Simulink-Model richtig angezeigt, wenn ich diese mit der Hardware versende und mit Matlab empfange und ausgebe.
Jedoch wenn ich einen Harness-Test einbinde bekomme ich keine Nachrichten in den Test herein! Habe zusätzlich ein Display eingefügt um zu prüfen ob die Nachrichten zu Beginn empfangen werden, aber ohne erfolg. Muss ich da was umstellen um diese zu empfangen?

回答(1 个)

Raj
Raj 2023-9-14
Hallo Roman,
Ich werde diese Frage auf Englisch beantworten.
As per my understanding you were able to display messages on Simulink while sending them with hardware but not quite so while using test harness. This can be due to multiple reasons, I’ll suggest you few steps that should help you in your issue.
  • One possibility is that your test harness might not be functioning properly, for this you can check the following documentation from MathWorks on how to create a test harness
  • Check that the port settings in your harness test are properly configured to match the settings used by your hardware and MATLAB e.g. baud rate, data bits, parity etc.
  • Verify the connection and ensure that the harness is properly configured to pass the messages between the hardware and the test environment.
Hope this explanation helps you proceed ahead with your project!

标签

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!