Skip to main content
Visitor II
April 6, 2020
Solved

[Solved] "Single value" subflow not working

  • April 6, 2020
  • 4 replies
  • 1307 views

Hi,

I'm trying to plot different values on different plot charts because they live in a very different scale, but it seems that the "Single value" subplot is not working.

If I remove it the plot charts show all the values correctly.

Any idea?

0693W000000VOsYQAW.png

Thank you

Walter

    This topic has been closed for replies.
    Best answer by Thierry

    Hi WLuce,

    Another simple solution consists in keeping your initial flow and adding a "switch" node between the processing and he charts. Then in switch node, you need to filter on msg.payload.variablename for the 2 variables you want to draw. With this solution you can keep only the variable you wish normal one or post-processed one.

    4 replies

    Visitor II
    April 6, 2020

    Hi WLuce,

    Using the Single value will not work, because the output format is modified to fit with gauge, and no more with graphs.

    One solution to not using single value is to create 2 variables nodes connected to the same myProbe_Out node, and 2 processing nodes linked to their specific graph.

    I hope it will help you.

    Landry

    MyzharAuthor
    Visitor II
    April 6, 2020

    Thank you Landry,

    I'm going to test this solution

    MyzharAuthor
    Visitor II
    April 6, 2020

    @Landry​ Your suggestion works, but how can I rescale one of the variables now?

    If I add a "post-processing" variable the plot shows both the variables: the original and the rescaled.

    Thank you

    Walter

    ThierryAnswer
    Visitor II
    April 6, 2020

    Hi WLuce,

    Another simple solution consists in keeping your initial flow and adding a "switch" node between the processing and he charts. Then in switch node, you need to filter on msg.payload.variablename for the 2 variables you want to draw. With this solution you can keep only the variable you wish normal one or post-processed one.

    Visitor II
    April 6, 2020

    yes it's a better solution. switch node in your flow instead of single value

    MyzharAuthor
    Visitor II
    April 6, 2020

    The "switch" is the solution :grinning_face:

    I have tried it before, but I did not know about the "variablename" field.

    Thank you

    PS I have another question, but I write a new post since it's a different topic