Outport used in Real-Time Multicore Systems
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi I’m using a "concurrent Execution on xPC Target" to speed up a real-time-simulation using a multicore processor. The model works nicely, but i have problems with any kind of data logging. When using an Outport in the base-model, I get the message:
"This model is configured for concurrent execution and has modeling constraints. The signal at root Outport block 'xyzModel/Out1' must resolve to an exported storage class. "
Frankly I have no clue how to resolve this.
I tried other ways of data logging: Scopes (in sub-models) seem not to work and Signal-logging leads to compiling errors.
Thanks, Jan
0 commentaires
Réponses (2)
Shiva Arun Kumar
le 6 Fév 2012
Hi Jan,
As you have mentioned in your post the following options do not work for a model that configured for concurrent execution:
a) Using outport logging at the top level b) Using xPC scope blocks within sub-models
However, one you can definitely use xPC scopes once the application (model) has been built and downloaded on to the target. For example,
Step 1: Build and download you model to the target.
Step 2: Determine the ID of the signal you would like to log. You can execute the following commands to obtain a complete list of signals in your application and their respective ids
tg=xpc tg.showsignals='on'
If you would like to obtain the id of a specific signal, you can utilize the getsignalid command
Step 3: Add file scope to your model and add the signal to the scope.
sc=tg.addscope('File'); sc.addsignal(<signalid>); sc.Filename='<filename>.dat'; sc.NumSamples=5000;
Step 4: Start the scope and start the application. +sc; +tg;
The following link has more information on xPC Target Scopes:
Hope that helps.
Shiva
0 commentaires
Guy Rouleau
le 3 Fév 2012
I am not sure what is the best way to log data in an model configured for concurrent execution. I would recommend contacting technical support if you cannot find relevant info in the documentation.
The following documentation page about data representation of signals will explain you what is a storage class and how to make it exported:
0 commentaires
Voir également
Catégories
En savoir plus sur Multicore Processor Targets dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!