sl_customization

10 views (last 30 days)
Sriharsha
Sriharsha on 16 Mar 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 Comments
Sriharsha
Sriharsha on 17 Mar 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 on 17 Mar 2012
I would like to attach the files that i am using but, i did not find any "attach" option here....

Sign in to comment.

Accepted Answer

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

More Answers (0)

Categories

Find more on Prepare Model Inputs and Outputs in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!