Filter löschen
Filter löschen

S-functions with Legacy Code Tool (LCT) in SIL and PIL

4 Ansichten (letzte 30 Tage)
Matthias Weber
Matthias Weber am 11 Jul. 2016
Beantwortet: Mark McBroom am 26 Aug. 2016
Hello!
I have been using the Legacy Code Tool (LCT) to integrate legacy code as an S-function into Simulink. I want to use the legacy code not only in the normal simulation mode, but also in SIL and PIL.
I saw that
legacy_code('sfcn_tlc_generate', specs)
generates a TLC file. Is this TLC file only usable for Accelerator mode or also for SIL/PIL code generation?
%function Outputs(block, system) Output
%if IsModelReferenceSimTarget() || CodeFormat=="S-Function" || ::isRAccel
%%...
%else
%%...
%endif
%endfunction
Is the else-branch of the TLC block method implementations for SIL/PIL?
Best regards,
Matthias

Antworten (1)

Mark McBroom
Mark McBroom am 26 Aug. 2016
Yes the else branch will be used for code generation, which includes SIL and PIL

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by