How can I use FIND_SYSTEM to find the Lookup Table (n-D) block in a model in Simulink 6.6 (R2007a)?

7 views (last 30 days)
I would like to be able to use FIND_SYSTEM to search for the Lookup Table (n-D) blocks in my model. However, when I try to find the block using the 'BlockType' parameter, it does not find it, as shown below:
>> find_system(gcs,'blocktype','Lookup Table (n-D)')
ans =
Empty cell array: 0-by-1

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
The Lookup Table (n-D) block is actually an S-function block that points to the “sfun_lookupnd” S-Function. Therefore it can be found by specifying the block type to be S-Function, as shown below:
>> find_system(gcs,'blocktype','S-Function')
ans =
'testfindsys/Lookup
Table (n-D)'
The specific Lookup Table (n-D) blocks can also be found by looking for the S-function name “sfun_lookupnd”, using the ‘FunctionName’ parameter, as shown below:
>> find_system(gcs,'FunctionName','sfun_lookupnd')
ans =
'testfindsys/Lookup
Table (n-D)'
  1 Comment
Arun Badigannavar
Arun Badigannavar on 18 May 2016
how to replace with 1-d table, in simulink model? how to differentiate1-d and 2-d table while replacing "RepNames = replace_block('abc','some_custom_s_function','sfun_lookupnd')"how to work on this

Sign in to comment.

More Answers (0)

Categories

Tags

No tags entered yet.

Products


Release

R2007a

Community Treasure Hunt

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

Start Hunting!