Re: Level-2 m-file S-function ...



Hi Vince,

You could use the block handle (using gcbh) as an argument directly passed
into the s-fcn.

Then the s-fcn would have access to the block's handle for later use (such
as for writing to the userdata).

hth,
Steve

"Vince" <vdiesl@xxxxxxxxxxxx> wrote in message
news:ef12943.-1@xxxxxxxxxxxxxxxxxxx
> Hi,
>
> Can a level-2 m-file s-function catch its own block handle during
> simulation? (I need to read/write the userdata of the s-function
> block from the s-function itself)
>
> Tx in advance.


.