From: Florian Meyer on
hello,

I want to use the anlog input from data aquisition toolbox in accelerator mode. When I try to start the simulation I get the following error:

### TLC code generation complete.
### Creating project marker file: rtw_proj.tmw
..
### Processing Template Makefile: I:\Program Files\MATLAB\R2010a\rtw\c\accel\accel_lcc.tmf
### Creating Test.mk from I:\Program Files\MATLAB\R2010a\rtw\c\accel\accel_lcc.tmf
### Building Test: .\Test.bat

I:\Documents and Settings\test\My Documents\MATLAB\slprj\accel\Test>set MATLAB=I:\Program Files\MATLAB\R2010a

I:\Documents and Settings\test\My Documents\MATLAB\slprj\accel\Test>"I:\Program Files\MATLAB\R2010a\bin\win32\gmake" -f Test.mk GENERATE_REPORT=0
I:/PROGRA~1/MATLAB/R2010a/bin\mex.bat -c -win32 OPTIMFLAGS="-DNDEBUG" -f I:/DOCUME~1/test/APPLIC~1/MATHWO~1/MATLAB/R2010a/mexopts.bat -I. -I../../.. -II:/PROGRA~1/MATLAB/R2010a\simulink\include -II:/PROGRA~1/MATLAB/R2010a\extern\include -II:/PROGRA~1/MATLAB/R2010a\rtw\c\src -II:/PROGRA~1/MATLAB/R2010a\rtw\c\libsrc -II:/PROGRA~1/MATLAB/R2010a\rtw\c\src\ext_mode\common -II:/PROGRA~1/MATLAB/R2010a\rtw\c\src\ext_mode\tcpip -II:/PROGRA~1/MATLAB/R2010a\rtw\c\src\ext_mode\serial -II:/PROGRA~1/MATLAB/R2010a\rtw\c\src\ext_mode\custom -II:/DOCUME~1/test/MYDOCU~1/MATLAB/slprj/accel/Test -II:/DOCUME~1/test/MYDOCU~1/MATLAB -II:/DOCUME~1/test/Desktop -II:/PROGRA~1/MATLAB/R2010a/toolbox/daq/daqblks/include -II:/PROGRA~1/MATLAB/R2010a\sys\lcc\include Test_acc.c
Error Test_acc.c: I:/PROGRA~1/MATLAB/R2010A/TOOLBOX/DAQ/DAQBLKS/INCLUDE\sdaqruntime.h: 45 unrecognized declaration
Error Test_acc.c: I:/PROGRA~1/MATLAB/R2010A/TOOLBOX/DAQ/DAQBLKS/INCLUDE\sdaqruntime.h: 59 unrecognized declaration
Error Test_acc.c: I:/PROGRA~1/MATLAB/R2010A/TOOLBOX/DAQ/DAQBLKS/INCLUDE\sdaqruntime.h: 75 unrecognized declaration
Error Test_acc.c: I:/PROGRA~1/MATLAB/R2010A/TOOLBOX/DAQ/DAQBLKS/INCLUDE\sdaqruntime.h: 89 unrecognized declaration
Error Test_acc.c: I:/PROGRA~1/MATLAB/R2010A/TOOLBOX/DAQ/DAQBLKS/INCLUDE\sdaqruntime.h: 103 unrecognized declaration
Error Test_acc.c: I:/PROGRA~1/MATLAB/R2010A/TOOLBOX/DAQ/DAQBLKS/INCLUDE\sdaqruntime.h: 114 unrecognized declaration
Error Test_acc.c: I:/PROGRA~1/MATLAB/R2010A/TOOLBOX/DAQ/DAQBLKS/INCLUDE\sdaqruntime.h: 123 unrecognized declaration
Error Test_acc.c: I:/PROGRA~1/MATLAB/R2010A/TOOLBOX/DAQ/DAQBLKS/INCLUDE\sdaqruntime.h: 134 unrecognized declaration
Error Test_acc.c: I:/PROGRA~1/MATLAB/R2010A/TOOLBOX/DAQ/DAQBLKS/INCLUDE\sdaqruntime.h: 147 unrecognized declaration
Error Test_acc.c: I:/PROGRA~1/MATLAB/R2010A/TOOLBOX/DAQ/DAQBLKS/INCLUDE\sdaqruntime.h: 154 unrecognized declaration
Error Test_acc.c: I:/PROGRA~1/MATLAB/R2010A/TOOLBOX/DAQ/DAQBLKS/INCLUDE\sdaqruntime.h: 163 unrecognized declaration
11 errors, 0 warnings

I:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: Compile of 'Test_acc.c' failed.

gmake: *** [Test_acc.obj] Error 9
### Real-Time Workshop build procedure for model: 'Test' aborted due to an error.




With a different source the model works just fine!
The manual says analog input supports the accelerator mode. Please help!