MATLAB Answers

simulink add_block fails for 'built-in/Transfer Fcn'

Stephen Yutkowitz 님이 질문을 제출함. 28 Jun 2017
최근 활동 Swarooph 님이 답변함. 28 Jun 2017
simulink add_block fails for 'built-in/Transfer Fcn' is it because of the white space?

  댓글 수: 0

로그인 to comment.

답변 수: 1

Swarooph 님의 답변 28 Jun 2017

Using block names like 'Transfer Fcn' works only if you use the full block path as follows:
add_block('simulink/Continuous/Transfer Fcn', 'untitled/Transfer Fcn')
Otherwise, you can use 'built-in/blocktype' as a source block path name for Simulink built-in blocks, where blocktype is the built-in block type (that is, the value of its BlockType parameter (see Common Block Properties). However, using 'built-in/blocktype' causes some default parameter values of some blocks to be different from the defaults that you get if you added those blocks interactively using Simulink.
add_block('built-in/TransferFcn', 'untitled/Transfer Fcn1')
More on the documentation here.

  댓글 수: 0

로그인 to comment.



Translated by