Filter löschen
Filter löschen

sl_customization

7 Ansichten (letzte 30 Tage)
Sriharsha
Sriharsha am 16 Mär. 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 Kommentare
Sriharsha
Sriharsha am 17 Mär. 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 am 17 Mär. 2012
I would like to attach the files that i am using but, i did not find any "attach" option here....

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Sriharsha
Sriharsha am 19 Mär. 2012
I got the answer after some searching..
Keep the "sl_customization" file in the path and
run the command "sl_refresh_customizations"
:)

Weitere Antworten (0)

Kategorien

Mehr zu Prepare Model Inputs and Outputs finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by