%%
%%
%%
%%Copyright1994-2010TheMathWorks,Inc.
%%
%%Abstract:
%%Subsystemblocktargetfile.
%%
 
%implements SubSystem "C"
 
%%Function:BlockInstanceSetup================================================
%%Abstract:
%%Createanyfilesthatwereuserspecified.
%%Renamethefunctionsforthissystemtowhattheuserspecifiesif
%%theyareunique.
%%
%function BlockInstanceSetup(block, system) void
  %<LibBlockSetIsExpressionCompliant(block)>
%endfunction %% BlockInstanceSetup
 
 
%%Function:BlockInstanceData=================================================
%%Abstract:
%%ExerciseeachblocksBlockInstanceDatafunction.Notethatthisis
%%recursiveforsubsystemblocks.
%%
%function BlockInstanceData(ssBlock, parentSystem) Output
  %assign childSystem = ::CompiledModel.System[CallSiteInfo.SystemIdx]
  %openfile bufferSS
  %foreach blkIdx = childSystem.NumBlocks
    %openfile buffer
 
    %<GENERATE(childSystem.Block[blkIdx], "BlockInstanceData", childSystem)>
 
    %closefile buffer
    %if WHITE_SPACE(buffer) == 0
      {
      /
      %<buffer>/
      }
    %endif
  %endforeach
  %closefile bufferSS
  %if WHITE_SPACE(bufferSS) == 0
    /* Blocks in %<childSystem.Type> subsystem: '%<ssBlock.Name>' */ /
    %<bufferSS>/
  %endif
%endfunction %% BlockInstanceData
 
 
 
 
%%[EOF]subsystm.tlc