Outport used in Real-Time Multicore Systems

2 次查看(过去 30 天)
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

回答(2 个)

Shiva Arun Kumar
Shiva Arun Kumar 2012-2-6
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

Guy Rouleau
Guy Rouleau 2012-2-3
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:

类别

Help CenterFile Exchange 中查找有关 Multicore Processor Targets 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by