When I set Interface to "External Mode" in RTW configuration
parameters, the "Transport Layer" control only contains the
"none" option.
When using the grt.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-out that I can edit the mdl file and force the
"ExtModeMexFile" parameters to "ext_comm" instead of
"noextcomm" and it works! I can connect to my target from
Simulink.
But of course ExtModeMexFile is overwritten next time I save
the model. I need to be able to set the transport layer from
Simulink Configuration's dialog.
Thanks for any help
Frederic
%% SYSTLC: Test Target \
%% TMF: test.tmf MAKE: make_rtw EXTMODE: ext_comm
%%
%%
%selectfile NULL_FILE
%assign TargetType = "RT"
%assign Language = "C"
%assign GenRTModel = 1
%assign _GRT_ = 1
%assign MatFileLogging = 1
%include "codegenentry.tlc"
BEGIN_RTW_OPTIONS
rtwgensettings.DerivedFrom = 'grt.tlc';
rtwgensettings.Version = '1';
rtwgensettings.BuildDirSuffix = '_test_rtw';
END_RTW_OPTIONS
%/
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('test.tlc', 'tcpip',
'ext_comm', 'Level1');
end
Mentioning this in the doc would be nice (in case somebody
at The Mathworks is reading this).
Frederic
"Frederic " <fr...@nowhere.com> wrote in message
<fhl28q$4st$1...@fred.mathworks.com>...
This will be doc'd in the R2008a release.
Thanks,
Aaron
"Frederic " <fr...@nowhere.com> wrote in message <fht1co$li5
$1...@fred.mathworks.com>...
"Aaron " <aaron.draj...@mathworks.com> wrote in message <fi309b$4le$1...@fred.mathworks.com>...