Prev: Basic Matlab help
Next: Variables in dialog box?
From: Danny Glaser on 21 Apr 2010 19:57 I have a model that uses libraries and will eventually use model referrencing. To help control bus signals between blocks created by different people, inports have bus objects (Simulink.Bus) specified on the signal attributes tab. These bus objects are defined into the base workspace as part of the PreLoadFcn callback. The model works fine in Normal mode and Accelerator mode. But when attempting to run it in Rapid Accelerator mode, it is unable to build a standalone executable. It encounters two problems while building the rapid accelerator target for the model. The first error gives the message: lcc preprocessor error: .\SysName_types.h:4 .\SysName.h:21 SysName.c:2 Could not find include file "BusHeader.h" where SysName.mdl is the model I'm running and BusHeader.h is the header file name I used when defining the bus objects. The second error message is: Error SysName.c: .\SysName_dt.h: 18 undeclared identifier 'Bus1' where SysName.mdl is the model and Bus1 is the name of the Simulink.Bus object defined in the base workspace. This error message is repeated for each of the bus objects. Does Rapid Accelerator support Simulink.Bus objects? Do I need to create a header file for the bus objects or does Simulink do that as part of the autocoding? Do you have any suggested work arounds? Any help is greatly appreciated.
|
Pages: 1 Prev: Basic Matlab help Next: Variables in dialog box? |