Using Simulink Coder to build models using OPC toolbox blocks '.TLC files missing'

6 ビュー (過去 30 日間)
Daniel  Clarke
Daniel Clarke 2013 年 3 月 26 日
コメント済み: Mohammed Abbas 2024 年 10 月 15 日
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 件のコメント
棵松 陈
棵松 陈 2023 年 2 月 16 日
me too
Mohammed Abbas
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
hideki terasawa 2022 年 8 月 23 日
I cannot find 'opcslread.tlc' in 2022 MATLAB version.
  3 件のコメント
hideki terasawa
hideki terasawa 2023 年 2 月 16 日
No, not yet.
Mohammed Abbas
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
Erwin Torreao Dassen 2013 年 11 月 18 日
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
Mohammed Abbas 2024 年 10 月 15 日
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?

サインインしてコメントする。


Ivan
Ivan 2014 年 1 月 13 日
The same problem and no answer anywhere!
  1 件のコメント
Mohammed Abbas
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
Koen Van den Maegdenbergh 2016 年 10 月 11 日
Problem still exist in the 2016 Matlab version :(
  2 件のコメント
Andreas Harrer
Andreas Harrer 2017 年 12 月 18 日
any Solutions yet?
Mohammed Abbas
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
SZE JIE NG 2020 年 5 月 1 日
Same problem exist in 2020 Matlab version and no solution!!!
  1 件のコメント
Mohammed Abbas
Mohammed Abbas 2024 年 10 月 15 日
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by