Embedded mimic does not work

Forum Home Forums Understanding the Software Mimics Embedded mimic does not work

Viewing 2 posts - 31 through 32 (of 32 total)
  • Author
    Posts
  • #18028
    oley
    Participant

    Hi,

    all the images are part of the faceplate file.
    I have a channel with switch state 0, 1, 2, 3 and images for every state:

    <Conditions isArray="true">
            <Item>
              <ComparisonOper1>Equal</ComparisonOper1>
              <ComparisonArg1>0</ComparisonArg1>
              <LogicalOper>None</LogicalOper>
              <ComparisonOper2>LessThan</ComparisonOper2>
              <ComparisonArg2>0</ComparisonArg2>
              <ImageName>active_el04_0.png</ImageName>
            </Item>
            <Item>
              <ComparisonOper1>Equal</ComparisonOper1>
              <ComparisonArg1>1</ComparisonArg1>
              <LogicalOper>None</LogicalOper>
              <ComparisonOper2>LessThan</ComparisonOper2>
              <ComparisonArg2>0</ComparisonArg2>
              <ImageName>active_el04_1.png</ImageName>
            </Item>
            <Item>
              <ComparisonOper1>Equal</ComparisonOper1>
              <ComparisonArg1>2</ComparisonArg1>
              <LogicalOper>None</LogicalOper>
              <ComparisonOper2>LessThan</ComparisonOper2>
              <ComparisonArg2>0</ComparisonArg2>
              <ImageName>active_el04_2.png</ImageName>
            </Item>
            <Item>
              <ComparisonOper1>Equal</ComparisonOper1>
              <ComparisonArg1>3</ComparisonArg1>
              <LogicalOper>None</LogicalOper>
              <ComparisonOper2>LessThan</ComparisonOper2>
              <ComparisonArg2>0</ComparisonArg2>
              <ImageName>active_el04_3.png</ImageName>
            </Item>
          </Conditions>

    Every <Picture> has input channel defined (and for some of them also output).
    If I copy the faceplate into standalone mimic diagram it works well.
    If the faceplate is embedded in another mimic the pictures shows only default image.

    @manjey73
    provide an example for binding properties for a simple text, but my case is a bit more complex.

    #18029
    manjey73
    Participant

    The image does not have properties that can be passed a value so that the image can be changed according to the condition. I don’t remember if it’s possible to specify the control channel directly in the Picture.
    But you can change the file name property of the image inside the faceplate using the component script or facplate.
    I haven’t gotten to the continuation of how to do this yet 🙂

Viewing 2 posts - 31 through 32 (of 32 total)
  • You must be logged in to reply to this topic.