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

2 vues (au cours des 30 derniers jours)
Daniel  Clarke
Daniel Clarke le 26 Mar 2013
Commenté : Mohammed Abbas le 15 Oct 2024
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 commentaires
Mohammed Abbas
Mohammed Abbas le 15 Oct 2024
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?

Connectez-vous pour commenter.

Réponses (5)

hideki terasawa
hideki terasawa le 23 Août 2022
I cannot find 'opcslread.tlc' in 2022 MATLAB version.
  3 commentaires
Mohammed Abbas
Mohammed Abbas le 15 Oct 2024
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?

Connectez-vous pour commenter.


Erwin Torreao Dassen
Erwin Torreao Dassen le 18 Nov 2013
I'm having the same problem, although I admit I'm new to using the RTW... Any help here would be welcome.
  1 commentaire
Mohammed Abbas
Mohammed Abbas le 15 Oct 2024
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?

Connectez-vous pour commenter.


Ivan
Ivan le 13 Jan 2014
The same problem and no answer anywhere!
  1 commentaire
Mohammed Abbas
Mohammed Abbas le 15 Oct 2024
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?

Connectez-vous pour commenter.


Koen Van den Maegdenbergh
Koen Van den Maegdenbergh le 11 Oct 2016
Problem still exist in the 2016 Matlab version :(
  2 commentaires
Mohammed Abbas
Mohammed Abbas le 15 Oct 2024
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?

Connectez-vous pour commenter.


SZE JIE NG
SZE JIE NG le 1 Mai 2020
Same problem exist in 2020 Matlab version and no solution!!!
  1 commentaire
Mohammed Abbas
Mohammed Abbas le 15 Oct 2024
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulink Coder dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by