Models with 2 or more subsystems do not compile
Question
When I try to compile a model with only one SM subsystem, compilation works fine. However, when I try to compile a model with at least 2 subsystems, I get the following error :
-------------------- Starting compilation --------------------
Start at : Thursday, December 15, 2011, 15:32:40
The current RT-LAB version is: v10.4.1.94
The current model is:
C:\OPAL-RT\RT-LAB10.4.1.94\workspace\testproject\models\rtdemo2\rtdemo2.mdl
The current host platform is: XP/Vista/7
The current target platform is: QNX 6.x
The current compiler is: Automatic
Preparing original model for code separation and generation...
The current Matlab version is: v7.5
Diagnostics:
Reported by: RT-LAB
Source : rtdemo2
Message : Error: More than one real-time subsystem found in model 'rtdemo2' and you don't have RT-LAB license for multiprocessing simulation. You must remove the following subsystem in order to run simulation with RT-LAB: 'rtdemo2/ss_plant'
??? Error using ==> RaiseNagsError at 617
Invalid RT-LAB block diagram.
Error in ==> C:\OPAL-RT\RT-LAB10.4.1.94\Simulink\libR2007b\opvalidatemodel.p>opvalidatemodel at 91
Error in ==> opInitFunction>GenerateModel at 189
opvalidatemodel('validate_non_compiled_info',RtlabInfo,'display');
Error in ==> opInitFunction at 66
GenerateModel(action, model, platform, preBuildCmd, postBuildCmd, listSub);
??? Error preparing original model for code separation.
Answer
This is because there is one feature missing in your license file (MULTIPROC). Please contact support (support@opal-rt.com) to get an updated license.





