Address Specific Parameter Custom Storage Class

MemMap: A custom storage class that allows the user to specify the memory addresses of parameters in
1,5K Downloads
Aktualisiert 1 Sep 2016

Lizenz anzeigen

The zip file contains all of the files for a Custom Storage Class, MemMap, which allows the user to specify the memory address of a parameter in the generated code. The dialog for the parameter data object provides a field for the memory address. This input is verified when entered to insure that it contains a valid hexadecimal address. In the resulting code, the pointer to the parameter is initialized to the specified address and the pointer is used to access the value contained at that address. The generated code makes use of pointer incrementing to access non-scalar parameters (arrays and matrices).
During the code generation process, an additional function is called to validate all of the MemMap parameters to insure that there is no overlap in the memory map. An option is provided to print the memory map of the MemMap parameters in the model to the command window. In the event that there is a conflict in the specified address of two parameters, an error message is generated and the build process is halted.

The zip file contains the file "InstallNotes.m" which provides information on installing and using the MemMap storage class as well as some simple examples.

Zitieren als

Richard Ruff (2024). Address Specific Parameter Custom Storage Class (https://www.mathworks.com/matlabcentral/fileexchange/14993-address-specific-parameter-custom-storage-class), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2007a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Simulink Coder finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.2.0.0

Copyright notices added to three files

1.1.0.1

Updated license

1.1.0.0

Applied BSD License

1.0.0.0