Libraries equivalent for referenced subsystems
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello! In a script I am using, it is present the "all_libs" variable. Do you know a replacement for it to not search libraries but referenced subsystems? I'll leave down the part of the script where I use "all_libs". I used the script in Matlab R2017b to compare scalings from frame to core in an application. There I had libraries to search into, but with the new revisions there are no longer libraries, but referenced subsystems, and the script no longer works. It's like it doesn't recognize the core from the application and can't compare the scalings from frame. If I run it, it starts to work for a few minutes, but it compares the frame signals with something called "i_value" (I don't have anywhere in the code anything named like that) and after that it stops and gives an error. I use Matlab R2020b, TargetLink 5.1p1
all_libs = libinfo(frame_handle);
num_in = [];
num_out = [];
for fi = 1:numel(find_system(bdroot, 'RegExp','on','BlockType','SubSystem','ReferencedSubsystem', '.'))
if contains(all_libs(fi).Library, '_function') || contains(all_libs(fi).Library, '_Funktion')
core_handle = all_libs(fi).Block;
0 commentaires
Réponses (1)
Fangjun Jiang
le 6 Avr 2022
The library option in find_system()
'FollowLinks', 'on' or 'off'
Also
'LookInsideSubsystemReference', 'on' or 'off'
See doc of find_system
3 commentaires
Fangjun Jiang
le 7 Avr 2022
Your code has fundermental problems. In your original code
"all_libs" is the library blocks
"fi" is a loop for subsystem reference blocks.
These two types of block are like orange vs apple.
Yet you are using "all_libs(fi)". I don't understnad.
Voir également
Catégories
En savoir plus sur Subsystems 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!