The example all result in the same error after some warnings. I post it for the first example at the end.

In the examples I can open the "Master Block" and change it. If I copy the "Master Block" into my model, it seems to work. But no compilation.

Peter

K>> Warning: 'slprj' is a directory. Use rmdir to delete directories.> In CompileAllModels at 4Warning: File 'Data_Login_Matlab.hex' not found.> In CompileAllModels at 27***** Solver Mode change from Auto to SingleTasking (this mode allows single rate and multirate). See help to get the difference with the MultiTasking mode which is now supported by the blockset *****Old gmake exist, but newly GMAKE set at : C:\PROGRA~2\MATLAB\R2007b\bin\win32\gmakePNumber of I/O PINs used : 2TModel configured...sources files not found. MPLAB project file not created.K>>

whatthehack wrote:In the examples I can open the "Master Block" and change it. If I copy the "Master Block" into my model, it seems to work. But no compilation.

You need to set the Code Generation target : simulink configuration, pannel Code Generation, set it to dsPIC or pic32...a yellow block is capable of configuring the siumlink model automatically if you add it to your model.

K>>Warning: 'slprj' is a directory. Use rmdir to delete directories.> In CompileAllModels at 4Warning: File 'Data_Login_Matlab.hex' not found.> In CompileAllModels at 27***** Solver Mode change from Auto to SingleTasking (this mode allows single rate and multirate). See help to get the difference with the MultiTasking mode which is now supported by the blockset *****Old gmake exist, but newly GMAKE set at : C:\PROGRA~2\MATLAB\R2007b\bin\win32\gmakePNumber of I/O PINs used : 2TModel configured...sources files not found. MPLAB project file not created.K>>

Could you compile without debug mode (K>> mean debug I guess ?) and print out the complete error message ?It's difficult to make out what's happening there.

You need to set the Code Generation target : simulink configuration, pannel Code Generation, set it to dsPIC or pic32...a yellow block is capable of configuring the siumlink model automatically if you add it to your model.

In all cases there was set dspic.tlc.

I tried the same with Matlab2007b(32bit) and Matlab2010b (64bit), both on windows7 (64bit). During opening of the model I get a lot of warnings, see: