Borrar filtros
Borrar filtros

sl_customization

7 visualizaciones (últimos 30 días)
Sriharsha
Sriharsha el 16 de Mzo. de 2012
when I run the function, I get the following error. > > Could you please help me.. > > ----------------------------------------- > Error in sl_customization (line 4) > cm.ExtModeTransports.add('qnx.tlc', 'tcpip', 'ext_comm', > 'Level1'); --------------------------------------------
Can any one tell me y...
  3 comentarios
Sriharsha
Sriharsha el 17 de Mzo. de 2012
I have a problem to use "external mode" with a custom TLC
file that derives from qnx.tlc
When I set Interface to "External Mode" in RTW configuration
parameters, the "Transport Layer" control only contains the
"none" option.
When using the qnx.tlc target it contains the expected
options "serial, tctpip...".
What do I need to change in my TLC file to have access to
those Transport layers?,....
-----------------------
I found the solution after digging
through the m source files in the toolbox/simulink directory.
To add tcpip external mode support to a custom target,
create a sl_customization.m file with the following content:
---------------------------------
function sl_customization(cm)
disp('Adding tcpip external mode to test target');
cm.ExtModeTransports.add('qnx.tlc', 'tcpip',
'ext_comm', 'Level1');
end
-----------------------------------------------
-----------------------------------------------
I have this function in the same folder, where the qnx.tlc file is ...
I get the following error, wen i run the function..
-----------------------------------------------------------
sl_customization
Adding tcpip external mode to QNX target
Undefined variable cm.
Error in sl_customization (line 4)
cm.ExtModeTransports.add('qnx.tlc', 'tcpip', 'ext_comm','Level1');
--------------------------------------------------------------------------------
I have the *.tlc, *.tmf files in the same folder where i have this function defined.
Is this y, i am getting an error?
Y i am not able to add the external mode to my custom tlc??
please help me..
Thanks
Sriharsha S
Sriharsha
Sriharsha el 17 de Mzo. de 2012
I would like to attach the files that i am using but, i did not find any "attach" option here....

Iniciar sesión para comentar.

Respuesta aceptada

Sriharsha
Sriharsha el 19 de Mzo. de 2012
I got the answer after some searching..
Keep the "sl_customization" file in the path and
run the command "sl_refresh_customizations"
:)

Más respuestas (0)

Categorías

Más información sobre Prepare Model Inputs and Outputs en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by