Working with Graphs

Shuffleboard ile zaman içerisindeki sayısal değerleri grafik olarak çizebilirsiniz. Grafikler, robotu çalıştığı süre boyunca sensör veya motor değerlerinin nasıl değiştiğini görmek için faydalıdır. Örneğin sensör değerleri ayarlama sırasında verdiği tepkiyi gözlemlemek için PID döngüsü içeriside çizilebilmektedir.

To create a graph, choose a numeric value and right-click in the heading and select “Show as…” and then choose graph

Herhangi bir sayısal değere sağ tıklayıp  "Show as..." ve ardından "Graph" seçeneklerini seçebilirsiniz.

The graph widget shows line plots of the value that you selected. It will automatically set the scale and the default time interval that the graph will show will be 30 seconds. You can change that in the setting for the graph (see below).

Standart zaman aralığı 30 saniyedir.

Ek Veri Değerlerinin Eklenmesi

İlgili değerler için aynı grafik üzerinde birden fazla değer göstermek istenmektedir. Bunu yapmak için sadece (Shuffleboard penceresinin sol tarafındaki) NetworkTables kaynak görünümünden ek değerleri sürükleyip grafiğe bırakmanız yeterlidir, değer aşağıda gösterildiği üzere grafiğe eklenecektir. Bunun ardından grafiğe ek değerler taşımaya devam edebilirsiniz

Aynı grafikte iki farklı veri kaynağını gösteren bir grafik.

You can resize the graph vertically to view the legend if it is not displayed as shown in the image below. The legend shows all the sources that are used in the plot.

Grafik dikey olarak yeniden ölçeklendirildiğinde hangi rengin hangi grafiğe denk düştüğünü belirten bir açıklama gösterecektir.

Setting Graph Properties

You can set the number of seconds that are shown in the graph by changing the “Visible time” in the graph widget properties. To access the properties, right-click on the graph and select “Edit properties”.

In addition to setting the visible time the graph can selectively turn sources on and off by turning the switch on and off for each of the sources shown in the properties window (see below).

Right click to view the properties of each graph.