NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab/Simulink와 Veristand를 사용하여 Code 생성 중 에러가 발생했습니다.

Matlab/Simulink와 Veristand를 사용하여 Code를 생성하는 도중 다음과 같은 error가 발생했습니다.

 

=== Build (Elapsed: 3:52 min) ===
### Generating code into build folder: C:\Users\SEVEN\Desktop\pemfc_veristand_rtw
Warning:Matching "From" for "Goto" 'pemfc/Air(kg//h)2' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto12' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto13' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto18' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto2' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto20' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto21' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto22' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto23' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto24' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto26' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto27' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto28' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto29' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto4' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto5' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto8' not found
Warning:Matching "From" for "Goto" 'pemfc/Goto9' not found
Warning:Unable to determine a fixed step size based on the sample times in the model 'pemfc', because the model does not have any discrete sample times. Picking a fixed step size of (0.2) based on simulation start and stop times. You can disable this diagnostic by explicitly specifying a fixed step size in the Solver pane of the Configuration Parameters dialog box, or setting the 'Automatic solver parameter selection' diagnostic to 'none' in the Solver group on the Diagnostics pane of the Configuration Parameters dialog box.
### VeriStand 2019.2.0.0 (2019R3) code generation started
### Invoking Target Language Compiler on pemfc.rtw
### Using System Target File: C:\VeriStand\2019\ModelInterface\tmw\target\VeriStand.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
...............................................................................
...............................................................................
................
### Caching model source code
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
.........................................................................
### Writing header file pemfc.h
### Writing header file pemfc_types.h
### Writing header file pemfc_private.h
### Writing header file rtwtypes.h
### Writing header file builtin_typeid_types.h
.
### Writing header file multiword_types.h
### Writing header file zero_crossing_types.h
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### Writing header file rt_nonfinite.h
.
### Writing source file rt_nonfinite.c
### Writing header file rt_assert.h
### Writing source file pemfc.c
### Writing header file rtmodel.h
### Writing source file pemfc_data.c
### Writing header file rt_defines.h
### TLC code generation complete.
### Generating TLC interface API.
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
.......................
### VeriStand 2019.2.0.0 (2019R3) Modifying source file pemfc.c
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
................................................................
### VeriStand 2019.2.0.0 (2019R3) Modifying source file pemfc_data.c
### VeriStand 2019.2.0.0 (2019R3) Writing header file ni_pglobals.h
### VeriStand 2019.2.0.0 (2019R3) Modifying header file pemfc.h
### VeriStand 2019.2.0.0 (2019R3) Generating Ports Readme file
### VeriStand 2019.2.0.0 (2019R3) Generating Signals Readme file
### VeriStand 2019.2.0.0 (2019R3) Generating Parameters Readme file
### VeriStand 2019.2.0.0 (2019R3) Copying support files
1개 파일이 복사되었습니다.
1개 파일을 이동했습니다.
1개 파일이 복사되었습니다.
1개 파일이 복사되었습니다.
### VeriStand 2019.2.0.0 (2019R3) code generation done
Running rtwmakecfg from directory: c:\program files (x86)\eutech se\thermolib\5.4.0\blocks
[경고: Unable to run 'rtwmakecfg' file in directory: 'c:\program files (x86)\eutech se\thermolib\5.4.0\blocks' due to error: ''templateMakefile'은(는) 정의되지 않은 함수 또는 변수입니다.'
]
### VeriStand 2019.2.0.0 (2019R3) code compilation started
### Using toolchain: LCC-win64 v2.4.1 | gmake (64-bit Windows)
### Creating 'C:\Users\SEVEN\Desktop\pemfc_veristand_rtw\pemfc.mk' ...
### Building 'pemfc': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f pemfc.mk all

C:\Users\SEVEN\Desktop\pemfc_veristand_rtw>set MATLAB=C:\Program Files\MATLAB\R2017a

C:\Users\SEVEN\Desktop\pemfc_veristand_rtw>cd .

C:\Users\SEVEN\Desktop\pemfc_veristand_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f pemfc.mk all ) else ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f pemfc.mk )
"C:/PROGRA~1/MATLAB/R2017a/sys/lcc64/lcc64/bin/lcc64" -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2017a/sys/lcc64/lcc64/include64 -DMAT_FILE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=1 -DALLOCATIONFCN=0 -DONESTEPFCN=0 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DNI_ROOTMODEL_pemfc -DTID01EQ=1 -DMODEL=pemfc -DNUMST=2 -DNCSTATES=629 -DHAVESTDIO -DRT -DUSE_RTMODEL -IC:/Users/SEVEN/Desktop -IC:/Users/SEVEN/Desktop/pemfc_veristand_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -Fo"ni_modelframework.obj" "ni_modelframework.c"
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 7998 syntax error; found `*' expecting '}'
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 7998 skipping `*' `*' `*' `9' `>' `/' `S' `-' ...Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 8718 missing '
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 8718 missing '
up to `;'
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9029 unrecognized declaration
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9303 unrecognized declaration
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9303 Syntax error; missing semicolon before `-'
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9303 unrecognized declaration
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9303 missing '
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9303 missing '
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9303 Syntax error; missing semicolon before ''
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9303 unrecognized declaration
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9437 unrecognized declaration
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 unrecognized declaration
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 Syntax error; missing semicolon before `>'
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 skipping `>' `/'
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 Syntax error; missing semicolon before `-'
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 unrecognized declaration
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 missing '
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 missing '
Error c:\users\seven\desktop\pemfc_veristand_rtw\ni_modelframework.c: pemfc.h: 9571 too many errors
gmake: *** [ni_modelframework.obj] Error 1
C:\Users\SEVEN\Desktop\pemfc_veristand_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\SEVEN\Desktop\pemfc_veristand_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
### Creating HTML report file pemfc_codegen_rpt.html
### Aborted due to an error in the build procedure for model: pemfc
Error:Error(s) encountered while building "pemfc":
### Failed to generate all binary outputs.

 

이게 어떤 문제인지 전혀 짐작이 안 되는데- 혹시 참고할 만한 부분이 있다면, 조언을 부탁드립니다!!

0 Kudos
Message 1 of 2
(2,195 Views)