Using Simulink Coder to build models using OPC toolbox blocks '.TLC files missing'
이전 댓글 표시
Hello,
I am trying to generate a Visual C++ project for a 'GRT' target, of a simple model that contains a single OPC read block, and an OPC write block, just so that when I run the simulation in Visual Studio, I will be able to view the output of the model in the real time and also supply new inputs on the fly using Matrikon OPC explorer.
When I try to generate the code, I get the following error:
'The corresponding 'opcslread.tlc' file for the MATLAB S-function 'opcslread' in block 'testGen/OPC Read' must be located in the current working directory, the MATLAB S-function directory 'C:\Program Files\MATLAB\R2012b\toolbox\opc\opcblks\opcblks', or the directory 'C:\Program Files\MATLAB\R2012b\toolbox\opc\opcblks\opcblks\tlc_c''
I have searched in the folders that it specifies, and cannot find the .tlc file it talks about, I heard in earlier releases of Matlab that .tlc files were shipped for every (if not most) sfunction(s), but nowadays they are not.
I am currently running Matlab r2012b if this helps anyone,Has anyone had any experience using Simulink Coder with OPC toolbox, or know how to generate .tlc files or bypass this whole shabang entirely.
Cheers,
Dan
댓글 수: 3
Kaustubha Govind
2014년 3월 20일
I am not 100% sure about the OPC Toolbox, but if the TLC files aren't being shipped, it seems to indicate that the blocks are not supported for code-generation.
棵松 陈
2023년 2월 16일
me too
Mohammed Abbas
2024년 10월 15일
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?
답변 (5개)
hideki terasawa
2022년 8월 23일
1 개 추천
I cannot find 'opcslread.tlc' in 2022 MATLAB version.
댓글 수: 3
棵松 陈
2023년 2월 16일
Do you have any answers
hideki terasawa
2023년 2월 16일
No, not yet.
Mohammed Abbas
2024년 10월 15일
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?
Erwin Torreao Dassen
2013년 11월 18일
0 개 추천
I'm having the same problem, although I admit I'm new to using the RTW... Any help here would be welcome.
댓글 수: 1
Mohammed Abbas
2024년 10월 15일
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?
Ivan
2014년 1월 13일
0 개 추천
The same problem and no answer anywhere!
댓글 수: 1
Mohammed Abbas
2024년 10월 15일
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?
Koen Van den Maegdenbergh
2016년 10월 11일
0 개 추천
Problem still exist in the 2016 Matlab version :(
댓글 수: 2
Andreas Harrer
2017년 12월 18일
any Solutions yet?
Mohammed Abbas
2024년 10월 15일
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?
SZE JIE NG
2020년 5월 1일
0 개 추천
Same problem exist in 2020 Matlab version and no solution!!!
댓글 수: 1
Mohammed Abbas
2024년 10월 15일
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!