Using Simulink Coder to build models using OPC toolbox blocks '.TLC files missing'
Mostra commenti meno recenti
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 Commenti
Kaustubha Govind
il 20 Mar 2014
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.
棵松 陈
il 16 Feb 2023
me too
Mohammed Abbas
il 15 Ott 2024
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?
Risposte (5)
hideki terasawa
il 23 Ago 2022
1 voto
I cannot find 'opcslread.tlc' in 2022 MATLAB version.
3 Commenti
棵松 陈
il 16 Feb 2023
Do you have any answers
hideki terasawa
il 16 Feb 2023
No, not yet.
Mohammed Abbas
il 15 Ott 2024
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?
Erwin Torreao Dassen
il 18 Nov 2013
0 voti
I'm having the same problem, although I admit I'm new to using the RTW... Any help here would be welcome.
1 Commento
Mohammed Abbas
il 15 Ott 2024
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?
Ivan
il 13 Gen 2014
0 voti
The same problem and no answer anywhere!
1 Commento
Mohammed Abbas
il 15 Ott 2024
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?
Koen Van den Maegdenbergh
il 11 Ott 2016
0 voti
Problem still exist in the 2016 Matlab version :(
2 Commenti
Andreas Harrer
il 18 Dic 2017
any Solutions yet?
Mohammed Abbas
il 15 Ott 2024
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?
SZE JIE NG
il 1 Mag 2020
0 voti
Same problem exist in 2020 Matlab version and no solution!!!
1 Commento
Mohammed Abbas
il 15 Ott 2024
Hello I'm facing the same problem and haven't found a solution!!! Do you have any solutions?
Categorie
Scopri di più su Simulink Coder in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!