Filter löschen
Filter löschen

Block error in Weather data file

10 Ansichten (letzte 30 Tage)
Amirhossein Salemi
Amirhossein Salemi am 31 Okt. 2023
Beantwortet: Simar am 27 Nov. 2023
I run one of the examples of Carnot 7.3 for the "Weather data file" block, when I run the example, I receive this message "Error in 'example_WeatherDatafile/Weather_Datafile': Failed to evaluate mask initialization commands.
Caused by:
Component:Simulink | Category:Block error
however when I checked this in other device with the same version of Matlab, it works properly.

Antworten (1)

Simar
Simar am 27 Nov. 2023
Hi Amirhossein,
I understand that you are facing difficulty with running an example from the Carnot Toolbox version 7.3 in MATLAB.
The error message you are encountering in MATLAB's Simulink indicates that there is an issue with the "Weather data file" block within the Carnot Toolbox example. The specific error mentions a problem with "Unicode explicit directional formatting characters" in the file extendData.m at line 87, column 29.
This error could be caused by several factors:
  • The script extendData.m may contain Unicode characters that are not supported by MATLAB parser on current system. This could be due to differences in system locale settings, MATLAB preferences, or the way the file was saved (encoding).
  • Since the example works on another device with the same version of MATLAB, it suggests that the issue may be related to the configuration or settings on current system. This could include differences in installed components, system language settings, or MATLAB path configurations.
To troubleshoot this issue, consider the following steps:
  • Open extendData.m in MATLAB Editor and save the file with a different encoding. Go to File > Save As, click on the arrow next to the "Save" button, select "Save with Encoding...", and choose an encoding like "UTF-8 without BOM" or "US-ASCII", if applicable.
  • Check the locale settings on both systems. Ensure that the system locale is set consistently, especially if the script contains non-ASCII characters.
  • Compare MATLAB preferences related to language and encoding between the two systems. Adjust them to match if there are differences.
  • Verify that the Carnot Toolbox is installed correctly on the system. Reinstall the toolbox if necessary to have the latest compatible version for MATLAB release in use.
  • Check MATLAB path to ensure that there are no conflicts or missing directories that could cause issues with executing the example.
  • Ensure that the file extendData.m has not been inadvertently modified or corrupted. Replace it with a fresh copy from the original Carnot Toolbox distribution.
  • Ensure that MATLAB installation is up to date with the latest patches and updates for current version.
If none of these steps resolve the issue, consider reaching out to the maintainers of the Carnot Toolbox for support or consulting MathWorks technical support for further assistance. Please refer to the links mentioned below:
Hope it helps!
Best Regards,
Simar

Kategorien

Mehr zu Downloads finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by