2.4. TrendChart Namespace Reference

Classes

Functions

Variables

2.4.1. Function Documentation

2.4.1.1. have_connection()

TrendChart.have_connection ( client)

Register points with the DataHub client upon connection.

Arguments:
    client: The DataHub client.

2.4.1.2. lost_connection()

TrendChart.lost_connection ( client)

Print out that the connection was lost.

Arguments:
    client: The DataHub client.

2.4.1.3. main()

TrendChart.main ( )

Main function to run everything.

2.4.1.4. on_point_changed()

TrendChart.on_point_changed ( client, point)

Handle point change events and update trend data.

Arguments:
    client: The DataHub client.
    point: The point that changed.

2.4.1.5. registerPoint()

TrendChart.registerPoint ( client, point_name, square = False , extend = False )

Register a point with the DataHub client.

Arguments:
    client: The DataHub client.
    point_name: The name of the point.
    square: Whether the trace should be a square wave.
    extend: Whether the trace should extend the last value.

2.4.1.6. start_client()

TrendChart.start_client ( loop, host, port, name)

Create and configure a DataHub client connection.

Arguments:
    loop: The event loop.
    host: The host address.
    port: The port number.
    name: The name of the connection.
Returns:
    MyConnection: The configured client connection.

2.4.1.7. update_plot()

TrendChart.update_plot ( client)

Update the plot with new data.

Arguments:
    client: The DataHub client.