How to save a buffer from a tlc file and use it in another tlc file
Afficher commentaires plus anciens
In writing TLC files, I want to open a buffer and write stuff there and close it and use the buffer at another TLC file which will be used later in the code generation process.
Here's what I did already:
%openfile OutputBlocksBuffer
things I want to write here...
%closefile OutputBlocksBuffer
%<SLibCacheCodeToFile("OutputBLK.txt", OutputBlocksBuffer)>
But it doesn't recognize "OutputBLK.txt". It doesn't necessarily have to be a .txt file but could be any buffer as long as a second TLC file can find the buffer and have access to its contents. There is no documentation that I could find on %<SLibCacheCodeToFile(.,.)> but it is widely used in ERT system target files.
Réponse acceptée
Plus de réponses (1)
Zhai Diego
le 1 Mai 2014
0 votes
An alternative approach is that you can attach your "things" to ::CompiledModel Record,the function %<LibAddToCompiledModel(name, value)>
Catégories
En savoir plus sur BeagleBone Black dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!