Borrar filtros
Borrar filtros

Simulink rapid accelerator only returns tout

3 visualizaciones (últimos 30 días)
Thomas R
Thomas R el 22 de Jun. de 2017
Respondida: Ankit Bhatnagar el 28 de Jun. de 2017
My model could be compiled succesfully and also the Simulation seemed to run but the only return I got was tout.
My code:
model = 'myModelName';
% build
rapidAccParams = Simulink.BlockDiagram.buildRapidAcceleratorTarget(model);
% Simulation Parameters
paramValStruct.SimulationMode = 'rapid';
paramValStruct.SaveTime = 'on';
paramValStruct.SaveOutput = 'on';
paramValStruct.LoadExternalInput = 'on';
paramValStruct.RapidAcceleratorParameterSets = rapidAccParams;
paramValStruct.RapidAcceleratorUpToDateCheck = 'off';
paramValStruct.ReturnWorkspaceOutputs = 'on';
paramValStruct.RapidAcceleratorUpToDateCheck = 'off';
% run
simOut = sim(model,paramValStruct)
If i run this in 'normal' or 'accel' mode simOut contains both tout and a result struct, but with 'rapid' I only get tout.
Does anybody know what could cause this problem. Any answers would be greatly apreaciated

Respuestas (1)

Ankit Bhatnagar
Ankit Bhatnagar el 28 de Jun. de 2017
Hi,
The element 'yout' of the returned object could be just an empty struct as the logging format for the output is set to 'Dataset' by default. Simulation in rapid accelerator mode does not support logging output to a Simulink.SimulationData.Dataset object. You would need to change this to either 'Array','Structure' or 'StructureWithTime' depending on your preference.
Refer the documentation link for further details:

Categorías

Más información sobre Multicore Processor Targets en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by