2.3. PID Namespace Reference

Classes

Functions

Variables

  • loop = asyncio.new_event_loop()

2.3.1. Function Documentation

2.3.1.1. change_controller()

PID.change_controller ( pid)

Change the manipulated variable (MV) for the PID controller.

Arguments:
    pid: The PID controller.

2.3.1.2. change_procvar()

PID.change_procvar ( pid)

Change the process variable (PV) for the PID controller.

Arguments:
    pid: The PID controller.

2.3.1.3. delete_timer()

PID.delete_timer ( timer)

Delete a timer.

Arguments:
    timer: The timer to delete.

2.3.1.4. have_connection()

PID.have_connection ( client, allpids)

Handle a successful connection.

Arguments:
    client: The DataHub client.
    allpids: List of all PID controllers.

2.3.1.5. lost_connection()

PID.lost_connection ( client, allpids)

Handle a lost connection.

Arguments:
    client: The DataHub client.
    allpids: List of all PID controllers.

2.3.1.6. main()

PID.main ( loop)

Main function to run the PID controllers.

Arguments:
    loop: The event loop.

2.3.1.7. output_point()

PID.output_point ( pid, name, value)

Output a point value.

Arguments:
    pid: The PID controller.
    name: The name of the point.
    value: The value to output.

2.3.1.8. outputControlPoints()

PID.outputControlPoints ( client, pid)

Output control points for the PID controller.

Arguments:
    client: The DataHub client.
    pid: The PID controller.

2.3.1.9. pid_calculate()

PID.pid_calculate ( pid)

Calculate the manipulated variable (MV) for the PID controller.

Arguments:
    pid: The PID controller.
Returns:
    float: The calculated MV.

2.3.1.10. pid_calculate_procvar()

PID.pid_calculate_procvar ( pid)

Calculate the process variable (PV) for the PID controller.

Arguments:
    pid: The PID controller.
Returns:
    float: The calculated PV.

2.3.1.11. pid_create_points()

PID.pid_create_points ( client, pid)

Create points for the PID controller.

Arguments:
    client: The DataHub client.
    pid: The PID controller.

2.3.1.12. qualify()

PID.qualify ( client, pointname)

Qualify a point name with the client's domain.

Arguments:
    client: The DataHub client.
    pointname: The point name to qualify.
Returns:
    str: The qualified point name.

2.3.1.13. recalculate_dt()

PID.recalculate_dt ( pid)

Recalculate the time delta (dt) for the PID controller.

Arguments:
    pid: The PID controller.

2.3.1.14. register_pid()

PID.register_pid ( client, pid, is_register)

Register or unregister points for the PID controller.

Arguments:
    client: The DataHub client.
    pid: The PID controller.
    is_register: Whether to register or unregister the points.

2.3.1.15. RegisterPointChangeCallback()

PID.RegisterPointChangeCallback ( pid, sym, dhclient)

Register a callback for point change events.

Arguments:
    pid: The PID controller.
    sym: The symbol name.
    dhclient: The DataHub client.

2.3.1.16. reset_timer()

PID.reset_timer ( loop, client, pid, timeoutSecs)

Reset the timers for the PID controller.

Arguments:
    loop: The event loop.
    client: The DataHub client.
    pid: The PID controller.
    timeoutSecs: The timeout in seconds.

2.3.1.17. start_client()

PID.start_client ( loop, host, port, domain, name, allpids)

Start a DataHub client.

Arguments:
    loop: The event loop.
    host: The host address.
    port: The port number.
    domain: The domain name.
    name: The name of the client.
    allpids: List of all PID controllers.
Returns:
    MyConnection: The started client.

2.3.1.18. unqualifyName()

str PID.unqualifyName (str pointname)

Remove the domain prefix from a point name.

    pointname: The qualified point name.
Returns:
    str: The unqualified point name.

2.3.1.19. update_pids()

PID.update_pids ( pid)

Update the PID controller.

Arguments:
    pid: The PID controller.

2.3.1.20. update_setpoint()

PID.update_setpoint ( pid)

Update the setpoint (SP) for the PID controller.

Arguments:
    pid: The PID controller.

2.3.1.21. updateOnPointChange()

PID.updateOnPointChange ( point, name, pid, dhclient)

Update PID attributes based on point changes.

Arguments:
    point: The point that changed.
    name: The name of the attribute to update.
    pid: The PID controller.
    dhclient: The DataHub client.