03-16-2018
06:36 AM
- last edited on
03-14-2019
02:18 PM
by
NIadmin
Hi,
I want to plot the value of a tag in a graph, but I am not sure how to link the tag to the graph. Can someone help me on this?
Thanks & Regards,
Mani
03-16-2018 08:32 AM
If you are wanting to plot data from tags and append them to the graph as they become available, I would recommend using the Chart instead of the graph.
Updating the graph is a little different. It is more intended for displaying the results of a test which would've generated many values similar to the graph in LabVIEW. Instead of supplying it one value at a time, you have to supply it all it's values with each update. To supply multiple values at a time, it takes in a string representing a JSON array of numbers (ex: "[3.0, 4.56, 9.8, 15.12]").
Additionally, the SystemLink Manual has a page that documents the data types used for many of the UI elements available via the Dashboard builder.
03-17-2018 12:58 AM
Hi,
How do I change the plot names of a graph using tags?
Thanks & Regards,
Nikitha
03-18-2018 12:09 AM
I've just been playing with graphs and charts on the Dashboard Builder too. As with DataDashboard, it appears that the current graphs and charts are limited in x axis to point number. E.g. I would like to plot data against real clock time. But the Dashboard widgets only take simple data types: a point for the chart and an array for the graph. My next attempt will be to use a WebVI, but I was just wondering if there are plans to beef up the graphs and charts in the Dashboard Builder? If you could plot X,Y pairs, it would be so much more useful!
03-18-2018 09:27 PM
To change the label of the plot in the legend, just double-click one of the items in the plots list. It should have two fields, the "Label" field and the "Value" field. Value is where you would put the name of the tag, label is where you can change what the graph displays it as.
As for the question about plotting real-time data, currently that is not something that you can do, but we really appreciate you providing us with this feedback!
03-20-2018 06:46 AM
Can I not link tags to the labels in graph?
Thanks,
Nikitha
03-20-2018 06:54 AM
Meaning, Can I send the label as well the graph input values in a single tag?
Thanks,
Nikitha
03-20-2018 07:55 AM
Not currently, but that is something we can look at adding in the next release. Would it suffice if you could just set a property like Label or Display Name on the tag?
03-21-2018 06:12 AM
Yeah, that 'll do.
I have another question regarding trees. I need to display a tree (in LabVIEW), in the Dashboard. Creating a tag for a tree, to just imitate a tree in LabVIEW takes a lot of formatting. Is there an easier way to get the tags created from trees in LabVIEW.
Thanks,
Nikitha
03-21-2018 07:11 AM
Right now, to take a tree created in LabVIEW would require you to change it to the JSON format as described in this document. Is this is the formatting that you referred to?