multi channel support needed in mimiceditor

Forum Home Forums Development and Integration multi channel support needed in mimiceditor

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17255
    Zeus
    Participant

    Hi,
    I am trying to develop plugin. And i don’t know how to make plugin support more than one channel.

    #17259
    Mikhail
    Moderator

    Hi,
    Could you explain the question and provide some examples?

    #17260
    Zeus
    Participant

    Hi.
    The RegularComponentDescriptor have PropertyDescriptor below. It supports only one cnl

    this.add(new PropertyDescriptor({
    name: “inCnlNum”,
    displayName: “Input channel”,
    category: KnownCategory.DATA,
    type: BasicType.INT
    }));

    And the function below bind cnl in xml

    /// <summary>
    /// Binds the view to the configuration database.
    /// </summary>
    public override void Bind(ConfigDataset configDataset)
    {
    foreach (Component component in Mimic.EnumerateComponents())
    {
    if (component.Bindings != null)
    {
    component.Bindings.BindChannels(configDataset);
    component.Bindings.OffsetCnlNums(viewArgs.CnlOffset);
    component.Bindings.GetAllCnlNums().ForEach(cnlNum =>
    AddCnl(configDataset.CnlTable.GetItem(cnlNum)));
    }
    }
    }

    Now i am developing mimic plugin it need more than one cnl. I don’t know how to make a PropertyDescriptor support more than one cnl and it can bind.

    #17264
    Mikhail
    Moderator

    Hi,
    The Input channel property is used for simple scenarios. To bind many properties to different channels, click the Property bindings button (in the property grid) and add as many bindings as needed.

    Please translate this document from Russian into your native language. It can help.

    #17266
    Zeus
    Participant

    Hi,
    It works. thanks

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.