cgirblk_s0_b1_blockoutputcomment.tlc

来自「《MATLAB7.0_Simulink6.0建模仿真开发与高级工程应用》书中程序」· TLC 代码 · 共 16 行

TLC
16
字号
%implements cgirblk_s0_b1_BlockOutputComment "C"

%function BlockOutputComment(block, portIdx) void 
    %assign tmpBuf = ""
    %switch portIdx
      %case 0
         %openfile tmpBuf
 *  Gain: '<Root>/Gain A'\
         %closefile tmpBuf
         %return tmpBuf
    %default
      %assign errTxt = "No expression comment on port %<portIdx>"
      %<LibBlockReportError(block,errTxt)>
  %endswitch
%endfunction

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?