Filter löschen
Filter löschen

How to get random numbers in model reference block with accelerator mode?

5 Ansichten (letzte 30 Tage)
I was able to successfully convert an existing into a model reference block.
It all works well in normal mode. But when I run the same in accelerator mode, strangely I get an error as follows:
LCC Runtime
Exception 0xc0000005:
Segment Violation
Address : 0x40bcb7
By commenting several parts of the model, I was able to shortlist the problem to the random number generation (both the simulink random generator block and the matlab embedded function calling the rand function give error).
So my question is this, how do I get it to run in model reference in accelerator mode?
Thank you so much for taking the time to read the question.

Antworten (0)

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by