Library block with variable outputs



Hello,

I want to create a Simulink library block with a variable number of outputs. Therefor I have one parameter which is set in the block's mask via a checkbox.

In addition I wrote a dialog callback for this parameter, which connects a line either to a terminator block or to an outport block, depending of the state of the checkbox.

This works well if the block stands alone. If I put it in a library, everything works fine in the library, but not if I copy the block into another system. Here I have to break the link to the library to get back the functionality. Is there another solution for this situation?

Michael
.



Relevant Pages

  • Re: Library block with variable outputs
    ... I want to create a Simulink library block with a variable number of ... Therefor I have one parameter which is set in the block's ... of the state of the checkbox. ... pane of the mask editor. ...
    (comp.soft-sys.matlab)
  • Re: Generic function to output the values of an Enumeration
    ... I want to create a method that takes in the type of a Enumeration, ... This is what I have so far that outputs the values as a checkbox, ... I need to pass in *any* mask so it can check if that value is set in ... But I think it reads better starting with the value, and I think that converting the value to a string is slightly easier than converting the string to a value. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Block masks
    ... Do you have the 'evaluate' checkbox in the mask dialog editor checked? ... fetch the parameter value. ... entering 5.0 on the parent's dialog should cause the child block ...
    (comp.soft-sys.matlab)