Effacer les filtres
Effacer les filtres

How to show a signal in simulink model with App designer?

6 vues (au cours des 30 derniers jours)
aouragh
aouragh le 26 Mai 2023
Helloo!!!! I have designed a hybrid vehicle model using Simulink version R2019b, and the simulation is working correctly. Now, I want to display the CO2 signal in a gauge that I have created in an interface under app designer. However, I encountered a problem during the model simulation: the interface, specifically the gauge, does not respond to the signal emitted by the calculator that calculates the percentage of CO2 emissions, even though I linked the gauge with the signal in Simulink. In other words, the gauge remains frozen even if the simulation has been launched in Simulink. Therefore, I am wondering if there is a method to make the gauge display the CO2 signal to solve this problem

Réponses (1)

Niranjan Sundararajan
Niranjan Sundararajan le 12 Juil 2023
Hey there,
The problem may be caused because of the following reasons. Try all of these out, and it should solve the problem.
Check signal connection: Double-check the connection between the CO2 signal in Simulink and the gauge in your app designer interface. Ensure that you have correctly linked the output signal of the CO2 calculator to the input of the gauge.
Verify signal compatibility: Confirm that the CO2 signal from Simulink is compatible with the gauge in your app designer interface. Check if the signal type, range, and units match the requirements of the gauge component.
Update Simulink version: Make sure you are using the latest version of Simulink. There might be compatibility issues between the older version you are using (R2019b) and the app designer interface.
Check for errors or warnings: Look for any error messages or warnings related to the gauge component or the signal connection. Resolve any issues reported by Simulink or the app designer that could be causing the gauge to freeze.
Test with a different signal: Try connecting a different signal to the gauge in your app designer interface to see if it responds correctly. This will help determine if the issue is specific to the CO2 signal or if it's a general problem with the gauge component.

Catégories

En savoir plus sur General Applications dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by