Error "Creation of 16MB StandAlone applications not supported" - Why?
1 view (last 30 days)
Show older comments
The following error is generated by xPC Target embedded and no embedded code folder is generated if I select a 16MB ‘Maximum Total Model Size’ in the xPC Target Explorer settings:
“Creation of 16MB StandAlone applications not supported”
If I select the next size down (4MB) no such error is created.
At first this would seem simple enough; only models of up to 4MB can be created. However, 4 things confuse me.
1, on the 4MB setting my models compile to become a 4.7MB file and seem to run.
2, why only allow models up to 4MB? This is tiny in the modern world, and as said before, I am exceeding this size.
3, the xPC documentation seems to contradict its self on this:
“From the Maximum model size list, select either 1 MB, 4 MB, or 16 MB. Choosing the maximum model size reserves the specified amount of memory on the target PC for the target application. The remaining memory is used by the kernel and by the heap for data logging. Note that this parameter is only available for Standalone mode. You cannot specify a maximum model size for Boot Floppy, DOSLoader, or Network Boot modes. These modes allow the loading of arbitrarily-sized target applications.
Note You cannot build a 16 MB target application to run in Standalone mode.”
The contradictory lines being “Note that this parameter is only available for Standalone mode” and “Note You cannot build a 16 MB target application to run in Standalone mode” Why does the 16MB option exist if nobody can use it?
4, I’m unclear if the size limit limits the size of the .rtb file or simply the amount of RAM allocated to running it. If it is the amount of RAM then 4MB seems a very small amount when my not very powerful target PC has 1024MB of RAM. If 4MB of RAM were allocated to the application and it needed more (and assuming there was spare memory available – highly likely when the total is 1024MB) would it be able to utilise this free memory?
Whilst using only the 4MB limit isn’t causing me a specific problem, I do wonder if it is contributing to a couple of minor performance issues I have (e.g. poor data logging at high frequencies) so I’d like to know if by using the 16MB setting I could release some extra performance.
Many Thanks, James
0 Comments
Answers (0)
See Also
Categories
Find more on Multicore Processor Targets in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!