[Solved] "Single value" subflow not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-06 8:09 AM
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?
Thank you
Walter
Solved! Go to Solution.
- Labels:
-
STM32CubeMonitor
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-06 8:35 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-06 8:15 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-06 8:18 AM
Thank you Landry,
I'm going to test this solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-06 8:28 AM
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-06 8:35 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-06 8:39 AM
yes it's a better solution. switch node in your flow instead of single value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-06 9:02 AM
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
