Hi, I need to be able to extract details about all instantiated blocks in a Simulink model and their parameters as well as their interconnections. I was thinking of creating an S-Function and instantiating it within a model to extract this information. However I can see that while this new block can get the type of the inputs passed to it but how do I get it to extract parameters and widths for all the other blocks? The 'get_param' command isn't working so well for this purpose. I might be going about this in the wrong way. Any help would be great.